YMMECommerceCartItem class
This class contains information about items added to the cart.
Instance methods
-initWithProduct:quantity:revenue:referrer: | Initializes the instance of the |
-initWithProduct:quantity:revenue:referrer: | Initializes the instance of the |
Properties
product | Product. The |
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 |
referrer | The source of traffic to the cart. The |
product | Product. The |
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 |
referrer | The source of traffic to the cart. The |
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.
product | Product. The |
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 |
referrer | The source of traffic to the cart. The |
product | Product. The |
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 |
referrer | The source of traffic to the cart. The |
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.