nfewizard-io 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +5 -4
  2. package/dist/cjs/adapters/NFeWizard.d.ts +7 -1
  3. package/dist/cjs/adapters/XmlBuilder.d.ts +1 -1
  4. package/dist/cjs/core/interfaces/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
  5. package/dist/cjs/core/interfaces/GerarConsultaImpl.d.ts +1 -1
  6. package/dist/cjs/core/interfaces/NFeWizardImpl.d.ts +4 -1
  7. package/dist/cjs/core/interfaces/NFeWizardServiceImpl.d.ts +4 -1
  8. package/dist/cjs/core/interfaces/index.d.ts +1 -0
  9. package/dist/cjs/core/types/CTEDistribuicaoDFe.d.ts +47 -0
  10. package/dist/cjs/core/types/NFEDanfeGenerator.d.ts +4 -0
  11. package/dist/cjs/core/types/index.d.ts +1 -0
  12. package/dist/cjs/core/utils/Utility.d.ts +2 -2
  13. package/dist/cjs/index.cjs +3 -3
  14. package/dist/cjs/index.cjs.map +1 -1
  15. package/dist/cjs/modules/dfe/base/GerarConsulta.d.ts +3 -3
  16. package/dist/cjs/modules/dfe/cte/exemplo-uso.d.ts +23 -0
  17. package/dist/cjs/modules/dfe/cte/index.d.ts +7 -0
  18. package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
  19. package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
  20. package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
  21. package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
  22. package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
  23. package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +20 -0
  24. package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +22 -0
  25. package/dist/cjs/modules/dfe/nfe/services/NFeWizard/NFeWizardService.d.ts +7 -1
  26. package/dist/esm/adapters/NFeWizard.d.ts +7 -1
  27. package/dist/esm/adapters/XmlBuilder.d.ts +1 -1
  28. package/dist/esm/core/interfaces/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
  29. package/dist/esm/core/interfaces/GerarConsultaImpl.d.ts +1 -1
  30. package/dist/esm/core/interfaces/NFeWizardImpl.d.ts +4 -1
  31. package/dist/esm/core/interfaces/NFeWizardServiceImpl.d.ts +4 -1
  32. package/dist/esm/core/interfaces/index.d.ts +1 -0
  33. package/dist/esm/core/types/CTEDistribuicaoDFe.d.ts +47 -0
  34. package/dist/esm/core/types/NFEDanfeGenerator.d.ts +4 -0
  35. package/dist/esm/core/types/index.d.ts +1 -0
  36. package/dist/esm/core/utils/Utility.d.ts +2 -2
  37. package/dist/esm/index.js +3 -3
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/modules/dfe/base/GerarConsulta.d.ts +3 -3
  40. package/dist/esm/modules/dfe/cte/exemplo-uso.d.ts +23 -0
  41. package/dist/esm/modules/dfe/cte/index.d.ts +7 -0
  42. package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
  43. package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
  44. package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
  45. package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
  46. package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
  47. package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +20 -0
  48. package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +22 -0
  49. package/dist/esm/modules/dfe/nfe/services/NFeWizard/NFeWizardService.d.ts +7 -1
  50. package/dist/resources/certs/AC_JUS_v6.crt +37 -0
  51. package/dist/resources/certs/AC_Safeweb_v12.crt +36 -0
  52. package/dist/resources/certs/AC_VALID_V12.crt +36 -0
  53. package/dist/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
  54. package/dist/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
  55. package/dist/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
  56. package/dist/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
  57. package/dist/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
  58. package/package.json +1 -1
@@ -7,12 +7,12 @@ declare class GerarConsulta implements GerarConsultaImpl {
7
7
  environment: Environment;
8
8
  xmlBuilder: XmlBuilder;
9
9
  constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder);
10
- createSoapEnvelop(xmlConsulta: string, metodo: string, method: string, rootTag?: boolean, tag?: string): string;
11
- gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string): Promise<{
10
+ createSoapEnvelop(xmlConsulta: string, metodo: string, method: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): string;
11
+ gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): Promise<{
12
12
  xmlFormated: string;
13
13
  agent: import("https").Agent;
14
14
  webServiceUrl: string;
15
- action: string;
15
+ action: any;
16
16
  }>;
