YMMECommerceCartItem class

This class contains information about items added to the cart.

Instance methods

-initWithProduct:quantity:revenue:referrer:

Initializes the instance of the YMMECommerceCartItem class with information about items added to the cart.

-initWithProduct:quantity:revenue:referrer:

Initializes the instance of the YMMECommerceCartItem class with information about items added to the cart.

Properties

product

Product. The YMMECommerceProduct class instance.

quantity

Quantity.

revenue

The total price of the product in the cart. This price factors in the quantity, discounts to be applied, and so on. The YMMECommercePrice class instance.

referrer

The source of traffic to the cart. The YMMECommerceReferrer class instance.

product

Product. The YMMECommerceProduct class instance.

quantity

Quantity.

revenue

The total price of the product in the cart. This price factors in the quantity, discounts to be applied, and so on. The YMMECommercePrice class instance.

referrer

The source of traffic to the cart. The YMMECommerceReferrer class instance.

Method descriptions

-initWithProduct:referrer:quantity:revenue:

- (instancetype)initWithProduct:(YMMECommerceProduct *)product
                       quantity:(NSDecimalNumber *)quantity
                        revenue:(YMMECommercePrice *)revenue
                       referrer:(nullable YMMECommerceReferrer *)referrer;

Initializes the instance of the YMMECommerceCartItem class with information about items added to the cart.

Parameters:
product

Product. The YMMECommerceProduct class instance.

quantity

Quantity.

revenue

The total price of the product in the cart. This price factors in the quantity, discounts to be applied, and so on. The YMMECommercePrice class instance.

referrer

The source of traffic to the cart. The YMMECommerceReferrer class instance.

product

Product. The YMMECommerceProduct class instance.

quantity

Quantity.

revenue

The total price of the product in the cart. This price factors in the quantity, discounts to be applied, and so on. The YMMECommercePrice class instance.

referrer

The source of traffic to the cart. The YMMECommerceReferrer class instance.

Returns:

The YMMECommerceCartItem class instance.

Property descriptions

product

(nonatomic, strong, readonly) YMMECommerceProduct *product

Product. The YMMECommerceProduct class instance.

quantity

(nonatomic, strong, readonly) NSDecimalNumber *quantity

Quantity.

revenue

(nonatomic, strong, readonly) YMMECommercePrice *revenue

The total price of the product in the cart. This price factors in the quantity, discounts to be applied, and so on. The YMMECommercePrice class instance.

referrer

(nonatomic, strong, readonly, nullable) YMMECommerceReferrer *referrer

The source of traffic to the cart. The YMMECommerceReferrer class instance.