currency

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Service

type Service struct {
	ServiceParams
}

func (*Service) GetActiveForDevelopers

func (s *Service) GetActiveForDevelopers(ctx context.Context) ([]entity.RegionCurrency, error)

func (*Service) GetActiveForUsers

func (s *Service) GetActiveForUsers(ctx context.Context) ([]entity.RegionCurrency, error)

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context) ([]entity.RegionCurrency, error)

func (*Service) GetByCode

func (s *Service) GetByCode(ctx context.Context, code string) (*entity.RegionCurrency, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, id uint) (*entity.RegionCurrency, error)

func (*Service) GetByRegionAndCurrencyCodes

func (s *Service) GetByRegionAndCurrencyCodes(ctx context.Context, regionCode, currencyCode string) (*entity.RegionCurrency, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, id uint, isActiveForUsers, isActiveForDevelopers *bool) (*entity.RegionCurrency, error)

type ServiceParams

type ServiceParams struct {
	fx.In

	CurrencyRepository repository.CurrencyRepository
}

Jump to

Keyboard shortcuts

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