nfets 0.0.132 → 0.0.134

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.
@@ -23,6 +23,7 @@ interface DetEventoCancelamento {
23
23
  }
24
24
  interface EventoCancelamento extends DetEventoCancelamento {
25
25
  chNFe: string;
26
+ identification: string;
26
27
  idLote?: string;
27
28
  dhEvento?: string;
28
29
  }
@@ -1745,6 +1746,7 @@ interface ConsultaProtocoloResponse {
1745
1746
  interface VoidRangePayload {
1746
1747
  tpAmb?: EnvironmentCode;
1747
1748
  ano?: string;
1749
+ identification: string;
1748
1750
  mod: string;
1749
1751
  serie: string;
1750
1752
  nNFIni: string;
@@ -3572,14 +3574,22 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
3572
3574
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
3573
3575
  }
3574
3576
 
3577
+ interface IssuerIdentification {
3578
+ CNPJ?: string;
3579
+ CPF?: string;
3580
+ idDigits: string;
3581
+ }
3575
3582
  declare abstract class TransmissionPipeline extends Pipeline {
3576
3583
  protected readonly certificate: ReadCertificateRequest;
3577
3584
  protected readonly transmitter: NfeRemoteTransmitter;
3578
3585
  constructor(certificate: ReadCertificateRequest);
3586
+ protected issuerFromIdentification(identification: string): Either<NFeTsError, IssuerIdentification>;
3579
3587
  }
3580
3588
 
3581
3589
  declare abstract class EventPipeline extends TransmissionPipeline {
3582
- protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, SignedEntity<EventoItem<{
3590
+ protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'> & {
3591
+ identification: string;
3592
+ }, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, SignedEntity<EventoItem<{
3583
3593
  descEvento: string;
3584
3594
  } & T>>>>;
3585
3595
  protected versionedEvent<T>(evento: SignedEntity<EventoItem<T>>, version: string): SignedEntity<EventoItem<T>>;
@@ -23,6 +23,7 @@ interface DetEventoCancelamento {
23
23
  }
24
24
  interface EventoCancelamento extends DetEventoCancelamento {
25
25
  chNFe: string;
26
+ identification: string;
26
27
  idLote?: string;
27
28
  dhEvento?: string;
28
29
  }
@@ -1745,6 +1746,7 @@ interface ConsultaProtocoloResponse {
1745
1746
  interface VoidRangePayload {
1746
1747
  tpAmb?: EnvironmentCode;
1747
1748
  ano?: string;
1749
+ identification: string;
1748
1750
  mod: string;
1749
1751
  serie: string;
1750
1752
  nNFIni: string;
@@ -3572,14 +3574,22 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
3572
3574
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
3573
3575
  }
3574
3576
 
3577
+ interface IssuerIdentification {
3578
+ CNPJ?: string;
3579
+ CPF?: string;
3580
+ idDigits: string;
3581
+ }
3575
3582
  declare abstract class TransmissionPipeline extends Pipeline {
3576
3583
  protected readonly certificate: ReadCertificateRequest;
3577
3584
  protected readonly transmitter: NfeRemoteTransmitter;
3578
3585
  constructor(certificate: ReadCertificateRequest);
3586
+ protected issuerFromIdentification(identification: string): Either<NFeTsError, IssuerIdentification>;
3579
3587
  }
3580
3588
 
3581
3589
  declare abstract class EventPipeline extends TransmissionPipeline {
3582
- protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, SignedEntity<EventoItem<{
3590
+ protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'> & {
3591
+ identification: string;
3592
+ }, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, SignedEntity<EventoItem<{
3583
3593
  descEvento: string;
3584
3594
  } & T>>>>;
3585
3595
  protected versionedEvent<T>(evento: SignedEntity<EventoItem<T>>, version: string): SignedEntity<EventoItem<T>>;