Skip to content

Commit 728d69c

Browse files
committed
feat(wallet): update models and reformat
1 parent 6b20d45 commit 728d69c

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/basalam_sdk/wallet/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
HistoryPaginationResponse,
1818
HistorySpendItemResponse,
1919
HistorySpendResponse,
20-
HTTPValidationError,
2120
NewHistoryCreditResponse,
2221
ReasonResponse,
2322
ReferenceRequest,
@@ -28,7 +27,6 @@
2827
SpendItemResponse,
2928
SpendResponse,
3029
SpendSpecificCreditRequest,
31-
ValidationError,
3230
)
3331

3432
__all__ = [
@@ -44,7 +42,6 @@
4442
"HistoryPaginationResponse",
4543
"HistorySpendItemResponse",
4644
"HistorySpendResponse",
47-
"HTTPValidationError",
4845
"NewHistoryCreditResponse",
4946
"ReasonResponse",
5047
"ReferenceRequest",
@@ -55,5 +52,4 @@
5552
"SpendItemResponse",
5653
"SpendResponse",
5754
"SpendSpecificCreditRequest",
58-
"ValidationError",
5955
]

src/basalam_sdk/wallet/models.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,11 @@
55
"""
66

77
from datetime import datetime
8-
from typing import Dict, List, Optional, Union
8+
from typing import Dict, List, Optional
99

1010
from pydantic import BaseModel
1111

1212

13-
class ValidationError(BaseModel):
14-
"""Validation error model."""
15-
loc: List[Union[str, int]]
16-
msg: str
17-
type: str
18-
19-
20-
class HTTPValidationError(BaseModel):
21-
"""HTTP validation error model."""
22-
detail: List[ValidationError]
23-
24-
2513
class BalanceFilter(BaseModel):
2614
"""Filter for balance requests."""
2715
cash: Optional[bool] = None

0 commit comments

Comments
 (0)