Add support for one-time purchases

This commit is contained in:
Lucas Hardt
2024-05-05 05:24:34 +02:00
committed by GitHub
parent 0ee1794c6d
commit 2892401992
5 changed files with 81 additions and 1 deletions

View File

@ -3506,6 +3506,14 @@ of :class:`enum.Enum`.
.. versionadded:: 2.4
.. attribute:: durable
The SKU is a durable one-time purchase.
.. attribute:: consumable
The SKU is a consumable one-time purchase.
.. attribute:: subscription
The SKU is a recurring subscription.
@ -3521,6 +3529,34 @@ of :class:`enum.Enum`.
.. versionadded:: 2.4
.. attribute:: purchase
The entitlement was purchased by the user.
.. attribute:: premium_subscription
The entitlement is for a nitro subscription.
.. attribute:: developer_gift
The entitlement was gifted by the developer.
.. attribute:: test_mode_purchase
The entitlement was purchased by a developer in application test mode.
.. attribute:: free_purchase
The entitlement was granted, when the SKU was free.
.. attribute:: user_gift
The entitlement was gifted by a another user.
.. attribute:: premium_purchase
The entitlement was claimed for free by a nitro subscriber.
.. attribute:: application_subscription
The entitlement was purchased as an app subscription.