money

package
v0.210925.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 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.")
)

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 (self *PollItem) Amount() currency.Amount

func (*PollItem) String

func (self *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