fix(orchestration,link-modules,pricing,types): fix shippingprofile errror outside of core + change link alias name (#5025)

* fix(orchestration,link-modules,pricing,types): fix shippingprofile error outside of core + change link alias name

* chore: scope relationships and move condition inside

* chore: remove islist

* chore: fix merge conflict

* chore: reverted serviceName scoping

* chore: change shape to make methodOverride compatible

* chore: added methodOverride to remote query

* chore: revert override
This commit is contained in:
Riqwan Thamir
2023-09-13 12:16:00 +02:00
committed by GitHub
parent 7231f65833
commit 3d68be2b6b
10 changed files with 49 additions and 21 deletions
@@ -72,7 +72,7 @@ describe("PricingModule Service - PriceSet", () => {
describe("calculatePrices", () => {
it("retrieves the calculated prices when no context is set", async () => {
const priceSetsResult = await service.calculatePrices(
["price-set-1", "price-set-2"],
{ id: ["price-set-1", "price-set-2"] },
{}
)
@@ -96,9 +96,11 @@ describe("PricingModule Service - PriceSet", () => {
it("retrieves the calculated prices when a context is set", async () => {
const priceSetsResult = await service.calculatePrices(
["price-set-1", "price-set-2"],
{ id: ["price-set-1", "price-set-2"] },
{
currency_code: "USD",
context: {
currency_code: "USD",
},
}
)
@@ -122,9 +124,9 @@ describe("PricingModule Service - PriceSet", () => {
it("retrieves the calculated prices only when id exists in the database", async () => {
const priceSetsResult = await service.calculatePrices(
["price-set-doesnotexist", "price-set-1"],
{ id: ["price-set-doesnotexist", "price-set-1"] },
{
currency_code: "USD",
context: { currency_code: "USD" },
}
)