@porulle/adapter-shopify 0.71.0 → 0.72.0
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 +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -246,6 +246,8 @@ export function shopifyConnector(options) {
|
|
|
246
246
|
})),
|
|
247
247
|
// The delivery the shopper paid this seller, so the order total matches the payment below.
|
|
248
248
|
...(slice.shipping ? { shippingLines: [{ title: slice.shipping.title, priceSet: money(slice.shipping.amount, slice.currency) }] } : {}),
|
|
249
|
+
// The shopper's discount as a fixed amount off the items, so the store's total is what was paid.
|
|
250
|
+
...(slice.discount ? { discountCode: { itemFixedDiscountCode: { code: slice.discount.code, amountSet: money(slice.discount.amount, slice.currency) } } } : {}),
|
|
249
251
|
transactions: [{ kind: "SALE", status: "SUCCESS", gateway: SOURCE_NAME, amountSet: money(slice.grandTotal, slice.currency) }],
|
|
250
252
|
},
|
|
251
253
|
options: { inventoryBehaviour: "DECREMENT_OBEYING_POLICY", sendReceipt: false, sendFulfillmentReceipt: false },
|