repository

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInventoryQtyNotSufficient = errors.New("inventory qty is not sufficient")
)

Functions

This section is empty.

Types

type StockRepository

type StockRepository interface {
	GetStocksBySKU(ctx context.Context, skus []string) ([]*entity.StockItem, error)
	DecrementStockQtyBySku(ctx context.Context, sku string, decrement int64) error
	AddStock(ctx context.Context, newItem *entity.StockItem) error
	GetStockBySKU(ctx context.Context, sku string) (*entity.StockItem, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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