ghcrateengine

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateParamFormat      = "2006-01-02"
	TimestampParamFormat = time.RFC3339
)

Constants for formatting Time-based parameters

Variables

This section is empty.

Functions

func FormatBool

func FormatBool(value bool) string

FormatBool returns a formatted boolean value to display to the TXO

func FormatCents

func FormatCents(value unit.Cents) string

FormatCents returns a formatted dollar value, without a $, to display to the TXO

func FormatDate

func FormatDate(value time.Time) string

FormatDate returns a formatted date to display to the TXO

func FormatEscalation

func FormatEscalation(value float64) string

FormatEscalation returns a formatted pricing escalation value to display to the TXO

func FormatFloat

func FormatFloat(value float64, precision int) string

FormatFloat returns a formatted float value to display to the TXO

func FormatTimestamp

func FormatTimestamp(value time.Time) string

FormatTimestamp returns a formatted timestamp to display to the TXO

func GetMinDomesticWeight

func GetMinDomesticWeight() unit.Pound

func IsPeakPeriod

func IsPeakPeriod(date time.Time) bool

IsPeakPeriod determines if the given date is in the peak or non-peak part of the year

func NewCounselingServicesPricer

func NewCounselingServicesPricer() services.CounselingServicesPricer

NewCounselingServicesPricer creates a new pricer for counseling services

func NewDomesticCratingPricer

func NewDomesticCratingPricer() services.DomesticCratingPricer

NewDomesticCratingPricer creates a new pricer for domestic destination first day SIT

func NewDomesticDestinationAdditionalDaysSITPricer

func NewDomesticDestinationAdditionalDaysSITPricer() services.DomesticDestinationAdditionalDaysSITPricer

NewDomesticDestinationAdditionalDaysSITPricer creates a new pricer for domestic destination additional days SIT

func NewDomesticDestinationFirstDaySITPricer

func NewDomesticDestinationFirstDaySITPricer() services.DomesticDestinationFirstDaySITPricer

NewDomesticDestinationFirstDaySITPricer creates a new pricer for domestic destination first day SIT

func NewDomesticDestinationPricer

func NewDomesticDestinationPricer() services.DomesticDestinationPricer

NewDomesticDestinationPricer instantiates a new pricer

func NewDomesticDestinationSITDeliveryPricer

func NewDomesticDestinationSITDeliveryPricer() services.DomesticDestinationSITDeliveryPricer

NewDomesticDestinationSITDeliveryPricer creates a new pricer for domestic destination SIT delivery

func NewDomesticDestinationShuttlingPricer

func NewDomesticDestinationShuttlingPricer() services.DomesticDestinationShuttlingPricer

NewDomesticDestinationShuttlingPricer creates a new pricer for domestic destination first day SIT

func NewDomesticLinehaulPricer

func NewDomesticLinehaulPricer() services.DomesticLinehaulPricer

NewDomesticLinehaulPricer creates a new pricer for domestic linehaul services

func NewDomesticNTSPackPricer

func NewDomesticNTSPackPricer() services.DomesticNTSPackPricer

NewDomesticNTSPackPricer creates a new pricer for the domestic NTS pack service

func NewDomesticOriginAdditionalDaysSITPricer

func NewDomesticOriginAdditionalDaysSITPricer() services.DomesticOriginAdditionalDaysSITPricer

NewDomesticOriginAdditionalDaysSITPricer creates a new pricer for domestic origin additional days SIT

func NewDomesticOriginFirstDaySITPricer

func NewDomesticOriginFirstDaySITPricer() services.DomesticOriginFirstDaySITPricer

NewDomesticOriginFirstDaySITPricer creates a new pricer for domestic origin first day SIT

func NewDomesticOriginPricer

func NewDomesticOriginPricer() services.DomesticOriginPricer

NewDomesticOriginPricer creates a new pricer for domestic origin services

func NewDomesticOriginSITFuelSurchargePricer

func NewDomesticOriginSITFuelSurchargePricer() services.DomesticOriginSITFuelSurchargePricer

func NewDomesticOriginSITPickupPricer

func NewDomesticOriginSITPickupPricer() services.DomesticOriginSITPickupPricer

NewDomesticOriginSITPickupPricer creates a new pricer for domestic origin SIT pickup

func NewDomesticOriginShuttlingPricer

func NewDomesticOriginShuttlingPricer() services.DomesticOriginShuttlingPricer

NewDomesticOriginShuttlingPricer creates a new pricer for domestic origin first day SIT

func NewDomesticPackPricer

func NewDomesticPackPricer() services.DomesticPackPricer

NewDomesticPackPricer creates a new pricer for the domestic pack service

func NewDomesticShorthaulPricer

func NewDomesticShorthaulPricer() services.DomesticShorthaulPricer

NewDomesticShorthaulPricer is the public constructor for a DomesticRateAreaPricer using Pop

func NewDomesticUncratingPricer

func NewDomesticUncratingPricer() services.DomesticUncratingPricer

NewDomesticUncratingPricer creates a new pricer for domestic destination first day SIT

func NewDomesticUnpackPricer

func NewDomesticUnpackPricer() services.DomesticUnpackPricer

NewDomesticUnpackPricer creates a new pricer for the domestic unpack service

func NewFuelSurchargePricer

func NewFuelSurchargePricer() services.FuelSurchargePricer

NewFuelSurchargePricer is the public constructor for a domesticFuelSurchargePricer using Pop

func NewManagementServicesPricer

func NewManagementServicesPricer() services.ManagementServicesPricer

NewManagementServicesPricer creates a new pricer for management services

func NewServiceItemPricer

func NewServiceItemPricer() services.ServiceItemPricer

NewServiceItemPricer constructs a pricer for service items

func PricerForServiceItem

func PricerForServiceItem(serviceCode models.ReServiceCode) (services.ParamsPricer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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