Implement viewing transactions for an account
This commit is contained in:
@@ -146,3 +146,54 @@ AccountBalancesSchema = {
|
||||
"balances": "balances",
|
||||
"summary": "summary",
|
||||
}
|
||||
|
||||
|
||||
class TXCurrencyAmount(BaseModel):
|
||||
amount: str
|
||||
currency: str
|
||||
|
||||
|
||||
class TransactionsCurrencyExchange(BaseModel):
|
||||
instructedAmount: TXCurrencyAmount
|
||||
sourceCurrency: str
|
||||
exchangeRate: str
|
||||
unitCurrency: str
|
||||
targetCurrency: str
|
||||
|
||||
|
||||
class TXAccount(BaseModel):
|
||||
iban: str
|
||||
bban: str | None
|
||||
|
||||
|
||||
class TransactionsNested(BaseModel):
|
||||
transactionId: str | None
|
||||
bookingDate: str | None
|
||||
valueDate: str
|
||||
bookingDateTime: str | None
|
||||
valueDateTime: str | None
|
||||
transactionAmount: TXCurrencyAmount
|
||||
creditorName: str | None
|
||||
creditorAccount: TXAccount | None
|
||||
debtorName: str | None
|
||||
debtorAccount: TXAccount | None
|
||||
remittanceInformationUnstructuredArray: list[str] | None
|
||||
remittanceInformationUnstructured: str | None
|
||||
proprietaryBankTransactionCode: str | None
|
||||
internalTransactionId: str | None
|
||||
currencyExchange: TransactionsCurrencyExchange | None
|
||||
|
||||
|
||||
class TransactionsBookedPending(BaseModel):
|
||||
booked: list[TransactionsNested]
|
||||
pending: list[TransactionsNested]
|
||||
|
||||
|
||||
class Transactions(BaseModel):
|
||||
transactions: TransactionsBookedPending
|
||||
|
||||
|
||||
TransactionsSchema = {
|
||||
"booked": "transactions.booked",
|
||||
"pending": "transactions.pending",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user