Show / Hide Table of Contents

    Class PurchaseFailedEvent

    Send when an attempted purchase using real money fails.

    Inheritance
    Object
    AnalyticsEventBase
    PurchaseFailedEvent
    Implements
    IAnalyticsEvent
    IInjectable
    Inherited Members
    AnalyticsEventBase.UUID_KEY
    AnalyticsEventBase.EVENT_NAME_KEY
    AnalyticsEventBase.TIMESTAMP_KEY
    AnalyticsEventBase.DEVICE_ID_KEY
    AnalyticsEventBase.DATA_MAX_LENGTH
    AnalyticsEventBase.TimestampInMilliseconds
    AnalyticsEventBase._uuid
    AnalyticsEventBase._timestampInMilliseconds
    AnalyticsEventBase.Inject(IResolver)
    AnalyticsEventBase.Initialize(Int64, Dictionary<String, Object>)
    AnalyticsEventBase.IncludeDeviceId
    AnalyticsEventBase.GetEventData()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Analytics
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class PurchaseFailedEvent : AnalyticsEventBase, IAnalyticsEvent, IInjectable

    Fields

    _currency

    Declaration
    protected string _currency
    Field Value
    Type Description
    String

    _failureReason

    Declaration
    protected string _failureReason
    Field Value
    Type Description
    String

    _itemAmount

    Declaration
    protected int _itemAmount
    Field Value
    Type Description
    Int32

    _itemName

    Declaration
    protected string _itemName
    Field Value
    Type Description
    String

    _itemType

    Declaration
    protected string _itemType
    Field Value
    Type Description
    String

    _promouid

    Declaration
    protected string _promouid
    Field Value
    Type Description
    String

    _revenue

    Declaration
    protected float _revenue
    Field Value
    Type Description
    Single

    _transactionId

    Declaration
    protected string _transactionId
    Field Value
    Type Description
    String

    CURRENCY_KEY

    Declaration
    public const string CURRENCY_KEY = "currency"
    Field Value
    Type Description
    String

    FAILURE_REASON_KEY

    Declaration
    public const string FAILURE_REASON_KEY = "failureReason"
    Field Value
    Type Description
    String

    ITEM_AMOUNT_KEY

    Declaration
    public const string ITEM_AMOUNT_KEY = "itemAmount"
    Field Value
    Type Description
    String

    ITEM_NAME_KEY

    Declaration
    public const string ITEM_NAME_KEY = "itemName"
    Field Value
    Type Description
    String

    ITEM_TYPE_KEY

    Declaration
    public const string ITEM_TYPE_KEY = "itemType"
    Field Value
    Type Description
    String

    PROMOUID_KEY

    Declaration
    public const string PROMOUID_KEY = "promoUid"
    Field Value
    Type Description
    String

    REVENUE_KEY

    Declaration
    public const string REVENUE_KEY = "revenue"
    Field Value
    Type Description
    String

    TRANSACTION_ID_KEY

    Declaration
    public const string TRANSACTION_ID_KEY = "transactionId"
    Field Value
    Type Description
    String

    Properties

    EventName

    Declaration
    public override string EventName { get; }
    Property Value
    Type Description
    String
    Overrides
    AnalyticsEventBase.EventName

    Methods

    EventContent()

    Declaration
    protected override Dictionary<string, object> EventContent()
    Returns
    Type Description
    Dictionary<String, Object>
    Overrides
    AnalyticsEventBase.EventContent()

    Initialize(String, String, Int32, Single, String, String, String, String)

    Initializes the event.

    Declaration
    public virtual void Initialize(string itemType, string itemName, int itemAmount, float revenue, string currency, string transactionId, string promouid, string failureReason)
    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.

    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 promouid

    The unique id associated with every promo. (Not the product sku purchased)

    String failureReason

    The reason the transaction failed.

    Implements

    IAnalyticsEvent
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.