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
StringDeclaration
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
PurchasedProducts 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
Discountfor the OrderDeclaration
Swift
public let discount: DiscountCoupon? -
The
OrderPaymentobjects for the Order.Declaration
Swift
public let payments: [OrderPayment]? -
Declaration
Swift
public init(from decoder: Decoder) throws
Order Structure Reference