Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Countries []Country
View Source
var CountryLastUpdated time.Time
Functions ¶
func LoadDaisho ¶
func LoadShopJS ¶
Types ¶
type Country ¶
type Country struct {
Name string `json:"name"`
IsoCode string `json:"code"`
SubDivisions []SubDivision `json:"subdivisions"`
}
type LoadDaishoReq ¶
type LoadDaishoRes ¶
type LoadDaishoRes struct {
Countries []Country `json:"countries,omitempty"`
}
type LoadShopJSReq ¶
type LoadShopJSReq struct {
HasCountries bool `json:"hasCountries"`
HasTaxRates bool `json:"hasTaxRates"`
HasShippingRates bool `json:"hasShippingRates"`
LastChecked time.Time `json:"lastChecked"`
StoreId string `json:"storeId"`
}
ShopJS request and response
type LoadShopJSRes ¶
type LoadShopJSRes struct {
Countries []Country `json:"countries,omitempty"`
TaxRates *taxrates.TaxRates `json:"taxRates,omitempty"`
ShippingRates *shippingrates.ShippingRates `json:"shippingRates,omitempty"`
Currency currency.Type `json:"currency,omitempty"`
StoreId string `json:"storeId,omitempty"`
Live bool `json:"live"`
}
type SubDivision ¶
Countries Loading
Click to show internal directories.
Click to hide internal directories.