Class EinvoicePaymentMeans() Professional

Represents the payment instructions of an invoice (BG-16).

Description

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().

Constructors
:new()
Initializes a new payment means object.
Class Methods
:from()
Converts a value into a payment means object.
Methods
:getAccountName()
Returns the name of the payee account (BT-85).
:getBic()
Returns the BIC of the payee (BT-86).
:getCode()
Returns the payment means code (BT-81).
:getCreditorId()
Returns the SEPA creditor identifier (BT-90).
:getDebitedIban()
Returns the debited account identifier (BT-91).
:getIban()
Returns the payee account identifier (BT-84).
:getInformation()
Returns the payment means text (BT-82).
:getMandateId()
Returns the SEPA direct debit mandate reference (BT-89).
:getReference()
Returns the remittance information (BT-83).
:setAccountName()
Sets the name of the payee account (BT-85).
:setBic()
Sets the BIC of the payee (BT-86).
:setCode()
Sets the payment means code (BT-81).
:setCreditorId()
Sets the SEPA creditor identifier (BT-90).
:setDebitedIban()
Sets the debited account identifier (BT-91).
:setIban()
Sets the payee account identifier (BT-84).
:setInformation()
Sets the payment means text (BT-82).
:setMandateId()
Sets the SEPA direct debit mandate reference (BT-89).
:setReference()
Sets the remittance information (BT-83).
Examples
A SEPA credit transfer
oInvoice:setPaymentMeans( EinvoicePaymentMeans():new():setIban("DE67500400000388520900"):setBic("COBADEFFXXX"):setAccountName("Northwind Inc.") ) 

Feedback

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.