Overview
The UBL Builder library provides two payment-related classes:- PaymentMeans - Describes the means or method of payment (e.g., bank transfer, credit card)
- PaymentType - Describes actual payment transactions and their details
PaymentMeans Class
Import
Constructor Parameters
A code signifying the type of this means of payment (e.g., “30” for credit transfer, “48” for credit card)
The payee’s financial account (bank account information)
An identifier for this means of payment
The date on which payment is due for this means of payment
A code signifying the payment channel for this means of payment
An identifier for the payment instruction
Free-form text conveying payment instructions
An identifier for a payment made using this means of payment
Common Payment Means Codes
30- Credit transfer31- Debit transfer42- Payment to bank account48- Bank card49- Direct debit58- SEPA credit transfer
PaymentType Class
Import
Constructor Parameters
An identifier for this payment
The amount of this payment
The date on which this payment was made
The time at which this payment was made
An identifier for the payment instruction
The date on which this payment was received
Usage Examples
PaymentType is also exported as PrepaidPayment to provide semantic clarity when representing advance payments or deposits. Both exports reference the same class implementation.
Payment Instructions Best Practices
- Payment Terms: Clearly specify payment due dates and terms
- Account Details: Provide complete and accurate bank account information
- References: Include instructions for payment references to ensure proper allocation
- Multiple Methods: You can specify multiple payment means to give customers options
- Prepaid Amounts: When recording prepaid amounts, ensure they’re properly reflected in the LegalMonetaryTotal
Related Components
- PayeeFinancialAccount - Bank account details for receiving payment
- LegalMonetaryTotal - Includes prepaid amounts and payable amounts
- PaymentTerms - Detailed payment terms and conditions
- Invoice - Parent document containing payment information