Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInsufficientStocks = errors.New("insufficient warehouse item stocks")
ErrInsufficientStocks is returned when there are insufficient stocks.
View Source
var ErrTransferAlreadyCommitted = errors.New("transfer already committed")
ErrTransferAlreadyCommitted is returned when the transfer is already committed.
Functions ¶
This section is empty.
Types ¶
type TransferManager ¶
type TransferManager struct {
// contains filtered or unexported fields
}
TransferManager is a utility for drafting and committing a transfer.
func NewTransferManager ¶
func NewTransferManager(dao *daos.Dao) (*TransferManager, error)
NewTransferManager creates a new stocks manager.
func (*TransferManager) Commit ¶
func (sm *TransferManager) Commit(transferID string) error
Commit commits the given transfer.
Click to show internal directories.
Click to hide internal directories.