YMMECommerceCartItem class
This class contains information about items added to the cart.
Instance methods
init(product:quantity:revenue:referrer:) | Initializes the instance of the |
init(product: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
init(product:quantity:revenue:referrer:)
init(product: YMMECommerceProduct, quantity: NSDecimalNumber, revenue: YMMECommercePrice, referrer: YMMECommerceReferrer?)
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
var product: YMMECommerceProduct { get }
Product. The YMMECommerceProduct
class instance.
quantity
var quantity: NSDecimalNumber { get }
Quantity.
revenue
var revenue: YMMECommercePrice { get }
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
var referrer: YMMECommerceReferrer? { get }
The source of traffic to the cart. The YMMECommerceReferrer
class instance.