tax

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(c *gin.Context)

Calculate computes tax for a list of items given a shipping address.

It looks up the TaxRegion matching the provided countryCode and provinceCode, queries all TaxRates for that region, sums combinable rates (or uses the default rate), then applies the effective rate to each item.

func Route

func Route(router router.Router, args ...gin.HandlerFunc)

Types

This section is empty.

Jump to

Keyboard shortcuts

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