Order
public struct Order : Decodable, Equatable, Hashable
Holds information about an order
-
Declaration
Swift
public static func == (lhs: Order, rhs: Order) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
The identification
String
Declaration
Swift
public let id: String
-
Total amount
Declaration
Swift
public let total: Price
-
Loyalty points earned from the order
Declaration
Swift
public let pointsEarned: Price?
-
Order number for confirmation purposes
Declaration
Swift
public let referenceNumber: String?
-
The
PurchasedProduct
s that were included in the orderDeclaration
Swift
public let products: [PurchasedProduct]
-
The current status
Declaration
Swift
public let status: OrderStatus
-
The date and time the order was created
Declaration
Swift
public let createdDate: Date
-
The email of the primary contact
Declaration
Swift
public let contact: CustomerContact
-
The additional description needed for some orders
Declaration
Swift
public var description: String?
-
The optional
Discount
for the OrderDeclaration
Swift
public let discount: DiscountCoupon?
-
The
OrderPayment
objects for the Order.Declaration
Swift
public let payments: [OrderPayment]?
-
Declaration
Swift
public init(from decoder: Decoder) throws