taxes

package
v0.0.0-...-9123e61 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidParameter = errors.New("invalid parameter")

	ErrInvalidTaxId   = errors.New("invalid tax id")
	ErrInvalidTaxName = errors.New("invalid tax name")
	ErrInvalidTaxRate = errors.New("invalid tax rate")
)

Functions

This section is empty.

Types

type TaxRepository

type TaxRepository interface {
	SaveTax(ctx context.Context, tax *models.Tax) (*models.Tax, error)
	GetTaxByID(ctx context.Context, taxId uuid.UUID) (*models.Tax, error)
	GetTaxesByItemOriginAndCategory(ctx context.Context, origin models.ItemOrigin, categoryId uuid.UUID) ([]*models.Tax, error)
	FetchAllTaxes(ctx context.Context) ([]*models.Tax, error)
	DeleteTax(ctx context.Context, taxId uuid.UUID) (*models.Tax, error)
}

type TaxService

type TaxService interface {
	CreateTax(ctx context.Context, tax *models.Tax) (*models.Tax, error)
	UpdateTax(ctx context.Context, tax *models.Tax) (*models.Tax, error)
	GetTaxByID(ctx context.Context, taxId uuid.UUID) (*models.Tax, error)
	FetchAllTaxes(ctx context.Context) ([]*models.Tax, error)
	DeleteTax(ctx context.Context, taxId uuid.UUID) (*models.Tax, error)
	GetSaleItem(ctx context.Context, item *models.InventoryItem) (*models.SaleItem, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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