feat(core-flows,medusa,utils,types): adds delivered_quantity to order (#9130)

what:

- adds delivered_quantity to order


https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
This commit is contained in:
Riqwan Thamir
2024-09-16 11:59:01 +02:00
committed by GitHub
parent 950cf9af79
commit 3e97a64b21
41 changed files with 794 additions and 25 deletions

View File

@@ -112,6 +112,24 @@ export class Order {
)
}
async markAsDelivered(
id: string,
fulfillmentId: string,
body: HttpTypes.AdminMarkOrderFulfillmentAsDelivered,
query?: SelectParams,
headers?: ClientHeaders
) {
return await this.client.fetch<{ order: HttpTypes.AdminOrder }>(
`/admin/orders/${id}/fulfillments/${fulfillmentId}/mark-as-delivered`,
{
method: "POST",
headers,
body,
query,
}
)
}
async listChanges(
id: string,
queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters,