pluto/handler/lib/serde/truelayer.py

15 lines
322 B
Python

from serde import Model, fields
class AccountBalances(Model):
currency: fields.Str()
available: fields.Float()
current: fields.Float()
overdraft: fields.Float()
update_timestamp: fields.DateTime()
class AccountBalancesRoot(Model):
results: fields.List(AccountBalances)
status: fields.Str()