@stafyniaksacha/facturx
Version:
Factur-X and Order-X generation library for European e-invoicing standard
1,209 lines (1,204 loc) • 32.8 kB
JavaScript
class ExchangedDocumentContextType {
constructor({
testIndicator,
businessProcessSpecifiedDocumentContextParameter,
guidelineSpecifiedDocumentContextParameter
}) {
this.testIndicator = testIndicator;
this.businessProcessSpecifiedDocumentContextParameter = businessProcessSpecifiedDocumentContextParameter;
this.guidelineSpecifiedDocumentContextParameter = guidelineSpecifiedDocumentContextParameter;
}
testIndicator;
businessProcessSpecifiedDocumentContextParameter;
guidelineSpecifiedDocumentContextParameter;
}
class ExchangedDocumentType {
constructor({
id,
name,
typeCode,
issueDateTime,
copyIndicator,
languageID,
includedNote,
effectiveSpecifiedPeriod
}) {
this.id = id;
this.name = name;
this.typeCode = typeCode;
this.issueDateTime = issueDateTime;
this.copyIndicator = copyIndicator;
this.languageID = languageID;
this.includedNote = includedNote;
this.effectiveSpecifiedPeriod = effectiveSpecifiedPeriod;
}
id;
name;
typeCode;
issueDateTime;
copyIndicator;
languageID;
includedNote;
effectiveSpecifiedPeriod;
}
class HeaderTradeAgreementType {
constructor({
buyerReference,
sellerTradeParty,
buyerTradeParty,
salesAgentTradeParty,
buyerTaxRepresentativeTradeParty,
sellerTaxRepresentativeTradeParty,
productEndUserTradeParty,
applicableTradeDeliveryTerms,
sellerOrderReferencedDocument,
buyerOrderReferencedDocument,
quotationReferencedDocument,
contractReferencedDocument,
additionalReferencedDocument,
buyerAgentTradeParty,
specifiedProcuringProject,
ultimateCustomerOrderReferencedDocument
}) {
this.buyerReference = buyerReference;
this.sellerTradeParty = sellerTradeParty;
this.buyerTradeParty = buyerTradeParty;
this.salesAgentTradeParty = salesAgentTradeParty;
this.buyerTaxRepresentativeTradeParty = buyerTaxRepresentativeTradeParty;
this.sellerTaxRepresentativeTradeParty = sellerTaxRepresentativeTradeParty;
this.productEndUserTradeParty = productEndUserTradeParty;
this.applicableTradeDeliveryTerms = applicableTradeDeliveryTerms;
this.sellerOrderReferencedDocument = sellerOrderReferencedDocument;
this.buyerOrderReferencedDocument = buyerOrderReferencedDocument;
this.quotationReferencedDocument = quotationReferencedDocument;
this.contractReferencedDocument = contractReferencedDocument;
this.additionalReferencedDocument = additionalReferencedDocument;
this.buyerAgentTradeParty = buyerAgentTradeParty;
this.specifiedProcuringProject = specifiedProcuringProject;
this.ultimateCustomerOrderReferencedDocument = ultimateCustomerOrderReferencedDocument;
}
buyerReference;
sellerTradeParty;
buyerTradeParty;
salesAgentTradeParty;
buyerTaxRepresentativeTradeParty;
sellerTaxRepresentativeTradeParty;
productEndUserTradeParty;
applicableTradeDeliveryTerms;
sellerOrderReferencedDocument;
buyerOrderReferencedDocument;
quotationReferencedDocument;
contractReferencedDocument;
additionalReferencedDocument;
buyerAgentTradeParty;
specifiedProcuringProject;
ultimateCustomerOrderReferencedDocument;
}
class HeaderTradeDeliveryType {
constructor({
relatedSupplyChainConsignment,
shipToTradeParty,
ultimateShipToTradeParty,
shipFromTradeParty,
actualDeliverySupplyChainEvent,
despatchAdviceReferencedDocument,
receivingAdviceReferencedDocument,
deliveryNoteReferencedDocument
}) {
this.relatedSupplyChainConsignment = relatedSupplyChainConsignment;
this.shipToTradeParty = shipToTradeParty;
this.ultimateShipToTradeParty = ultimateShipToTradeParty;
this.shipFromTradeParty = shipFromTradeParty;
this.actualDeliverySupplyChainEvent = actualDeliverySupplyChainEvent;
this.despatchAdviceReferencedDocument = despatchAdviceReferencedDocument;
this.receivingAdviceReferencedDocument = receivingAdviceReferencedDocument;
this.deliveryNoteReferencedDocument = deliveryNoteReferencedDocument;
}
relatedSupplyChainConsignment;
shipToTradeParty;
ultimateShipToTradeParty;
shipFromTradeParty;
actualDeliverySupplyChainEvent;
despatchAdviceReferencedDocument;
receivingAdviceReferencedDocument;
deliveryNoteReferencedDocument;
}
class HeaderTradeSettlementType {
constructor({
creditorReferenceID,
paymentReference,
taxCurrencyCode,
invoiceCurrencyCode,
invoiceIssuerReference,
invoicerTradeParty,
invoiceeTradeParty,
payeeTradeParty,
payerTradeParty,
taxApplicableTradeCurrencyExchange,
specifiedTradeSettlementPaymentMeans,
applicableTradeTax,
billingSpecifiedPeriod,
specifiedTradeAllowanceCharge,
specifiedLogisticsServiceCharge,
specifiedTradePaymentTerms,
specifiedTradeSettlementHeaderMonetarySummation,
invoiceReferencedDocument,
receivableSpecifiedTradeAccountingAccount,
specifiedAdvancePayment
}) {
this.creditorReferenceID = creditorReferenceID;
this.paymentReference = paymentReference;
this.taxCurrencyCode = taxCurrencyCode;
this.invoiceCurrencyCode = invoiceCurrencyCode;
this.invoiceIssuerReference = invoiceIssuerReference;
this.invoicerTradeParty = invoicerTradeParty;
this.invoiceeTradeParty = invoiceeTradeParty;
this.payeeTradeParty = payeeTradeParty;
this.payerTradeParty = payerTradeParty;
this.taxApplicableTradeCurrencyExchange = taxApplicableTradeCurrencyExchange;
this.specifiedTradeSettlementPaymentMeans = specifiedTradeSettlementPaymentMeans;
this.applicableTradeTax = applicableTradeTax ?? [];
this.billingSpecifiedPeriod = billingSpecifiedPeriod;
this.specifiedTradeAllowanceCharge = specifiedTradeAllowanceCharge;
this.specifiedLogisticsServiceCharge = specifiedLogisticsServiceCharge;
this.specifiedTradePaymentTerms = specifiedTradePaymentTerms;
this.specifiedTradeSettlementHeaderMonetarySummation = specifiedTradeSettlementHeaderMonetarySummation;
this.invoiceReferencedDocument = invoiceReferencedDocument;
this.receivableSpecifiedTradeAccountingAccount = receivableSpecifiedTradeAccountingAccount;
this.specifiedAdvancePayment = specifiedAdvancePayment;
}
creditorReferenceID;
paymentReference;
taxCurrencyCode;
invoiceCurrencyCode;
invoiceIssuerReference;
invoicerTradeParty;
invoiceeTradeParty;
payeeTradeParty;
payerTradeParty;
taxApplicableTradeCurrencyExchange;
specifiedTradeSettlementPaymentMeans;
applicableTradeTax;
billingSpecifiedPeriod;
specifiedTradeAllowanceCharge;
specifiedLogisticsServiceCharge;
specifiedTradePaymentTerms;
specifiedTradeSettlementHeaderMonetarySummation;
invoiceReferencedDocument;
receivableSpecifiedTradeAccountingAccount;
specifiedAdvancePayment;
}
class SupplyChainTradeTransactionType {
constructor({
includedSupplyChainTradeLineItem,
applicableHeaderTradeAgreement,
applicableHeaderTradeDelivery,
applicableHeaderTradeSettlement
}) {
this.includedSupplyChainTradeLineItem = includedSupplyChainTradeLineItem;
this.applicableHeaderTradeAgreement = applicableHeaderTradeAgreement;
this.applicableHeaderTradeDelivery = applicableHeaderTradeDelivery;
this.applicableHeaderTradeSettlement = applicableHeaderTradeSettlement;
}
includedSupplyChainTradeLineItem;
applicableHeaderTradeAgreement;
applicableHeaderTradeDelivery;
applicableHeaderTradeSettlement;
}
class CrossIndustryInvoiceType {
constructor({
exchangedDocumentContext,
exchangedDocument,
supplyChainTradeTransaction
}) {
this.exchangedDocumentContext = exchangedDocumentContext;
this.exchangedDocument = exchangedDocument;
this.supplyChainTradeTransaction = supplyChainTradeTransaction;
}
exchangedDocumentContext;
exchangedDocument;
supplyChainTradeTransaction;
}
class AccountingAccountTypeCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class AllowanceChargeReasonCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class ContactTypeCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class CountryIDType {
constructor({ value }) {
this.value = value;
}
value;
}
class CurrencyCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class DeliveryTermsCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class DocumentCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class FormattedDateTimeType {
constructor({ dateTimeString, format }) {
this.dateTimeString = dateTimeString;
this.format = format;
}
dateTimeString;
format;
}
class LineStatusCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class PartyRoleCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class PaymentMeansCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class ReferenceCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class TaxCategoryCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class TaxTypeCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class TimeReferenceCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class TransportModeCodeType {
constructor({ value }) {
this.value = value;
}
value;
}
class SpecifiedPeriodType {
constructor({
description,
startDateTime,
endDateTime,
completeDateTime
}) {
this.description = description;
this.startDateTime = startDateTime;
this.endDateTime = endDateTime;
this.completeDateTime = completeDateTime;
}
description;
startDateTime;
endDateTime;
completeDateTime;
}
class ReferencedDocumentType {
constructor({
issuerAssignedID,
uriID,
lineID,
typeCode,
name,
attachmentBinaryObject,
referenceTypeCode,
formattedIssueDateTime
}) {
this.issuerAssignedID = issuerAssignedID;
this.uriID = uriID;
this.lineID = lineID;
this.typeCode = typeCode;
this.name = name;
this.attachmentBinaryObject = attachmentBinaryObject;
this.referenceTypeCode = referenceTypeCode;
this.formattedIssueDateTime = formattedIssueDateTime;
}
issuerAssignedID;
uriID;
lineID;
typeCode;
name;
attachmentBinaryObject;
referenceTypeCode;
formattedIssueDateTime;
}
class TradeDeliveryTermsType {
constructor({
deliveryTypeCode
}) {
this.deliveryTypeCode = deliveryTypeCode;
}
deliveryTypeCode;
}
class ProcuringProjectType {
constructor({
id,
name
}) {
this.id = id;
this.name = name;
}
id;
name;
}
class AdvancePaymentType {
constructor({
paidAmount,
formattedReceivedDateTime,
includedTradeTax
}) {
this.paidAmount = paidAmount;
this.formattedReceivedDateTime = formattedReceivedDateTime;
this.includedTradeTax = includedTradeTax;
}
paidAmount;
formattedReceivedDateTime;
includedTradeTax;
}
class CreditorFinancialAccountType {
constructor({
ibanID,
accountName,
proprietaryID
}) {
this.ibanID = ibanID;
this.accountName = accountName;
this.proprietaryID = proprietaryID;
}
ibanID;
accountName;
proprietaryID;
}
class CreditorFinancialInstitutionType {
constructor({ bicID }) {
this.bicID = bicID;
}
bicID;
}
class DebtorFinancialAccountType {
constructor({ ibanID }) {
this.ibanID = ibanID;
}
ibanID;
}
class DocumentContextParameterType {
constructor({ id }) {
this.id = id;
}
id;
}
class NoteType {
constructor({
contentCode,
content,
subjectCode
}) {
this.contentCode = contentCode;
this.content = content;
this.subjectCode = subjectCode;
}
contentCode;
content;
subjectCode;
}
class DocumentLineDocumentType {
constructor({
lineID,
parentLineID,
lineStatusCode,
lineStatusReasonCode,
includedNote
}) {
this.lineID = lineID;
this.parentLineID = parentLineID;
this.lineStatusCode = lineStatusCode;
this.lineStatusReasonCode = lineStatusReasonCode;
this.includedNote = includedNote;
}
lineID;
parentLineID;
lineStatusCode;
lineStatusReasonCode;
includedNote;
}
class TradeTaxType {
constructor({
calculatedAmount,
typeCode,
exemptionReason,
basisAmount,
lineTotalBasisAmount,
allowanceChargeBasisAmount,
categoryCode,
exemptionReasonCode,
taxPointDate,
dueDateTypeCode,
rateApplicablePercent
}) {
this.calculatedAmount = calculatedAmount;
this.typeCode = typeCode;
this.exemptionReason = exemptionReason;
this.basisAmount = basisAmount;
this.lineTotalBasisAmount = lineTotalBasisAmount;
this.allowanceChargeBasisAmount = allowanceChargeBasisAmount;
this.categoryCode = categoryCode;
this.exemptionReasonCode = exemptionReasonCode;
this.taxPointDate = taxPointDate;
this.dueDateTypeCode = dueDateTypeCode;
this.rateApplicablePercent = rateApplicablePercent;
}
calculatedAmount;
typeCode;
exemptionReason;
basisAmount;
lineTotalBasisAmount;
allowanceChargeBasisAmount;
categoryCode;
exemptionReasonCode;
taxPointDate;
dueDateTypeCode;
rateApplicablePercent;
}
class TradeAddressType {
constructor({
postcodeCode,
lineOne,
lineTwo,
lineThree,
cityName,
countryID,
countrySubDivisionName
}) {
this.postcodeCode = postcodeCode;
this.lineOne = lineOne;
this.lineTwo = lineTwo;
this.lineThree = lineThree;
this.cityName = cityName;
this.countryID = countryID;
this.countrySubDivisionName = countrySubDivisionName;
}
postcodeCode;
lineOne;
lineTwo;
lineThree;
cityName;
countryID;
countrySubDivisionName;
}
class UniversalCommunicationType {
constructor({
uriID,
completeNumber
}) {
this.uriID = uriID;
this.completeNumber = completeNumber;
}
uriID;
completeNumber;
}
class TradeContactType {
constructor({
personName,
departmentName,
typeCode,
telephoneUniversalCommunication,
faxUniversalCommunication,
emailURIUniversalCommunication
}) {
this.personName = personName;
this.departmentName = departmentName;
this.typeCode = typeCode;
this.telephoneUniversalCommunication = telephoneUniversalCommunication;
this.faxUniversalCommunication = faxUniversalCommunication;
this.emailURIUniversalCommunication = emailURIUniversalCommunication;
}
personName;
departmentName;
typeCode;
telephoneUniversalCommunication;
faxUniversalCommunication;
emailURIUniversalCommunication;
}
class LegalOrganizationType {
constructor({
id,
tradingBusinessName,
postalTradeAddress
}) {
this.id = id;
this.tradingBusinessName = tradingBusinessName;
this.postalTradeAddress = postalTradeAddress;
}
id;
tradingBusinessName;
postalTradeAddress;
}
class TaxRegistrationType {
constructor({ id }) {
this.id = id;
}
id;
}
class TradePartyType {
constructor({
id,
globalID,
name,
roleCode,
description,
specifiedLegalOrganization,
definedTradeContact,
postalTradeAddress,
uriUniversalCommunication,
specifiedTaxRegistration
}) {
this.id = id;
this.globalID = globalID;
this.name = name;
this.roleCode = roleCode;
this.description = description;
this.specifiedLegalOrganization = specifiedLegalOrganization;
this.definedTradeContact = definedTradeContact;
this.postalTradeAddress = postalTradeAddress;
this.uriUniversalCommunication = uriUniversalCommunication;
this.specifiedTaxRegistration = specifiedTaxRegistration;
}
id;
globalID;
name;
roleCode;
description;
specifiedLegalOrganization;
definedTradeContact;
postalTradeAddress;
uriUniversalCommunication;
specifiedTaxRegistration;
}
class SupplyChainEventType {
constructor({
occurrenceDateTime
}) {
this.occurrenceDateTime = occurrenceDateTime;
}
occurrenceDateTime;
}
class SupplyChainConsignmentType {
constructor({
specifiedLogisticsTransportMovement
}) {
this.specifiedLogisticsTransportMovement = specifiedLogisticsTransportMovement;
}
specifiedLogisticsTransportMovement;
}
class LogisticsTransportMovementType {
constructor({
modeCode
}) {
this.modeCode = modeCode;
}
modeCode;
}
class TradeAccountingAccountType {
constructor({
id,
typeCode
}) {
this.id = id;
this.typeCode = typeCode;
}
id;
typeCode;
}
class TradeCurrencyExchangeType {
constructor({
sourceCurrencyCode,
targetCurrencyCode,
conversionRate,
conversionRateDateTime
}) {
this.sourceCurrencyCode = sourceCurrencyCode;
this.targetCurrencyCode = targetCurrencyCode;
this.conversionRate = conversionRate;
this.conversionRateDateTime = conversionRateDateTime;
}
sourceCurrencyCode;
targetCurrencyCode;
conversionRate;
conversionRateDateTime;
}
class TradeAllowanceChargeType {
constructor({
chargeIndicator,
sequenceNumeric,
calculationPercent,
basisAmount,
basisQuantity,
actualAmount,
reasonCode,
reason,
categoryTradeTax
}) {
this.chargeIndicator = chargeIndicator;
this.sequenceNumeric = sequenceNumeric;
this.calculationPercent = calculationPercent;
this.basisAmount = basisAmount;
this.basisQuantity = basisQuantity;
this.actualAmount = actualAmount;
this.reasonCode = reasonCode;
this.reason = reason;
this.categoryTradeTax = categoryTradeTax;
}
chargeIndicator;
sequenceNumeric;
calculationPercent;
basisAmount;
basisQuantity;
actualAmount;
reasonCode;
reason;
categoryTradeTax;
}
class LogisticsServiceChargeType {
constructor({
description,
appliedAmount,
appliedTradeTax
}) {
this.description = description;
this.appliedAmount = appliedAmount;
this.appliedTradeTax = appliedTradeTax;
}
description;
appliedAmount;
appliedTradeTax;
}
class TradePaymentPenaltyTermsType {
constructor({
basisDateTime,
basisPeriodMeasure,
basisAmount,
calculationPercent,
actualPenaltyAmount
}) {
this.basisDateTime = basisDateTime;
this.basisPeriodMeasure = basisPeriodMeasure;
this.basisAmount = basisAmount;
this.calculationPercent = calculationPercent;
this.actualPenaltyAmount = actualPenaltyAmount;
}
basisDateTime;
basisPeriodMeasure;
basisAmount;
calculationPercent;
actualPenaltyAmount;
}
class TradePaymentDiscountTermsType {
constructor({
basisDateTime,
basisPeriodMeasure,
basisAmount,
calculationPercent,
actualDiscountAmount
}) {
this.basisDateTime = basisDateTime;
this.basisPeriodMeasure = basisPeriodMeasure;
this.basisAmount = basisAmount;
this.calculationPercent = calculationPercent;
this.actualDiscountAmount = actualDiscountAmount;
}
basisDateTime;
basisPeriodMeasure;
basisAmount;
calculationPercent;
actualDiscountAmount;
}
class TradePaymentTermsType {
constructor({
description,
dueDateDateTime,
directDebitMandateID,
partialPaymentAmount,
applicableTradePaymentPenaltyTerms,
applicableTradePaymentDiscountTerms,
payeeTradeParty
}) {
this.description = description;
this.dueDateDateTime = dueDateDateTime;
this.directDebitMandateID = directDebitMandateID;
this.partialPaymentAmount = partialPaymentAmount;
this.applicableTradePaymentPenaltyTerms = applicableTradePaymentPenaltyTerms;
this.applicableTradePaymentDiscountTerms = applicableTradePaymentDiscountTerms;
this.payeeTradeParty = payeeTradeParty;
}
description;
dueDateDateTime;
directDebitMandateID;
partialPaymentAmount;
applicableTradePaymentPenaltyTerms;
applicableTradePaymentDiscountTerms;
payeeTradeParty;
}
class TradeSettlementFinancialCardType {
constructor({
id,
cardholderName
}) {
this.id = id;
this.cardholderName = cardholderName;
}
id;
cardholderName;
}
class TradeSettlementPaymentMeansType {
constructor({
typeCode,
information,
applicableTradeSettlementFinancialCard,
payerPartyDebtorFinancialAccount,
payeePartyCreditorFinancialAccount,
payeeSpecifiedCreditorFinancialInstitution
}) {
this.typeCode = typeCode;
this.information = information;
this.applicableTradeSettlementFinancialCard = applicableTradeSettlementFinancialCard;
this.payerPartyDebtorFinancialAccount = payerPartyDebtorFinancialAccount;
this.payeePartyCreditorFinancialAccount = payeePartyCreditorFinancialAccount;
this.payeeSpecifiedCreditorFinancialInstitution = payeeSpecifiedCreditorFinancialInstitution;
}
typeCode;
information;
applicableTradeSettlementFinancialCard;
payerPartyDebtorFinancialAccount;
payeePartyCreditorFinancialAccount;
payeeSpecifiedCreditorFinancialInstitution;
}
class TradeSettlementHeaderMonetarySummationType {
constructor({
lineTotalAmount,
chargeTotalAmount,
allowanceTotalAmount,
taxBasisTotalAmount,
taxTotalAmount,
roundingAmount,
grandTotalAmount,
totalPrepaidAmount,
duePayableAmount
}) {
this.lineTotalAmount = lineTotalAmount;
this.chargeTotalAmount = chargeTotalAmount;
this.allowanceTotalAmount = allowanceTotalAmount;
this.taxBasisTotalAmount = taxBasisTotalAmount;
this.taxTotalAmount = taxTotalAmount;
this.roundingAmount = roundingAmount;
this.grandTotalAmount = grandTotalAmount;
this.totalPrepaidAmount = totalPrepaidAmount;
this.duePayableAmount = duePayableAmount;
}
lineTotalAmount;
chargeTotalAmount;
allowanceTotalAmount;
taxBasisTotalAmount;
taxTotalAmount;
roundingAmount;
grandTotalAmount;
totalPrepaidAmount;
duePayableAmount;
}
class ProductCharacteristicType {
constructor({
typeCode,
description,
valueMeasure,
value
}) {
this.typeCode = typeCode;
this.description = description;
this.valueMeasure = valueMeasure;
this.value = value;
}
typeCode;
description;
valueMeasure;
value;
}
class ProductClassificationType {
constructor({
classCode,
className
}) {
this.classCode = classCode;
this.className = className;
}
classCode;
className;
}
class TradeProductInstanceType {
constructor({
batchID,
supplierAssignedSerialID
}) {
this.batchID = batchID;
this.supplierAssignedSerialID = supplierAssignedSerialID;
}
batchID;
supplierAssignedSerialID;
}
class TradeCountryType {
constructor({
id
}) {
this.id = id;
}
id;
}
class ReferencedProductType {
constructor({
id,
globalID,
sellerAssignedID,
buyerAssignedID,
industryAssignedID,
name,
description,
unitQuantity
}) {
this.id = id;
this.globalID = globalID;
this.sellerAssignedID = sellerAssignedID;
this.buyerAssignedID = buyerAssignedID;
this.industryAssignedID = industryAssignedID;
this.name = name;
this.description = description;
this.unitQuantity = unitQuantity;
}
id;
globalID;
sellerAssignedID;
buyerAssignedID;
industryAssignedID;
name;
description;
unitQuantity;
}
class TradeProductType {
constructor({
id,
globalID,
sellerAssignedID,
buyerAssignedID,
name,
description,
applicableProductCharacteristic,
designatedProductClassification,
individualTradeProductInstance,
originTradeCountry,
includedReferencedProduct
}) {
this.id = id;
this.globalID = globalID;
this.sellerAssignedID = sellerAssignedID;
this.buyerAssignedID = buyerAssignedID;
this.name = name;
this.description = description;
this.applicableProductCharacteristic = applicableProductCharacteristic;
this.designatedProductClassification = designatedProductClassification;
this.individualTradeProductInstance = individualTradeProductInstance;
this.originTradeCountry = originTradeCountry;
this.includedReferencedProduct = includedReferencedProduct;
}
id;
globalID;
sellerAssignedID;
buyerAssignedID;
name;
description;
applicableProductCharacteristic;
designatedProductClassification;
individualTradeProductInstance;
originTradeCountry;
includedReferencedProduct;
}
class TradePriceType {
constructor({
chargeAmount,
basisQuantity,
appliedTradeAllowanceCharge,
includedTradeTax
}) {
this.chargeAmount = chargeAmount;
this.basisQuantity = basisQuantity;
this.appliedTradeAllowanceCharge = appliedTradeAllowanceCharge;
this.includedTradeTax = includedTradeTax;
}
chargeAmount;
basisQuantity;
appliedTradeAllowanceCharge;
includedTradeTax;
}
class LineTradeAgreementType {
constructor({
buyerOrderReferencedDocument,
quotationReferencedDocument,
contractReferencedDocument,
additionalReferencedDocument,
grossPriceProductTradePrice,
netPriceProductTradePrice,
ultimateCustomerOrderReferencedDocument
}) {
this.buyerOrderReferencedDocument = buyerOrderReferencedDocument;
this.quotationReferencedDocument = quotationReferencedDocument;
this.contractReferencedDocument = contractReferencedDocument;
this.additionalReferencedDocument = additionalReferencedDocument;
this.grossPriceProductTradePrice = grossPriceProductTradePrice;
this.netPriceProductTradePrice = netPriceProductTradePrice;
this.ultimateCustomerOrderReferencedDocument = ultimateCustomerOrderReferencedDocument;
}
buyerOrderReferencedDocument;
quotationReferencedDocument;
contractReferencedDocument;
additionalReferencedDocument;
grossPriceProductTradePrice;
netPriceProductTradePrice;
ultimateCustomerOrderReferencedDocument;
}
class LineTradeDeliveryType {
constructor({
billedQuantity,
chargeFreeQuantity,
packageQuantity,
shipToTradeParty,
ultimateShipToTradeParty,
actualDeliverySupplyChainEvent,
despatchAdviceReferencedDocument,
receivingAdviceReferencedDocument,
deliveryNoteReferencedDocument
}) {
this.billedQuantity = billedQuantity;
this.chargeFreeQuantity = chargeFreeQuantity;
this.packageQuantity = packageQuantity;
this.shipToTradeParty = shipToTradeParty;
this.ultimateShipToTradeParty = ultimateShipToTradeParty;
this.actualDeliverySupplyChainEvent = actualDeliverySupplyChainEvent;
this.despatchAdviceReferencedDocument = despatchAdviceReferencedDocument;
this.receivingAdviceReferencedDocument = receivingAdviceReferencedDocument;
this.deliveryNoteReferencedDocument = deliveryNoteReferencedDocument;
}
billedQuantity;
chargeFreeQuantity;
packageQuantity;
shipToTradeParty;
ultimateShipToTradeParty;
actualDeliverySupplyChainEvent;
despatchAdviceReferencedDocument;
receivingAdviceReferencedDocument;
deliveryNoteReferencedDocument;
}
class TradeSettlementLineMonetarySummationType {
constructor({
lineTotalAmount,
chargeTotalAmount,
allowanceTotalAmount,
taxTotalAmount,
grandTotalAmount,
totalAllowanceChargeAmount
}) {
this.lineTotalAmount = lineTotalAmount;
this.chargeTotalAmount = chargeTotalAmount;
this.allowanceTotalAmount = allowanceTotalAmount;
this.taxTotalAmount = taxTotalAmount;
this.grandTotalAmount = grandTotalAmount;
this.totalAllowanceChargeAmount = totalAllowanceChargeAmount;
}
lineTotalAmount;
chargeTotalAmount;
allowanceTotalAmount;
taxTotalAmount;
grandTotalAmount;
totalAllowanceChargeAmount;
}
class LineTradeSettlementType {
constructor({
applicableTradeTax,
billingSpecifiedPeriod,
specifiedTradeAllowanceCharge,
specifiedTradeSettlementLineMonetarySummation,
invoiceReferencedDocument,
additionalReferencedDocument,
receivableSpecifiedTradeAccountingAccount
}) {
this.applicableTradeTax = applicableTradeTax;
this.billingSpecifiedPeriod = billingSpecifiedPeriod;
this.specifiedTradeAllowanceCharge = specifiedTradeAllowanceCharge;
this.specifiedTradeSettlementLineMonetarySummation = specifiedTradeSettlementLineMonetarySummation;
this.invoiceReferencedDocument = invoiceReferencedDocument;
this.additionalReferencedDocument = additionalReferencedDocument;
this.receivableSpecifiedTradeAccountingAccount = receivableSpecifiedTradeAccountingAccount;
}
applicableTradeTax;
billingSpecifiedPeriod;
specifiedTradeAllowanceCharge;
specifiedTradeSettlementLineMonetarySummation;
invoiceReferencedDocument;
additionalReferencedDocument;
receivableSpecifiedTradeAccountingAccount;
}
class SupplyChainTradeLineItemType {
constructor({
associatedDocumentLineDocument,
specifiedTradeProduct,
specifiedLineTradeAgreement,
specifiedLineTradeDelivery,
specifiedLineTradeSettlement
}) {
this.associatedDocumentLineDocument = associatedDocumentLineDocument;
this.specifiedTradeProduct = specifiedTradeProduct;
this.specifiedLineTradeAgreement = specifiedLineTradeAgreement;
this.specifiedLineTradeDelivery = specifiedLineTradeDelivery;
this.specifiedLineTradeSettlement = specifiedLineTradeSettlement;
}
associatedDocumentLineDocument;
specifiedTradeProduct;
specifiedLineTradeAgreement;
specifiedLineTradeDelivery;
specifiedLineTradeSettlement;
}
class AmountType {
constructor({ value, currencyID }) {
this.value = value;
this.currencyID = currencyID;
}
value;
currencyID;
}
class BinaryObjectType {
constructor({ value, mimeCode, filename }) {
this.value = value;
this.mimeCode = mimeCode;
this.filename = filename;
}
value;
mimeCode;
filename;
}
class CodeType {
constructor({ value, listID, listVersionID }) {
this.value = value;
this.listID = listID;
this.listVersionID = listVersionID;
}
value;
listID;
listVersionID;
}
class DateTimeType {
constructor({ dateTimeString, format }) {
this.dateTimeString = dateTimeString;
this.format = format;
}
dateTimeString;
format;
}
class DateType {
constructor({ dateString, format }) {
this.dateString = dateString;
this.format = format;
}
dateString;
format;
}
class IDType {
constructor({ value, schemeID }) {
this.value = value;
this.schemeID = schemeID;
}
value;
schemeID;
}
class IndicatorType {
constructor({ indicator }) {
this.indicator = indicator;
}
indicator;
}
class MeasureType {
constructor({ value, unitCode }) {
this.value = value;
this.unitCode = unitCode;
}
value;
unitCode;
}
class NumericType {
constructor({ value }) {
this.value = value;
}
value;
}
class PercentType {
constructor({ value }) {
this.value = value;
}
value;
}
class QuantityType {
constructor({ value, unitCode }) {
this.value = value;
this.unitCode = unitCode;
}
value;
unitCode;
}
class RateType {
constructor({ value }) {
this.value = value;
}
value;
}
class TextType {
constructor({ value }) {
this.value = value;
}
value;
}
export { AccountingAccountTypeCodeType, AdvancePaymentType, AllowanceChargeReasonCodeType, AmountType, BinaryObjectType, CodeType, ContactTypeCodeType, CountryIDType, CreditorFinancialAccountType, CreditorFinancialInstitutionType, CrossIndustryInvoiceType, CurrencyCodeType, DateTimeType, DateType, DebtorFinancialAccountType, DeliveryTermsCodeType, DocumentCodeType, DocumentContextParameterType, DocumentLineDocumentType, ExchangedDocumentContextType, ExchangedDocumentType, FormattedDateTimeType, HeaderTradeAgreementType, HeaderTradeDeliveryType, HeaderTradeSettlementType, IDType, IndicatorType, LegalOrganizationType, LineStatusCodeType, LineTradeAgreementType, LineTradeDeliveryType, LineTradeSettlementType, LogisticsServiceChargeType, LogisticsTransportMovementType, MeasureType, NoteType, NumericType, PartyRoleCodeType, PaymentMeansCodeType, PercentType, ProcuringProjectType, ProductCharacteristicType, ProductClassificationType, QuantityType, RateType, ReferenceCodeType, ReferencedDocumentType, ReferencedProductType, SpecifiedPeriodType, SupplyChainConsignmentType, SupplyChainEventType, SupplyChainTradeLineItemType, SupplyChainTradeTransactionType, TaxCategoryCodeType, TaxRegistrationType, TaxTypeCodeType, TextType, TimeReferenceCodeType, TradeAccountingAccountType, TradeAddressType, TradeAllowanceChargeType, TradeContactType, TradeCountryType, TradeCurrencyExchangeType, TradeDeliveryTermsType, TradePartyType, TradePaymentDiscountTermsType, TradePaymentPenaltyTermsType, TradePaymentTermsType, TradePriceType, TradeProductInstanceType, TradeProductType, TradeSettlementFinancialCardType, TradeSettlementHeaderMonetarySummationType, TradeSettlementLineMonetarySummationType, TradeSettlementPaymentMeansType, TradeTaxType, TransportModeCodeType, UniversalCommunicationType };