@anker-in/shopify-sdk 0.1.1-beta.17 → 0.1.1-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -10280,6 +10280,7 @@ interface NormalizedCart {
10280
10280
  code: string;
10281
10281
  }>;
10282
10282
  discountAllocations?: Array<{
10283
+ title: string;
10283
10284
  code: string;
10284
10285
  amount: number;
10285
10286
  }>;
package/dist/index.d.ts CHANGED
@@ -10280,6 +10280,7 @@ interface NormalizedCart {
10280
10280
  code: string;
10281
10281
  }>;
10282
10282
  discountAllocations?: Array<{
10283
+ title: string;
10283
10284
  code: string;
10284
10285
  amount: number;
10285
10286
  }>;
package/dist/index.js CHANGED
@@ -1449,7 +1449,8 @@ function normalizeCart(cart) {
1449
1449
  orderDiscounts,
1450
1450
  discountCodes: cart.discountCodes || [],
1451
1451
  discountAllocations: cart?.discountAllocations?.map((item) => ({
1452
- code: item?.code || item?.title || "",
1452
+ title: item?.title || "",
1453
+ code: item?.code || "",
1453
1454
  amount: Number(item?.discountedAmount?.amount || 0)
1454
1455
  })) || [],
1455
1456
  // Map delivery amount from cart cost