InstallmentOptions

public struct InstallmentOptions : Equatable

Details to configure Installment Options. These always include regular monthly installments, but in some countries revolving option may be added.

  • Creates a new instance of installment options.

    Declaration

    Swift

    public init(monthValues: [UInt], includesRevolving: Bool)

    Parameters

    monthValues

    Allowed installment month values, such as [2, 3] or [3, 6, 9] etc. Must not be empty and values must be greater than 1.

    includesRevolving

    Determines if revolving installment is an option.

  • Convenience initializer to specify the maximum allowed installment month directly, creating a serial installment options of 2 to maxInstallmentMonth.

    Declaration

    Swift

    public init(maxInstallmentMonth: UInt, includesRevolving: Bool)

    Parameters

    maxInstallmentMonth

    Maximum allowed installment month. Resulting monthValues array will be [2 , 3...maxInstallmentMonth]. Must be greater than 1.

    includesRevolving

    Determines if revolving installment is an option.