feat(pricing,types): price list API + price calculations with price lists (#5498)

**what:**

**PriceList Service APIs:**

- createPriceList
- updatePriceList
- addPriceListPrices
- removePriceListRules
- setPriceListRules
- deletePriceList
- listPriceLists
- listAndCountPriceLists

**Price Calculations**

- Returns prices with price list prices
- Returns a new shape with calculated and original prices


Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
This commit is contained in:
Riqwan Thamir
2023-11-15 20:24:29 +00:00
committed by GitHub
co-authored by Philip Korsholm
parent 2947f57db1
commit 1772e80ed1
58 changed files with 5745 additions and 1112 deletions
@@ -124,9 +124,9 @@ describe("PriceSet Service", () => {
{
id: "price-set-1",
money_amounts: [
{
expect.objectContaining({
id: "money-amount-USD",
},
}),
],
},
])
@@ -151,9 +151,9 @@ describe("PriceSet Service", () => {
{
id: "price-set-1",
money_amounts: [
{
expect.objectContaining({
id: "money-amount-USD",
},
}),
],
},
])
@@ -227,9 +227,9 @@ describe("PriceSet Service", () => {
{
id: "price-set-1",
money_amounts: [
{
expect.objectContaining({
id: "money-amount-USD",
},
}),
],
},
])