CardIncentivesRules

public enum CardIncentivesRules : Codable

Card incentive value.

  • Array of incentive rule unique identifiers.

    Declaration

    Swift

    case ids([String])
  • Array of incentives.

    Declaration

    Swift

    case rules([CardIncentiveRule])
  • Empty or unknown.

    Declaration

    Swift

    case none
  • Creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes the instance by encoding to the given decoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.