36 lines
740 B
Python
36 lines
740 B
Python
from __future__ import annotations
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class CreditProductType(StrEnum):
|
|
SUBSCRIPTION = "subscription"
|
|
CREDIT_ADDON = "credit_addon"
|
|
|
|
|
|
class SubscriptionBillingCycle(StrEnum):
|
|
MONTHLY = "monthly"
|
|
QUARTERLY = "quarterly"
|
|
YEARLY = "yearly"
|
|
|
|
|
|
SUBSCRIPTION_GRANT_COUNT = {
|
|
SubscriptionBillingCycle.MONTHLY.value: 1,
|
|
SubscriptionBillingCycle.QUARTERLY.value: 3,
|
|
SubscriptionBillingCycle.YEARLY.value: 12,
|
|
}
|
|
|
|
|
|
class SubscriptionTierCode(StrEnum):
|
|
STARTER = "starter"
|
|
STANDARD = "standard"
|
|
ADVANCED = "advanced"
|
|
SUPER = "super"
|
|
|
|
|
|
class ProductPriceType(StrEnum):
|
|
FIRST_PURCHASE = "first_purchase"
|
|
REGULAR = "regular"
|
|
ACTIVITY = "activity"
|
|
UPGRADE = "upgrade"
|