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:
co-authored by
Philip Korsholm
parent
2947f57db1
commit
1772e80ed1
@@ -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",
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user