money

package
v0.230507.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 BillEvent added in v0.230506.0

type BillEvent struct {
	Err         error
	Event       BillEventName
	BillNominal currency.Nominal
}

type BillEventName added in v0.230506.0

type BillEventName byte
const (
	NoEvent BillEventName = iota
	Reseted
	PollerStoped
	InEscrow
	OutEscrow
	Stacked
)

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

Jump to

Keyboard shortcuts

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