falcotura-atv-sdk
Version:
Librería (SDK) de Javascript/NodeJS para acceder al API de Administración Tributaria Virtual (ATV) del Ministerio de Hacienda.
21 lines • 676 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReceptorConsecutive = void 0;
class ReceptorConsecutive {
constructor(props) {
this.props = props;
}
get value() {
return Object.values(this.props).join('');
}
static create(props) {
return new ReceptorConsecutive({
branch: props.branch.padStart(3, '0'),
terminal: props.terminal.padStart(5, '0'),
documentType: props.documentType,
consecutive: props.consecutive.padStart(10, '0')
});
}
}
exports.ReceptorConsecutive = ReceptorConsecutive;
//# sourceMappingURL=ReceptorConsecutive.js.map