taxrate

package
v1.37.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 TaxRate

type TaxRate struct {
	mixin.Model[TaxRate]

	Rate         float64 `json:"rate"`
	Code         string  `json:"code"`
	Name         string  `json:"name"`
	IsDefault    bool    `json:"isDefault"`
	IsCombinable bool    `json:"isCombinable"`
	TaxRegionId  string  `json:"taxRegionId"`

	// Arbitrary key/value pairs associated with this tax rate
	Metadata  Map    `json:"metadata,omitempty" datastore:"-" orm:"default:{}"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func New(db *datastore.Datastore) *TaxRate

func (*TaxRate) Load

func (t *TaxRate) Load(ps []datastore.Property) (err error)

func (*TaxRate) Save

func (t *TaxRate) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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