Class PurchaseEvent
Send when a user makes a purchase using real currency.
Inheritance
PurchaseEvent
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class PurchaseEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable
Fields
_city
Declaration
Field Value
_country
Declaration
protected string _country
Field Value
_currency
Declaration
protected string _currency
Field Value
_isGross
Declaration
Field Value
_itemAmount
Declaration
protected int _itemAmount
Field Value
_itemName
Declaration
protected string _itemName
Field Value
_itemType
Declaration
protected string _itemType
Field Value
Declaration
protected string _promouid
Field Value
_region
Declaration
Field Value
_revenue
Declaration
Field Value
_token
Declaration
Field Value
_transactionId
Declaration
protected string _transactionId
Field Value
CITY_KEY
Declaration
public const string CITY_KEY = "city"
Field Value
COUNTRY_KEY
Declaration
public const string COUNTRY_KEY = "country"
Field Value
CURRENCY_KEY
Declaration
public const string CURRENCY_KEY = "currency"
Field Value
IS_GROSS_KEY
Declaration
public const string IS_GROSS_KEY = "isGross"
Field Value
ITEM_AMOUNT_KEY
Declaration
public const string ITEM_AMOUNT_KEY = "itemAmount"
Field Value
ITEM_NAME_KEY
Declaration
public const string ITEM_NAME_KEY = "itemName"
Field Value
ITEM_TYPE_KEY
Declaration
public const string ITEM_TYPE_KEY = "itemType"
Field Value
Declaration
public const string PROMOUID_KEY = "promoUid"
Field Value
REGION_KEY
Declaration
public const string REGION_KEY = "region"
Field Value
REVENUE_KEY
Declaration
public const string REVENUE_KEY = "revenue"
Field Value
TOKEN_KEY
Declaration
public const string TOKEN_KEY = "token"
Field Value
TRANSACTION_ID_KEY
Declaration
public const string TRANSACTION_ID_KEY = "transactionId"
Field Value
Properties
EventName
Declaration
public override string EventName { get; }
Property Value
Overrides
Methods
EventContent()
Declaration
protected override Dictionary<string, object> EventContent()
Returns
Overrides
Initialize(String, String, Int32, Single, String, String, String, Boolean, String, String, String, String)
Declaration
public virtual void Initialize(string itemType, string itemName, int itemAmount, float revenue, string currency, string transactionId, string token, bool isGross, string promouid = "", string city = "", string region = "", string country = "")
Parameters
Type |
Name |
Description |
String |
itemType |
The type of item being purchased. gems, promo, event_promo
|
String |
itemName |
The name of the item being purchased. com.canary.gems.small, pack-1, event_promo_facebook
|
Int32 |
itemAmount |
The number of the item included in the purchase.
|
Single |
revenue |
The price of the item in the users local currency. This is currently the same value as cost
|
String |
currency |
The three letter ISO currency code for the currency used to make the purchase. USD, CAD, MXN
|
String |
transactionId |
The transaction ID generated by the platform.
|
String |
token |
The purchase token generated by the platform. This should be data that can be used to look up purchase history on the platforms administration pages.
|
Boolean |
isGross |
Whether the purchase data is a gross or net amount.
|
String |
promouid |
The unique id associated with every promo. (Not the product sku purchased)
|
String |
city |
The city the purchase occurred within. This is optional.
|
String |
region |
The region the purchase occurred within. This is optional.
|
String |
country |
The country the purchase occurred within. This is optional.
|
Implements
IInjectable