receipt

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receipt

type Receipt struct {
	trait.HasDetail
	// contains filtered or unexported fields
}

Receipt is a struct that holds the information of a receipt

func NewReceipt

func NewReceipt(reference, driver string) *Receipt

NewReceipt creates a new receipt

func (*Receipt) GetDate

func (r *Receipt) GetDate() time.Time

GetDate returns the date of the receipt

func (*Receipt) GetDriver

func (r *Receipt) GetDriver() string

GetDriver returns the driver of the payment

func (*Receipt) GetReferenceID

func (r *Receipt) GetReferenceID() string

GetReferenceID returns the reference id of the receipt

Jump to

Keyboard shortcuts

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