feat: Completely revamp the pricing module (#7852)

* feat: Completely revamp the pricing module

* chore: Update all places to the new pricing interfaces

* fix: Remove unnecessary join to itself

* chore: Add data migration for existing users

* fix: Apply the correct index to price rule
This commit is contained in:
Stevche Radevski
2024-07-01 09:47:03 +02:00
committed by GitHub
parent 1f360a3245
commit c661180c44
84 changed files with 661 additions and 3725 deletions
@@ -46,16 +46,8 @@ medusaIntegrationTestRunner({
},
])
await pricingModule.createRuleTypes([
{
name: "customer_group_id",
rule_attribute: "customer_group_id",
},
])
const [priceSet1, priceSet2] = await pricingModule.createPriceSets([
{
rules: [{ rule_attribute: "customer_group_id" }],
prices: [
{
amount: 3000,
@@ -71,7 +63,6 @@ medusaIntegrationTestRunner({
],
},
{
rules: [{ rule_attribute: "customer_group_id" }],
prices: [
{
amount: 400,