ORAProductMeta Class Reference
Inherits from | NSObject |
---|---|
Declared in | ORAEventSupport.h |
Overview
ORAProductMeta is a wrapper class to store product info attached to each event. For product related events, start by creating a new instance of ORAProductMeta, which will subsequently be attached to the event.
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Creates a ORAProductMeta object that stores information about a given piece of product
+ (instancetype)eventProductForType:(NSString *)type subtotal:(NSArray *)subtotal units:(NSArray *)units productId:(NSArray *)productId productSku:(NSArray *)productSku
Parameters
type
|
Specifies a type of the product event that occurred, such as v = product view, a = product add, r = product remove. |
---|---|
subtotal
|
Specifies a subtotal of the product event that occurred. For example, this parameter can specify total price of products, which is calculated by multiplying units by price. |
units
|
Specifies a units of the product event that occurred. For example, this parameter can specify the integer occult of units. |
productId
|
Specifies an id of the product event that occurred. |
productSku
|
Specifies a sku of the product event that occurred. For example, this parameter can specify the product sku, which is string representing of the product unique identifier in ecommerce shop. |
Return Value
The ORAProductMeta object describing your product
Declared In
ORAEventSupport.h
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Creates a ORAProductMeta object that stores information about a given piece of product
- (instancetype)initWithProductType:(NSString *)type subtotal:(NSArray *)subtotal units:(NSArray *)units productId:(NSArray *)productId productSku:(NSArray *)productSku
Parameters
type
|
Specifies a type of the product event that occurred, such as v = product view, a = product add, r = product remove. |
---|---|
subtotal
|
Specifies a subtotal of the product event that occurred. For example, this parameter can specify total price of products, which is calculated by multiplying units by price. |
units
|
Specifies a units of the product event that occurred. For example, this parameter can specify the integer occult of units. |
productId
|
Specifies an id of the product event that occurred. |
productSku
|
Specifies a sku of the product event that occurred. For example, this parameter can specify the product sku, which is string representing of the product unique identifier in ecommerce shop. |
Return Value
The ORAProductMeta object describing your product
Declared In
ORAEventSupport.h