types

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

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

Jump to

Keyboard shortcuts

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