BVTransactionEvent Class Reference
| Inherits from | BVBasePIIEvent : NSObject |
|---|---|
| Conforms to | BVAnalyticEvent |
| Declared in | BVTransactionEvent.h |
Overview
The trackConversionTransaction event should execute once the user has completed a purchase. This will often be after a payment has been processed or when loading of a payment confirmation view.
– initWithOrderId:orderTotal:orderItems:andOtherParams:
Required - The unique Id of the order.
- (nonnull id)initWithOrderId:(nonnull NSString *)orderId orderTotal:(double)total orderItems:(nonnull NSArray *)items andOtherParams:(nullable NSDictionary *)paramsParameters
orderId |
Required - The unique Id of the order. |
|---|---|
total |
Required - The total amount of the order. |
items |
Required - [BVTransactionItem] -An array of the individual items in the order. |
params |
Optional - Used to define any other transaction parameters such as user email. |
Return Value
the event object that can be used to submit to Bazaarvoice via the BVPixel API.
Declared In
BVTransactionEvent.h
– toRawNonPII
Creates a raw dictionary event that removes any possibly personally identifiable information. These events are fine to send with IDFA.
- (nonnull NSDictionary *)toRawNonPIIReturn Value
The fully created event that can be sent to Bazaarvoice Analytics.
Declared In
BVTransactionEvent.h
orderId
The unique Id of the order.
@property (nonnull, nonatomic, strong, readonly) NSString *orderIdDeclared In
BVTransactionEvent.h
total
The total amount of the order.
@property (nonatomic, assign, readonly) double totalDeclared In
BVTransactionEvent.h
items
[BVTransactionItem] - An array of the individual items in the order.
@property (nonnull, nonatomic, strong, readonly) NSArray<BVTransactionItem*> *itemsDeclared In
BVTransactionEvent.h
tax
The tax amount of the order.
@property (nonatomic, assign) double taxDeclared In
BVTransactionEvent.h
shipping
The shipping cost of the order.
@property (nonatomic, assign) double shippingDeclared In
BVTransactionEvent.h
city
The user’s city
@property (nullable, nonatomic, strong) NSString *cityDeclared In
BVTransactionEvent.h
state
The user’s state
@property (nullable, nonatomic, strong) NSString *stateDeclared In
BVTransactionEvent.h
country
The user’s country
@property (nullable, nonatomic, strong) NSString *countryDeclared In
BVTransactionEvent.h
currency
The currency used of the order. ISO 4217 alphabetic currency code.
@property (nullable, nonatomic, strong) NSString *currencyDeclared In
BVTransactionEvent.h