medusa icon indicating copy to clipboard operation
medusa copied to clipboard

customer order filtering

Open pKorsholm opened this issue 3 years ago • 1 comments

What

  • add filtering to /customers/me/orders on 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 orders
    • looks up cancelled and completed orders

pKorsholm avatar Jan 07 '22 09:01 pKorsholm

🦋 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

changeset-bot[bot] avatar Jul 02 '22 17:07 changeset-bot[bot]