Orderz

interface Orderz : ModuleIdentifier

Order objects are transactions in-progress or incomplete.

Types

Link copied to clipboard
enum Result : Enum<Orderz.Result>

Indicates the final state of an order.

Link copied to clipboard
enum State : Enum<Orderz.State>

Indicates the lifecycle of an order.

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 val entitlement: String?

A string token that uniquely identifies a purchase for a given item and user pair

Link copied to clipboard
abstract val isCancelled: Boolean

Determines if the order has been cancelled.

Link copied to clipboard
abstract val orderId: String?

A unique order identifier for the transaction. Amazon IAP equivalent is receiptId

Link copied to clipboard
abstract val orderTime: Long

The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970)

Link copied to clipboard
abstract val originalJson: String?

Details of the order in JSON

Link copied to clipboard
abstract val quantity: Int

Subscriptions are always 1. IAPs are 1+

Link copied to clipboard
abstract val result: Orderz.Result

Enumerated status or error.

Link copied to clipboard
abstract val resultMessage: String

Status or error message.

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

List of all products associated with this order id. Minimum size of 1 - Subscriptions are always 1.

Link copied to clipboard
abstract var state: Orderz.State

The current lifecycle step of the order.