The different states a purchase can be in. Different platforms and frameworks may have different sets of states that they support.
@objc public enum NamiPurchaseState: Int {
case pending
case purchased
case consumed
case resubscribed
case unsubscribed
case deferred
case failed
case cancelled
case unknown
}
enum class NamiPurchaseState {
PURCHASED,
FAILED,
CANCELLED,
PENDING,
UNKNOWN
}
enum NamiPurchaseState {
purchased,
failed,
cancelled,
pending,
unknown,
deferred,
resubscribed,
unsubscribed,
consumed
}
export enum NamiPurchaseState {
PENDING = "pending",
PURCHASED = "purchased",
CONSUMED = "consumed",
RESUBSCRIBED = "resubscribed",
UNSUBSCRIBED = "unsubscribed",
DEFERRED = "deferred",
FAILED = "failed",
CANCELLED = "cancelled",
UNKNOWN = "unknown",
}
public enum NamiPurchaseState
{
Pending,
Purchased,
Consumed,
Resubscribed,
Unsubscribed,
Deferred,
Failed,
Cancelled,
Unknown
}