//inappmessaging/com.rakuten.tech.mobile.inappmessaging.runtime.data.models.appevents/PurchaseSuccessfulEvent

PurchaseSuccessfulEvent

[androidJvm]
class PurchaseSuccessfulEvent : BaseEvent

Purchase successful Event for host app to use.

Constructors

PurchaseSuccessfulEvent [androidJvm]
constructor()

Types

Name Summary
Companion [androidJvm]
object Companion

Functions

Name Summary
currencyCode [androidJvm]
@NotNull
fun currencyCode(@NotNullcurrencyCode: String): PurchaseSuccessfulEvent
This method sets the currency code of this purchase successful logEvent.
getAttributeMap [androidJvm]
@NotNull
open override fun getAttributeMap(): Map<String, Attribute?>
This method returns a map of Attribute objects. Key: Attribute’s name, Value: Attribute object.
getEventName [androidJvm]
open override fun getEventName(): String
This method returns the event name.
getEventType [androidJvm]
@NotNull
open override fun getEventType(): Int
This method returns the event type id.
getRatEventMap [androidJvm]
@NotNull
open override fun getRatEventMap(): Map<String, Any>
This method returns an unmodifiable map which contains all event’s attributes.
getTimestamp [androidJvm]
@NotNull
open override fun getTimestamp(): Long
This method returns the timestamp.
isPersistentType [androidJvm]
@NotNull
open override fun isPersistentType(): Boolean
This method returns event is persistent type (can be used by campaigns multiple times). If persistent type, event will not be removed in LocalEventRepository when used by a campaign.
itemIdList [androidJvm]
@NotNull
fun itemIdList(@NotNullitemIdList: List<String>): PurchaseSuccessfulEvent
This method sets the list of purchased item IDs.
numberOfItems [androidJvm]
@NotNull
fun numberOfItems(@NotNullnumberOfItems: Int): PurchaseSuccessfulEvent
This method sets the number of items in this purchase.
purchaseAmountMicros [androidJvm]
@NotNull
fun purchaseAmountMicros(@NotNullpurchaseAmountMicros: Int): PurchaseSuccessfulEvent
This method sets the purchase amount in micros, $1 = 100_000. Such as $10.58 = 1058_000.