Documentation ¶
Index ¶
- Constants
- func FormatBool(value bool) string
- func FormatCents(value unit.Cents) string
- func FormatDate(value time.Time) string
- func FormatEscalation(value float64) string
- func FormatFloat(value float64, precision int) string
- func FormatTimestamp(value time.Time) string
- func GetMinDomesticWeight() unit.Pound
- func IsPeakPeriod(date time.Time) bool
- func NewCounselingServicesPricer() services.CounselingServicesPricer
- func NewDomesticCratingPricer() services.DomesticCratingPricer
- func NewDomesticDestinationAdditionalDaysSITPricer() services.DomesticDestinationAdditionalDaysSITPricer
- func NewDomesticDestinationFirstDaySITPricer() services.DomesticDestinationFirstDaySITPricer
- func NewDomesticDestinationPricer() services.DomesticDestinationPricer
- func NewDomesticDestinationSITDeliveryPricer() services.DomesticDestinationSITDeliveryPricer
- func NewDomesticDestinationSITFuelSurchargePricer() services.DomesticDestinationSITFuelSurchargePricer
- func NewDomesticDestinationShuttlingPricer() services.DomesticDestinationShuttlingPricer
- func NewDomesticLinehaulPricer() services.DomesticLinehaulPricer
- func NewDomesticNTSPackPricer() services.DomesticNTSPackPricer
- func NewDomesticOriginAdditionalDaysSITPricer() services.DomesticOriginAdditionalDaysSITPricer
- func NewDomesticOriginFirstDaySITPricer() services.DomesticOriginFirstDaySITPricer
- func NewDomesticOriginPricer() services.DomesticOriginPricer
- func NewDomesticOriginSITFuelSurchargePricer() services.DomesticOriginSITFuelSurchargePricer
- func NewDomesticOriginSITPickupPricer() services.DomesticOriginSITPickupPricer
- func NewDomesticOriginShuttlingPricer() services.DomesticOriginShuttlingPricer
- func NewDomesticPackPricer() services.DomesticPackPricer
- func NewDomesticShorthaulPricer() services.DomesticShorthaulPricer
- func NewDomesticUncratingPricer() services.DomesticUncratingPricer
- func NewDomesticUnpackPricer() services.DomesticUnpackPricer
- func NewFuelSurchargePricer() services.FuelSurchargePricer
- func NewManagementServicesPricer() services.ManagementServicesPricer
- func NewServiceItemPricer() services.ServiceItemPricer
- func PricerForServiceItem(serviceCode models.ReServiceCode) (services.ParamsPricer, error)
Constants ¶
const ( DateParamFormat = "2006-01-02" TimestampParamFormat = time.RFC3339 )
Constants for formatting Time-based parameters
Variables ¶
This section is empty.
Functions ¶
func FormatBool ¶
FormatBool returns a formatted boolean value to display to the TXO
func FormatCents ¶
FormatCents returns a formatted dollar value, without a $, to display to the TXO
func FormatDate ¶
FormatDate returns a formatted date to display to the TXO
func FormatEscalation ¶
FormatEscalation returns a formatted pricing escalation value to display to the TXO
func FormatFloat ¶
FormatFloat returns a formatted float value to display to the TXO
func FormatTimestamp ¶
FormatTimestamp returns a formatted timestamp to display to the TXO
func GetMinDomesticWeight ¶
func IsPeakPeriod ¶
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 NewDomesticDestinationSITFuelSurchargePricer ¶
func NewDomesticDestinationSITFuelSurchargePricer() services.DomesticDestinationSITFuelSurchargePricer
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.
Source Files ¶
- counseling_services_pricer.go
- domestic_crating_pricer.go
- domestic_destination_additional_days_sit_pricer.go
- domestic_destination_first_day_sit_pricer.go
- domestic_destination_pricer.go
- domestic_destination_shuttling_pricer.go
- domestic_destination_sit_delivery_pricer.go
- domestic_destination_sit_fuel_surcharge_pricer.go
- domestic_linehaul_pricer.go
- domestic_nts_pack_pricer.go
- domestic_origin_additional_days_sit_pricer.go
- domestic_origin_first_day_sit_pricer.go
- domestic_origin_pricer.go
- domestic_origin_shuttling_pricer.go
- domestic_origin_sit_fuel_surcharge_pricer.go
- domestic_origin_sit_pickup_pricer.go
- domestic_pack_pricer.go
- domestic_shorthaul_pricer.go
- domestic_uncrating_pricer.go
- domestic_unpack_pricer.go
- fuel_surcharge_pricer.go
- management_services_pricer.go
- param_convert.go
- pricer_formatters.go
- pricer_helpers.go
- pricer_query_helpers.go
- service_item_pricer.go
- shared.go