Handle errors in fetching transactions
This commit is contained in:
@@ -195,15 +195,19 @@ class TransactionsNested(MyModel):
|
||||
|
||||
|
||||
class TransactionsBookedPending(MyModel):
|
||||
booked: list[TransactionsNested]
|
||||
pending: list[TransactionsNested]
|
||||
booked: list[TransactionsNested] | None
|
||||
pending: list[TransactionsNested] | None
|
||||
|
||||
|
||||
class Transactions(MyModel):
|
||||
transactions: TransactionsBookedPending
|
||||
transactions: TransactionsBookedPending | None
|
||||
detail: str | None
|
||||
status_code: int | None
|
||||
summary: str | None
|
||||
|
||||
|
||||
TransactionsSchema = {
|
||||
"booked": "transactions.booked",
|
||||
"pending": "transactions.pending",
|
||||
"transactions": "transactions",
|
||||
"status_code": "status_code",
|
||||
"summary": "summary",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user