feat(medusa): Implement premises of order edit retrieval (#2183)
**What** - Implements the admin/store retrieval end point - Service implementation of the retrieve method - Service implementation of the computeLineItems method which aggregates the right line item based on the changes that are made - client - medusa-js api - medusa-react queries hooks **Tests** - Unit tests of the retrieval end points - Unit tests of the service retrieve method and computeLineItems - Integration tests for admin/store - client - medusa-js tests - medusa-react hooks tests FIXES CORE-492
This commit is contained in:
committed by
GitHub
parent
3efeb6b84f
commit
f863d28b9a
@@ -842,6 +842,34 @@
|
||||
"refunded_total": 0,
|
||||
"refundable_amount": 8200
|
||||
},
|
||||
"order_edit": {
|
||||
"id": "oe_01F0YET7XPCMF8RZ0Y151NZV2V",
|
||||
"order_id": "ord_01F0YET7XPCMF8RZ0Y151NZV2V",
|
||||
"internal_note": "internal note",
|
||||
"declined_reason": null,
|
||||
"declined_at": null,
|
||||
"declined_by": null,
|
||||
"canceled_at": null,
|
||||
"canceled_by": null,
|
||||
"requested_at": null,
|
||||
"requested_by": null,
|
||||
"created_at": "2021-03-16T21:24:35.871Z",
|
||||
"created_by_id": "admin_user",
|
||||
"confirmed_at": null,
|
||||
"confirmed_by": null
|
||||
},
|
||||
"store_order_edit": {
|
||||
"id": "oe_01F0YET7XPCMF8RZ0Y151NZV2B",
|
||||
"order_id": "ord_01F0YET7XPCMF8RZ0Y151NZV2V",
|
||||
"declined_reason": null,
|
||||
"declined_at": null,
|
||||
"declined_by": null,
|
||||
"canceled_at": null,
|
||||
"requested_at": null,
|
||||
"created_at": "2021-03-16T21:24:35.871Z",
|
||||
"confirmed_at": null,
|
||||
"confirmed_by": null
|
||||
},
|
||||
"return": {
|
||||
"id": "ret_01F0YET7XPCMF8RZ0Y151NZV2V",
|
||||
"status": "requested",
|
||||
|
||||
Reference in New Issue
Block a user