Class InstallmentParams
-
- All Implemented Interfaces:
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class InstallmentParams
Component params 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 InstallmentOptionParams from cardBasedOptions will override the option defined in defaultOptions.
Note: cardBasedOptions should contain only one InstallmentOptionParams.CardBasedInstallmentOptions instance for a CardBrand.
-
-
Field Summary
Fields Modifier and Type Field Description private final InstallmentOptionParams.DefaultInstallmentOptionsdefaultOptionsprivate final List<InstallmentOptionParams.CardBasedInstallmentOptions>cardBasedOptionsprivate final Amountamountprivate final LocaleshopperLocaleprivate final BooleanshowInstallmentAmount
-
Constructor Summary
Constructors Constructor Description InstallmentParams(InstallmentOptionParams.DefaultInstallmentOptions defaultOptions, List<InstallmentOptionParams.CardBasedInstallmentOptions> cardBasedOptions, Amount amount, Locale shopperLocale, Boolean showInstallmentAmount)
-
Method Summary
Modifier and Type Method Description final InstallmentOptionParams.DefaultInstallmentOptionsgetDefaultOptions()final List<InstallmentOptionParams.CardBasedInstallmentOptions>getCardBasedOptions()final AmountgetAmount()final LocalegetShopperLocale()final BooleangetShowInstallmentAmount()-
-
Constructor Detail
-
InstallmentParams
InstallmentParams(InstallmentOptionParams.DefaultInstallmentOptions defaultOptions, List<InstallmentOptionParams.CardBasedInstallmentOptions> cardBasedOptions, Amount amount, Locale shopperLocale, Boolean showInstallmentAmount)
- Parameters:
defaultOptions- Installment Options to be used for all card types.cardBasedOptions- Installment Options to be used for specific card types.amount- Amount of the transaction.shopperLocale- The Locale of the shopper.showInstallmentAmount- A flag to show the installment amount.
-
-
Method Detail
-
getDefaultOptions
final InstallmentOptionParams.DefaultInstallmentOptions getDefaultOptions()
-
getCardBasedOptions
final List<InstallmentOptionParams.CardBasedInstallmentOptions> getCardBasedOptions()
-
getAmount
final Amount getAmount()
-
getShopperLocale
final Locale getShopperLocale()
-
getShowInstallmentAmount
final Boolean getShowInstallmentAmount()
-
-
-
-