Skip to content

open-nfse / PendingEventoCancelamento

Interface: PendingEventoCancelamento

Defined in: src/retry/store.ts:60

Evento de cancelamento/substituição pendente.

Extends

  • PendingBase

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
attempts?readonlynumberNumber of attempts made so far (including the one that just failed). 1 after the first persist, 2 after the first replay attempt, etc. Passed to RetryPolicy.computeNotBefore via RetryContext.attempt so custom policies can implement attempt-based backoff (exponential, linear, etc.). undefined is treated as 1 for entries persisted before this field existed.PendingBase.attemptssrc/retry/store.ts:40
chaveNfsereadonlystringChave da NFS-e alvo do evento.-src/retry/store.ts:63
chaveSubstituta?readonlystringChave da NFS-e substituta — apenas para 105102.-src/retry/store.ts:65
cMotivoreadonlystring--src/retry/store.ts:67
firstAttemptAtreadonlyDate-PendingBase.firstAttemptAtsrc/retry/store.ts:21
idreadonlystringChave estável de deduplicação no store.PendingBase.idsrc/retry/store.ts:12
kindreadonly| "cancelamento_simples" | "cancelamento_por_substituicao" | "rollback_cancelamento"--src/retry/store.ts:61
lastAttemptAtreadonlyDate-PendingBase.lastAttemptAtsrc/retry/store.ts:22
lastErrorreadonly{ errorName: string; message: string; transient: boolean; }-PendingBase.lastErrorsrc/retry/store.ts:41
lastError.errorNamereadonlystring--src/retry/store.ts:43
lastError.messagereadonlystring--src/retry/store.ts:42
lastError.transientreadonlyboolean--src/retry/store.ts:44
notBefore?readonlyDateEarliest moment this entry is eligible for replay. When set, replayPendingEvents skips entries with notBefore > now. Populated from RetryPolicy.computeNotBefore (e.g., respecting a 429 / 503 Retry-After header). undefined means the entry is eligible on the next replay tick — current behavior for all entries created before this field existed.PendingBase.notBeforesrc/retry/store.ts:31
tipoEventoreadonlystring--src/retry/store.ts:66
xmlAssinadoreadonlystringXML assinado (XMLDSig) pronto para re-POST sem re-assinatura. replayPendingEvents envia este XML diretamente ao SEFIN; persistir XML sem assinatura causa rejeição imediata na retentativa. SEFIN deduplica via infDPS.Id (emissão) ou chave + tipoEvento (eventos), então retentar é idempotente quando o XML é íntegro.PendingBase.xmlAssinadosrc/retry/store.ts:20
xMotivo?readonlystring--src/retry/store.ts:68

Licença MIT — biblioteca não oficial, sem vínculo com a Receita Federal.