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

float

expiration_date

0.0

bool

is_upgraded

false

int

original_id

0

String

ownership_type

"unknown"

String

product_id

""

float

purchase_date

0.0

float

revocation_date

0.0

int

transaction_id

0


Property Descriptions

float expiration_date = 0.0 🔗

  • float get_expiration_date()

The date when the subscription expires, as a Unix timestamp. Returns 0 if not applicable.


bool is_upgraded = false 🔗

  • bool get_is_upgraded()

Whether this transaction is an upgrade of another transaction.


int original_id = 0 🔗

  • int get_original_id()

The transaction identifier of the original purchase.


String ownership_type = "unknown" 🔗

The type of ownership (e.g., “purchased”, “familyShared”, “unknown”).


String product_id = "" 🔗

The unique identifier of the purchased product.


float purchase_date = 0.0 🔗

  • float get_purchase_date()

The date when the purchase was made, as a Unix timestamp.


float revocation_date = 0.0 🔗

  • float get_revocation_date()

The date when the transaction was revoked, as a Unix timestamp. Returns 0 if not revoked.


int transaction_id = 0 🔗

  • int get_transaction_id()

The unique identifier of the transaction.