fastapi/models.py

16 lines
319 B
Python
Executable File

from decimal import Decimal
from typing import Optional
from pydantic import BaseModel
class Receive(BaseModel):
method: str
address: str
callback: Optional[str]
class Return(BaseModel):
address: str
destination: str
callback_url: Optional[str]
fee: Decimal
status: str