Response
public struct Response : Codable, Equatable
Struct representing Reward Response related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int -
The reward response redemption status.
Declaration
Swift
public var redemptionStatus: RedemptionStatus -
The name of the member who owns the reward response.
Declaration
Swift
public var memberName: String -
The id of the member who owns the reward response.
Declaration
Swift
public var memberId: String -
The amount needed for the redemption.
Declaration
Swift
public var redemptionAmount: String -
The metric name used for the redemption.
Declaration
Swift
public var metricName: String -
The redemption unit used.
Declaration
Swift
public var redemptionUnit: String -
The metric display name for the redemption.
Declaration
Swift
public var metricDisplayName: String -
The metric amount needed for the redemption.
Declaration
Swift
public var metricAmount: String -
The reward response stock keeping unit.
Declaration
Swift
public var sku: String -
The reward response integration integration id.
Declaration
Swift
public var integrationId: String -
The reward response shipping address.
Declaration
Swift
public var shippingAddress: Reward.Response.ShippingAddress? -
The redemption’s main image url.
Declaration
Swift
public var imageUrl: String -
The redemption’s thumbnail image url.
Declaration
Swift
public var thumbImageUrl: String -
Start date for using the redemption.
Declaration
Swift
public var useStart: String -
End date for using the redemption.
Declaration
Swift
public var useEnd: String -
Date when the redemption was created.
Declaration
Swift
public var createdAt: String -
Date when the redemption was updated.
Declaration
Swift
public var updatedAt: String -
Reward object data.
Declaration
Swift
public var reward: Reward? -
Certificate object data.
Declaration
Swift
public var certificate: Certificate? -
Coupon object data.
Declaration
Swift
public var coupon: Coupon? -
Notes of the redemption
Declaration
Swift
public var notes: [AnyCodable] -
init(id:redemptionStatus: memberName: memberId: redemptionAmount: metricName: redemptionUnit: metricDisplayName: metricAmount: sku: integrationId: shippingAddress: imageUrl: thumbImageUrl: useStart: useEnd: createdAt: updatedAt: reward: certificate: coupon: notes: ) Undocumented
Declaration
Swift
public init(id: Int, redemptionStatus: RedemptionStatus, memberName: String, memberId: String, redemptionAmount: String, metricName: String, redemptionUnit: String, metricDisplayName: String, metricAmount: String, sku: String, integrationId: String, shippingAddress: ShippingAddress?, imageUrl: String, thumbImageUrl: String, useStart: String, useEnd: String, createdAt: String, updatedAt: String, reward: Reward?, certificate: Certificate?, coupon: Coupon?, notes: [AnyCodable]) -
Enum representing status of the redemption.
See moreDeclaration
Swift
public enum RedemptionStatus : String, Codable -
The shipping address of the reward response.
See moreDeclaration
Swift
public struct ShippingAddress : Codable, Equatable -
Declaration
Swift
public init(from decoder: Decoder) throws
View on GitHub
Response Structure Reference