52 lines
992 B
Python
52 lines
992 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class OrganizationResponse(BaseModel):
|
|
id: str
|
|
user_id: str
|
|
name: str
|
|
short_name: str | None
|
|
inn: str
|
|
ogrn: str | None
|
|
kpp: str | None
|
|
legal_address: str | None
|
|
actual_address: str | None
|
|
bank_details: dict[str, Any] | None
|
|
contact_person: str | None
|
|
contact_phone: str | None
|
|
status: str
|
|
kyc_verified: bool
|
|
kyc_verified_at: str | None
|
|
has_wallets: bool
|
|
created_by: str | None
|
|
created_at: str | None
|
|
updated_at: str | None
|
|
|
|
|
|
class OrganizationListResponse(BaseModel):
|
|
items: list[OrganizationResponse]
|
|
total: int
|
|
|
|
|
|
class WalletResponse(BaseModel):
|
|
id: str
|
|
chain: str
|
|
address: str
|
|
derivation_path: str
|
|
created_at: str | None
|
|
|
|
|
|
class MnemonicResponse(BaseModel):
|
|
mnemonic: str
|
|
|
|
|
|
class SecretKeyResponse(BaseModel):
|
|
chain: str
|
|
address: str
|
|
derivation_path: str
|
|
private_key: str
|