PyzeInAppPurchaseRevenue

@interface PyzeInAppPurchaseRevenue : PyzeCustomEvent

PyzeInAppPurchaseRevenue

Subclass of PyzeCustomEvent class used post details of the events related to In-App purchase.

Since

v1.0.0
  • Post price list viewed in purchases

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postPriceListViewViewed:(nonnull NSString *)appScreenRequestFromId
                     withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postPriceListViewViewed(_ appScreenRequestFromId: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    appScreenRequestFromId

    App screen requested identifier.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item bought.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postBuyItem:(nonnull NSString *)itemName
                  price:(nonnull NSDecimalNumber *)revenue
               currency:(nonnull NSString *)currencyISO4217Code
         withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postBuyItem(_ itemName: String, price revenue: NSDecimalNumber, currency currencyISO4217Code: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    itemName

    Item name.

    revenue

    Revenue value.

    currencyISO4217Code

    Currency code $ or Rs.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of item bought in USD.

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postBuyItemInUSD:(nonnull NSString *)itemName
                       price:(nonnull NSDecimalNumber *)revenue
              withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postBuyItem(inUSD itemName: String, price revenue: NSDecimalNumber, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    itemName

    Item name.

    revenue

    Revenue value.

    attributes

    Additional custom attributes app would like to share with server.

  • Post details of the item bought

    Since

    v1.0.0

    Declaration

    Objective-C

    + (void)postBuyItem:(nonnull NSString *)itemName
                  price:(nonnull NSDecimalNumber *)revenue
               currency:(nonnull NSString *)currencyISO4217Code
               itemType:(nonnull NSString *)itemType
                itemSKU:(nonnull NSString *)itemSKU
               quantity:(nonnull NSString *)quantity
              requestId:(nonnull NSString *)appScreenRequestFromId
                 status:(BOOL)success
            successCode:(nonnull NSString *)successOrErrorCode
         withAttributes:(nonnull NSDictionary *)attributes;

    Swift

    class func postBuyItem(_ itemName: String, price revenue: NSDecimalNumber, currency currencyISO4217Code: String, itemType: String, itemSKU: String, quantity: String, requestId appScreenRequestFromId: String, status success: Bool, successCode successOrErrorCode: String, withAttributes attributes: [AnyHashable : Any] = [:])

    Parameters

    itemName

    Item name.

    revenue

    Revenue value.

    currencyISO4217Code

    Currency code.

    itemType

    Item type.

    itemSKU

    Item SKU.

    quantity

    Number of item purchased.

    appScreenRequestFromId

    App screen requested identifier.

    success

    Success or failure.

    successOrErrorCode

    Error code on fail.

    attributes

    Additional custom attributes app would like to share with server.