BasePurchase

class BasePurchase[source]

Any purchase by a user.

id: str

The id of the transaction.

state: TransactionState

The state of the transaction.

success_at: datetime | None

The moment the payment was successful, this will always be not None when state is success.

updated_at: datetime

The moment this transaction was last updated.

short_id: str

The short id of the transaction.

item_purchase_iteration: PurchaseIteration

Whether this purchase is a repurchase for a previously refunded purchased item.