feat(dashboard, js-sdk, medusa, tax, types): custom tax providers (#12297)

* wip: setup loaders, add endpoints, module work, types, js sdk

* fix: tax module provider loader

* feat: select provider on region create, fix enpoint middleware registration

* feat: edit form

* fix: rename param

* chore: changeset

* fix: don't default to system provider

* fix: admin fixes, dispalt tax provider

* fix: some tests and types

* fix: remove provider from province regions in test

* fix: more tests, optional provider for sublevel regions, fix few types

* fix: OE test

* feat: edit tax region admin, update tax region core flow changes

* feat: migrate script

* fix: refactor

* chore: use query graph

* feat: provider section
This commit is contained in:
Frane Polić
2025-05-06 19:26:33 +02:00
committed by GitHub
parent 405ee7f7f3
commit 9cedeb182d
48 changed files with 847 additions and 116 deletions
@@ -58,6 +58,7 @@ medusaIntegrationTestRunner({
await api.post(
"/admin/tax-regions",
{
provider_id: "tp_system_system",
country_code: "US",
},
adminHeaders
@@ -2380,6 +2380,7 @@ medusaIntegrationTestRunner({
`/admin/tax-regions`,
{
country_code: "us",
provider_id: "tp_system_system",
default_tax_rate: {
code: "default",
rate: 5,
@@ -2393,6 +2394,7 @@ medusaIntegrationTestRunner({
`/admin/tax-regions`,
{
country_code: "it",
provider_id: "tp_system_system",
default_tax_rate: {
code: "default",
rate: 10,
@@ -2406,6 +2408,7 @@ medusaIntegrationTestRunner({
`/admin/tax-regions`,
{
country_code: "dk",
provider_id: "tp_system_system",
default_tax_rate: {
code: "default",
rate: 20,