InstallmentConfiguration

data class InstallmentConfiguration(val defaultOptions: InstallmentOptions.DefaultInstallmentOptions? = null, val cardBasedOptions: List<InstallmentOptions.CardBasedInstallmentOptions> = emptyList(), val showInstallmentAmount: Boolean = false) : Parcelable

Configuration class for Installments in Card Component. This class can be used to define installment options for all cards or specific CardBrand. defaultOptions and cardBasedOptions can be combined together. In that case InstallmentOptions from cardBasedOptions will override the option defined in defaultOptions.

Note: cardBasedOptions should contain only one InstallmentOptions.CardBasedInstallmentOptions instance for a CardBrand.

Parameters

defaultOptions

Installment Options to be used for all card types.

cardBasedOptions

Installment Options to be used for specific card types.

showInstallmentAmount

A flag to show the installment amount.

Constructors

Link copied to clipboard
constructor(defaultOptions: InstallmentOptions.DefaultInstallmentOptions? = null, cardBasedOptions: List<InstallmentOptions.CardBasedInstallmentOptions> = emptyList(), showInstallmentAmount: Boolean = false)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)