24 lines
603 B
Python
24 lines
603 B
Python
from __future__ import annotations
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class CreditSubscriptionStatus(StrEnum):
|
|
PENDING = "pending"
|
|
ACTIVE = "active"
|
|
EXPIRED = "expired"
|
|
UPGRADED = "upgraded"
|
|
CANCELLED = "cancelled"
|
|
REFUNDED = "refunded"
|
|
UPGRADE_RECONCILE_FAILED = "upgrade_reconcile_failed"
|
|
|
|
|
|
class CreditSubscriptionPeriodStatus(StrEnum):
|
|
SCHEDULED = "scheduled"
|
|
UPGRADE_RESERVED = "upgrade_reserved"
|
|
GRANTED = "granted"
|
|
CANCELLED_BY_UPGRADE = "cancelled_by_upgrade"
|
|
REVOKED_BY_UPGRADE = "revoked_by_upgrade"
|
|
CANCELLED = "cancelled"
|
|
EXPIRED = "expired"
|