Skip to content

Commit 0605e8d

Browse files
committed
docs: add types
1 parent fe4c290 commit 0605e8d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

types/index.d.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ declare class Shopify {
389389
fulfillments: (
390390
id: number
391391
) => Promise<Shopify.IPaginatedResult<Shopify.IFulfillment>>;
392-
hold: (id: number, params: any) => Promise<Shopify.IFulfillmentOrder>;
392+
hold: (
393+
id: number,
394+
params: Shopify.IHoldFulfillmentOrder
395+
) => Promise<Shopify.IFulfillmentOrder>;
393396
};
394397
fulfillmentRequest: {
395398
accept: (
@@ -3568,4 +3571,22 @@ declare namespace Shopify {
35683571
};
35693572
updated_at: string;
35703573
}
3574+
3575+
interface IHoldFulfillmentOrder {
3576+
reason:
3577+
| 'awaiting_payment'
3578+
| 'high_risk_of_fraud'
3579+
| 'incorrect_address'
3580+
| 'inventory_out_of_stock'
3581+
| 'other';
3582+
reason_notes?: string;
3583+
notify_merchant: boolean;
3584+
line_items: IUpdateFulfillmentOrderLineItem;
3585+
fulfillment_order_id: number;
3586+
}
3587+
3588+
interface IUpdateFulfillmentOrderLineItem {
3589+
id: number;
3590+
quantity: number;
3591+
}
35713592
}

0 commit comments

Comments
 (0)