Documentation ¶
Overview ¶
Package transfer implements required logic to transfer money between accounts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type Result ¶
func BetweenAccounts ¶
BetweenAccounts - transfers money between accounts. Supports transfering in/between different currencies. Actually transfer can be done in three(From Account Currency, To Account Currency, Transfer Currency) different currencies. It return error in next cases: - Transfering between same account - Negative transfer amount - From Account doesn't have enough money
type Transfer ¶
type Transfer struct { From AccountInfo To AccountInfo Amount decimal.Decimal Currency models.Currency }
Click to show internal directories.
Click to hide internal directories.