@facturacr/atv-sdk
Version:
Librería (SDK) de Javascript/NodeJS para acceder al API de Administración Tributaria Virtual (ATV) del Ministerio de Hacienda.
41 lines (40 loc) • 1.19 kB
TypeScript
import { AceptationStates } from "@src/ATV/core/types";
import { Command } from "../createDocument/types";
import { ATV } from "@src/ATV";
export type CreateReceptorMessageCommandInput = {
clave: string;
emitterIdentifier: string;
emitterIdentifierType: string;
receptorIdentifier: string;
receptorIdentifierType: string;
documentIssueDate: Date;
activityCode: string;
taxCondition: string;
totalTaxes: number;
totalSale: number;
aceptationState: AceptationStates;
aceptationDetailMessage: string;
branch: string;
terminal: string;
token: string;
consecutive: string;
signatureOptions: {
buffer: string;
password: string;
};
};
export declare class CreateReceptorMessageCommand {
private readonly serviceUrl;
constructor(scope: ATV);
execute(input: CreateReceptorMessageCommandInput): Promise<{
command: Command;
extraData: {
xml: string;
document: import("../../..").InvoiceDocumentContainer;
};
}>;
private createDocumentCommand;
private encodeXML;
private acceptationStateToDocumentType;
private processDocument;
}