money

package
v0.230719.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSensor      = fmt.Errorf("Defective_Sensor")
	ErrNoStorage   = fmt.Errorf("Storage_Unplugged")
	ErrJam         = fmt.Errorf("Jam")
	ErrROMChecksum = fmt.Errorf("ROM_checksum")
	ErrFraud       = fmt.Errorf("Possible_Credited_Money_Removal")
	ErrFishingOK   = fmt.Errorf("ALERT_!!!!_Credited_Money_Removal._good_fishing")
	ErrFishingFail = fmt.Errorf("maybe_alert_!!!!_Bill_money_fishing_fail")
	ErrBillReject  = fmt.Errorf("Bill_rejected")
)

Functions

This section is empty.

Types

type PollItem

type PollItem struct {
	// TODO avoid time.Time for easy GC (contains pointer)
	// Time        time.Time
	Error        error
	DataNominal  currency.Nominal
	Status       PollItemStatus
	DataCount    uint8
	DataCashbox  bool
	HardwareCode byte
}

func (*PollItem) Amount

func (pi *PollItem) Amount() currency.Amount

func (*PollItem) String

func (pi *PollItem) String() string

type PollItemStatus

type PollItemStatus byte
const (
	StatusInfo PollItemStatus
	StatusError
	StatusFatal
	StatusDisabled
	StatusBusy
	StatusWasReset
	StatusCredit
	StatusRejected
	StatusEscrow
	StatusReturnRequest
	StatusDispensed
)

func (PollItemStatus) String

func (i PollItemStatus) String() string

type ValidatorEvent added in v0.230424.2

type ValidatorEvent struct {
	Err     error
	Event   ValidatorEventName
	Nominal currency.Nominal
}

type ValidatorEventName added in v0.230424.2

type ValidatorEventName byte
const (
	NoEvent ValidatorEventName = iota
	Reseted
	PollerStoped
	InEscrow
	OutEscrow
	Stacked
	CoinRejectKey
	CoinCredit
)

Jump to

Keyboard shortcuts

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