Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct { ID string AccountID string TransactionType string Value float64 CreatedAt time.Time }
func NewTransaction ¶
func NewTransaction(accountID, transactionType string, value float64) *Transaction
func (*Transaction) IsValid ¶
func (t *Transaction) IsValid() (bool, error)
type TransactionInterface ¶
Click to show internal directories.
Click to hide internal directories.