feat(tax): add endpoints to create tax regions and tax rates (#6533)

**What**
Adds:
- POST /admin/tax-regions
- POST /admin/tax-rates
- GET /admin/tax-rates
- `createTaxRegionsWorkflow`
- `createTaxRatesWorkflow`
This commit is contained in:
Sebastian Rindom
2024-02-29 10:26:21 +00:00
committed by GitHub
parent e076590ff2
commit 2407b443f1
20 changed files with 590 additions and 5 deletions
@@ -148,7 +148,7 @@ export default class TaxModuleService<
await this.taxRateRuleService_.create(rulesToCreate, sharedContext)
}
return await this.baseRepository_.serialize<TaxTypes.TaxRateDTO>(rates, {
return await this.baseRepository_.serialize<TaxTypes.TaxRateDTO[]>(rates, {
populate: true,
})
}