@porulle/adapter-shopify 0.68.2 → 0.68.4

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
@@ -226,6 +226,8 @@ export function shopifyConnector(options) {
226
226
  requiresShipping: true,
227
227
  priceSet: money(line.unitPrice, slice.currency),
228
228
  })),
229
+ // The delivery the shopper paid this seller, so the order total matches the payment below.
230
+ ...(slice.shipping ? { shippingLines: [{ title: slice.shipping.title, priceSet: money(slice.shipping.amount, slice.currency) }] } : {}),
229
231
  transactions: [{ kind: "SALE", status: "SUCCESS", gateway: SOURCE_NAME, amountSet: money(slice.grandTotal, slice.currency) }],
230
232
  },
231
233
  options: { inventoryBehaviour: "DECREMENT_OBEYING_POLICY", sendReceipt: false, sendFulfillmentReceipt: false },