PayerCost

constructor(instalments: Int? = null, installmentAmount: Float? = null, instalmentsRate: Float? = null, installmentRateCollector: List<String>? = null, totalAmount: Float? = null, minAllowedAmount: Float? = null, maxAllowedAmount: Float? = null, discountRate: Float? = null, reimbursementRate: Float? = null, labels: List<String>? = null, paymentMethodOptionId: String? = null)

Parameters

instalments

Number of installments in this plan

installmentAmount

Amount to be paid in each installment

instalmentsRate

Interest rate applied to the installments

installmentRateCollector

List of entities collecting the installment rates

totalAmount

Total amount to be paid including all fees

minAllowedAmount

Minimum amount allowed for this installment plan

maxAllowedAmount

Maximum amount allowed for this installment plan

discountRate

Discount rate applied to the total amount

reimbursementRate

Rate for reimbursement if applicable

labels

Additional labels or tags for this installment plan

paymentMethodOptionId

Unique identifier for this payment option

Example:

val payerCost = PayerCost(
instalments = 3,
installmentAmount = 33.33f,
totalAmount = 100.0f,
instalmentsRate = 0.0f,
labels = listOf("interest_free")
)