Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion MDFe.AppTeste/MDFe.AppTeste.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@
<Name>MDFe.Wsdl</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="Schemas\evAlteracaoPagtoServMDFe_v3.00.xsd" />
<Content Include="Schemas\evConfirmaServMDFe_v3.00.xsd" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
19 changes: 17 additions & 2 deletions MDFe.AppTeste/MDFeTesteModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,20 @@ public void CriarEnviar()
InfANTT = new MDFeInfANTT
{
RNTRC = config.Empresa.RNTRC,
InfPag = new List<MDFeInfPag>()
{
new MDFeInfPag
{
CNPJ = Cnpj,
XNome = "Teste",
Comp = new List<MDFeComp>()
{
new MDFeComp{TpComp = MDFeTpComp.Outros, VComp = 0m, XComp = "Teste"}
},
VContratoProxy = 0m,
InfBanc = new MDFeInfBanc{PIX = "79999999999"}
}
},

// não é obrigatorio
InfCIOT = new List<infCIOT>
Expand Down Expand Up @@ -716,7 +730,7 @@ public void CriarEnviar()
{
new MDFeInfCTe
{
ChCTe = "52161021351378000100577500000000191194518006"
ChCTe = "35251012345678000195570010000001231876543213"
}
}
}
Expand Down Expand Up @@ -783,7 +797,8 @@ public void CriarEnviar()
{
CEP = "75950000"
}
}
},
Ncm = "01069000"
};
}

