AMAECommerceCartItem 类
此类包含关于添加到购物车的商品的信息。
Instance methods
|
用购物车中添加的商品信息初始化 |
Properties
|
Product. The |
|
|
Quantity. |
|
|
购物车中商品的总价格。 这个价格考虑了数量、应应用的折扣等因素。 The |
|
|
购物车的流量来源。 The |
Method descriptions
-初始化产品:引荐者:数量:收入:
- (instancetype)initWithProduct:(AMAECommerceProduct *)product
quantity:(NSDecimalNumber *)quantity
revenue:(AMAECommercePrice *)revenue
referrer:(nullable AMAECommerceReferrer *)referrer;
用购物车中添加的商品信息初始化 AMAECommerceCartItem 类的实例。
参数:
|
|
Product. The |
|
|
Quantity. |
|
|
购物车中商品的总价格。 这个价格考虑了数量、将应用的折扣等因素。 The |
|
|
购物车的流量来源。 The |
返回:
该 AMAECommerceCartItem 类实例。
Property descriptions
product
(nonatomic, strong, readonly) AMAECommerceProduct *产品
Product. 该 AMAECommerceProduct 类实例。
quantity
(nonatomic, strong, readonly) NSDecimalNumber *数量
Quantity.
revenue
(nonatomic, strong, readonly) AMAECommercePrice *收入
购物车中商品的总价格。 这个价格考虑了数量、将应用的折扣等因素。 The AMAECommercePrice 类实例。
referrer
(nonatomic, strong, 只读, 可空) AMAECommerceReferrer *引用者
购物车流量的来源。 The AMAECommerceReferrer 类实例。