Add definitions for all Nordigen API calls
This commit is contained in:
@@ -75,3 +75,53 @@ RequisitionsPostSchema = {
|
||||
"account_selection": "account_selection",
|
||||
"redirect_immediate": "redirect_immediate",
|
||||
}
|
||||
|
||||
|
||||
class Requisition(BaseModel):
|
||||
id: str
|
||||
created: str
|
||||
redirect: str
|
||||
status: str
|
||||
institution_id: str
|
||||
agreement: str
|
||||
reference: str
|
||||
accounts: list[str]
|
||||
link: str
|
||||
ssn: str | None
|
||||
account_selection: bool
|
||||
redirect_immediate: bool
|
||||
|
||||
|
||||
RequisitionSchema = {
|
||||
"id": "id",
|
||||
"created": "created",
|
||||
"redirect": "redirect",
|
||||
"status": "status",
|
||||
"institution_id": "institution_id",
|
||||
"agreement": "agreement",
|
||||
"reference": "reference",
|
||||
"accounts": "accounts",
|
||||
"link": "link",
|
||||
"ssn": "ssn",
|
||||
"account_selection": "account_selection",
|
||||
"redirect_immediate": "redirect_immediate",
|
||||
}
|
||||
|
||||
|
||||
class AccountDetailsNested(BaseModel):
|
||||
resourceId: str
|
||||
currency: str
|
||||
ownerName: str
|
||||
cashAccountType: str
|
||||
status: str
|
||||
maskedPan: str | None
|
||||
details: str
|
||||
|
||||
|
||||
class AccountDetails(BaseModel):
|
||||
account: AccountDetailsNested
|
||||
|
||||
|
||||
AccountDetailsSchema = {
|
||||
"account": "account",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user