nfets 0.0.113 → 0.0.114
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/dist/core/index.cjs +53 -53
- package/dist/core/index.d.cts +4 -1
- package/dist/core/index.d.ts +4 -1
- package/dist/core/index.mjs +42 -42
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/nfe/index.cjs +23 -23
- package/dist/nfe/index.d.cts +57 -5
- package/dist/nfe/index.d.ts +57 -5
- package/dist/nfe/index.mjs +14 -14
- package/package.json +1 -1
package/dist/nfe/index.d.cts
CHANGED
|
@@ -326,8 +326,8 @@ interface Comb {
|
|
|
326
326
|
CODIF?: string;
|
|
327
327
|
qTemp?: DecimalValue;
|
|
328
328
|
UFCons: string;
|
|
329
|
-
CIDE
|
|
330
|
-
encerrante
|
|
329
|
+
CIDE?: CIDE;
|
|
330
|
+
encerrante?: Encerrante;
|
|
331
331
|
pBio?: DecimalValue;
|
|
332
332
|
origComb?: OrigComb[];
|
|
333
333
|
}
|
|
@@ -379,16 +379,20 @@ interface IpiDevol {
|
|
|
379
379
|
vIPIDevol: string;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
type ICMSStandard = Pick<ICMS, 'ICMS00' | 'ICMS10' | 'ICMS20' | 'ICMS30' | 'ICMS40' | 'ICMS51' | 'ICMS60' | 'ICMS70' | 'ICMS90'>;
|
|
382
|
+
type ICMSStandard = Pick<ICMS, 'ICMS00' | 'ICMS02' | 'ICMS10' | 'ICMS15' | 'ICMS20' | 'ICMS30' | 'ICMS40' | 'ICMS51' | 'ICMS53' | 'ICMS60' | 'ICMS61' | 'ICMS70' | 'ICMS90'>;
|
|
383
383
|
type ICMSSN = Pick<ICMS, 'ICMSSN101' | 'ICMSSN102' | 'ICMSSN201' | 'ICMSSN202' | 'ICMSSN500' | 'ICMSSN900'>;
|
|
384
384
|
interface ICMS {
|
|
385
385
|
ICMS00?: ICMS00;
|
|
386
|
+
ICMS02?: ICMS02;
|
|
386
387
|
ICMS10?: ICMS10;
|
|
388
|
+
ICMS15?: ICMS15;
|
|
387
389
|
ICMS20?: ICMS20;
|
|
388
390
|
ICMS30?: ICMS30;
|
|
389
391
|
ICMS40?: ICMS40;
|
|
390
392
|
ICMS51?: ICMS51;
|
|
393
|
+
ICMS53?: ICMS53;
|
|
391
394
|
ICMS60?: ICMS60;
|
|
395
|
+
ICMS61?: ICMS61;
|
|
392
396
|
ICMS70?: ICMS70;
|
|
393
397
|
ICMS90?: ICMS90;
|
|
394
398
|
ICMSPart?: ICMSPart;
|
|
@@ -408,6 +412,13 @@ interface ICMS00 {
|
|
|
408
412
|
pICMS?: DecimalValue;
|
|
409
413
|
vICMS?: DecimalValue;
|
|
410
414
|
}
|
|
415
|
+
interface ICMS02 {
|
|
416
|
+
orig: string;
|
|
417
|
+
CST: string;
|
|
418
|
+
qBCMono?: DecimalValue;
|
|
419
|
+
adRemICMS: DecimalValue;
|
|
420
|
+
vICMSMono: DecimalValue;
|
|
421
|
+
}
|
|
411
422
|
interface ICMS10 {
|
|
412
423
|
orig: string;
|
|
413
424
|
CST: string;
|
|
@@ -420,6 +431,18 @@ interface ICMS10 {
|
|
|
420
431
|
pICMSST?: DecimalValue;
|
|
421
432
|
vICMSST?: DecimalValue;
|
|
422
433
|
}
|
|
434
|
+
interface ICMS15 {
|
|
435
|
+
orig: string;
|
|
436
|
+
CST: string;
|
|
437
|
+
qBCMono?: DecimalValue;
|
|
438
|
+
adRemICMS: DecimalValue;
|
|
439
|
+
vICMSMono: DecimalValue;
|
|
440
|
+
qBCMonoReten?: DecimalValue;
|
|
441
|
+
adRemICMSReten: DecimalValue;
|
|
442
|
+
vICMSMonoReten: DecimalValue;
|
|
443
|
+
pRedAdRem?: DecimalValue;
|
|
444
|
+
motRedAdRem?: string;
|
|
445
|
+
}
|
|
423
446
|
interface ICMS20 {
|
|
424
447
|
orig: string;
|
|
425
448
|
CST: string;
|
|
@@ -454,6 +477,18 @@ interface ICMS51 {
|
|
|
454
477
|
pDif?: DecimalValue;
|
|
455
478
|
vICMSDif?: DecimalValue;
|
|
456
479
|
}
|
|
480
|
+
interface ICMS53 {
|
|
481
|
+
orig: string;
|
|
482
|
+
CST: string;
|
|
483
|
+
qBCMono?: DecimalValue;
|
|
484
|
+
adRemICMS?: DecimalValue;
|
|
485
|
+
vICMSMonoOp?: DecimalValue;
|
|
486
|
+
pDif?: DecimalValue;
|
|
487
|
+
vICMSMonoDif?: DecimalValue;
|
|
488
|
+
vICMSMono?: DecimalValue;
|
|
489
|
+
qBCMonoDif?: DecimalValue;
|
|
490
|
+
adRemICMSDif?: DecimalValue;
|
|
491
|
+
}
|
|
457
492
|
interface ICMS60 {
|
|
458
493
|
orig: string;
|
|
459
494
|
CST: string;
|
|
@@ -462,6 +497,13 @@ interface ICMS60 {
|
|
|
462
497
|
vICMSSubstituto?: DecimalValue;
|
|
463
498
|
vICMSSTRet?: DecimalValue;
|
|
464
499
|
}
|
|
500
|
+
interface ICMS61 {
|
|
501
|
+
orig: string;
|
|
502
|
+
CST: string;
|
|
503
|
+
qBCMonoRet?: DecimalValue;
|
|
504
|
+
adRemICMSRet: DecimalValue;
|
|
505
|
+
vICMSMonoRet: DecimalValue;
|
|
506
|
+
}
|
|
465
507
|
interface ICMS70 {
|
|
466
508
|
orig: string;
|
|
467
509
|
CST: string;
|
|
@@ -3291,11 +3333,16 @@ declare class NFe implements NFe$1 {
|
|
|
3291
3333
|
Signature?: Signature;
|
|
3292
3334
|
}
|
|
3293
3335
|
|
|
3336
|
+
declare enum IndSinc {
|
|
3337
|
+
Asynchronous = "0",
|
|
3338
|
+
Synchronous = "1"
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3294
3341
|
interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
|
|
3295
3342
|
cUF?: StateCode;
|
|
3296
3343
|
tpAmb?: EnvironmentCode;
|
|
3297
3344
|
idLote?: string;
|
|
3298
|
-
indSinc?:
|
|
3345
|
+
indSinc?: IndSinc;
|
|
3299
3346
|
xml: T;
|
|
3300
3347
|
}
|
|
3301
3348
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
@@ -3304,7 +3351,12 @@ declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
|
3304
3351
|
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3305
3352
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
3306
3353
|
protected handleNfeBatch(certificate: ReadCertificateResponse, xml: string | string[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
|
|
3354
|
+
protected isLotNotProcessed(response: AutorizacaoResponse, payload: NfeAuthorizerPayload<string>): boolean;
|
|
3355
|
+
protected handleLotNotProcessed(NFe: SignedEntity<NFe>[], response: AutorizacaoResponse): Promise<PipelineAuthorizerResponse<NFe>>;
|
|
3356
|
+
protected toRejectionSyncResponse(NFe: SignedEntity<NFe>[], response: AutorizacaoResponse): SynchronousAutorizacaoResponse<NFe>;
|
|
3357
|
+
protected buildRejectionProtNFe(NFe: NFe, retEnviNFe: AutorizacaoResponse['retEnviNFe']): ProtNFe;
|
|
3307
3358
|
protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
|
|
3359
|
+
protected hasReceipt(response: AutorizacaoResponse): response is AsynchronousAutorizacaoResponse;
|
|
3308
3360
|
protected handleAsyncResponse(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3309
3361
|
protected contingency(NFe: NFe): {
|
|
3310
3362
|
dhCont: string;
|
|
@@ -5191,4 +5243,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
5191
5243
|
Signature?: Signature;
|
|
5192
5244
|
}
|
|
5193
5245
|
|
|
5194
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, schemas, type vItemBuilder };
|
|
5246
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, schemas, type vItemBuilder };
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -326,8 +326,8 @@ interface Comb {
|
|
|
326
326
|
CODIF?: string;
|
|
327
327
|
qTemp?: DecimalValue;
|
|
328
328
|
UFCons: string;
|
|
329
|
-
CIDE
|
|
330
|
-
encerrante
|
|
329
|
+
CIDE?: CIDE;
|
|
330
|
+
encerrante?: Encerrante;
|
|
331
331
|
pBio?: DecimalValue;
|
|
332
332
|
origComb?: OrigComb[];
|
|
333
333
|
}
|
|
@@ -379,16 +379,20 @@ interface IpiDevol {
|
|
|
379
379
|
vIPIDevol: string;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
type ICMSStandard = Pick<ICMS, 'ICMS00' | 'ICMS10' | 'ICMS20' | 'ICMS30' | 'ICMS40' | 'ICMS51' | 'ICMS60' | 'ICMS70' | 'ICMS90'>;
|
|
382
|
+
type ICMSStandard = Pick<ICMS, 'ICMS00' | 'ICMS02' | 'ICMS10' | 'ICMS15' | 'ICMS20' | 'ICMS30' | 'ICMS40' | 'ICMS51' | 'ICMS53' | 'ICMS60' | 'ICMS61' | 'ICMS70' | 'ICMS90'>;
|
|
383
383
|
type ICMSSN = Pick<ICMS, 'ICMSSN101' | 'ICMSSN102' | 'ICMSSN201' | 'ICMSSN202' | 'ICMSSN500' | 'ICMSSN900'>;
|
|
384
384
|
interface ICMS {
|
|
385
385
|
ICMS00?: ICMS00;
|
|
386
|
+
ICMS02?: ICMS02;
|
|
386
387
|
ICMS10?: ICMS10;
|
|
388
|
+
ICMS15?: ICMS15;
|
|
387
389
|
ICMS20?: ICMS20;
|
|
388
390
|
ICMS30?: ICMS30;
|
|
389
391
|
ICMS40?: ICMS40;
|
|
390
392
|
ICMS51?: ICMS51;
|
|
393
|
+
ICMS53?: ICMS53;
|
|
391
394
|
ICMS60?: ICMS60;
|
|
395
|
+
ICMS61?: ICMS61;
|
|
392
396
|
ICMS70?: ICMS70;
|
|
393
397
|
ICMS90?: ICMS90;
|
|
394
398
|
ICMSPart?: ICMSPart;
|
|
@@ -408,6 +412,13 @@ interface ICMS00 {
|
|
|
408
412
|
pICMS?: DecimalValue;
|
|
409
413
|
vICMS?: DecimalValue;
|
|
410
414
|
}
|
|
415
|
+
interface ICMS02 {
|
|
416
|
+
orig: string;
|
|
417
|
+
CST: string;
|
|
418
|
+
qBCMono?: DecimalValue;
|
|
419
|
+
adRemICMS: DecimalValue;
|
|
420
|
+
vICMSMono: DecimalValue;
|
|
421
|
+
}
|
|
411
422
|
interface ICMS10 {
|
|
412
423
|
orig: string;
|
|
413
424
|
CST: string;
|
|
@@ -420,6 +431,18 @@ interface ICMS10 {
|
|
|
420
431
|
pICMSST?: DecimalValue;
|
|
421
432
|
vICMSST?: DecimalValue;
|
|
422
433
|
}
|
|
434
|
+
interface ICMS15 {
|
|
435
|
+
orig: string;
|
|
436
|
+
CST: string;
|
|
437
|
+
qBCMono?: DecimalValue;
|
|
438
|
+
adRemICMS: DecimalValue;
|
|
439
|
+
vICMSMono: DecimalValue;
|
|
440
|
+
qBCMonoReten?: DecimalValue;
|
|
441
|
+
adRemICMSReten: DecimalValue;
|
|
442
|
+
vICMSMonoReten: DecimalValue;
|
|
443
|
+
pRedAdRem?: DecimalValue;
|
|
444
|
+
motRedAdRem?: string;
|
|
445
|
+
}
|
|
423
446
|
interface ICMS20 {
|
|
424
447
|
orig: string;
|
|
425
448
|
CST: string;
|
|
@@ -454,6 +477,18 @@ interface ICMS51 {
|
|
|
454
477
|
pDif?: DecimalValue;
|
|
455
478
|
vICMSDif?: DecimalValue;
|
|
456
479
|
}
|
|
480
|
+
interface ICMS53 {
|
|
481
|
+
orig: string;
|
|
482
|
+
CST: string;
|
|
483
|
+
qBCMono?: DecimalValue;
|
|
484
|
+
adRemICMS?: DecimalValue;
|
|
485
|
+
vICMSMonoOp?: DecimalValue;
|
|
486
|
+
pDif?: DecimalValue;
|
|
487
|
+
vICMSMonoDif?: DecimalValue;
|
|
488
|
+
vICMSMono?: DecimalValue;
|
|
489
|
+
qBCMonoDif?: DecimalValue;
|
|
490
|
+
adRemICMSDif?: DecimalValue;
|
|
491
|
+
}
|
|
457
492
|
interface ICMS60 {
|
|
458
493
|
orig: string;
|
|
459
494
|
CST: string;
|
|
@@ -462,6 +497,13 @@ interface ICMS60 {
|
|
|
462
497
|
vICMSSubstituto?: DecimalValue;
|
|
463
498
|
vICMSSTRet?: DecimalValue;
|
|
464
499
|
}
|
|
500
|
+
interface ICMS61 {
|
|
501
|
+
orig: string;
|
|
502
|
+
CST: string;
|
|
503
|
+
qBCMonoRet?: DecimalValue;
|
|
504
|
+
adRemICMSRet: DecimalValue;
|
|
505
|
+
vICMSMonoRet: DecimalValue;
|
|
506
|
+
}
|
|
465
507
|
interface ICMS70 {
|
|
466
508
|
orig: string;
|
|
467
509
|
CST: string;
|
|
@@ -3291,11 +3333,16 @@ declare class NFe implements NFe$1 {
|
|
|
3291
3333
|
Signature?: Signature;
|
|
3292
3334
|
}
|
|
3293
3335
|
|
|
3336
|
+
declare enum IndSinc {
|
|
3337
|
+
Asynchronous = "0",
|
|
3338
|
+
Synchronous = "1"
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3294
3341
|
interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
|
|
3295
3342
|
cUF?: StateCode;
|
|
3296
3343
|
tpAmb?: EnvironmentCode;
|
|
3297
3344
|
idLote?: string;
|
|
3298
|
-
indSinc?:
|
|
3345
|
+
indSinc?: IndSinc;
|
|
3299
3346
|
xml: T;
|
|
3300
3347
|
}
|
|
3301
3348
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
@@ -3304,7 +3351,12 @@ declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
|
3304
3351
|
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3305
3352
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
3306
3353
|
protected handleNfeBatch(certificate: ReadCertificateResponse, xml: string | string[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
|
|
3354
|
+
protected isLotNotProcessed(response: AutorizacaoResponse, payload: NfeAuthorizerPayload<string>): boolean;
|
|
3355
|
+
protected handleLotNotProcessed(NFe: SignedEntity<NFe>[], response: AutorizacaoResponse): Promise<PipelineAuthorizerResponse<NFe>>;
|
|
3356
|
+
protected toRejectionSyncResponse(NFe: SignedEntity<NFe>[], response: AutorizacaoResponse): SynchronousAutorizacaoResponse<NFe>;
|
|
3357
|
+
protected buildRejectionProtNFe(NFe: NFe, retEnviNFe: AutorizacaoResponse['retEnviNFe']): ProtNFe;
|
|
3307
3358
|
protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
|
|
3359
|
+
protected hasReceipt(response: AutorizacaoResponse): response is AsynchronousAutorizacaoResponse;
|
|
3308
3360
|
protected handleAsyncResponse(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3309
3361
|
protected contingency(NFe: NFe): {
|
|
3310
3362
|
dhCont: string;
|
|
@@ -5191,4 +5243,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
5191
5243
|
Signature?: Signature;
|
|
5192
5244
|
}
|
|
5193
5245
|
|
|
5194
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, schemas, type vItemBuilder };
|
|
5246
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS02, type ICMS10, type ICMS15, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS53, type ICMS60, type ICMS61, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultProtocoloPipeline, NfceConsultStatusPipeline, NfceContingencyXmlAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultProtocoloPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, XmlValidationError, schemas, type vItemBuilder };
|