File tree 2 files changed +7
-18
lines changed
2 files changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -132,19 +132,9 @@ FulfillmentOrder.prototype.fulfillments = function fulfillments(id) {
132
132
* status OPEN and changes the status of the fulfillment order to ON_HOLD.
133
133
*
134
134
* @param {Number } id Fulfillment Order id (fulfillment_order_id).
135
- * @param {Object } params
136
- * @param {String } params.reason 'awaiting_paymet' | 'high_risk_of_fraud'
137
- * | 'incorrect_address' | 'inventory_out_of_stock' | 'other'.
138
- * @param {String } params.reason_notes (optiona) Additional information about
139
- * the fulfillment hold reason.
140
- * @param {Boolean } params.notify_merchant (optional) Whether the merchant
141
- * should receive a notification about the fulfillment hold.
142
- * If set to true, then the merchant will be notified on the Shopify
143
- * mobile app (if they use it to manage their store).
144
- * The default value is false.
145
- * @param {Array } params.fulfillment_order_line_items (optional) array of
146
- * fulfillment order line item ids and the quantity of each to move.
147
- * @return {Promise } Promise that resolves with the result.
135
+ * @param {Object } params An object containing the reason for the fulfillment
136
+ hold and additional optional information
137
+ * @return {Promise } Promise that resolves with the result
148
138
* @public
149
139
*/
150
140
FulfillmentOrder . prototype . hold = function hold ( id , params ) {
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ declare class Shopify {
391
391
) => Promise < Shopify . IPaginatedResult < Shopify . IFulfillment > > ;
392
392
hold : (
393
393
id : number ,
394
- params : Shopify . IHoldFulfillmentOrder
394
+ params : Shopify . IFulfillmentHold
395
395
) => Promise < Shopify . IFulfillmentOrder > ;
396
396
} ;
397
397
fulfillmentRequest : {
@@ -3572,17 +3572,16 @@ declare namespace Shopify {
3572
3572
updated_at : string ;
3573
3573
}
3574
3574
3575
- interface IHoldFulfillmentOrder {
3575
+ interface IFulfillmentHold {
3576
3576
reason :
3577
3577
| 'awaiting_payment'
3578
3578
| 'high_risk_of_fraud'
3579
3579
| 'incorrect_address'
3580
3580
| 'inventory_out_of_stock'
3581
3581
| 'other' ;
3582
3582
reason_notes ?: string ;
3583
- notify_merchant : boolean ;
3584
- line_items : IUpdateFulfillmentOrderLineItem ;
3585
- fulfillment_order_id : number ;
3583
+ notify_merchant ?: boolean ;
3584
+ fulfillment_order_line_items ?: IUpdateFulfillmentOrderLineItem [ ] ;
3586
3585
}
3587
3586
3588
3587
interface IUpdateFulfillmentOrderLineItem {
You can’t perform that action at this time.
0 commit comments