CoursePurchase#

class CoursePurchase[source]#

A course purchase by a user.

scope: Literal['course']#

This was a purchase of a single course.

purchased_item: CoursePrice#

The CoursePrice that this transaction pays for.

id: str#

The id of the transaction.

state: TransactionState#

The state of the transaction.

success_at: Optional[datetime]#

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.