Documentation ¶ Index ¶ func Query(db *datastore.Datastore) datastore.Query type GeoRate type TaxRates func New(db *datastore.Datastore) *TaxRates func (t TaxRates) GetGeoRates() []georate.GeoRate func (t TaxRates) Match(ctr, st, ct, pc string, c currency.Cents) (*GeoRate, int, int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Query ¶ func Query(db *datastore.Datastore) datastore.Query Types ¶ type GeoRate ¶ type GeoRate struct { georate.GeoRate // Implement this flag when we need it TaxShipping bool `json:"taxShipping"` // Tax Name like 'Tax' or 'VAT' TaxName string `json:"taxName"` } type TaxRates ¶ type TaxRates struct { mixin.Model[TaxRates] StoreId string `json:"storeId"` GeoRates []GeoRate `json:"geoRates"` } func New ¶ func New(db *datastore.Datastore) *TaxRates func (TaxRates) GetGeoRates ¶ func (t TaxRates) GetGeoRates() []georate.GeoRate func (TaxRates) Match ¶ func (t TaxRates) Match(ctr, st, ct, pc string, c currency.Cents) (*GeoRate, int, int) Source Files ¶ View all Source files taxrates.go Click to show internal directories. Click to hide internal directories.