medusa
medusa copied to clipboard
customer order filtering
What
- add filtering to
/customers/me/orderson the following parameters:id?: string;q?: string;status?: OrderStatus[];fulfillment_status?: FulfillmentStatus[];payment_status?: PaymentStatus[];display_id?: string;cart_id?: string;email?: string;region_id?: string;currency_code?: string;tax_rate?: string;created_at?: DateComparisonOperator;updated_at?: DateComparisonOperator;canceled_at?: DateComparisonOperator;
How
- Following the standard approach across other filtering endpoints
Testing
- Add the following integration tests:
looks up completed orderslooks up cancelled and completed orders
🦋 Changeset detected
Latest commit: a30757e92b1c968bd17148f1f52ecb969689294b
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @medusajs/medusa | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR