feat(pricing,medusa,utils): added list + get endpoints for price lists (#6592)

what:

- brings back price list GET endpoints to v2 endpoints
This commit is contained in:
Riqwan Thamir
2024-03-07 04:52:31 +05:30
committed by GitHub
parent 531e9e1e94
commit 000eb61e33
23 changed files with 686 additions and 111 deletions

View File

@@ -2523,6 +2523,9 @@ describe("/admin/orders", () => {
refundable_amount: 10000,
gift_card_total: 0,
gift_card_tax_total: 0,
items: [{ refundable: 7200 }],
claims: [],
swaps: [],
})
})

View File

@@ -290,27 +290,29 @@ describe("/store/carts", () => {
"/store/orders/order_test?fields=status&expand=billing_address"
)
expect(Object.keys(response.data.order)).toEqual([
// fields
"status",
expect(Object.keys(response.data.order).sort()).toEqual(
[
// fields
"status",
// selected relations
"billing_address",
// selected relations
"billing_address",
// totals
"shipping_total",
"discount_total",
"tax_total",
"refunded_total",
"total",
"subtotal",
"paid_total",
"refundable_amount",
"gift_card_total",
"gift_card_tax_total",
"item_tax_total",
"shipping_tax_total",
])
// totals
"shipping_total",
"discount_total",
"tax_total",
"refunded_total",
"total",
"subtotal",
"paid_total",
"refundable_amount",
"gift_card_total",
"gift_card_tax_total",
"item_tax_total",
"shipping_tax_total",
].sort()
)
})
it("looks up order", async () => {