hookwright 2.3.0 → 2.3.1
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/cli.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ var init_package = __esm({
|
|
|
24
24
|
"package.json"() {
|
|
25
25
|
package_default = {
|
|
26
26
|
name: "hookwright",
|
|
27
|
-
version: "2.3.
|
|
27
|
+
version: "2.3.1",
|
|
28
28
|
description: "Build real, signed e-commerce webhooks from a live Shopify catalogue \u2014 interactive terminal UI, no backend",
|
|
29
29
|
keywords: [
|
|
30
30
|
"webhook",
|
|
@@ -1826,9 +1826,9 @@ var COMMON_FIELDS3 = [
|
|
|
1826
1826
|
{ source: "request.smart_exchange", target: "smartExchange" },
|
|
1827
1827
|
{ source: "request.order.name", target: "order.name" },
|
|
1828
1828
|
{ source: "request.order.id", target: "order.id" },
|
|
1829
|
-
{ source: "request.line_items[].original_product.title", target: "product.
|
|
1829
|
+
{ source: "request.line_items[].original_product.title", target: "product.details", required: true, note: "the first PAID line names the caption; freebies rank last" },
|
|
1830
1830
|
{ source: "request.line_items[].original_product.image.src", target: "product.image" },
|
|
1831
|
-
{ source: "request.line_items[].original_product.price", target: "product.
|
|
1831
|
+
{ source: "request.line_items[].original_product.price", target: "product.totalPrice", note: "summed across the lines, times quantity; a zero marks a freebie" },
|
|
1832
1832
|
{ source: "request.line_items[].original_product.sku", target: "product.sku" },
|
|
1833
1833
|
{ source: "request.line_items[].reason", target: "reason" },
|
|
1834
1834
|
{ source: "request.line_items[].quantity", target: "product.quantity" },
|
|
@@ -1845,7 +1845,7 @@ var COMMON_FIELDS3 = [
|
|
|
1845
1845
|
];
|
|
1846
1846
|
var EXCHANGE_FIELDS = [
|
|
1847
1847
|
{ source: "request.line_items[].exchange_product.title", target: "exchangeProduct.name", note: "exchanges only \u2014 returns never carry it" },
|
|
1848
|
-
{ source: "request.line_items[].exchange_product.price", target: "exchangeProduct.
|
|
1848
|
+
{ source: "request.line_items[].exchange_product.price", target: "exchangeProduct.totalPrice + pricing.priceDifference", note: "both summed across the lines, times quantity; the difference is signed, positive means the shopper owes more" },
|
|
1849
1849
|
{ source: "request.line_items[].exchange_product.image.src", target: "exchangeProduct.image" },
|
|
1850
1850
|
{ source: "request.line_items[].exchange_product.sku", target: "exchangeProduct.sku" }
|
|
1851
1851
|
];
|