feat(core-flows,pricing,medusa,pricing,types,utils): Price List Prices can have their own rules (#5752)

**What**
- Add price-rules for prices in price-lists
- make rules object optional when creating prices

**Why**
- more price granularity

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
This commit is contained in:
Riqwan Thamir
2023-12-12 08:20:21 +00:00
committed by GitHub
co-authored by Philip Korsholm
parent f05c20695e
commit 079f0da83f
41 changed files with 984 additions and 370 deletions
@@ -3,12 +3,12 @@ export const defaultPriceListData = [
id: "price-list-1",
title: "Price List 1",
description: "test",
number_rules: 0,
rules_count: 0,
},
{
id: "price-list-2",
title: "Price List 2",
description: "test",
number_rules: 0,
rules_count: 0,
},
]
@@ -4,20 +4,20 @@ export const defaultPriceSetMoneyAmountsData = [
title: "price set money amount USD",
price_set: "price-set-1",
money_amount: "money-amount-USD",
number_rules: 1,
rules_count: 1,
},
{
id: "price-set-money-amount-EUR",
title: "price set money amount EUR",
price_set: "price-set-2",
money_amount: "money-amount-EUR",
number_rules: 1,
rules_count: 1,
},
{
id: "price-set-money-amount-CAD",
title: "price set money amount CAD",
price_set: "price-set-3",
money_amount: "money-amount-CAD",
number_rules: 1,
rules_count: 1,
},
]