16 lines
247 B
Python
16 lines
247 B
Python
from enum import StrEnum
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class InvoiceStatus(StrEnum):
|
|
EXPIRED = "expired"
|
|
ACTIVE = "active"
|
|
PAID = "paid"
|
|
|
|
|
|
class InvoiceResponse(BaseModel):
|
|
success: bool
|
|
amount: float
|
|
payment_link: str
|