API ReferenceFunctions
buildBatchEventXml()
@finopenpos/fiscal / buildBatchEventXml
function buildBatchEventXml(options): string;Defined in: sefaz-request-builders.ts:1077
Build batch event XML (generic, multiple events in one envelope).
Parameters
| Parameter | Type |
|---|---|
options | { environment: 1 | 2; eventDateTime: string; events: { accessKey: string; additionalTags?: string; eventType: number; sequenceNumber?: number; }[]; isCpf?: boolean; lotId?: string; stateCode: string; taxId: string; } |
options.environment | 1 | 2 |
options.eventDateTime | string |
options.events | { accessKey: string; additionalTags?: string; eventType: number; sequenceNumber?: number; }[] |
options.isCpf? | boolean |
options.lotId? | string |
options.stateCode | string |
options.taxId | string |
Returns
string