@bitize/bitmde 0.17.0

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 (82) hide show
  1. package/CHANGELOG.md +431 -0
  2. package/LICENSE +22 -0
  3. package/README.md +398 -0
  4. package/dist/apis/distribuicaoDFe-api.d.ts +113 -0
  5. package/dist/apis/recepcaoEvento-api.d.ts +81 -0
  6. package/dist/controllers/distribuicaoDFe-controller.d.ts +30 -0
  7. package/dist/controllers/index.d.ts +58 -0
  8. package/dist/controllers/recepcaoEvento-controller.d.ts +37 -0
  9. package/dist/env/ca.d.ts +6 -0
  10. package/dist/env/distribuicao.d.ts +8 -0
  11. package/dist/env/evento.d.ts +18 -0
  12. package/dist/env/index.d.ts +8 -0
  13. package/dist/env/recepcao.d.ts +8 -0
  14. package/dist/env/uf.d.ts +1 -0
  15. package/dist/env/version.d.ts +1 -0
  16. package/dist/env/zone.d.ts +1 -0
  17. package/dist/helpers/distribuicaoDFe-helper.d.ts +41 -0
  18. package/dist/helpers/index.d.ts +74 -0
  19. package/dist/helpers/recepcaoEvento-helper.d.ts +48 -0
  20. package/dist/helpers/retorno-helper.d.ts +27 -0
  21. package/dist/index.d.ts +11 -0
  22. package/dist/schemas/distribuicaoDFe-schema.d.ts +15 -0
  23. package/dist/schemas/index.d.ts +37 -0
  24. package/dist/schemas/recepcaoEvento-schema.d.ts +21 -0
  25. package/dist/services/sefaz-service.d.ts +12 -0
  26. package/dist/util/assinatura.d.ts +12 -0
  27. package/dist/util/certificado.d.ts +14 -0
  28. package/dist/util/data.d.ts +11 -0
  29. package/dist/util/gzip.d.ts +10 -0
  30. package/dist/util/index.d.ts +32 -0
  31. package/dist/util/xml.d.ts +22 -0
  32. package/dist/util/zeroPad.d.ts +10 -0
  33. package/dist/validators/ambiente-validator.d.ts +19 -0
  34. package/dist/validators/certificado-validator.d.ts +29 -0
  35. package/dist/validators/chave-validator.d.ts +14 -0
  36. package/dist/validators/cnpjCpf-validator.d.ts +23 -0
  37. package/dist/validators/evento-validator.d.ts +30 -0
  38. package/dist/validators/index.d.ts +146 -0
  39. package/dist/validators/lote-validator.d.ts +35 -0
  40. package/dist/validators/nsu-validator.d.ts +14 -0
  41. package/dist/validators/uf-validator.d.ts +19 -0
  42. package/dist/validators/zone-validator.d.ts +19 -0
  43. package/lib/apis/distribuicaoDFe-api.js +64 -0
  44. package/lib/apis/recepcaoEvento-api.js +65 -0
  45. package/lib/controllers/distribuicaoDFe-controller.js +17 -0
  46. package/lib/controllers/index.js +6 -0
  47. package/lib/controllers/recepcaoEvento-controller.js +17 -0
  48. package/lib/env/ca.js +5 -0
  49. package/lib/env/distribuicao.js +8 -0
  50. package/lib/env/evento.js +22 -0
  51. package/lib/env/index.js +11 -0
  52. package/lib/env/recepcao.js +8 -0
  53. package/lib/env/uf.js +5 -0
  54. package/lib/env/version.js +3 -0
  55. package/lib/env/zone.js +5 -0
  56. package/lib/helpers/distribuicaoDFe-helper.js +58 -0
  57. package/lib/helpers/index.js +7 -0
  58. package/lib/helpers/recepcaoEvento-helper.js +64 -0
  59. package/lib/helpers/retorno-helper.js +18 -0
  60. package/lib/index.js +12 -0
  61. package/lib/schemas/distribuicaoDFe-schema.js +25 -0
  62. package/lib/schemas/index.js +6 -0
  63. package/lib/schemas/recepcaoEvento-schema.js +30 -0
  64. package/lib/services/sefaz-service.js +63 -0
  65. package/lib/util/assinatura.js +25 -0
  66. package/lib/util/certificado.js +21 -0
  67. package/lib/util/data.js +9 -0
  68. package/lib/util/gzip.js +16 -0
  69. package/lib/util/index.js +10 -0
  70. package/lib/util/xml.js +28 -0
  71. package/lib/util/zeroPad.js +7 -0
  72. package/lib/validators/ambiente-validator.js +19 -0
  73. package/lib/validators/certificado-validator.js +32 -0
  74. package/lib/validators/chave-validator.js +16 -0
  75. package/lib/validators/cnpjCpf-validator.js +23 -0
  76. package/lib/validators/evento-validator.js +39 -0
  77. package/lib/validators/index.js +13 -0
  78. package/lib/validators/lote-validator.js +26 -0
  79. package/lib/validators/nsu-validator.js +19 -0
  80. package/lib/validators/uf-validator.js +21 -0
  81. package/lib/validators/zone-validator.js +24 -0
  82. package/package.json +82 -0