17
17
  }
18
18
  export default GerarConsulta;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Exemplo 1: Consulta por último NSU
3
+ *
4
+ * Este método consulta todos os documentos disponíveis a partir do último NSU conhecido.
5
+ * É útil para sincronização incremental de documentos.
6
+ */
7
+ declare function exemploPorUltNSU(): Promise<void>;
8
+ /**
9
+ * Códigos de retorno comuns
10
+ *
11
+ * 137 - Nenhum documento localizado
12
+ * 138 - Documento localizado
13
+ * 656 - Consulta a ser processada
14
+ */
15
+ export { exemploPorUltNSU, exemploPorNSU };
16
+ /**
17
+ * Códigos de retorno comuns
18
+ *
19
+ * 137 - Nenhum documento localizado
20
+ * 138 - Documento localizado
21
+ * 656 - Consulta a ser processada
22
+ */
23
+ export { exemploPorUltNSU, exemploPorChave, exemploPorNSU };
@@ -0,0 +1,7 @@
1
+ export { default as CTEDistribuicaoDFeService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
2
+ export { default as CTEDistribuicaoDFePorNSUService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js';
3
+ export { default as CTEDistribuicaoDFePorUltNSUService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js';
4
+ export { default as CTEDistribuicaoDFe } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js';
5
+ export { default as CTEDistribuicaoDFePorNSU } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js';
6
+ export { default as CTEDistribuicaoDFePorUltNSU } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js';
7
+ export { default as DistribuicaoHandler } from './services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js';
@@ -0,0 +1,7 @@
1
+ import { CTEDistribuicaoDFeServiceImpl } from '@Interfaces';
2
+ declare class CTEDistribuicaoDFe implements CTEDistribuicaoDFeServiceImpl {
3
+ cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl;
4
+ constructor(cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl);
5
+ Exec(data?: any): Promise<any>;
6
+ }
7
+ export default CTEDistribuicaoDFe;
@@ -0,0 +1,10 @@
1
+ import Environment from '@Modules/environment/Environment.js';
2
+ import Utility from '@Utils/Utility.js';
3
+ import XmlBuilder from '@Adapters/XmlBuilder.js';
4
+ import { AxiosInstance } from 'axios';
5
+ import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
6
+ import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
7
+ declare class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
8
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
9
+ }
10
+ export default CTEDistribuicaoDFePorNSU;
@@ -0,0 +1,10 @@
1
+ import Environment from '@Modules/environment/Environment.js';
2
+ import Utility from '@Utils/Utility.js';
3
+ import XmlBuilder from '@Adapters/XmlBuilder.js';
4
+ import { AxiosInstance } from 'axios';
5
+ import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
6
+ import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
7
+ declare class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
8
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
9
+ }
10
+ export default CTEDistribuicaoDFePorUltNSU;
@@ -0,0 +1,10 @@
1
+ import Environment from '@Modules/environment/Environment.js';
2
+ import Utility from '@Utils/Utility.js';
3
+ import XmlBuilder from '@Adapters/XmlBuilder.js';
4
+ import { AxiosInstance } from 'axios';
5
+ import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
6
+ import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
7
+ declare class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
8
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
9
+ }
10
+ export default CTEDistribuicaoDFePorNSUService;
@@ -0,0 +1,10 @@
1
+ import Environment from '@Modules/environment/Environment.js';
2
+ import Utility from '@Utils/Utility.js';
3
+ import XmlBuilder from '@Adapters/XmlBuilder.js';
4
+ import { AxiosInstance } from 'axios';
5
+ import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
6
+ import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
7
+ declare class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
8
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
9
+ }
10
+ export default CTEDistribuicaoDFePorUltNSUService;
@@ -0,0 +1,20 @@
1
+ import { AxiosInstance, AxiosResponse } from 'axios';
2
+ import Environment from '@Modules/environment/Environment.js';
3
+ import Utility from '@Utils/Utility.js';
4
+ import XmlBuilder from '@Adapters/XmlBuilder.js';
5
+ import { ConsultaNFe, GenericObject } from '@Types';
6
+ import BaseNFE from '@Modules/dfe/base/BaseNFe.js';
7
+ import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
8
+ import { Agent } from 'http';
9
+ declare class CTEDistribuicaoDFeService extends BaseNFE {
10
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
11
+ protected gerarXml(data: ConsultaNFe): string;
12
+ gerarXmlCTeDistribuicaoDFe(data: ConsultaNFe): string;
13
+ protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
14
+ Exec(data: ConsultaNFe): Promise<{
15
+ data: GenericObject;
16
+ xMotivo: any;
17
+ filesList: string[];
18
+ }>;
19
+ }
20
+ export default CTEDistribuicaoDFeService;
@@ -0,0 +1,22 @@
1
+ import Utility from '@Utils/Utility.js';
2
+ import { GenericObject } from '@Types';
3
+ import Environment from '@Modules/environment/Environment.js';
4
+ import { AxiosResponse } from 'axios';
5
+ declare class DistribuicaoHandler {
6
+ environment: Environment;
7
+ utility: Utility;
8
+ metodo: string;
9
+ constructor(environment: Environment, utility: Utility, metodo: string);
10
+ /**
11
+ * Métodos para tratativas do DistribuicaoDFe do CTe
12
+ */
13
+ protected salvaArquivos(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
14
+ deCompressDFeXML(loteDistDFeInt: AxiosResponse<any, any>, metodo: string, xmlConsulta: string): string[];
15
+ decodeDocZip(docZip: any): string;
16
+ removeSignatureTag(xmlString: string): string;
17
+ parseXml(xmlString: string): undefined;
18
+ getChCTe(parsedResult: GenericObject): any;
19
+ getTipo(parsedResult: GenericObject): "res" | "event" | "proc";
20
+ handleResponse(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
21
+ }
22
+ export default DistribuicaoHandler;
@@ -1,5 +1,5 @@
1
1
  import { NFeWizardServiceImpl } from '@Interfaces';
2
- import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, InutilizacaoData, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada } from '@Types';
2
+ import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, ConsultaCTe, DFePorUltimoNSUCTe, DFePorNSUCTe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, InutilizacaoData, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada } from '@Types';
3
3
  declare class NFeWizardService implements NFeWizardServiceImpl {
4
4
  private config;
5
5
  private environment;
@@ -38,6 +38,12 @@ declare class NFeWizardService implements NFeWizardServiceImpl {
38
38
  NFE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSU): Promise<any>;
39
39
  NFE_DistribuicaoDFePorNSU(data: DFePorNSU): Promise<any>;
40
40
  NFE_DistribuicaoDFePorChave(data: DFePorChaveNFe): Promise<any>;
41
+ /**
42
+ * Distribuição DFe CTe
43
+ */
44
+ CTE_DistribuicaoDFe(data: ConsultaCTe): Promise<any>;
45
+ CTE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<import("@Types").GenericObject>;
46
+ CTE_DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<import("@Types").GenericObject>;
41
47
  /**
42
48
  * Autorização
43
49
  */
@@ -0,0 +1,37 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIGYjCCBEqgAwIBAgIJAL6mXEGikzt7MA0GCSqGSIb3DQEBDQUAMIGYMQswCQYD
3
+ VQQGEwJCUjETMBEGA1UECgwKSUNQLUJyYXNpbDE9MDsGA1UECww0SW5zdGl0dXRv
4
+ IE5hY2lvbmFsIGRlIFRlY25vbG9naWEgZGEgSW5mb3JtYWNhbyAtIElUSTE1MDMG
5
+ A1UEAwwsQXV0b3JpZGFkZSBDZXJ0aWZpY2Fkb3JhIFJhaXogQnJhc2lsZWlyYSB2
6
+ MTIwHhcNMjUwNTI3MTg0NjM4WhcNMzcxMDIyMTIwMDI0WjCBijELMAkGA1UEBhMC
7
+ QlIxEzARBgNVBAoMCklDUC1CcmFzaWwxNTAzBgNVBAsMLEF1dG9yaWRhZGUgQ2Vy
8
+ dGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjEyMS8wLQYDVQQDDCZBdXRvcmlk
9
+ YWRlIENlcnRpZmljYWRvcmEgZGEgSnVzdGljYSB2NjCCAiIwDQYJKoZIhvcNAQEB
10
+ BQADggIPADCCAgoCggIBANaJIeQ27bxoBXwjhaWnVhYYHX+45bSZcBiP9cX4hJqm
11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K3tJPsMpRmAY
31
+ QqszKbrAKbkTidOIijlBO8n9pu0f9GBj39ItVQGL
32
+ -----END CERTIFICATE-----
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="tiposDistDFe_v1.00.xsd"/>
4
+ <xs:element name="distDFeInt">
5
+ <xs:annotation>
6
+ <xs:documentation>Schema de pedido de distribuição de DF-e de interesse</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:complexType>
9
+ <xs:sequence>
10
+ <xs:element name="tpAmb" type="TAmb">
11
+ <xs:annotation>
12
+ <xs:documentation>
13
+ Identificação do Ambiente:
14
+ 1 - Produção
15
+ 2 - Homologação
16
+ </xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:element name="cUFAutor" type="TCodUfIBGE">
20
+ <xs:annotation>
21
+ <xs:documentation>Código da UF do Autor</xs:documentation>
22
+ </xs:annotation>
23
+ </xs:element>
24
+ <xs:choice>
25
+ <xs:element name="CNPJ" type="TCnpj">
26
+ <xs:annotation>
27
+ <xs:documentation>CNPJ do interessado no DF-e</xs:documentation>
28
+ </xs:annotation>
29
+ </xs:element>
30
+ <xs:element name="CPF" type="TCpf">
31
+ <xs:annotation>
32
+ <xs:documentation>CPF do interessado no DF-e</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:element>
35
+ </xs:choice>
36
+ <xs:choice>
37
+ <xs:element name="distNSU">
38
+ <xs:annotation>
39
+ <xs:documentation>Grupo para distribuir DF-e de interesse</xs:documentation>
40
+ </xs:annotation>
41
+ <xs:complexType>
42
+ <xs:sequence>
43
+ <xs:element name="ultNSU" type="TNSU">
44
+ <xs:annotation>
45
+ <xs:documentation>Último NSU recebido pelo ator. Caso seja informado com zero, ou com um NSU muito antigo, a consulta retornará unicamente as informações resumidas e documentos fiscais eletrônicos que tenham sido recepcionados pelo Ambiente Nacional nos últimos 3 meses.</xs:documentation>
46
+ </xs:annotation>
47
+ </xs:element>
48
+ </xs:sequence>
49
+ </xs:complexType>
50
+ </xs:element>
51
+ <xs:element name="consNSU">
52
+ <xs:annotation>
53
+ <xs:documentation>Grupo para consultar um DF-e a partir de um NSU específico</xs:documentation>
54
+ </xs:annotation>
55
+ <xs:complexType>
56
+ <xs:sequence>
57
+ <xs:element name="NSU" type="TNSU">
58
+ <xs:annotation>
59
+ <xs:documentation>Número Sequencial Único. Geralmente esta consulta será utilizada quando identificado pelo interessado um NSU faltante. O Web Service retornará o documento ou informará que o NSU não existe no Ambiente Nacional. Assim, esta consulta fechará a lacuna do NSU identificado como faltante.</xs:documentation>
60
+ </xs:annotation>
61
+ </xs:element>
62
+ </xs:sequence>
63
+ </xs:complexType>
64
+ </xs:element>
65
+ </xs:choice>
66
+ </xs:sequence>
67
+ <xs:attribute name="versao" type="TVerDistDFe" use="required"/>
68
+ </xs:complexType>
69
+ </xs:element>
70
+ </xs:schema>
71
+
@@ -0,0 +1,89 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="tiposDistDFe_v1.00.xsd"/>
4
+ <xs:element name="retDistDFeInt">
5
+ <xs:annotation>
6
+ <xs:documentation>Schema do resultado do pedido de distribuição de DF-e de interesse</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:complexType>
9
+ <xs:sequence>
10
+ <xs:element name="tpAmb" type="TAmb">
11
+ <xs:annotation>
12
+ <xs:documentation>
13
+ Identificação do Ambiente:
14
+ 1 - Produção
15
+ 2 - Homologação
16
+ </xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:element name="verAplic" type="TVerAplic">
20
+ <xs:annotation>
21
+ <xs:documentation>Versão do Web Service CTeDistribuicaoDFe</xs:documentation>
22
+ </xs:annotation>
23
+ </xs:element>
24
+ <xs:element name="cStat" type="TStat">
25
+ <xs:annotation>
26
+ <xs:documentation>Código do status de processamento da requisição</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="xMotivo" type="TMotivo">
30
+ <xs:annotation>
31
+ <xs:documentation>Descrição literal do status do processamento da requisição</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ <xs:element name="dhResp">
35
+ <xs:annotation>
36
+ <xs:documentation>Data e Hora de processamento da requisição no formato AAAA-MM-DDTHH:MM:SS</xs:documentation>
37
+ </xs:annotation>
38
+ <xs:simpleType>
39
+ <xs:restriction base="xs:string">
40
+ <xs:whiteSpace value="preserve"/>
41
+ <xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d"/>
42
+ </xs:restriction>
43
+ </xs:simpleType>
44
+ </xs:element>
45
+ <xs:element name="ultNSU" type="TNSU">
46
+ <xs:annotation>
47
+ <xs:documentation>Último NSU pesquisado no Ambiente Nacional. Se for o caso, o solicitante pode continuar a consulta a partir deste NSU para obter novos resultados.</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:element>
50
+ <xs:element name="maxNSU" type="TNSU">
51
+ <xs:annotation>
52
+ <xs:documentation>Maior NSU existente no Ambiente Nacional para o CNPJ/CPF informado</xs:documentation>
53
+ </xs:annotation>
54
+ </xs:element>
55
+ <xs:element name="loteDistDFeInt" minOccurs="0">
56
+ <xs:annotation>
57
+ <xs:documentation>Conjunto de informações resumidas e documentos fiscais eletrônicos de interesse da pessoa ou empresa. </xs:documentation>
58
+ </xs:annotation>
59
+ <xs:complexType>
60
+ <xs:sequence maxOccurs="50">
61
+ <xs:element name="docZip">
62
+ <xs:annotation>
63
+ <xs:documentation>Informação resumida ou documento fiscal eletrônico de interesse da pessoa ou empresa. O conteúdo desta tag estará compactado no padrão gZip. O tipo do campo é base64Binary.</xs:documentation>
64
+ </xs:annotation>
65
+ <xs:complexType>
66
+ <xs:simpleContent>
67
+ <xs:extension base="xs:base64Binary">
68
+ <xs:attribute name="NSU" type="TNSU" use="required">
69
+ <xs:annotation>
70
+ <xs:documentation>NSU do documento fiscal</xs:documentation>
71
+ </xs:annotation>
72
+ </xs:attribute>
73
+ <xs:attribute name="schema" type="xs:string" use="required">
74
+ <xs:annotation>
75
+ <xs:documentation>Identificação do Schema XML que será utilizado para validar o XML existente no conteúdo da tag docZip. Vai identificar o tipo do documento e sua versão. Exemplos: procCTe_v2.00.xsd, procEventoCTe_v2.00.xsd</xs:documentation>
76
+ </xs:annotation>
77
+ </xs:attribute>
78
+ </xs:extension>
79
+ </xs:simpleContent>
80
+ </xs:complexType>
81
+ </xs:element>
82
+ </xs:sequence>
83
+ </xs:complexType>
84
+ </xs:element>
85
+ </xs:sequence>
86
+ <xs:attribute name="versao" type="TVerDistDFe" use="required"/>
87
+ </xs:complexType>
88
+ </xs:element>
89
+ </xs:schema>