UNPKG

fecr

Version:

Modulo de comprobantes electrónicos para el API del Ministerio de Hacienda de Costa Rica versión 4.3

26 lines (22 loc) 636 B
"use strict"; class Allowance { constructor(allowance) { this.docType = allowance.docType; this.docNumber = allowance.docNumber; this.institution = allowance.institution; this.date = allowance.date; this.percentage = allowance.percentage; this.amount = allowance.amount; } generate() { var obj = {}; obj.TipoDocumento = this.docType; obj.NumeroDocumento = this.docNumber; obj.NombreInstitucion = this.institution; obj.FechaEmision = this.date; obj.PorcentajeExoneracion = this.percentage; obj.MontoExoneracion = this.amount; return obj; } } module.exports = Allowance;