CardIncentiveRule

public struct CardIncentiveRule : Codable

Card incentive model.

  • Product id of the rule.

    Declaration

    Swift

    public var externalId: String
  • Type of incentive.

    Declaration

    Swift

    public var incentiveTypeString: String?
  • Type of incentive. Check incentiveTypeString if nil.

    Declaration

    Swift

    public var incentiveType: IncentiveType? { get }
  • Type of incentive.

    Declaration

    Swift

    public var transactionTypeString: String
  • Type of incentive. Check transactionTypeString if nil.

    Declaration

    Swift

    public var transactionType: TransactionType? { get }
  • A description of the incentive rule.

    Declaration

    Swift

    public var incentiveDescription: String
  • To which entities this rule apply.

    Declaration

    Swift

    public var scopeString: String
  • To which entities this rule apply. Check scopeString if nil.

    Declaration

    Swift

    public var scope: IncentiveScope? { get }
  • Use this incentive value type if you want a percentage to be applied on the total amount of the transaction.

    Declaration

    Swift

    public var value: ServiceFeeValue
  • Merchants to which the incentive rule apply.

    Declaration

    Swift

    public var merchants: Merchants?
  • Rules to expire the rule.

    Declaration

    Swift

    public var expirationRules: IncentiveExpirationRules?
  • Auxiliary constructor

    Declaration

    Swift

    public init(
        externalId: String,
        incentiveType: IncentiveType,
        transactionType: TransactionType,
        incentiveDescription: String,
        scope: IncentiveScope,
        value: ServiceFeeValue,
        merchants: Merchants? = nil,
        expirationRules: IncentiveExpirationRules? = nil)

    Parameters

    externalId

    Product id of the rule.

    incentiveType

    Type of incentive.

    transactionType

    Type of incentive.

    incentiveDescription

    A description of the incentive rule.

    scope

    To which entities this rule apply.

    value

    Use this incentive value type if you want a percentage to be applied on the total amount of the transaction.

    merchants

    Merchants to which the incentive rule apply.

    expirationRules

    Rules to expire the rule.