Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CompanyNameNS is the company name for the NS train CompanyNameNS = CompanyName("NS") // CompanyNameRET is the company name for RET CompanyNameRET = CompanyName("RET") )
View Source
const ( // RawRecordSourceAPI is an API source RawRecordSourceAPI = RawRecordSource("API") // RawRecordSourceCSV is a CSV source RawRecordSourceCSV = RawRecordSource("CSV") )
View Source
const ( // TransactionNameCheckIn represents a check in transaction TransactionNameCheckIn = TransactionName("Check-in") // TransactionNameCheckOut represents a check out transaction TransactionNameCheckOut = TransactionName("Check-uit") // TransactionNameIntercityDirectSurcharge represents an intercity direct transaction TransactionNameIntercityDirectSurcharge = TransactionName("Toeslag Intercity Direct") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyName ¶
type CompanyName string
CompanyName is the company to which a transaction belongs
func (CompanyName) String ¶
func (companyName CompanyName) String() string
String returns the company name as a string
type RawRecordSource ¶
type RawRecordSource string
RawRecordSource is the source for a raw record entry
func RawRecordSourceFromString ¶
func RawRecordSourceFromString(source string) (rawRecordSource RawRecordSource, err error)
func (RawRecordSource) String ¶
func (source RawRecordSource) String() string
String converts a raw record source to a string
type TransactionName ¶
type TransactionName string
TransactionName represents the various transaction names
func (TransactionName) IsTheSameAs ¶
func (name TransactionName) IsTheSameAs(comp TransactionName) bool
IsTheSameAs is used to compare 2 transaction names
func (TransactionName) String ¶
func (name TransactionName) String() string
String returns the transaction name as a string
Click to show internal directories.
Click to hide internal directories.