services

package
v0.0.0-...-81673a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts interface {
	ListOfAccounts(context.Context, models.OffsetLimit) ([]models.Account, error)
	AddAccount(context.Context, NewAccount) (uuid.UUID, error)
	AccountByID(context.Context, uuid.UUID) (*models.Account, error)
}

type Currencies

type Currencies interface {
	AllCurrencies(context.Context) ([]models.Currency, error)
}

func NewCurrenciesService

func NewCurrenciesService(cr repositories.Currencies) Currencies

type NewAccount

type NewAccount struct {
	CurrencyNumericCode int             `json:"currency_numeric_code"`
	Balance             decimal.Decimal `json:"balance"`
}

type NewPayment

type NewPayment struct {
	FromAccount         uuid.UUID       `json:"from_account"`
	ToAccount           uuid.UUID       `json:"to_account"`
	CurrencyNumericCode int             `json:"currency_numeric_code"`
	Amount              decimal.Decimal `json:"amount"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL