I used the OrderRepository to return a bunch of Order[] and want to decorate them with totals, so I used OrderService.decorateTotals() for each Order. However, I get:
TypeError: Cannot read properties of undefined (reading 'tax_provider_id')
at TaxProviderService.retrieveProvider (/Users/zarar/dev/punchline-backend/node_modules/@medusajs/medusa/dist/services/tax-provider.js:103:20)
I am using a custom tax provider and it is configured correctly in the Admin section (the tax totals works just fine) but because of calculationContext.region being undefined in the tax-provider.ts, it throws an error when accessing region.tax_provider_id
How do I decorate individual orders with totals while using a custom tax provider?