16 lines
319 B
Python
16 lines
319 B
Python
|
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
|