Add support for tax inclusivity to region and store (#7808)

This also includes rework of the currency model for the Store module.

This change is breaking as existing stores won't have any supported currencies set, so users would need to go to the store settings again and choose the supported currencies there.
This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-06-24 15:25:44 +00:00
1 parent 79d90fadc4
commit e8d6025374
45 files changed
+580 -408

No files matched your search

@@ -29,13 +29,18 @@ medusaIntegrationTestRunner({
it("should correctly implement the entire lifecycle of a store", async () => {
const createdStore = await service.createStores({
name: "Test store",
supported_currency_codes: ["usd"],
supported_currencies: [{ currency_code: "usd", is_default: true }],
})
expect(createdStore).toEqual(
expect.objectContaining({
id: createdStore.id,
supported_currency_codes: ["usd"],
supported_currencies: [
expect.objectContaining({
currency_code: "usd",
is_default: true,
}),
],
name: "Test store",
})
)