nfewizard-io 1.0.2 → 1.0.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.
- package/README.md +1 -1
- package/dist/index.cjs +76 -76
- package/dist/index.cjs.map +1 -1
- package/dist/src/MailAdapter.d.ts +10 -0
- package/dist/src/nfe/operations/NFEAutorizacao/NFEAutorizacao.d.ts +7 -0
- package/dist/src/nfe/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.d.ts +7 -0
- package/dist/src/nfe/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.d.ts +7 -0
- package/dist/src/nfe/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +7 -0
- package/dist/src/nfe/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +7 -0
- package/dist/src/nfe/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +7 -0
- package/dist/src/nfe/operations/NFEInutilizacao/NFEInutilizacao.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFECancelamento.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFECartaDeCorrecao.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFECienciaDaOperacao.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFEEpec.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.d.ts +7 -0
- package/dist/src/nfe/operations/NFERecepcaoEvento/NFERecepcaoEvento.d.ts +7 -0
- package/dist/src/nfe/operations/NFEStatusServico/NFEStatusServico.d.ts +7 -0
- package/dist/src/nfe/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.d.ts +11 -0
- package/dist/src/nfe/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +10 -0
- package/dist/src/nfe/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +10 -0
- package/dist/src/nfe/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFECancelamentoService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFEEpecService.d.ts +10 -0
- package/dist/src/nfe/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.d.ts +10 -0
- package/dist/src/nfe/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.d.ts +48 -0
- package/dist/src/nfe/services/NFEStatusServico/NFEStatusServicoService.d.ts +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Environment, Utility, XmlBuilder, BaseNFE } from '@nfewizard/shared';
|
|
2
|
+
import { ProtNFe } from '@nfewizard/types/nfe';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import { GerarConsultaImpl, NFERetornoAutorizacaoServiceImpl, SaveFilesImpl } from '@nfewizard/types/shared';
|
|
5
|
+
export declare class NFERetornoAutorizacaoService extends BaseNFE implements NFERetornoAutorizacaoServiceImpl {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
protected gerarXml(data: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Busca o retorno da Autorização pelo número do recibo (nRec)
|
|
10
|
+
*
|
|
11
|
+
* @param {string} nRec - Número do recibo retornado pela SEFAZ ao emitir uma NFe em modo assíncrono.
|
|
12
|
+
* @param {any} xmlNFe - Array contendo as NFe do lote enviado à SEFAZ.
|
|
13
|
+
* @returns {Promise<string>} XML completo da NFe (já com protocolo de autorização).
|
|
14
|
+
*/
|
|
15
|
+
getRetornoRecibo(nRec: string, xmlNFe: string[]): Promise<{
|
|
16
|
+
success: boolean;
|
|
17
|
+
message: any;
|
|
18
|
+
data: string[];
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Agrega o protNFe ao restante da NFe gerada na emissão.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} protNFe - Tag protNFe do XML em formato JSON.
|
|
24
|
+
* @param {any} xmlNFe - Array contendo as NFe do lote enviado à SEFAZ.
|
|
25
|
+
* @returns {} XML completo da NFe (já com protocolo de autorização).
|
|
26
|
+
*/
|
|
27
|
+
private getXmlRetornoAutorizacao;
|
|
28
|
+
/**
|
|
29
|
+
* Retorna o XML completo da Autorização (já com o protocolo de autorização)
|
|
30
|
+
*
|
|
31
|
+
* @param {number} tipoEmissao - Informa se o tipo emissão foi síncrona ou assíncrona (0- Não / 1 - Sim).
|
|
32
|
+
* @param {string | undefined} nRec - Número do recibo retornado pela SEFAZ ao emitir uma NFe em modo assíncrono.
|
|
33
|
+
* @param {ProtNFe | undefined} protNFe - Tag protNFe do XML em formato JSON.
|
|
34
|
+
* @param {string[]} xmlNFe - Array contendo as NFe do lote enviado à SEFAZ.
|
|
35
|
+
* @returns {Promise<string>} XML completo da NFe (já com protocolo de autorização).
|
|
36
|
+
*/
|
|
37
|
+
getXmlRetorno({ tipoEmissao, nRec, protNFe, xmlNFe }: {
|
|
38
|
+
tipoEmissao: number;
|
|
39
|
+
nRec?: string;
|
|
40
|
+
protNFe?: ProtNFe[];
|
|
41
|
+
xmlNFe: string[];
|
|
42
|
+
}): Promise<{
|
|
43
|
+
success: boolean;
|
|
44
|
+
message: any;
|
|
45
|
+
data: string[];
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
export default NFERetornoAutorizacaoService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Environment, XmlBuilder, Utility, BaseNFE } from '@nfewizard/shared';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { SaveFilesImpl, GerarConsultaImpl, NFEStatusServicoServiceImpl } from '@nfewizard/types/shared';
|
|
4
|
+
export declare class NFEStatusServicoService extends BaseNFE implements NFEStatusServicoServiceImpl {
|
|
5
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
6
|
+
protected gerarXml(): string;
|
|
7
|
+
}
|
|
8
|
+
export default NFEStatusServicoService;
|