Documentation ¶
Index ¶
- Constants
- func GenerateLogAccountNumbers(accountsToLog map[AccountNumber]*Account) string
- func GetAccountIDRegexp() *regexp.Regexp
- func GetAccountNumberRegexp() *regexp.Regexp
- func LogAccounts(accountsToLog map[AccountNumber]*Account)
- type Account
- type AccountID
- type AccountNumber
- type AccountType
- type AllAccountTypes
Constants ¶
View Source
const AccountIDPattern = `\d{14}`
View Source
const AccountNumberPattern = `\d{3}-\d{1}-\d{5}-\d{1}`
Variables ¶
This section is empty.
Functions ¶
func GenerateLogAccountNumbers ¶
func GenerateLogAccountNumbers(accountsToLog map[AccountNumber]*Account) string
func GetAccountIDRegexp ¶
func GetAccountNumberRegexp ¶
func LogAccounts ¶
func LogAccounts(accountsToLog map[AccountNumber]*Account)
Types ¶
type Account ¶
type Account struct { // Number is the account number in the format XXX-X-XXXXX-X. This is the account number a Kasikorn customer sees Number AccountNumber `json:"accountNumber"` // Internally ID used by Kasikorn. It is a 14 digits number. ID AccountID `json:"id"` // Friendly name of the account Name string `json:"name"` // Nickname, this is more informative than for processing purposes. NickName string `json:"nickName"` // Type of the account, such as Savings account Type AccountType `json:"type"` }
Account defines an account, i.e. money ledger within Kasikorn One customer might have multiple accounts, like a saving account, current account, etc.
type AccountNumber ¶
type AccountNumber string
type AccountType ¶
type AccountType string
func GetAccountType ¶
func GetAccountType(accountTypeAsString string) *AccountType
type AllAccountTypes ¶
type AllAccountTypes struct { Savings AccountType Current AccountType Deposit AccountType }
func GetAllAccountTypes ¶
func GetAllAccountTypes() *AllAccountTypes
Click to show internal directories.
Click to hide internal directories.