Method EinvoicePaymentMeans():from() Professional

Converts a value into a payment means object.

Syntax
:from( <xMeans> ) --> oMeans
Parameters
<xMeans>
The payment means, specified either as an EinvoicePaymentMeans object or as a DataObject with the corresponding members. Refer to the method :init() for a list of the supported members. If NIL is passed, an object with the payment means code for SEPA credit transfer is created.
Return

An EinvoicePaymentMeans object.

Description

Returns an EinvoicePaymentMeans object for the value passed. If <xMeans> is already an EinvoicePaymentMeans object, it is returned unchanged. Otherwise, a new object is created via EinvoicePaymentMeans():new( xMeans ). This allows a DataObject with the corresponding members to be used wherever payment means are expected, for example in AbstractEinvoice():setPaymentMeans().

If <xMeans> 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.