Class EinvoicePaymentMeans() Professional
Represents the payment instructions of an invoice (BG-16).
The EinvoicePaymentMeans class represents the payment instructions (BG-16) of an electronic invoice. The payment instructions specify how the invoice is to be paid by means of a payment means code as defined in UNTDID 4461. Depending on this code, they contain either the account for a credit transfer (BT-84, BT-85 and BT-86) or the data of a SEPA direct debit mandate (BT-89, BT-90 and BT-91).
A payment means object can be created in two ways. Either a DataObject with the corresponding members is passed to EinvoicePaymentMeans():new(), or an empty object is created and filled via the builder methods such as :setCode() and :setIban(). Each builder method returns the payment means object, so calls can be chained. Both ways use the same builder methods internally and therefore normalize the data identically.
If no payment means code is specified, the code for SEPA credit transfer is used. The payment means are assigned to an invoice via AbstractEinvoice():setPaymentMeans().
oInvoice:setPaymentMeans( EinvoicePaymentMeans():new():setIban("DE67500400000388520900"):setBic("COBADEFFXXX"):setAccountName("Northwind Inc.") )
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.