Response

public struct Response : Codable, Equatable

Struct representing Offer Response related values.

  • id

    Value representing the entity id.

    Declaration

    Swift

    public var id: Int
  • Certificate object data.

    Declaration

    Swift

    public var certificate: Certificate?
  • Coupon object data.

    Declaration

    Swift

    public var coupon: Coupon?
  • The offer object attached to the offer response.

    Declaration

    Swift

    public var offer: Offer?
  • The offer response’s processing status.

    Declaration

    Swift

    public var processingStatus: String
  • Shows if the offer response is respondable or not.

    Declaration

    Swift

    public var respondable: Bool
  • The usage end date of the validity of the Offer.

    Declaration

    Swift

    public var usageEndDate: String
  • The usage start date of the validity of the Offer.

    Declaration

    Swift

    public var usageStartDate: String
  • Undocumented

    Declaration

    Swift

    public init(id: Int,
                certificate: Certificate?,
                coupon: Coupon?,
                offer: Offer?,
                processingStatus: String,
                respondable: Bool,
                usageEndDate: String,
                usageStartDate: String)
  • Declaration

    Swift

    public init(from decoder: Decoder) throws