Order Class Reference
Order
Represents an order placed by the user to be reported using ButtonMerchant.reportOrder(order).
currencyCodeThe ISO 4217 currency code (default is USD).
Declaration
customerOrderIdThe customer-facing order id.
Declaration
customerThe customer related to the order
Declaration
init(id:purchaseDate:lineItems:)Initializes an order object with the passed parameters.
id: The order identifier (required).
- purchaseDate: The date of the purchase for the order.
- lineItems: A list of the line item details that comprise the order.
Declaration
CustomerRepresents a customer in the order.
Declaration
LineItemRepresents a line item in the order.
Declaration
Deprecations
init(id:amount:currencyCode:)Deprecated.
If you’re migrating to client side order reporting, please use init(id:purchaseDate:lineItems:) instead.