Documentation ¶
Overview ¶
Package payments provides the use-case of history of accounts payments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
MakeHandler returns a handler for the account service.
func NewLoggerService ¶
NewLoggerService returns a new instance of the Service with logging.
Types ¶
type Payment ¶
type Payment struct { ID int `json:"id"` Account string `json:"account"` Amount decimal.Decimal `json:"amount"` ToAccount string `json:"to_account"` Direction Direction `json:"direction"` }
Payment is the handling history of accounts payments.
type Service ¶
Service is the interface that provides the basic Payment method.
func NewService ¶
func NewService(payments coins.PaymentRepository) Service
NewService returns a new instance of the default Service.
Click to show internal directories.
Click to hide internal directories.