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

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.js CHANGED
@@ -1382,7 +1382,8 @@ function normalizeLineItem(line) {
1382
1382
  totalAmount: cost?.totalAmount?.amount || 0,
1383
1383
  subtotalAmount: cost?.subtotalAmount?.amount || 0,
1384
1384
  discountAllocations: discountAllocations?.map((item) => ({
1385
- code: item?.code || item?.title || "",
1385
+ title: item?.title || "",
1386
+ code: item?.code || "",
1386
1387
  amount: item?.discountedAmount?.amount || 0
1387
1388
  })) || [],
1388
1389
  customAttributes: attributes?.filter((item) => item.key && item.value).map((item) => ({ key: item.key, value: item.value || "" })) || [],