DiscountCoupon

public struct DiscountCoupon : Decodable

Holds information about a discount.

  • DiscountStatus of the current discount

    Declaration

    Swift

    public let status: DisountCouponStatus
  • The title or name of the Discount. Explains what the Discount is about.

    Declaration

    Swift

    public let title: String
  • The Terms and Conditions URL for the Discount

    Declaration

    Swift

    public let termsAndConditions: URL
  • The amount of the Discount

    Declaration

    Swift

    public let amount: Price
  • The Discount token

    Declaration

    Swift

    public let discountToken: String
  • Declaration

    Swift

    public init(from decoder: Decoder) throws