@@ -0,0 +1,37 @@
1
+ declare const _exports: typeof RecepcaoController;
2
+ export = _exports;
3
+ declare class RecepcaoController {
4
+ /**
5
+ *
6
+ * @param {Object} opts
7
+ * @returns {Promise<{data:{idLote: string,tpAmb: string,verAplic: string,cOrgao: string,cStat: string,xMotivo: string, infEvento:[{tpAmb: string,verAplic: string,cOrgao: string,cStat: string,xMotivo: string,chNFe: string,tpEvento: string,xEvento: string,nSeqEvento: string,CNPJDest: string,dhRegEvento: string,nProt: string}]}, error: string, reqXml: string, resXml: string, status: number}>}
8
+ */
9
+ static enviar(opts: any): Promise<{
10
+ data: {
11
+ idLote: string;
12
+ tpAmb: string;
13
+ verAplic: string;
14
+ cOrgao: string;
15
+ cStat: string;
16
+ xMotivo: string;
17
+ infEvento: [{
18
+ tpAmb: string;
19
+ verAplic: string;
20
+ cOrgao: string;
21
+ cStat: string;
22
+ xMotivo: string;
23
+ chNFe: string;
24
+ tpEvento: string;
25
+ xEvento: string;
26
+ nSeqEvento: string;
27
+ CNPJDest: string;
28
+ dhRegEvento: string;
29
+ nProt: string;
30
+ }];
31
+ };
32
+ error: string;
33
+ reqXml: string;
34
+ resXml: string;
35
+ status: number;
36
+ }>;
37
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Cadeia de Certificados da NF-e (www1.nfe.fazenda.gov.br)
3
+ * Página Principal > Documentos > Diversos > Cadeia de Certificados do www1 (atualizada em 04/08/2021)
4
+ * https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=JuhROOiTOPA=
5
+ */
6
+ export const CA: string[];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * URL Serviço NFeDistribuicaoDFe
3
+ * Página Principal > Serviços > Relação de Serviços Web > Ambiente Nacional - (AN)
4
+ */
5
+ export const DISTRIBUICAO: {
6
+ 1: string;
7
+ 2: string;
8
+ };
@@ -0,0 +1,18 @@
1
+ export const EVENTOS: {
2
+ 210200: {
3
+ tpEvento: number;
4
+ descEvento: string;
5
+ };
6
+ 210210: {
7
+ tpEvento: number;
8
+ descEvento: string;
9
+ };
10
+ 210220: {
11
+ tpEvento: number;
12
+ descEvento: string;
13
+ };
14
+ 210240: {
15
+ tpEvento: number;
16
+ descEvento: string;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ import { CA } from "./ca";
2
+ import { CODIGOS_UF } from "./uf";
3
+ import { DISTRIBUICAO } from "./distribuicao";
4
+ import { EVENTOS } from "./evento";
5
+ import { RECEPCAO } from "./recepcao";
6
+ import { VERSION } from "./version";
7
+ import { ZONES } from "./zone";
8
+ export { CA, CODIGOS_UF, DISTRIBUICAO, EVENTOS, RECEPCAO, VERSION, ZONES };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * URL Serviço RecepcaoEvento
3
+ * Página Principal > Serviços > Relação de Serviços Web > Ambiente Nacional - (AN)
4
+ */
5
+ export const RECEPCAO: {
6
+ 1: string;
7
+ 2: string;
8
+ };
@@ -0,0 +1 @@
1
+ export const CODIGOS_UF: string[];
@@ -0,0 +1 @@
1
+ export let VERSION: string;
@@ -0,0 +1 @@
1
+ export const ZONES: string[];
@@ -0,0 +1,41 @@
1
+ declare const _exports: typeof DistribuicaoHelper;
2
+ export = _exports;
3
+ declare class DistribuicaoHelper {
4
+ /**
5
+ *
6
+ * @param {string} data
7
+ * @param {Object} opts
8
+ * @returns
9
+ */
10
+ static enviarConsulta(data: string, opts: any): Promise<{
11
+ status: number;
12
+ data: string;
13
+ }>;
14
+ /**
15
+ *
16
+ * @param {Object} opts
17
+ * @returns {string}
18
+ */
19
+ static montarRequest(opts: any): string;
20
+ /**
21
+ *
22
+ * @param {string} data
23
+ * @returns {Promise<{tpAmb: string,verAplic: string,cStat: string,xMotivo: string,dhResp: string,ultNSU: string,maxNSU: string, docZip:[{xml: string,json: Object,nsu: string,schema: string}], error: string}>}
24
+ */
25
+ static montarResponse(data: string): Promise<{
26
+ tpAmb: string;
27
+ verAplic: string;
28
+ cStat: string;
29
+ xMotivo: string;
30
+ dhResp: string;
31
+ ultNSU: string;
32
+ maxNSU: string;
33
+ docZip: [{
34
+ xml: string;
35
+ json: any;
36
+ nsu: string;
37
+ schema: string;
38
+ }];
39
+ error: string;
40
+ }>;
41
+ }
@@ -0,0 +1,74 @@
1
+ export = helper;
2
+ declare const helper: Readonly<{
3
+ DistribuicaoHelper: {
4
+ new (): {};
5
+ enviarConsulta(data: string, opts: any): Promise<{
6
+ status: number;
7
+ data: string;
8
+ }>;
9
+ montarRequest(opts: any): string;
10
+ montarResponse(data: string): Promise<{
11
+ tpAmb: string;
12
+ verAplic: string;
13
+ cStat: string;
14
+ xMotivo: string;
15
+ dhResp: string;
16
+ ultNSU: string;
17
+ maxNSU: string;
18
+ docZip: [{
19
+ xml: string;
20
+ json: any;
21
+ nsu: string;
22
+ schema: string;
23
+ }];
24
+ error: string;
25
+ }>;
26
+ };
27
+ RecepcaoHelper: {
28
+ new (): {};
29
+ enviarEvento(data: string, opts: any): Promise<{
30
+ status: number;
31
+ data: string;
32
+ }>;
33
+ montarRequest(opts: any): string;
34
+ montarResponse(data: string): {
35
+ idLote: string;
36
+ tpAmb: string;
37
+ verAplic: string;
38
+ cOrgao: string;
39
+ cStat: string;
40
+ xMotivo: string;
41
+ infEvento: [{
42
+ tpAmb: string;
43
+ verAplic: string;
44
+ cOrgao: string;
45
+ cStat: string;
46
+ xMotivo: string;
47
+ chNFe: string;
48
+ tpEvento: string;
49
+ xEvento: string;
50
+ nSeqEvento: string;
51
+ CNPJDest: string;
52
+ dhRegEvento: string;
53
+ nProt: string;
54
+ }];
55
+ error: string;
56
+ };
57
+ };
58
+ RetornoHelper: {
59
+ new (): {};
60
+ montarRetorno(options: {
61
+ json: any;
62
+ data: string;
63
+ retornoSefaz: {
64
+ data: string;
65
+ status: number;
66
+ };
67
+ }): {
68
+ data: any;
69
+ reqXml: string;
70
+ resXml: string;
71
+ status: number;
72
+ };
73
+ };
74
+ }>;
@@ -0,0 +1,48 @@
1
+ declare const _exports: typeof RecepcaoHelper;
2
+ export = _exports;
3
+ declare class RecepcaoHelper {
4
+ /**
5
+ *
6
+ * @param {string} data
7
+ * @param {Object} opts
8
+ * @returns
9
+ */
10
+ static enviarEvento(data: string, opts: any): Promise<{
11
+ status: number;
12
+ data: string;
13
+ }>;
14
+ /**
15
+ *
16
+ * @param {Object} opts
17
+ * @returns {string}
18
+ */
19
+ static montarRequest(opts: any): string;
20
+ /**
21
+ *
22
+ * @param {string} data
23
+ * @returns {{idLote: string,tpAmb: string,verAplic: string,cOrgao: string,cStat: string,xMotivo: string, infEvento:[{tpAmb: string,verAplic: string,cOrgao: string,cStat: string,xMotivo: string,chNFe: string,tpEvento: string,xEvento: string,nSeqEvento: string,CNPJDest: string,dhRegEvento: string,nProt: string}], error: string}}
24
+ */
25
+ static montarResponse(data: string): {
26
+ idLote: string;
27
+ tpAmb: string;
28
+ verAplic: string;
29
+ cOrgao: string;
30
+ cStat: string;
31
+ xMotivo: string;
32
+ infEvento: [{
33
+ tpAmb: string;
34
+ verAplic: string;
35
+ cOrgao: string;
36
+ cStat: string;
37
+ xMotivo: string;
38
+ chNFe: string;
39
+ tpEvento: string;
40
+ xEvento: string;
41
+ nSeqEvento: string;
42
+ CNPJDest: string;
43
+ dhRegEvento: string;
44
+ nProt: string;
45
+ }];
46
+ error: string;
47
+ };
48
+ }
@@ -0,0 +1,27 @@
1
+ declare const _exports: typeof RetornoHelper;
2
+ export = _exports;
3
+ declare class RetornoHelper {
4
+ /**
5
+ *
6
+ * @param {Object} options
7
+ * @param {Object} options.json
8
+ * @param {string} options.data
9
+ * @param {Object} options.retornoSefaz
10
+ * @param {string} options.retornoSefaz.data
11
+ * @param {number} options.retornoSefaz.status
12
+ * @returns
13
+ */
14
+ static montarRetorno(options: {
15
+ json: any;
16
+ data: string;
17
+ retornoSefaz: {
18
+ data: string;
19
+ status: number;
20
+ };
21
+ }): {
22
+ data: any;
23
+ reqXml: string;
24
+ resXml: string;
25
+ status: number;
26
+ };
27
+ }
@@ -0,0 +1,11 @@
1
+ import DistribuicaoDFe = require("./apis/distribuicaoDFe-api");
2
+ import RecepcaoEvento = require("./apis/recepcaoEvento-api");
3
+ declare namespace _default {
4
+ export { DistribuicaoDFe };
5
+ export { RecepcaoEvento };
6
+ }
7
+ export declare namespace mde {
8
+ export { DistribuicaoDFe };
9
+ export { RecepcaoEvento };
10
+ }
11
+ export { DistribuicaoDFe, RecepcaoEvento, _default as default };
@@ -0,0 +1,15 @@
1
+ declare const _exports: typeof DistribuicaoSchema;
2
+ export = _exports;
3
+ declare class DistribuicaoSchema {
4
+ static montarSchema(options: any): {
5
+ nfeDistDFeInteresse: {
6
+ nfeDadosMsg: {
7
+ distDFeInt: {
8
+ tpAmb: any;
9
+ cUFAutor: any;
10
+ };
11
+ };
12
+ '@_xmlns': string;
13
+ };
14
+ };
15
+ }
@@ -0,0 +1,37 @@
1
+ export = schema;
2
+ declare const schema: Readonly<{
3
+ DistribuicaoSchema: {
4
+ new (): {};
5
+ montarSchema(options: any): {
6
+ nfeDistDFeInteresse: {
7
+ nfeDadosMsg: {
8
+ distDFeInt: {
9
+ tpAmb: any;
10
+ cUFAutor: any;
11
+ };
12
+ };
13
+ '@_xmlns': string;
14
+ };
15
+ };
16
+ };
17
+ RecepcaoSchema: {
18
+ new (): {};
19
+ montarSchema(options: any): {
20
+ nfeDadosMsg: {
21
+ envEvento: {
22
+ idLote: any;
23
+ evento: {
24
+ infEvento: {
25
+ cOrgao: any;
26
+ tpAmb: any;
27
+ };
28
+ '@_versao': string;
29
+ };
30
+ '@_xmlns': string;
31
+ '@_versao': string;
32
+ };
33
+ '@_xmlns': string;
34
+ };
35
+ };
36
+ };
37
+ }>;
@@ -0,0 +1,21 @@
1
+ declare const _exports: typeof RecepcaoSchema;
2
+ export = _exports;
3
+ declare class RecepcaoSchema {
4
+ static montarSchema(options: any): {
5
+ nfeDadosMsg: {
6
+ envEvento: {
7
+ idLote: any;
8
+ evento: {
9
+ infEvento: {
10
+ cOrgao: any;
11
+ tpAmb: any;
12
+ };
13
+ '@_versao': string;
14
+ };
15
+ '@_xmlns': string;
16
+ '@_versao': string;
17
+ };
18
+ '@_xmlns': string;
19
+ };
20
+ };
21
+ }
@@ -0,0 +1,12 @@
1
+ export = Instance;
2
+ declare class Instance {
3
+ constructor(opts: any);
4
+ instance: import("axios").AxiosInstance;
5
+ /**
6
+ * @returns {Promise<{status: number, data: string}>}
7
+ */
8
+ request(config: any): Promise<{
9
+ status: number;
10
+ data: string;
11
+ }>;
12
+ }
@@ -0,0 +1,12 @@
1
+ declare const _exports: typeof Assinatura;
2
+ export = _exports;
3
+ declare class Assinatura {
4
+ /**
5
+ *
6
+ * @param {string} cert
7
+ * @param {string} key
8
+ * @param {string} xml
9
+ * @returns {string}
10
+ */
11
+ static assinarXml(cert: string, key: string, xml: string): string;
12
+ }
@@ -0,0 +1,14 @@
1
+ declare const _exports: typeof Certificado;
2
+ export = _exports;
3
+ declare class Certificado {
4
+ /**
5
+ *
6
+ * @param {Buffer} pfx
7
+ * @param {string} passphrase
8
+ * @returns {{cert: string, key: string}}
9
+ */
10
+ static p12ToPem(pfx: Buffer, passphrase: string): {
11
+ cert: string;
12
+ key: string;
13
+ };
14
+ }
@@ -0,0 +1,11 @@
1
+ declare const _exports: typeof Data;
2
+ export = _exports;
3
+ declare class Data {
4
+ /**
5
+ *
6
+ * @param {Date} date
7
+ * @param {string} zone
8
+ * @returns {string}
9
+ */
10
+ static toFormat(date: Date, zone: string): string;
11
+ }
@@ -0,0 +1,10 @@
1
+ declare const _exports: typeof Gzip;
2
+ export = _exports;
3
+ declare class Gzip {
4
+ /**
5
+ *
6
+ * @param {string} str
7
+ * @returns {Promise<string>}
8
+ */
9
+ static unzip(str: string): Promise<string>;
10
+ }
@@ -0,0 +1,32 @@
1
+ export = util;
2
+ declare const util: Readonly<{
3
+ Assinatura: {
4
+ new (): {};
5
+ assinarXml(cert: string, key: string, xml: string): string;
6
+ };
7
+ Certificado: {
8
+ new (): {};
9
+ p12ToPem(pfx: Buffer, passphrase: string): {
10
+ cert: string;
11
+ key: string;
12
+ };
13
+ };
14
+ Data: {
15
+ new (): {};
16
+ toFormat(date: Date, zone: string): string;
17
+ };
18
+ Gzip: {
19
+ new (): {};
20
+ unzip(str: string): Promise<string>;
21
+ };
22
+ Xml: {
23
+ new (): {};
24
+ envelopar(xml: string): string;
25
+ jsonToXml(json: any): string;
26
+ xmlToJson(xml: string): any;
27
+ };
28
+ ZeroPad: {
29
+ new (): {};
30
+ padNsu(str: string): string;
31
+ };
32
+ }>;
@@ -0,0 +1,22 @@
1
+ declare const _exports: typeof Xml;
2
+ export = _exports;
3
+ declare class Xml {
4
+ /**
5
+ *
6
+ * @param {string} xml
7
+ * @returns {string}
8
+ */
9
+ static envelopar(xml: string): string;
10
+ /**
11
+ *
12
+ * @param {Object} json
13
+ * @returns {string}
14
+ */
15
+ static jsonToXml(json: any): string;
16
+ /**
17
+ *
18
+ * @param {string} xml
19
+ * @returns {Object}
20
+ */
21
+ static xmlToJson(xml: string): any;
22
+ }
@@ -0,0 +1,10 @@
1
+ declare const _exports: typeof ZeroPad;
2
+ export = _exports;
3
+ declare class ZeroPad {
4
+ /**
5
+ *
6
+ * @param {string} str
7
+ * @returns {string}
8
+ */
9
+ static padNsu(str: string): string;
10
+ }
@@ -0,0 +1,19 @@
1
+ declare const _exports: typeof AmbienteValidator;
2
+ export = _exports;
3
+ declare class AmbienteValidator {
4
+ /**
5
+ *
6
+ * @param {Object} config
7
+ * @param {'1' | '2'} config.tpAmb
8
+ */
9
+ constructor(config: {
10
+ tpAmb: "1" | "2";
11
+ });
12
+ tpAmb: "1" | "2";
13
+ error: string;
14
+ isValid(): boolean;
15
+ getValues(): {
16
+ tpAmb: "1" | "2";
17
+ };
18
+ getError(): string;
19
+ }
@@ -0,0 +1,29 @@
1
+ declare const _exports: typeof CertificadoValidator;
2
+ export = _exports;
3
+ declare class CertificadoValidator {
4
+ /**
5
+ *
6
+ * @param {Object} config
7
+ * @param {Buffer} [config.pfx]
8
+ * @param {string} [config.passphrase]
9
+ * @param {Buffer | string} [config.cert]
10
+ * @param {Buffer | string} [config.key]
11
+ */
12
+ constructor(config: {
13
+ pfx?: Buffer;
14
+ passphrase?: string;
15
+ cert?: Buffer | string;
16
+ key?: Buffer | string;
17
+ });
18
+ pfx: Buffer<ArrayBufferLike>;
19
+ passphrase: string;
20
+ cert: string | Buffer<ArrayBufferLike>;
21
+ key: string | Buffer<ArrayBufferLike>;
22
+ error: string;
23
+ isValid(): boolean;
24
+ getValues(): {
25
+ cert: string;
26
+ key: string;
27
+ };
28
+ getError(): string;
29
+ }
@@ -0,0 +1,14 @@
1
+ declare const _exports: typeof ChaveValidator;
2
+ export = _exports;
3
+ declare class ChaveValidator {
4
+ /**
5
+ *
6
+ * @param {string} chave
7
+ */
8
+ constructor(chave: string);
9
+ chave: string;
10
+ error: string;
11
+ isValid(): boolean;
12
+ getValues(): string;
13
+ getError(): string;
14
+ }
@@ -0,0 +1,23 @@
1
+ declare const _exports: typeof CnpjCpfValidator;
2
+ export = _exports;
3
+ declare class CnpjCpfValidator {
4
+ /**
5
+ *
6
+ * @param {Object} config
7
+ * @param {string} [config.cnpj]
8
+ * @param {string} [config.cpf]
9
+ */
10
+ constructor(config: {
11
+ cnpj?: string;
12
+ cpf?: string;
13
+ });
14
+ cnpj: string;
15
+ cpf: string;
16
+ error: string;
17
+ isValid(): boolean;
18
+ getValues(): {
19
+ cnpj: string;
20
+ cpf: string;
21
+ };
22
+ getError(): string;
23
+ }
@@ -0,0 +1,30 @@
1
+ declare const _exports: typeof EventoValidator;
2
+ export = _exports;
3
+ declare class EventoValidator {
4
+ /**
5
+ *
6
+ * @param {Object} evento
7
+ * @param {string} evento.chNFe
8
+ * @param {210200 | 210210 | 210220 | 210240} evento.tipoEvento
9
+ * @param {string} [evento.justificativa]
10
+ */
11
+ constructor(evento: {
12
+ chNFe: string;
13
+ tipoEvento: 210200 | 210210 | 210220 | 210240;
14
+ justificativa?: string;
15
+ });
16
+ chNFe: string;
17
+ tipoEvento: 210200 | 210210 | 210220 | 210240;
18
+ justificativa: string;
19
+ error: string;
20
+ isValid(): boolean;
21
+ tpEvento: number;
22
+ descEvento: string;
23
+ getValues(): {
24
+ chNFe: string;
25
+ justificativa: string;
26
+ tpEvento: number;
27
+ descEvento: string;
28
+ };
29
+ getError(): string;
30
+ }