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
productIdIdentifier of the product for which events are created
-
Set the title of the product
Declaration
Swift
public func putProductTitle(title : String) -> PurchaseEventCreatorParameters
titleTitle 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) -> PurchaseEventCreatorParameters
pricePrice 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) -> PurchaseEventCreatorParameters
currencyCurrency 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) -> PurchaseEventCreatorParameters
typeType of the product
Return Value
PurchaseEventCreator object after updating productType
-
Set the order id of the purchase
Declaration
Swift
public func putOrderId(orderId : String) -> PurchaseEventCreatorParameters
orderIdOrder 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) -> PurchaseEventCreatorParameters
paymentModePayment 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) -> PurchaseEventCreatorParameters
typeType 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) -> PurchaseEventCreatorParameters
bankNameName 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) -> PurchaseEventCreatorParameters
idTransaction id of payment
Return Value
PurchaseEventCreator object after updating storeName
-
Set the store name used for payment
Declaration
Swift
public func putStoreName(storeName : String) -> PurchaseEventCreatorParameters
storeNameStore 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) -> PurchaseEventCreatorParameters
promoCodePromo-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) -> PurchaseEventCreatorParameters
idOrder 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) -> PurchaseEventCreatorParameters
idTransaction id of payment
Return Value
PurchaseEventCreator object after updating transactionId
-
Set the product validity days
Declaration
Swift
public func putValidityDays(validityDays : String) -> PurchaseEventCreatorParameters
validityDaysProduct validity days
Return Value
PurchaseEventCreator object after updating validityDays
-
Set the product validity remaining days
Declaration
Swift
public func putRemainingDays(remainingDays : String) -> PurchaseEventCreatorParameters
remainingDaysProduct validity remaining days
Return Value
PurchaseEventCreator object after updating validity remaining days
-
Creates EngageEvent representing product selection
Declaration
Swift
public func onProductSelected() -> EngageEventReturn Value
EngageEvent representing product selection
-
Creates EngageEvent representing product checkout
Declaration
Swift
public func onProductCheckout() -> EngageEventReturn Value
EngageEvent representing product checkout
-
Creates EngageEvent representing product renewal
Declaration
Swift
public func onProductRenew() -> EngageEventReturn Value
EngageEvent representing product renewal
-
Creates EngageEvent representing product upgrade
Declaration
Swift
public func onProductUpgrade() -> EngageEventReturn Value
EngageEvent representing product upgrade
-
Creates EngageEvent representing product checkout success
Declaration
Swift
public func onProductCheckoutSuccess() -> EngageEventReturn Value
EngageEvent representing product checkout success
-
Creates EngageEvent representing product checkout failure
Declaration
Swift
public func onProductCheckoutFailed() -> EngageEventReturn Value
EngageEvent representing product checkout failure
PurchaseEventCreator Class Reference