assettax

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertAssetTax

func InsertAssetTax(assetTax AssetTax) (int, int, error)

func RemoveAssetTax

func RemoveAssetTax(taxID int, assetID int) error

func UpdateAssetTax

func UpdateAssetTax(assetTax AssetTax) error

Types

type AssetTax

type AssetTax struct {
	TaxID           *int             `json:"taxId"`
	AssetID         *int             `json:"assetId"`
	UUID            string           `json:"uuid"`
	Name            string           `json:"name"`
	AlternateName   string           `json:"alternateName"`
	TaxRateOverride *decimal.Decimal `json:"taxRateOverride"`
	TaxRateTypeID   *int             `json:"taxRateTypeId"`
	Description     string           `json:"description"`
	CreatedBy       string           `json:"createdBy"`
	CreatedAt       time.Time        `json:"createdAt"`
	UpdatedBy       string           `json:"updatedBy"`
	UpdatedAt       time.Time        `json:"updatedAt"`
}

Asset

func GetAllAssetTaxesByTaxType

func GetAllAssetTaxesByTaxType(taxTypeID int) ([]AssetTax, error)

func GetAssetTax

func GetAssetTax(taxID int, assetID int) (*AssetTax, error)

func GetAssetTaxByTicker

func GetAssetTaxByTicker(taxID int, taxIdentifier string) (*AssetTax, error)

func GetAssetTaxList

func GetAssetTaxList(assetIds []int, taxIds []int) ([]AssetTax, error)

Jump to

Keyboard shortcuts

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