Receiptz

interface Receiptz : ModuleIdentifier

Receipt objects are completed transactions with a final state as canceled, expired, or consumed.

Functions

Link copied to clipboard
abstract fun isAmazon(): Boolean

Convenience method to check if object is an instance from the Amazon module

Link copied to clipboard
abstract fun isGoogle(): Boolean

Convenience method to check if object is an instance from the Google module

Properties

Link copied to clipboard
abstract var cancelDate: Date?

Date of cancellation, null if not available.

Link copied to clipboard
abstract var entitlement: String?

Unique id for granting entitlement of a product. Google uses PurchaseTokens.

Link copied to clipboard
abstract var isCanceled: Boolean
Link copied to clipboard
abstract var order: Orderz?
Link copied to clipboard
abstract var orderDate: Date?

Date of purchase

Link copied to clipboard
abstract var orderId: String?

Unique id of the order

Link copied to clipboard
abstract var skus: List<String>?

Product id

Link copied to clipboard
abstract var userId: String?

Unique id of the user as identified by the relevant billing service. Amazon only has a userData object, but Google will either provide an accountId and/or profileId