entities

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawRecord

type RawRecord struct {
	ID                     id.ID
	UserID                 id.ID
	AnalyzeRequestID       id.ID
	CheckInInfo            string
	CheckInText            string
	Fare                   *float64
	FareCalculation        string
	FareText               string
	ModalType              string
	ProductInfo            string
	ProductText            string
	Pto                    string
	TransactionDateTime    time.Time
	TransactionInfo        string
	TransactionName        types.TransactionName
	EPurseMut              *float64
	EPurseMutInfo          string
	TransactionExplanation string
	TransactionPriority    string
	Source                 types.RawRecordSource
	CreatedAt              time.Time
	UpdatedAt              time.Time
}

RawRecord represents a transaction record

func (RawRecord) IsCheckIn

func (record RawRecord) IsCheckIn() bool

IsCheckIn determines if a record is a check in record

func (RawRecord) IsCheckOut

func (record RawRecord) IsCheckOut() bool

IsCheckOut determines if a record is checkout transaction.

func (RawRecord) IsNS

func (record RawRecord) IsNS() bool

IsNS is used to determine if a raw record is from the NS company

func (RawRecord) IsNSSupplement

func (record RawRecord) IsNSSupplement() bool

IsNSSupplement determines if a records is a surcharge

func (RawRecord) IsRET

func (record RawRecord) IsRET() bool

IsRET is used to determine if a raw record is from the RET company

Jump to

Keyboard shortcuts

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