Documentation ¶
Index ¶
Constants ¶
View Source
const DEPOSIT = "deposit"
View Source
const WITHDRAWAL = "withdrawal"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerResponse ¶
type NewAccountRequest ¶
type NewAccountRequest struct { CustomerId string `json:"customer_id"` AccountType string `json:"account_type"` Amount float64 `json:"amount"` }
func (NewAccountRequest) Validate ¶
func (r NewAccountRequest) Validate() *errs.AppError
type NewAccountResponse ¶
type NewAccountResponse struct {
AccountId string `json:"account_id"`
}
type TransactionRequest ¶
type TransactionRequest struct { AccountId string `json:"account_id"` Amount float64 `json:"amount"` TransactionType string `json:"transaction_type"` TransactionDate string `json:"transaction_date"` CustomerId string `json:"-"` }
func (TransactionRequest) IsTransactionTypeDeposit ¶
func (r TransactionRequest) IsTransactionTypeDeposit() bool
func (TransactionRequest) IsTransactionTypeWithdrawal ¶
func (r TransactionRequest) IsTransactionTypeWithdrawal() bool
func (TransactionRequest) Validate ¶
func (r TransactionRequest) Validate() *errs.AppError
Click to show internal directories.
Click to hide internal directories.