Expand Down
20 changes: 20 additions & 0 deletions MDFe.AppTeste/Schemas/consSitMDFeTiposBasico_v3.00.xsd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2014 rel. 2 (http://www.altova.com) by private (private) -->
<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">
<xs:include schemaLocation="tiposGeralMDFe_v3.00.xsd"/>
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
Expand Down Expand Up @@ -103,6 +104,25 @@
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="procInfraSA" minOccurs="0">
<xs:annotation>
<xs:documentation>Grupo de informações do compartilhamento do MDFe com InfraSA para geração do DTe</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="nProtDTe" type="TProt">
<xs:annotation>
<xs:documentation>Número do Protocolo de geração do DTe</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dhProt" type="TDateTimeUTC">
<xs:annotation>
<xs:documentation>Data e hora de geração do protocolo, no formato AAAA-MM-DDTHH:MM:SS TZD.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsSitMDFe" use="required"/>
</xs:complexType>
Expand Down
257 changes: 257 additions & 0 deletions MDFe.AppTeste/Schemas/evAlteracaoPagtoServMDFe_v3.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
<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">
<xs:include schemaLocation="eventoMDFeTiposBasico_v3.00.xsd"/>
<xs:element name="evAlteracaoPagtoServMDFe">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de alteração do pagamento do serviçp de transporte 110118</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:annotation>
<xs:documentation>Descrição do Evento - “Alteração Pagamento Serviço MDFe”</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="Alteração Pagamento Serviço MDFe"/>
<xs:enumeration value="Alteracao Pagamento Servico MDFe"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nProt" type="TProt">
<xs:annotation>
<xs:documentation>Número do Protocolo de Status do MDF-e. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="infPag" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Informações do Pagamento do Frete</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="xNome" minOccurs="0">
<xs:annotation>
<xs:documentation>Razão social ou Nome do responsavel pelo pagamento</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="60"/>
<xs:minLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:choice>
<xs:element name="CPF" type="TCpf">
<xs:annotation>
<xs:documentation>Número do CPF do responsável pelo pgto</xs:documentation>
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CNPJ" type="TCnpjOpc">
<xs:annotation>
<xs:documentation>Número do CNPJ do responsável pelo pgto</xs:documentation>
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="idEstrangeiro">
<xs:annotation>
<xs:documentation>Identificador do responsável pelo pgto em caso de ser estrangeiro</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:minLength value="2"/>
<xs:maxLength value="20"/>
<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
<xs:element name="Comp" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Componentes do Pagamentoi do Frete</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="tpComp">
<xs:annotation>
<xs:documentation>Tipo do Componente</xs:documentation>
<xs:documentation>
01 - Vale Pedágio;
02 - Impostos, taxas e contribuições;
03 - Despesas (bancárias, meios de pagamento, outras)
04 - Frete
99 - Outros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="01"/>
<xs:enumeration value="02"/>
<xs:enumeration value="03"/>
<xs:enumeration value="04"/>
<xs:enumeration value="99"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="vComp" type="TDec_1302">
<xs:annotation>
<xs:documentation>Valor do componente</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xComp" minOccurs="0">
<xs:annotation>
<xs:documentation>Descrição do componente do tipo Outros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="60"/>
<xs:minLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="vContrato" type="TDec_1302">
<xs:annotation>
<xs:documentation>Valor Total do Contrato</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="indPag">
<xs:annotation>
<xs:documentation>Indicador da Forma de Pagamento:0-Pagamento à Vista;1-Pagamento à Prazo;</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="vAdiant" type="TDec_1302" minOccurs="0">
<xs:annotation>
<xs:documentation>Valor do Adiantamento (usar apenas em pagamento à Prazo</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="indAntecipaAdiant" minOccurs="0">
<xs:annotation>
<xs:documentation>Indicador para declarar concordância em antecipar o adiantamento</xs:documentation>
<xs:documentation>Operação de transporte com utilização de veículos de frotas dedicadas ou fidelizadas.
Preencher com “1” para indicar operação de transporte de alto desempenho, demais casos não informar a tag
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="infPrazo" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Informações do pagamento a prazo. </xs:documentation>
<xs:documentation>Informar somente se indPag for à Prazo</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="nParcela">
<xs:annotation>
<xs:documentation>Número da Parcela</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dVenc" type="TData">
<xs:annotation>
<xs:documentation>Data de vencimento da Parcela (AAAA-MM-DD)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="vParcela" type="TDec_1302Opc">
<xs:annotation>
<xs:documentation>Valor da Parcela</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tpAntecip" minOccurs="0">
<xs:annotation>
<xs:documentation>Tipo de Permissão em relação a antecipação das parcelas</xs:documentation>
<xs:documentation>0 - Não permite antecipar
1 - Permite antecipar as parcelas
2 - Permite antecipar as parcelas mediante confirmação</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="infBanc">
<xs:annotation>
<xs:documentation>Informações bancárias</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:sequence>
<xs:element name="codBanco">
<xs:annotation>
<xs:documentation>Número do banco</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="3"/>
<xs:maxLength value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="codAgencia">
<xs:annotation>
<xs:documentation>Número da agência bancária </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:element name="CNPJIPEF" type="TCnpjOpc">
<xs:annotation>
<xs:documentation>Número do CNPJ da Instituição de Pagamento Eletrônico do Frete</xs:documentation>
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PIX">
<xs:annotation>
<xs:documentation>Chave PIX </xs:documentation>
<xs:documentation>Informar a chave PIX para recebimento do frete.
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>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="60"/>
<xs:minLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
34 changes: 34 additions & 0 deletions MDFe.AppTeste/Schemas/evConfirmaServMDFe_v3.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
<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">
<xs:include schemaLocation="eventoMDFeTiposBasico_v3.00.xsd"/>
<xs:element name="evConfirmaServMDFe">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de confirmação do serviço de transporte 110117</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:annotation>
<xs:documentation>Descrição do Evento - “Confirmação Serviço Transporte”</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="Confirmação Serviço Transporte"/>
<xs:enumeration value="Confirmacao Servico Transporte"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nProt" type="TProt">
<xs:annotation>
<xs:documentation>Número do Protocolo de Status do MDF-e.
1 posição tipo de autorizador (9 - SEFAZ Nacional );
2 posições ano;
10 seqüencial no ano.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
11 changes: 11 additions & 0 deletions MDFe.AppTeste/Schemas/evEncMDFe_v3.00.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
<xs:documentation>Código do Município de Encerramento do manifesto</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="indEncPorTerceiro" minOccurs="0">
<xs:annotation>
<xs:documentation>Indicador que deve ser informado quando o encerramento for registrado pelo transportador terceiro</xs:documentation>
<xs:documentation>Informar valor 1 quando o MDFe for encerrado pelo transportador terceiro, este sendo diferente do emitente do MDFe</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Expand Down
Loading
Loading