InstallmentConfiguration
public struct InstallmentConfiguration
Configuration type to specify installment options.
-
Creates a new installment configuration by providing both the card type based options and default options for the rest of the card types.
Declaration
Swift
public init(cardBasedOptions: [CardType : InstallmentOptions], defaultOptions: InstallmentOptions)
Parameters
cardBasedOptions
Options based on the card type. Must not be empty.
defaultOptions
Default options for cards that are not specified in
cardBasedOptions
. -
Creates a new installment configuration by providing the card based options.
Declaration
Swift
public init(cardBasedOptions: [CardType : InstallmentOptions])
Parameters
cardBasedOptions
Options based on the card type. Must not be empty.
-
Creates a new installment configuration by providing the default options.
Declaration
Swift
public init(defaultOptions: InstallmentOptions)
Parameters
defaultOptions
Default options to apply to all card types.