From 1fb72b998199cb7d772cafa0038e4e9eb86b9a2b Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 23 Nov 2023 15:50:14 +0000 Subject: [PATCH] Updating missing changes for common constants refactor --- regimes/common/common.go | 27 --------------------------- regimes/us/us.go | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/regimes/common/common.go b/regimes/common/common.go index 76a048da..2cc68f81 100644 --- a/regimes/common/common.go +++ b/regimes/common/common.go @@ -9,33 +9,6 @@ import ( "github.com/invopop/gobl/tax" ) -// Standard tax categories that may be shared between countries. -const ( - TaxCategoryST cbc.Code = "ST" // Sales Tax - TaxCategoryVAT cbc.Code = "VAT" // Value Added Tax - TaxCategoryGST cbc.Code = "GST" // Goods and Services Tax -) - -// Most commonly used keys. Local regions may add their own rate keys. -const ( - TaxRateExempt cbc.Key = "exempt" - TaxRateZero cbc.Key = "zero" - TaxRateStandard cbc.Key = "standard" - TaxRateIntermediate cbc.Key = "intermediate" - TaxRateReduced cbc.Key = "reduced" - TaxRateSuperReduced cbc.Key = "super-reduced" - TaxRateSpecial cbc.Key = "special" -) - -// Standard tax tags -const ( - TagSimplified cbc.Key = "simplified" - TagReverseCharge cbc.Key = "reverse-charge" - TagCustomerRates cbc.Key = "customer-rates" - TagSelfBilled cbc.Key = "self-billed" - TagPartial cbc.Key = "partial" -) - // Common inbox keys const ( InboxKeyPEPPOL cbc.Key = "peppol-id" diff --git a/regimes/us/us.go b/regimes/us/us.go index 0fbaa76f..b35deb0f 100644 --- a/regimes/us/us.go +++ b/regimes/us/us.go @@ -36,7 +36,7 @@ func New() *tax.Regime { // Sales Tax // { - Code: common.TaxCategoryST, + Code: tax.CategoryST, Name: i18n.String{ i18n.EN: "ST", },