Method EinvoicePaymentMeans():new() Professional

Initializes a new payment means object.

Syntax
:new( [<oInit>] ) --> self
Parameters
<oInit>
An optional DataObject with the payment means data. This defaults to NIL, meaning an empty object with the payment means code for SEPA credit transfer is created.
Return

This method returns self.

Description

Initializes a payment means object, optionally from a DataObject whose members have the same names as the payment means fields. The supported members are :Code, :Iban, :Bic, :AccountName, :Reference, :MandateId, :DebitedIban, :CreditorId and :Information. Each member is passed to the builder method of the same name, for example :setCode() or :setIban(). Members which are not present are treated as NIL.

If <oInit> is NIL, an empty object is created which can be filled via the builder methods. In both cases, the payment means code defaults to SEPA credit transfer if it is not specified. If <oInit> is neither NIL nor an object, a runtime error is raised.

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.