YMMECommerceOrder class
This class contains order information.
Instance methods
init(identifier:cartItems:) | Initializes the instance of the |
init(identifier:cartItems:payload:) | Initializes the instance of the |
init(identifier:cartItems:) | Initializes the instance of the |
init(identifier:cartItems:payload:) | Initializes the instance of the |
Properties
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
payload | Additional information about the order. Acceptable sizes:
|
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
payload | Additional information about the order. Acceptable sizes:
|
Method descriptions
init(identifier:cartItems:)
init(identifier: String, cartItems: [YMMECommerceCartItem])
Initializes the instance of the YMMECommerceOrder
class with order information.
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
Returns:
The YMMECommerceOrder
class instance.
init(identifier:cartItems:payload:)
init(identifier: String, cartItems: [YMMECommerceCartItem], payload: [String: String]?)
Initializes the instance of the YMMECommerceOrder
class with order information.
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
payload | Additional information about the order. Acceptable sizes:
|
identifier | Order ID. Allowed size: Up to 100 characters. |
cartItems | A list of items in the cart. |
payload | Additional information about the order. Acceptable sizes:
|
Returns:
The YMMECommerceOrder
class instance.
Property descriptions
identifier
var identifier: String { get }
Order ID. Allowed size: Up to 100 characters.
cartItems
var cartItems: [YMMECommerceCartItem] { get }
A list of items in the cart.
payload
var payload: [String: String]? { get }
- The total
payload
size: Up to 20 KB. - The
key
size: Up to 100 characters. - The
value
size: Up to 1000 characters.