Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formula ¶
type Formula struct {
MinWeight weight.Mass `json:"minWeight"`
RateType RateType `json:"type"`
Price currency.Cents `json:"price"`
}
This represents the minimum value of a shipping formula
for example: Shipping = $10 Flat Rate if weight > 10 lbs
type Rates ¶
type Rates struct {
Formulas []Formula `json:"formulas"`
WeightUnit weight.Unit `json:"weightUnit"`
Currency currency.Type `json:"currency"`
// Rate used by default
BaseRateType RateType `json:"type"`
BasePrice currency.Cents `json:"price"`
}
A collection of shipping rate formulas, all must have a common weight and currency unit
Click to show internal directories.
Click to hide internal directories.