StoreTransaction¶
Inherits: RefCounted < Object
Represents a successful purchase transaction.
Description¶
This class contains details about a purchase, such as the product ID, purchase date, and expiration date (for subscriptions).
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions¶
float get_expiration_date()
The date when the subscription expires, as a Unix timestamp. Returns 0 if not applicable.
bool get_is_upgraded()
Whether this transaction is an upgrade of another transaction.
int get_original_id()
The transaction identifier of the original purchase.
String ownership_type = "unknown" 🔗
String get_ownership_type()
The type of ownership (e.g., “purchased”, “familyShared”, “unknown”).
String get_product_id()
The unique identifier of the purchased product.
float get_purchase_date()
The date when the purchase was made, as a Unix timestamp.
float get_revocation_date()
The date when the transaction was revoked, as a Unix timestamp. Returns 0 if not revoked.
int get_transaction_id()
The unique identifier of the transaction.