Skip to content

Commit 5f85d30

Browse files
authored
Merge pull request #1660 from ZeusAutomacao/Reforma_tributaria
Integra modificações mergeadas para a branch da reforma em vez da master
2 parents bdcac10 + e384f8a commit 5f85d30

15 files changed

+792
-66
lines changed

MDFe.AppTeste/MDFe.AppTeste.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@
366366
<Name>MDFe.Wsdl</Name>
367367
</ProjectReference>
368368
</ItemGroup>
369-
<ItemGroup />
369+
<ItemGroup>
370+
<Content Include="Schemas\evAlteracaoPagtoServMDFe_v3.00.xsd" />
371+
<Content Include="Schemas\evConfirmaServMDFe_v3.00.xsd" />
372+
</ItemGroup>
370373
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
371374
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
372375
Other similar extension points exist, see Microsoft.Common.targets.

MDFe.AppTeste/MDFeTesteModel.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,20 @@ public void CriarEnviar()
648648
InfANTT = new MDFeInfANTT
649649
{
650650
RNTRC = config.Empresa.RNTRC,
651+
InfPag = new List<MDFeInfPag>()
652+
{
653+
new MDFeInfPag
654+
{
655+
CNPJ = Cnpj,
656+
XNome = "Teste",
657+
Comp = new List<MDFeComp>()
658+
{
659+
new MDFeComp{TpComp = MDFeTpComp.Outros, VComp = 0m, XComp = "Teste"}
660+
},
661+
VContratoProxy = 0m,
662+
InfBanc = new MDFeInfBanc{PIX = "79999999999"}
663+
}
664+
},
651665

652666
// não é obrigatorio
653667
InfCIOT = new List<infCIOT>
@@ -716,7 +730,7 @@ public void CriarEnviar()
716730
{
717731
new MDFeInfCTe
718732
{
719-
ChCTe = "52161021351378000100577500000000191194518006"
733+
ChCTe = "35251012345678000195570010000001231876543213"
720734
}
721735
}
722736
}
@@ -783,7 +797,8 @@ public void CriarEnviar()
783797
{
784798
CEP = "75950000"
785799
}
786-
}
800+
},
801+
Ncm = "01069000"
787802
};
788803
}
789804

