PurchaseEventCreator

public class PurchaseEventCreator: NSObject

EngageEvent creator for Purchase events

  • Initializes the event creator using specified product id

    Declaration

    Swift

    public init(productId : String)

    Parameters

    productId

    Identifier of the product for which events are created

  • Set the title of the product

    Declaration

    Swift

    public func putProductTitle(title : String) -> PurchaseEventCreator

    Parameters

    title

    Title of the product

    Return Value

    PurchaseEventCreator object after updating title of product

  • Set the price of the product

    Declaration

    Swift

    public func putProductPrice(price : String) -> PurchaseEventCreator

    Parameters

    price

    Price of the product

    Return Value

    PurchaseEventCreator object after updating price of product

  • Set the currency of price of the product

    Declaration

    Swift

    public func putCurrency(currency : String) -> PurchaseEventCreator

    Parameters

    currency

    Currency of price of the product

    Return Value

    PurchaseEventCreator object after updating Currency

  • Set the type of the product

    Declaration

    Swift

    public func putProductType(type : String) -> PurchaseEventCreator

    Parameters

    type

    Type of the product

    Return Value

    PurchaseEventCreator object after updating productType

  • Set the order id of the purchase

    Declaration

    Swift

    public func putOrderId(orderId : String) -> PurchaseEventCreator

    Parameters

    orderId

    Order id of the purchase

    Return Value

    PurchaseEventCreator object after updating orderId

  • Set the payment mode of the purchase

    Declaration

    Swift

    public func putPaymentMode(paymentMode : String) -> PurchaseEventCreator

    Parameters

    paymentMode

    Payment mode of the purchase

    Return Value

    PurchaseEventCreator object after updating paymentMode

  • Set the type of card used for the purchase

    Declaration

    Swift

    public func putCardType(type : String) -> PurchaseEventCreator

    Parameters

    type

    Type of card used for the purchase

    Return Value

    PurchaseEventCreator object after updating CardType

  • Set the name of bank used for the purchase

    Declaration

    Swift

    public func putBankName(bankName : String) -> PurchaseEventCreator

    Parameters

    bankName

    Name of bank used for the purchase

    Return Value

    PurchaseEventCreator object after updating bank name

  • Set the transaction id of payment

    Declaration

    Swift

    public func putTransactionId(id : String) -> PurchaseEventCreator

    Parameters

    id

    Transaction id of payment

    Return Value

    PurchaseEventCreator object after updating storeName

  • Set the store name used for payment

    Declaration

    Swift

    public func putStoreName(storeName : String) -> PurchaseEventCreator

    Parameters

    storeName

    Store name used for payment

    Return Value

    PurchaseEventCreator object after updating transactionId

  • Set the promo-code used in the product

    Declaration

    Swift

    public func putPromoCode(promoCode : String) -> PurchaseEventCreator

    Parameters

    promoCode

    Promo-code used in the product

    Return Value

    PurchaseEventCreator object after updating Promo-code

  • Set the original order id of the purchase

    Declaration

    Swift

    public func putOriginalOrderId(id : String) -> PurchaseEventCreator

    Parameters

    id

    Order id of the purchase

    Return Value

    PurchaseEventCreator object after updating Order Id

  • Set the original transaction id of payment

    Declaration

    Swift

    public func putOriginalTransactionId(id : String) -> PurchaseEventCreator

    Parameters

    id

    Transaction id of payment

    Return Value

    PurchaseEventCreator object after updating transactionId

  • Set the product validity days

    Declaration

    Swift

    public func putValidityDays(validityDays : String) -> PurchaseEventCreator

    Parameters

    validityDays

    Product validity days

    Return Value

    PurchaseEventCreator object after updating validityDays

  • Set the product validity remaining days

    Declaration

    Swift

    public func putRemainingDays(remainingDays : String) -> PurchaseEventCreator

    Parameters

    remainingDays

    Product validity remaining days

    Return Value

    PurchaseEventCreator object after updating validity remaining days

  • Creates EngageEvent representing product selection

    Declaration

    Swift

    public func onProductSelected() -> EngageEvent

    Return Value

    EngageEvent representing product selection

  • Creates EngageEvent representing product checkout

    Declaration

    Swift

    public func onProductCheckout() -> EngageEvent

    Return Value

    EngageEvent representing product checkout

  • Creates EngageEvent representing product renewal

    Declaration

    Swift

    public func onProductRenew() -> EngageEvent

    Return Value

    EngageEvent representing product renewal

  • Creates EngageEvent representing product upgrade

    Declaration

    Swift

    public func onProductUpgrade() -> EngageEvent

    Return Value

    EngageEvent representing product upgrade

  • Creates EngageEvent representing product checkout success

    Declaration

    Swift

    public func onProductCheckoutSuccess() -> EngageEvent

    Return Value

    EngageEvent representing product checkout success

  • Creates EngageEvent representing product checkout failure

    Declaration

    Swift

    public func onProductCheckoutFailed() -> EngageEvent

    Return Value

    EngageEvent representing product checkout failure