Documentation ¶
Overview ¶
Package model contains the models of the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankAccount ¶
type BankAccount struct { ID BankAccountID `db:"id"` BankAccountState }
BankAccount represent a bank account.
type BankAccountState ¶
type BankAccountState struct { OrganizationName string `db:"organization_name" json:"organization_name"` BalanceCents Cents `db:"balance_cents"` Iban string `db:"iban"` Bic string `db:"bic"` }
BankAccountState represents the BankAccount internal state/data.
type Transaction ¶
type Transaction struct { ID TransactionID `db:"id"` TransactionState }
Transaction represent a transaction.
type TransactionState ¶
type TransactionState struct { CounterpartyName string `db:"counterparty_name"` CounterpartyIban string `db:"counterparty_iban"` CounterpartyBic string `db:"counterparty_bic"` AmountCents Cents `db:"amount_cents"` AmountCurrency string `db:"amount_currency"` BankAccountID BankAccountID `db:"bank_account_id"` Description string `db:"description"` }
TransactionState represents the Transaction internal state/data.
Click to show internal directories.
Click to hide internal directories.