MDFe.AppTeste/Schemas/consSitMDFeTiposBasico_v3.00.xsd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2014 rel. 2 (http://www.altova.com) by private (private) -->
23
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/mdfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/mdfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
34
<xs:include schemaLocation="tiposGeralMDFe_v3.00.xsd"/>
45
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
@@ -103,6 +104,25 @@
103104
</xs:attribute>
104105
</xs:complexType>
105106
</xs:element>
107+
<xs:element name="procInfraSA" minOccurs="0">
108+
<xs:annotation>
109+
<xs:documentation>Grupo de informações do compartilhamento do MDFe com InfraSA para geração do DTe</xs:documentation>
110+
</xs:annotation>
111+
<xs:complexType>
112+
<xs:sequence>
113+
<xs:element name="nProtDTe" type="TProt">
114+
<xs:annotation>
115+
<xs:documentation>Número do Protocolo de geração do DTe</xs:documentation>
116+
</xs:annotation>
117+
</xs:element>
118+
<xs:element name="dhProt" type="TDateTimeUTC">
119+
<xs:annotation>
120+
<xs:documentation>Data e hora de geração do protocolo, no formato AAAA-MM-DDTHH:MM:SS TZD.</xs:documentation>
121+
</xs:annotation>
122+
</xs:element>
123+
</xs:sequence>
124+
</xs:complexType>
125+
</xs:element>
106126
</xs:sequence>
107127
<xs:attribute name="versao" type="TVerConsSitMDFe" use="required"/>
108128
</xs:complexType>
Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/mdfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://www.portalfiscal.inf.br/mdfe" targetNamespace="http://www.portalfiscal.inf.br/mdfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="eventoMDFeTiposBasico_v3.00.xsd"/>
5+
<xs:element name="evAlteracaoPagtoServMDFe">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de alteração do pagamento do serviçp de transporte 110118</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do Evento - “Alteração Pagamento Serviço MDFe”</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:whiteSpace value="preserve"/>
18+
<xs:enumeration value="Alteração Pagamento Serviço MDFe"/>
19+
<xs:enumeration value="Alteracao Pagamento Servico MDFe"/>
20+
</xs:restriction>
21+
</xs:simpleType>
22+
</xs:element>
23+
<xs:element name="nProt" type="TProt">
24+
<xs:annotation>
25+
<xs:documentation>Número do Protocolo de Status do MDF-e. </xs:documentation>
26+
</xs:annotation>
27+
</xs:element>
28+
<xs:element name="infPag" maxOccurs="unbounded">
29+
<xs:annotation>
30+
<xs:documentation>Informações do Pagamento do Frete</xs:documentation>
31+
</xs:annotation>
32+
<xs:complexType>
33+
<xs:sequence>
34+
<xs:element name="xNome" minOccurs="0">
35+
<xs:annotation>
36+
<xs:documentation>Razão social ou Nome do responsavel pelo pagamento</xs:documentation>
37+
</xs:annotation>
38+
<xs:simpleType>
39+
<xs:restriction base="TString">
40+
<xs:maxLength value="60"/>
41+
<xs:minLength value="2"/>
42+
</xs:restriction>
43+
</xs:simpleType>
44+
</xs:element>
45+
<xs:choice>
46+
<xs:element name="CPF" type="TCpf">
47+
<xs:annotation>
48+
<xs:documentation>Número do CPF do responsável pelo pgto</xs:documentation>
49+
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
50+
</xs:annotation>
51+
</xs:element>
52+
<xs:element name="CNPJ" type="TCnpjOpc">
53+
<xs:annotation>
54+
<xs:documentation>Número do CNPJ do responsável pelo pgto</xs:documentation>
55+
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
56+
</xs:annotation>
57+
</xs:element>
58+
<xs:element name="idEstrangeiro">
59+
<xs:annotation>
60+
<xs:documentation>Identificador do responsável pelo pgto em caso de ser estrangeiro</xs:documentation>
61+
</xs:annotation>
62+
<xs:simpleType>
63+
<xs:restriction base="xs:string">
64+
<xs:whiteSpace value="preserve"/>
65+
<xs:minLength value="2"/>
66+
<xs:maxLength value="20"/>
67+
<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
68+
</xs:restriction>
69+
</xs:simpleType>
70+
</xs:element>
71+
</xs:choice>
72+
<xs:element name="Comp" maxOccurs="unbounded">
73+
<xs:annotation>
74+
<xs:documentation>Componentes do Pagamentoi do Frete</xs:documentation>
75+
</xs:annotation>
76+
<xs:complexType>
77+
<xs:sequence>
78+
<xs:element name="tpComp">
79+
<xs:annotation>
80+
<xs:documentation>Tipo do Componente</xs:documentation>
81+
<xs:documentation>
82+
01 - Vale Pedágio;
83+
02 - Impostos, taxas e contribuições;
84+
03 - Despesas (bancárias, meios de pagamento, outras)
85+
04 - Frete
86+
99 - Outros</xs:documentation>
87+
</xs:annotation>
88+
<xs:simpleType>
89+
<xs:restriction base="xs:string">
90+
<xs:whiteSpace value="preserve"/>
91+
<xs:enumeration value="01"/>
92+
<xs:enumeration value="02"/>
93+
<xs:enumeration value="03"/>
94+
<xs:enumeration value="04"/>
95+
<xs:enumeration value="99"/>
96+
</xs:restriction>
97+
</xs:simpleType>
98+
</xs:element>
99+
<xs:element name="vComp" type="TDec_1302">
100+
<xs:annotation>
101+
<xs:documentation>Valor do componente</xs:documentation>
102+
</xs:annotation>
103+
</xs:element>
104+
<xs:element name="xComp" minOccurs="0">
105+
<xs:annotation>
106+
<xs:documentation>Descrição do componente do tipo Outros</xs:documentation>
107+
</xs:annotation>
108+
<xs:simpleType>
109+
<xs:restriction base="TString">
110+
<xs:maxLength value="60"/>
111+
<xs:minLength value="2"/>
112+
</xs:restriction>
113+
</xs:simpleType>
114+
</xs:element>
115+
</xs:sequence>
116+
</xs:complexType>
117+
</xs:element>
118+
<xs:element name="vContrato" type="TDec_1302">
119+
<xs:annotation>
120+
<xs:documentation>Valor Total do Contrato</xs:documentation>
121+
</xs:annotation>
122+
</xs:element>
123+
<xs:element name="indPag">
124+
<xs:annotation>
125+
<xs:documentation>Indicador da Forma de Pagamento:0-Pagamento à Vista;1-Pagamento à Prazo;</xs:documentation>
126+
</xs:annotation>
127+
<xs:simpleType>
128+
<xs:restriction base="xs:string">
129+
<xs:whiteSpace value="preserve"/>
130+
<xs:enumeration value="0"/>
131+
<xs:enumeration value="1"/>
132+
</xs:restriction>
133+
</xs:simpleType>
134+
</xs:element>
135+
<xs:element name="vAdiant" type="TDec_1302" minOccurs="0">
136+
<xs:annotation>
137+
<xs:documentation>Valor do Adiantamento (usar apenas em pagamento à Prazo</xs:documentation>
138+
</xs:annotation>
139+
</xs:element>
140+
<xs:element name="indAntecipaAdiant" minOccurs="0">
141+
<xs:annotation>
142+
<xs:documentation>Indicador para declarar concordância em antecipar o adiantamento</xs:documentation>
143+
<xs:documentation>Operação de transporte com utilização de veículos de frotas dedicadas ou fidelizadas.
144+
Preencher com “1” para indicar operação de transporte de alto desempenho, demais casos não informar a tag
145+
</xs:documentation>
146+
</xs:annotation>
147+
<xs:simpleType>
148+
<xs:restriction base="xs:string">
149+
<xs:enumeration value="1"/>
150+
</xs:restriction>
151+
</xs:simpleType>
152+
</xs:element>
153+
<xs:element name="infPrazo" minOccurs="0" maxOccurs="unbounded">
154+
<xs:annotation>
155+
<xs:documentation>Informações do pagamento a prazo. </xs:documentation>
156+
<xs:documentation>Informar somente se indPag for à Prazo</xs:documentation>
157+
</xs:annotation>
158+
<xs:complexType>
159+
<xs:sequence>
160+
<xs:element name="nParcela">
161+
<xs:annotation>
162+
<xs:documentation>Número da Parcela</xs:documentation>
163+
</xs:annotation>
164+
<xs:simpleType>
165+
<xs:restriction base="xs:string">
166+
<xs:whiteSpace value="preserve"/>
167+
<xs:pattern value="[0-9]{3}"/>
168+
</xs:restriction>
169+
</xs:simpleType>
170+
</xs:element>
171+
<xs:element name="dVenc" type="TData">
172+
<xs:annotation>
173+
<xs:documentation>Data de vencimento da Parcela (AAAA-MM-DD)</xs:documentation>
174+
</xs:annotation>
175+
</xs:element>
176+
<xs:element name="vParcela" type="TDec_1302Opc">
177+
<xs:annotation>
178+
<xs:documentation>Valor da Parcela</xs:documentation>
179+
</xs:annotation>
180+
</xs:element>
181+
</xs:sequence>
182+
</xs:complexType>
183+
</xs:element>
184+
<xs:element name="tpAntecip" minOccurs="0">
185+
<xs:annotation>
186+
<xs:documentation>Tipo de Permissão em relação a antecipação das parcelas</xs:documentation>
187+
<xs:documentation>0 - Não permite antecipar
188+
1 - Permite antecipar as parcelas
189+
2 - Permite antecipar as parcelas mediante confirmação</xs:documentation>
190+
</xs:annotation>
191+
<xs:simpleType>
192+
<xs:restriction base="xs:string">
193+
<xs:enumeration value="0"/>
194+
<xs:enumeration value="1"/>
195+
<xs:enumeration value="2"/>
196+
</xs:restriction>
197+
</xs:simpleType>
198+
</xs:element>
199+
<xs:element name="infBanc">
200+
<xs:annotation>
201+
<xs:documentation>Informações bancárias</xs:documentation>
202+
</xs:annotation>
203+
<xs:complexType>
204+
<xs:choice>
205+
<xs:sequence>
206+
<xs:element name="codBanco">
207+
<xs:annotation>
208+
<xs:documentation>Número do banco</xs:documentation>
209+
</xs:annotation>
210+
<xs:simpleType>
211+
<xs:restriction base="TString">
212+
<xs:minLength value="3"/>
213+
<xs:maxLength value="5"/>
214+
</xs:restriction>
215+
</xs:simpleType>
216+
</xs:element>
217+
<xs:element name="codAgencia">
218+
<xs:annotation>
219+
<xs:documentation>Número da agência bancária </xs:documentation>
220+
</xs:annotation>
221+
<xs:simpleType>
222+
<xs:restriction base="TString">
223+
<xs:minLength value="1"/>
224+
<xs:maxLength value="10"/>
225+
</xs:restriction>
226+
</xs:simpleType>
227+
</xs:element>
228+
</xs:sequence>
229+
<xs:element name="CNPJIPEF" type="TCnpjOpc">
230+
<xs:annotation>
231+
<xs:documentation>Número do CNPJ da Instituição de Pagamento Eletrônico do Frete</xs:documentation>
232+
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
233+
</xs:annotation>
234+
</xs:element>
235+
<xs:element name="PIX">
236+
<xs:annotation>
237+
<xs:documentation>Chave PIX </xs:documentation>
238+
<xs:documentation>Informar a chave PIX para recebimento do frete.
239+
Pode ser email, CPF/ CNPJ (somente numeros), Telefone com a seguinte formatação (+5599999999999) ou a chave aleatória gerada pela instituição.</xs:documentation>
240+
</xs:annotation>
241+
<xs:simpleType>
242+
<xs:restriction base="TString">
243+
<xs:maxLength value="60"/>
244+
<xs:minLength value="2"/>
245+
</xs:restriction>
246+
</xs:simpleType>
247+
</xs:element>
248+
</xs:choice>
249+
</xs:complexType>
250+
</xs:element>
251+
</xs:sequence>
252+
</xs:complexType>
253+
</xs:element>
254+
</xs:sequence>
255+
</xs:complexType>
256+
</xs:element>
257+
</xs:schema>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/mdfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://www.portalfiscal.inf.br/mdfe" targetNamespace="http://www.portalfiscal.inf.br/mdfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="eventoMDFeTiposBasico_v3.00.xsd"/>
5+
<xs:element name="evConfirmaServMDFe">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de confirmação do serviço de transporte 110117</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do Evento - “Confirmação Serviço Transporte”</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:whiteSpace value="preserve"/>
18+
<xs:enumeration value="Confirmação Serviço Transporte"/>
19+
<xs:enumeration value="Confirmacao Servico Transporte"/>
20+
</xs:restriction>
21+
</xs:simpleType>
22+
</xs:element>
23+
<xs:element name="nProt" type="TProt">
24+
<xs:annotation>
25+
<xs:documentation>Número do Protocolo de Status do MDF-e.
26+
1 posição tipo de autorizador (9 - SEFAZ Nacional );
27+
2 posições ano;
28+
10 seqüencial no ano.</xs:documentation>
29+
</xs:annotation>
30+
</xs:element>
31+
</xs:sequence>
32+
</xs:complexType>
33+
</xs:element>
34+
</xs:schema>

MDFe.AppTeste/Schemas/evEncMDFe_v3.00.xsd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@
4242
<xs:documentation>Código do Município de Encerramento do manifesto</xs:documentation>
4343
</xs:annotation>
4444
</xs:element>
45+
<xs:element name="indEncPorTerceiro" minOccurs="0">
46+
<xs:annotation>
47+
<xs:documentation>Indicador que deve ser informado quando o encerramento for registrado pelo transportador terceiro</xs:documentation>
48+
<xs:documentation>Informar valor 1 quando o MDFe for encerrado pelo transportador terceiro, este sendo diferente do emitente do MDFe</xs:documentation>
49+
</xs:annotation>
50+
<xs:simpleType>
51+
<xs:restriction base="xs:string">
52+
<xs:enumeration value="1"/>
53+
</xs:restriction>
54+
</xs:simpleType>
55+
</xs:element>
4556
</xs:sequence>
4657
</xs:complexType>
4758
</xs:element>

0 commit comments

Comments
 (0)