YMMECommerceOrder class
This class contains order information.
Instance methods
-initWithIdentifier:cartItems: | Initializes the instance of the |
-initWithIdentifier:cartItems:payload: | Initializes the instance of the |
-initWithIdentifier:cartItems: | Initializes the instance of the |
-initWithIdentifier: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
-initWithIdentifier:cartItems:
- (instancetype)initWithIdentifier:(NSString *)identifier
cartItems:(NSArray<YMMECommerceCartItem *> *)cartItems
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.
-initWithIdentifier:cartItems:payload:
- (instancetype)initWithIdentifier:(NSString *)identifier
cartItems:(NSArray<YMMECommerceCartItem *> *)cartItems
payload:(nullable NSDictionary<NSString *, NSString *> *)payload
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
(nonatomic, copy, readonly) NSString *identifier
Order ID. Allowed size: Up to 100 characters.
cartItems
(nonatomic, copy, readonly) NSArray<YMMECommerceCartItem *> *cartItems
A list of items in the cart.
payload
(nonatomic, copy, readonly, nullable) nullable NSDictionary<NSString *, NSString *> *payload
- The total
payload
size: Up to 20 KB. - The
key
size: Up to 100 characters. - The
value
size: Up to 1000 characters.