File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
components/shopify_developer_app
update-fulfillment-tracking-info Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import shopify from "../../shopify_developer_app.app.mjs";
22import { MAX_LIMIT } from "@pipedream/shopify/common/constants.mjs" ;
33
44export 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 ,
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments