PayerCost

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

Represents detailed cost information for an installment plan. This class contains all financial details related to an installment option, including rates, amounts, and payment terms.

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")
)

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
val discountRate: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val instalments: Int? = null
Link copied to clipboard
val instalmentsRate: Float? = null
Link copied to clipboard
val labels: List<String>? = null
Link copied to clipboard
val maxAllowedAmount: Float? = null
Link copied to clipboard
val minAllowedAmount: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val totalAmount: Float? = null