Order
public struct Order : Codable, Equatable
Struct representing Order related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Order Transaction Type.
Declaration
Swift
public var transactionType: String
-
Order Transaction Date.
Declaration
Swift
public var orderedAt: String
-
Order Preferred Receive Date.
Declaration
Swift
public var preferredReceiveAt: String
-
Order Source Name.
Declaration
Swift
public var sourceName: String
-
Order Status.
Declaration
Swift
public var orderStatus: String
-
Order Integration Id.
Declaration
Swift
public var integrationId: String
-
Order Place Integration Id.
Declaration
Swift
public var placeIntegrationId: String
-
Order Terminal Name.
Declaration
Swift
public var terminalName: String
-
Order Transaction ID.
Declaration
Swift
public var transactionId: String
-
Order Business Date.
Declaration
Swift
public var businessDate: String
-
Order Metric Name.
Declaration
Swift
public var metricName: String
-
Order Metric Amount.
Declaration
Swift
public var metricAmount: String
-
Order Currency.
Declaration
Swift
public var currency: String
-
Order Eligible Subtotal.
Declaration
Swift
public var eligibleSubtotal: String
-
Order Subtotal.
Declaration
Swift
public var subtotal: String
-
Order Overall discount.
Declaration
Swift
public var overallDiscount: String
-
Order Tip Amount.
Declaration
Swift
public var tipAmount: String
-
Order Service Charge.
Declaration
Swift
public var serviceCharge: String
-
Order Tax.
Declaration
Swift
public var tax: String
-
Order Total Amount.
Declaration
Swift
public var totalAmount: String
-
Order Created Date.
Declaration
Swift
public var createdAt: String
-
Order Updated Date.
Declaration
Swift
public var updatedAt: String
-
Order Item Count.
Declaration
Swift
public var itemCount: Int
-
List of Order Item.
Declaration
Swift
public var items: [Order.Item]
-
Order Overall Item Count.
Declaration
Swift
public var overallItemCount: Int
-
Place of order.
Declaration
Swift
public var place: Order.Place?
-
init(id:
transactionType: orderedAt: preferredReceiveAt: sourceName: orderStatus: integrationId: placeIntegrationId: terminalName: transactionId: businessDate: metricName: metricAmount: currency: eligibleSubtotal: subtotal: overallDiscount: tipAmount: serviceCharge: tax: totalAmount: createdAt: updatedAt: itemCount: items: overallItemCount: place: ) Undocumented
Declaration
Swift
public init(id: Int, transactionType: String, orderedAt: String, preferredReceiveAt: String, sourceName: String, orderStatus: String, integrationId: String, placeIntegrationId: String, terminalName: String, transactionId: String, businessDate: String, metricName: String, metricAmount: String, currency: String, eligibleSubtotal: String, subtotal: String, overallDiscount: String, tipAmount: String, serviceCharge: String, tax: String, totalAmount: String, createdAt: String, updatedAt: String, itemCount: Int, items: [Order.Item], overallItemCount: Int, place: Order.Place?)
-
Struct representing Order Item related values.
See moreDeclaration
Swift
public struct Item : Codable, Equatable
-
Place object specifically for Order object.
Note
This structure is different from thePlace
object in thePlaces
Module, but its id property can be used to obtain aPlace
object from the API.Declaration
Swift
public struct Place : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws