fix(dashboard, medusa): mark shipped flow (#8065)
* fix: mark shipped routing * fix: naming
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
AdminCreateOrderShipment,
|
||||
FindParams,
|
||||
HttpTypes,
|
||||
PaginatedResponse,
|
||||
@@ -77,4 +78,22 @@ export class Order {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async createShipment(
|
||||
id: string,
|
||||
fulfillmentId: string,
|
||||
body: HttpTypes.AdminCreateOrderShipment,
|
||||
query?: SelectParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<{ order: HttpTypes.AdminOrder }>(
|
||||
`/admin/orders/${id}/fulfillments/${fulfillmentId}/shipments`,
|
||||
{
|
||||
method: "POST",
|
||||
headers,
|
||||
body,
|
||||
query,
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user