Documentation
¶
Overview ¶
Package taxes provides functionality for calculating taxes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTaxRateNotFound returned when no tax rate found in taxrates. ErrTaxRateNotFound = errors.New("tax rate not found") // ErrTaxTypeNotSupported returned when TaxType has invalid value. ErrTaxTypeNotSupported = errors.New("tax type not supported") )
View Source
var ErrInvalidTaxType = errors.New("invalid tax type")
ErrInvalidTaxType returned when tax type is invalid.
Functions ¶
This section is empty.
Types ¶
type TaxType ¶
type TaxType uint
TaxType represents tax type for calculation.
const ( // TaxTypeIndividualEntrepreneur is Individual Entrepreneur tax type. TaxTypeIndividualEntrepreneur TaxType // Individual Entrepreneur // TaxTypeSmallBusiness is Small Business tax type. TaxTypeSmallBusiness // Small Business // TaxTypeEmployment is Employment tax type. TaxTypeEmployment // Employment )
func ParseTaxType ¶
ParseTaxType parses TaxType from string.
Click to show internal directories.
Click to hide internal directories.