From f55efca9fd70247ae07d462ca1f8dcf445c7f665 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 13 Jul 2017 16:54:09 +0200 Subject: [PATCH] Add account models. --- src/accounts/account.ts | 11 +++++++++++ src/accounts/accountBalances.ts | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 src/accounts/account.ts create mode 100644 src/accounts/accountBalances.ts diff --git a/src/accounts/account.ts b/src/accounts/account.ts new file mode 100644 index 0000000..73bc800 --- /dev/null +++ b/src/accounts/account.ts @@ -0,0 +1,11 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : + +import { AccountBalances } from './accountBalances'; + +export class Account { + id: number; + name: string; + authorized_overdraft: number; + + balances: AccountBalances; +} diff --git a/src/accounts/accountBalances.ts b/src/accounts/accountBalances.ts new file mode 100644 index 0000000..23a0059 --- /dev/null +++ b/src/accounts/accountBalances.ts @@ -0,0 +1,5 @@ +export class AccountBalances { + current: number; + pointed: number; + future: number; +}