YMMECommerceOrder class

This class contains order information.

Instance methods

-initWithIdentifier:cartItems:

Initializes the instance of the YMMECommerceOrder class with order information.

-initWithIdentifier:cartItems:payload:

Initializes the instance of the YMMECommerceOrder class with order information.

-initWithIdentifier:cartItems:

Initializes the instance of the YMMECommerceOrder class with order information.

-initWithIdentifier:cartItems:payload:

Initializes the instance of the YMMECommerceOrder class with order information.

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:
  • The total payload size: Up to 20 KB.
  • The key size: Up to 100 characters.
  • The value size: Up to 1000 characters.
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:
  • The total payload size: Up to 20 KB.
  • The key size: Up to 100 characters.
  • The value size: Up to 1000 characters.

Method descriptions

-initWithIdentifier:cartItems:

- (instancetype)initWithIdentifier:(NSString *)identifier
                         cartItems:(NSArray<YMMECommerceCartItem *> *)cartItems

Initializes the instance of the YMMECommerceOrder class with order information.

Parameters:
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.

Parameters:
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:
  • The total payload size: Up to 20 KB.
  • The key size: Up to 100 characters.
  • The value size: Up to 1000 characters.
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:
  • The total payload size: Up to 20 KB.
  • The key size: Up to 100 characters.
  • The value size: Up to 1000 characters.

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

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.