Installment
data class Installment(val paymentMethodId: String? = null, val paymentTypeId: String? = null, val issuer: Issuer? = null, val processingMode: String? = null, val merchantAccountId: String? = null, val payerCost: List<PayerCost>? = null, val agreements: List<Agreements>? = null)
Represents installment options and payment details for a specific payment method. This class contains comprehensive information about available installment plans, including costs, rates, and processing details for a payment method. It helps merchants and users understand the total cost and payment options.
Parameters
paymentMethodId
Unique identifier for the payment method (e.g., "visa", "master")
paymentTypeId
Type of payment (e.g., "credit_card", "debit_card")
issuer
Information about the card issuer or financial institution
processingMode
Mode of payment processing (e.g., "aggregator", "gateway")
merchantAccountId
Unique identifier for the merchant's account
payerCost
List of available installment options with their costs
agreements
List of agreements and terms for the payment method
Example:
val installment = Installment(
paymentMethodId = "visa",
paymentTypeId = "credit_card",
issuer = Issuer(
id = "123",
thumbnail = "https://example.com/visa.png"
),
payerCost = listOf(
PayerCost(
instalments = 1,
installmentAmount = 100.0f,
totalAmount = 100.0f
)
)
)
Content copied to clipboard