tax

package
v1.3.60 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertTax

func InsertTax(tax Tax) (int, error)

func InsertTaxes

func InsertTaxes(taxes []Tax) error

func RemoveTax

func RemoveTax(taxID int) error

func UpdateTax

func UpdateTax(tax Tax) error

Types

type Tax

type Tax struct {
	ID                 *int             `json:"id"`
	UUID               string           `json:"uuid"`
	Name               string           `json:"name"`
	AlternateName      string           `json:"alternateName"`
	StartDate          *time.Time       `json:"startDate"`
	EndDate            *time.Time       `json:"endDate"`
	StartBlock         *int             `json:"startBlock"`
	EndBlock           *int             `json:"endBlock"`
	TaxRate            *decimal.Decimal `json:"taxRate"`
	TaxRateTypeID      *int             `json:"taxRateTypeId"`
	ContractAddressStr string           `json:"contractAddressStr"`
	ContractAddressID  *int             `json:"contractAddressId"`
	TaxTypeID          *int             `json:"taxTypeId"`
	Description        string           `json:"description"`
	CreatedBy          string           `json:"createdBy"`
	CreatedAt          time.Time        `json:"createdAt"`
	UpdatedBy          string           `json:"updatedBy"`
	UpdatedAt          time.Time        `json:"updatedAt"`
}

Tax

func GetTax

func GetTax(taxID int) (*Tax, error)

func GetTaxes

func GetTaxes(ids []int) ([]Tax, error)

func GetTaxesByAssetID added in v1.2.9

func GetTaxesByAssetID(assetID *int) ([]Tax, error)

func GetTaxesByUUIDs

func GetTaxesByUUIDs(UUIDList []string) ([]Tax, error)

func GetTopTenTaxes

func GetTopTenTaxes() ([]Tax, error)

Jump to

Keyboard shortcuts

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