tax

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalTaxCount

func GetTotalTaxCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertTax

func InsertTax(dbConnPgx utils.PgxIface, tax *Tax) (int, error)

func InsertTaxes

func InsertTaxes(dbConnPgx utils.PgxIface, taxes []Tax) error

func RemoveTax

func RemoveTax(dbConnPgx utils.PgxIface, taxID *int) error

func UpdateTax

func UpdateTax(dbConnPgx utils.PgxIface, tax *Tax) error

Types

type Tax

type Tax struct {
	ID                 *int             `json:"id" db:"id"`                                   //1
	UUID               string           `json:"uuid" db:"uuid"`                               //2
	Name               string           `json:"name" db:"name"`                               //3
	AlternateName      string           `json:"alternateName" db:"alternate_name"`            //4
	StartDate          time.Time        `json:"startDate" db:"start_date"`                    //5
	EndDate            time.Time        `json:"endDate" db:"end_date"`                        //6
	StartBlock         *int             `json:"startBlock" db:"start_block"`                  //7
	EndBlock           *int             `json:"endBlock" db:"end_block"`                      //8
	TaxRate            *decimal.Decimal `json:"taxRate" db:"tax_rate"`                        //9
	TaxRateTypeID      *int             `json:"taxRateTypeId" db:"tax_rate_type_id"`          //10
	ContractAddressStr string           `json:"contractAddressStr" db:"contract_address_str"` //11
	ContractAddressID  *int             `json:"contractAddressId" db:"contract_address_id"`   //12
	TaxTypeID          *int             `json:"taxTypeId" db:"tax_type_id"`                   //13
	Description        string           `json:"description" db:"description"`                 //14
	CreatedBy          string           `json:"createdBy" db:"created_by"`                    //15
	CreatedAt          time.Time        `json:"createdAt" db:"created_at"`                    //16
	UpdatedBy          string           `json:"updatedBy" db:"updated_by"`                    //17
	UpdatedAt          time.Time        `json:"updatedAt" db:"updated_at"`                    //18
}

Tax

func GetTax

func GetTax(dbConnPgx utils.PgxIface, taxID *int) (*Tax, error)

func GetTaxListByPagination

func GetTaxListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Tax, error)

func GetTaxes

func GetTaxes(dbConnPgx utils.PgxIface, ids []int) ([]Tax, error)

func GetTaxesByAssetID

func GetTaxesByAssetID(dbConnPgx utils.PgxIface, assetID *int) ([]Tax, error)

func GetTaxesByUUIDs

func GetTaxesByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Tax, error)

Jump to

Keyboard shortcuts

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