Skip to content

Commit f0d77fc

Browse files
committed
updates
1 parent 90ca79f commit f0d77fc

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

components/shopify_developer_app/actions/refund-order/refund-order.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import shopify from "../../shopify_developer_app.app.mjs";
22
import { MAX_LIMIT } from "@pipedream/shopify/common/constants.mjs";
33

44
export default {
5-
key: "shopify-refund-order",
5+
key: "shopify_developer_app-refund-order",
66
name: "Refund Order",
77
description: "Refund an order. [See the documentation](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/refundcreate)",
88
version: "0.0.1",
@@ -15,6 +15,12 @@ export default {
1515
"orderId",
1616
],
1717
},
18+
note: {
19+
type: "string",
20+
label: "Note",
21+
description: "An optional note that's attached to the refund",
22+
optional: true,
23+
},
1824
lineItemIds: {
1925
propDefinition: [
2026
shopify,

components/shopify_developer_app/actions/update-fulfillment-tracking-info/update-fulfillment-tracking-info.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export default {
1414
"orderId",
1515
],
1616
},
17-
fullfillmentId: {
17+
fulfillmentId: {
1818
propDefinition: [
1919
shopify,
20-
"fullfillmentId",
20+
"fulfillmentId",
2121
(c) => ({
2222
orderId: c.orderId,
2323
}),
@@ -50,7 +50,7 @@ export default {
5050
},
5151
async run({ $ }) {
5252
const response = await this.shopify.updateFulfillmentTrackingInfo({
53-
fulfillmentId: this.fullfillmentId,
53+
fulfillmentId: this.fulfillmentId,
5454
trackingInfoInput: {
5555
company: this.company,
5656
number: this.number,
@@ -62,7 +62,7 @@ export default {
6262
if (response.fulfillmentTrackingInfoUpdate.userErrors.length > 0) {
6363
throw new Error(response.fulfillmentTrackingInfoUpdate.userErrors[0].message);
6464
}
65-
$.export("$summary", `Updated fulfillment tracking info for fulfillment with ID: ${this.fullfillmentId}`);
65+
$.export("$summary", `Updated fulfillment tracking info for fulfillment with ID: ${this.fulfillmentId}`);
6666
return response;
6767
},
6868
};

components/shopify_developer_app/shopify_developer_app.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
}));
5858
},
5959
},
60-
fullfillmentId: {
60+
fulfillmentId: {
6161
type: "string",
6262
label: "Fulfillment ID",
6363
description: "The identifier of a fulfillment",

0 commit comments

Comments
 (0)