Dycode SimpleUBL UBL 2.0 Class Library

Invoice Class

Remarks

The document used to request payment.

Public Instance Constructors

Invoice Constructor Default constructor.
Invoice Copy Constructor Copy constructor. (Only C++)
Invoice Constructor with required values Constructor with required values. (Only C++, .NET)

Public Instance Properties

 
Property UBL 2.0OIO UBLNES UBL Description
UBLVersionID0..111 UBL Version Identifier. The earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance. (Ex: 2.0.5)
UBLExtensions0..10..10..1 UBL Extensions . A container for all extensions present in the document.
CustomizationID0..111 Customization Identifier. Identifies a user-defined customization of UBL for a specific use. (Ex: NES)
ProfileID0..111 Profile Identifier. Identifies a user-defined profile of the customization of UBL being used. (Ex: BasicProcurementProcess)
ID111 Identifier. An identifier for the Invoice assigned by the Creditor.
CopyIndicator0..10..10..1 Indicator. Indicates whether a document is a copy (true) or not (false).
UUID0..10..1  UUID. A universally unique identifier for an instance of this ABIE.
IssueDate111 Issue Date. The date assigned by the Creditor on which the Invoice was issued.
IssueTime0..10..1  Issue Time. The time assigned by the Creditor at which the Invoice was issued.
InvoiceTypeCode0..10..11 Invoice Type Code. Code specifying the type of the Invoice.
Notes0..n0..n0..n Note. Free-form text applying to the Invoice. This element may contain notes or any other similar information that is not contained explicitly in another structure.
TaxPointDate0..10..10..1 Tax Point Date. The date of the Invoice, used to indicate the point at which tax becomes applicable.
DocumentCurrencyCode0..111 Currency Code. The currency in which the Document is presented. This may be the same currency as the pricing or as the tax.
TaxCurrencyCode0..10..10..1 Currency Code. The currency used for tax amounts in the Invoice.
PricingCurrencyCode0..10..1  Currency Code. The currency used for prices in the Invoice.
PaymentCurrencyCode0..10..1  Currency Code. The currency used for payment in the Invoice.
PaymentAlternativeCurrencyCode0..10..1  Currency Code. The alternative currency used for payment in the Invoice.
AccountingCostCode0..10..1  Accounting Cost Code. The Buyer's accounting code applied to the Invoice as a whole.
AccountingCost0..10..10..1 Accounting Cost. The Buyer's accounting cost centre applied to the Invoice as a whole, expressed as text.
LineCountNumeric0..10..1  Line Count. The number of lines in the document.
InvoicePeriods0..n0..10..1 Period. An association to period(s) to which the Invoice applies.
OrderReference0..10..10..1 Order Reference. An association to Order Reference.
BillingReferences0..n0..n0..1 Billing Reference. An association to Billing Reference.
DespatchDocumentReferences0..n0..n  Document Reference. An associative reference to Despatch Advice.
ReceiptDocumentReferences0..n0..n  Document Reference. An associative reference to Receipt Advice.
OriginatorDocumentReferences0..n0..n0..1 Document Reference. An associative reference to Originator Document.
ContractDocumentReferences0..n0..1  Document Reference. An associative reference to Contract.
AdditionalDocumentReferences0..n0..n0..n Document Reference. An associative reference to Additional Document.
Signatures0..n0..n0..n Signature. An association to Signature.
AccountingSupplierParty111 Supplier Party. An association to the Accounting Supplier Party.
AccountingCustomerParty111 Customer Party. An association to the Accounting Customer Party.
PayeeParty0..10..10..1 Party. An association to the Payee.
BuyerCustomerParty0..10..1  Customer Party. An association to the Buyer.
SellerSupplierParty0..10..1  Supplier Party. An association to the Seller.
TaxRepresentativeParty0..1   Party. An association to the Tax Representative.
Deliveries0..n0..n0..1 Delivery. An association to Delivery.
DeliveryTerms0..10..10..1 Delivery Terms. An association to Delivery Terms.
PaymentMeans0..n0..n0..n Payment Means. An association to Payment Means.
PaymentTerms0..n0..n0..1 Payment Terms. An association to Payment Terms.
PrepaidPayments0..n0..n  Payment. An association to prepaid payment(s).
AllowanceCharges0..n0..n0..n Allowance Charge. An association to Allowances and Charges that apply to the Invoice as a whole.
TaxExchangeRate0..10..10..1 Exchange Rate. An association to Exchange Rate between the Document Currency and the Tax Currency.
PricingExchangeRate0..10..1  Exchange Rate. An association to Exchange Rate between the Document Currency and the Pricing Currency.
PaymentExchangeRate0..10..1  Exchange Rate. An association to Exchange Rate between the Document Currency and the Payment Currency.
PaymentAlternativeExchangeRate0..10..1  Exchange Rate. An association to Exchange Rate between the Document Currency and the Payment Alternative Currency.
TaxTotals0..n1..n1..n Tax Total. An association to tax total for specific tax types/rates.
LegalMonetaryTotal111 Monetary Total. An association to the legally binding total amount payable on the Invoice, including Allowances, Charges, and Taxes.
InvoiceLines1..n1..n1..n Invoice Line. An association to one or more Invoice Lines.
 
XML XML Document in the string format.

Public Instance Methods

GetSchemaValidationErrors Validate document by schema. If document is not valid, return validation error.
GetSchemaValidationErrorsFromXML Validate XML by schema. If XML is not valid, return validation error.
GetValueValidationErrors Validate document by value. If document is not valid, return validation error.
GetValueValidationErrorsFromXML Validate XML by value. If XML is not valid, return validation error.
GetValidationErrors Validate document by schema and then by value. If document is not valid, return validation error.
GetValidationErrorsFromXML Validate XML by schema and then by value. If XML is not valid, return validation error.
Write Write document XML.
Read Read document XML.

Public Operators

Operator=Overloading of Assignment Operator. (Only C++)

Thread Safety

Public static members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Invoice Properties | Dycode.SimpleUBL | Invoice Example