Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoRate ¶
type GeoRate struct {
Country string `json:"country"`
State string `json:"state"`
// Only take a city OR postal code, not both
City string `json:"city"`
// Comma separates postal codes
PostalCodes string `json:"postalCode"`
Above currency.Cents `json:"above"`
Below currency.Cents `json:"below"`
// Support both percent and currency
// Use store's currency in implementation
Percent float64 `json:"percent"`
Cost currency.Cents `json:"cost"`
}
func Match ¶
Match across an array of georates, return result with highest match level, return first result if there is a tie
Click to show internal directories.
Click to hide internal directories.