taxrates

package
v1.46.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL