refactor: swap currency
This commit is contained in:
@@ -6,7 +6,7 @@ from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class CreatePurchaseRequestBody(BaseModel):
|
||||
usdt_amount: Decimal = Field(gt=0)
|
||||
rub_amount: Decimal = Field(gt=0)
|
||||
comment: str | None = None
|
||||
target_wallet_chain: str | None = Field(default='ETH', max_length=16)
|
||||
target_wallet_address: str | None = Field(default=None, max_length=128)
|
||||
@@ -16,8 +16,8 @@ class PurchaseRequestResponse(BaseModel):
|
||||
id: str
|
||||
organization_id: str
|
||||
status: str
|
||||
usdt_amount: str
|
||||
rub_amount: str | None
|
||||
rub_amount: str
|
||||
usdt_amount: str | None
|
||||
exchange_rate: str | None
|
||||
service_fee_percent: str | None
|
||||
comment: str | None
|
||||
|
||||
Reference in New Issue
Block a user