n8n-nodes-nexlogiq-commerce 1.0.1 → 1.0.2

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.
@@ -97,6 +97,39 @@ exports.refundFields = [
97
97
  type: 'number',
98
98
  default: 1,
99
99
  },
100
+ {
101
+ displayName: 'Restock Type',
102
+ name: 'restock_type',
103
+ type: 'options',
104
+ options: [
105
+ {
106
+ name: 'Return (For fulfilled items)',
107
+ value: 'return',
108
+ },
109
+ {
110
+ name: 'Cancel (For unfulfilled items)',
111
+ value: 'cancel',
112
+ },
113
+ {
114
+ name: 'No Restock',
115
+ value: 'no_restock',
116
+ },
117
+ ],
118
+ default: 'return',
119
+ description: 'How to handle the inventory restocking',
120
+ },
121
+ {
122
+ displayName: 'Location ID',
123
+ name: 'location_id',
124
+ type: 'string',
125
+ default: '',
126
+ displayOptions: {
127
+ hide: {
128
+ restock_type: ['no_restock'],
129
+ },
130
+ },
131
+ description: 'The ID of the location to restock the item. Map this dynamically from the Get Order node.',
132
+ },
100
133
  ],
101
134
  },
102
135
  ],
@@ -97,8 +97,41 @@ export const refundFields: INodeProperties[] = [
97
97
  type: 'number',
98
98
  default: 1,
99
99
  },
100
+ {
101
+ displayName: 'Restock Type',
102
+ name: 'restock_type',
103
+ type: 'options',
104
+ options: [
105
+ {
106
+ name: 'Return (For fulfilled items)',
107
+ value: 'return',
108
+ },
109
+ {
110
+ name: 'Cancel (For unfulfilled items)',
111
+ value: 'cancel',
112
+ },
113
+ {
114
+ name: 'No Restock',
115
+ value: 'no_restock',
116
+ },
117
+ ],
118
+ default: 'return',
119
+ description: 'How to handle the inventory restocking',
120
+ },
121
+ {
122
+ displayName: 'Location ID',
123
+ name: 'location_id',
124
+ type: 'string',
125
+ default: '',
126
+ displayOptions: {
127
+ hide: {
128
+ restock_type: ['no_restock'],
129
+ },
130
+ },
131
+ description: 'The ID of the location to restock the item. Map this dynamically from the Get Order node.',
132
+ },
100
133
  ],
101
134
  },
102
135
  ],
103
136
  },
104
- ];
137
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-nexlogiq-commerce",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Custom n8n nodes for Shopify, WooCommerce, and NexlogiqCommerce",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",