AMAECommerceOrder class
This class contains order information.
Instance methods
Initializes the instance of the |
|
Initializes the instance of the |
Properties
Order ID. Allowed size: Up to 100 characters. |
|
A list of items in the cart. |
|
Additional information about the order. |
Method descriptions
-initWithIdentifier:cartItems:
- (instancetype)initWithIdentifier:(NSString *)identifier
cartItems:(NSArray<AMAECommerceCartItem *> *)cartItems
Initializes the instance of the AMAECommerceOrder
class with order information.
Parameters:
|
Order ID. Allowed size: Up to 100 characters. |
|
A list of items in the cart. |
Returns:
The AMAECommerceOrder
class instance.
-initWithIdentifier:cartItems:payload:
- (instancetype)initWithIdentifier:(NSString *)identifier
cartItems:(NSArray<AMAECommerceCartItem *> *)cartItems
payload:(nullable NSDictionary<NSString *, NSString *> *)payload
Initializes the instance of the AMAECommerceOrder
class with order information.
Parameters:
|
Order ID. Allowed size: Up to 100 characters. |
|
A list of items in the cart. |
|
Additional information about the order. |
Returns:
The AMAECommerceOrder
class instance.
Property descriptions
identifier
(nonatomic, copy, readonly) NSString *identifier
Order ID. Allowed size: Up to 100 characters.
cartItems
(nonatomic, copy, readonly) NSArray<AMAECommerceCartItem *> *cartItems
A list of items in the cart.
payload
(nonatomic, copy, readonly, nullable) nullable NSDictionary<NSString *, NSString *> *payload
Additional information about the order. Acceptable sizes:
- The total
payload
size: Up to 20 KB. - The
key
size: Up to 100 characters. - The
value
size: Up to 1000 characters.