-
Notifications
You must be signed in to change notification settings - Fork 3
Class.UblWriter
einvoicing / UblWriter
new UblWriter():
UblWriter
addressToXmlNode(
address
):object
object
cac:Country:
object
cbc:IdentificationCode:
string
=address.countryCode
cbc:AdditionalStreetName:
string
cbc:CityName:
string
=address.cityName
cbc:CountrySubentity:
string
=address.subdivision
cbc:PostalZone:
string
=address.postalZone
cbc:StreetName:
string
=address.streetName
allowanceChargeToXmlNode(
charge
,currency
):object
object
cac:TaxCategory:
object
cac:TaxScheme:
object
cbc:ID:
string
='VAT'
cbc:ID:
string
cbc:Percent:
string
cbc:TaxExemptionReason:
string
=charge.tax.taxExemptionReason
cbc:TaxExemptionReasonCode:
string
=charge.tax.taxExemptionReasonCode
cbc:AllowanceChargeReason:
string
=charge.reasonText
cbc:AllowanceChargeReasonCode:
string
=charge.reasonCode
cbc:Amount:
object
#text:
string
attr_currencyID:
string
cbc:BaseAmount:
object
#text:
string
attr_currencyID:
string
cbc:ChargeIndicator:
boolean
=charge.isCharge
cbc:MultiplierFactorNumeric:
string
partyToXmlNode(
party
):object
object
cac:Contact:
object
cbc:ElectronicMail:
string
=party.contact.email
cbc:Name:
string
=party.contact.name
cbc:Telephone:
string
=party.contact.phone
cac:PartyIdentification:
object
[]
cac:PartyLegalEntity:
object
cbc:CompanyID:
object
#text:
string
cbc:CompanyLegalForm:
string
=party.companyLegalForm
cbc:RegistrationName:
string
=party.legalName
cac:PartyName:
object
cbc:Name:
string
=party.tradingName
cac:PartyTaxScheme:
object
[]
cac:PostalAddress:
object
cac:Country:
object
cbc:IdentificationCode:
string
=address.countryCode
cbc:AdditionalStreetName:
string
cbc:CityName:
string
=address.cityName
cbc:CountrySubentity:
string
=address.subdivision
cbc:PostalZone:
string
=address.postalZone
cbc:StreetName:
string
=address.streetName
cbc:EndpointID:
object
#text:
string
write(
document
):string
string
writeToFile(
document
,filename
):Promise
<void
>
string
Promise
<void
>
- AbstractReader
- AbstractRuleset
- AbstractWriter
- Address
- AllowanceCharge
- Attachment
- Attribute
- BinaryObject
- CurrencyCode
- DateOnly
- Delivery
- Document
- DocumentId
- DocumentLine
- DocumentLineId
- DocumentType
- Entity
- EntityId
- Identifier
- InvoiceReference
- Party
- Payee
- Payment
- PaymentCard
- PaymentMandate
- PaymentTransfer
- PeppolRuleset
- Tax
- TaxId
- UblReader
- UblWriter
- ValueObject