OPPInstallmentPlan

@objc
public final class OPPInstallmentPlan : NSObject

This class represents the single Installment plan details.

  • planId: unique for each plan

    Declaration

    Swift

    @objc
    public let planId: String
  • name: name of the plan

    Declaration

    Swift

    @objc
    public let name: String
  • numberOfInstallments: indicate the number of installments

    Declaration

    Swift

    @objc
    public let numberOfInstallments: Int
  • currency: indicate the currency eg: USD

    Declaration

    Swift

    @objc
    public let currency: String
  • terms: indicate the terms and conditions for specific plan.

    Declaration

    Swift

    @objc
    public let terms: [OPPInstallmentTerm]
  • totalAmountExcludingUpFrontFees: total amount excludes up front fees.

    Declaration

    Swift

    @objc
    public let totalAmountExcludingUpFrontFees: Double
  • frequency: It can be Monthly.

    Declaration

    Swift

    @objc
    public let frequency: String
  • annualPercentageRate: annual percentage rate

    Declaration

    Swift

    @objc
    public let annualPercentageRate: Int
  • totalUpFrontFees: total up front fees.

    Declaration

    Swift

    @objc
    public let totalUpFrontFees: Double
  • Creates an object representing OPPInstallmentPlan configuration.

    Declaration

    Swift

    @objc
    public init(planId: String,
                name: String,
                numberOfInstallments: Int,
                currency: String,
                terms: [OPPInstallmentTerm],
                totalAmountExcludingUpFrontFees: Double,
                frequency: String,
                annualPercentageRate: Int,
                totalUpFrontFees: Double)

    Parameters

    planId

    unique plan id.

    name

    name of the installment plan.

    numberOfInstallments

    number of installment eg: 4 or 6.

    currency

    eg: USD

    terms

    list of terms & condition in different languages.

    totalAmountExcludingUpFrontFees

    total amount excludes up front fees..

    frequency

    It can be Monthly.

    annualPercentageRate

    annual percentage rate.

    totalUpFrontFees

    total up front fees.

    Return Value

    Returns an object representing OPPInstallmentPlan configuration.