Kasper Fabricius Kristensen
f441362f4a
feat(medusa,core-flows,types,js-sdk): Draft Order workflows and API endpoints ( #11805 )
2025-04-02 10:23:33 +02:00
Riqwan Thamir
cb6249320e
fix(types,order,medusa): Create credit lines + hooks ( #11569 )
...
what:
- api/workflows to create credit lines
- hooks to enable extending credit lines
2025-03-17 15:20:59 +00:00
Riqwan Thamir
fb2e86484a
feat(core-flows,types,cart): add credit lines to cart ( #11419 )
...
* feat(core-flows,types,cart): add credit lines to cart
* chore: fix specs
* chore: credit lines hook
* chore: update types
* chore: added credit line totals
* chore: add totals fields to query config
* chore: add complete cart hook
* chore: add credit lines creation to order
* chore: pr ready for review
* chore: fix tests
* Apply suggestions from code review
* chore: fix types
* chore: adjust summary calculations with new totals
2025-02-24 14:34:36 +01:00
Riqwan Thamir
47594192b7
feat(dashboard,core-flows,types,utils,medusa): Order cancelations will refund payments ( #10667 )
...
* feat(order, types): Add Credit Line to order module
* chore: add action to inject credit lines
* WIP
* chore: add fixes + observe
* chore: fix balances
* chore: add canceled badge
* chore: fix i18n schema
* chore: remove redunddant query
* chore: add changeset
* chore: add credit lines for all cancel cases
* chore: add accounting total
* chore: address review & cleanup
2025-01-07 07:56:28 +01:00
Riqwan Thamir
3f4d574748
feat(order, types): Add Credit Line to order module ( #10636 )
...
* feat(order, types): Add Credit Line to order module
* chore: add action to inject credit lines
2024-12-19 10:36:59 +01:00
Frane Polić
ab948b7c65
feat(core-flows,medusa,order,types): update orders ( #10373 )
...
**What**
- add order update endpoint
- add workflows and steps for updating orders
- add `registerChanges` method to Order module + workflow step
---
CLOSES CMRC-633
2024-12-03 17:15:26 +00:00
Frane Polić
36460a3a07
feat(medusa, types, utils, core-flows, order) request & accept order transfer ( #10106 )
...
**What**
- add request order transfer workflow
- add admin endpoint for transferring an order to a customer
- accept order transfer storefront endpoint
- accept transfer workflow
- changes in the order module to introduce new change and action types
---
**Note**
- we return 400 instead 409 currently if there is already an active order edit, I will revisit this in a followup
- endpoint for requesting order transfer from the storefront will be added in a separate PR
---
RESOLVES CMRC-701
RESOLVES CMRC-703
RESOLVES CMRC-704
RESOLVES CMRC-705
2024-11-19 08:53:22 +00:00
Riqwan Thamir
537567b679
chore: add compare_at_unit_price when price list price is retrieved ( #9564 )
...
* chore: add compare_at_unit_price when price list price is retrieved
* chore: add test for update item + more fixes along the way
* chore: fix tests
* chore: add refresh spec
* Apply suggestions from code review
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
* chore: use undefined checker
* chore: switch to map
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
2024-10-15 13:05:14 +02:00
Riqwan Thamir
70564c3c66
fix(medusa): use transform order for store order endpoints ( #9489 )
...
* fix(medusa): use transform order for store order endpoints
* chore: update amount when unit price is present
2024-10-07 13:55:06 +02:00
Riqwan Thamir
2d1f4bcabc
feat(dashboard,core-flows,types,order): change order accepts price updates ( #9476 )
...
* chore: change order can accept price updates
* chore: add changes to transformed order
* chore: fix transform
* chore: transform raw unit price
2024-10-07 10:54:21 +02:00
Adrien de Peretti
e096feb7d5
chore: Update modules deps ( #9286 )
2024-09-26 11:14:35 +05:30
Riqwan Thamir
3e97a64b21
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
2024-09-16 09:59:01 +00:00
Riqwan Thamir
de6f61b05f
feat: added totals tests for end 2 end RMA flow ( #8906 )
...
what:
I've added some specs and comments in the specs for where I think totals are incorrect.
Lets get this test merged in as the status quo and proceed to fix these issues one by one.
Additionally, this also removes the temporary_difference as its not something we use.
RESOLVES CC-346
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-04 13:11:04 +00:00
Carlos R. L. Rodrigues
99eca64c20
chore(order): preview removed items ( #8680 )
2024-08-20 14:53:39 -03:00
Carlos R. L. Rodrigues
91f07e1a59
chore(order): item update quantity ( #8513 )
2024-08-08 14:12:16 -03:00
Carlos R. L. Rodrigues
f415e6664c
feat(core-flows,order,medusa): exchange endpoints ( #8396 )
2024-08-06 06:28:27 -03:00
Carlos R. L. Rodrigues
48663479a9
chore(core-flows): cancel claims ( #8342 )
...
What:
* `DELETE /admin/claims/:id/request`
* `POST /admin/claims/:id/cancel`
2024-07-30 08:59:02 +00:00
Carlos R. L. Rodrigues
78b8a3c60f
chore(order): simplify order engine ( #8188 )
...
what:
- remove unused features of order changes calculation engine
2024-07-18 18:02:13 +00:00
Carlos R. L. Rodrigues
535832b692
chore(medusa, core-flows): receive item return request ( #8172 )
...
What:
* `POST /admin/returns/:id/receive-items`
* `POST /admin/returns/:id/receive-items/:action_id`
* `DELETE /admin/returns/:id/receive-items/:action_id`
* `POST /admin/returns/:id/dismiss-items`
* `POST /admin/returns/:id/dismiss-items/:action_id`
* `DELETE /admin/returns/:id/dismiss-items/:action_id`
* `POST /admin/returns/:id/receive/confirm`
CLOSES: CC-190, CC-191, CC-192, CC-193, CC-195, CC-196, CC-197
* Inventory management isn't included yet. Will add it in a next PR
2024-07-18 14:46:34 +00:00
Oli Juhl
ffd4b195ee
feat: Add exchange return shipping ( #8108 )
...
* wip
* finalize tests
* feat: Add exchange return shipping
* add shipping to preview
* test input
* move utils and ignore already inserted shipping method
* use custom price
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2024-07-15 22:04:20 +02:00
Carlos R. L. Rodrigues
8d530aa7f2
Chore(core-flows,order): exchange/claim add item ( #8126 )
2024-07-15 08:08:43 -03:00
Riqwan Thamir
bec2dcd667
feat(core-flows, order): add workflow to create change order actions ( #8056 )
...
what:
- adds workflow to create change order actions
2024-07-10 10:35:03 +00:00
Carlos R. L. Rodrigues
2b2e2fbb3d
chore(order): preview order change ( #8025 )
...
What:
- new method `previewOrderChange`
- Calculate all the actions related to an order change.
- Return the preview of the final Order, with all the calculated values.
- Associate actions with items and shipping_methods they modified.
FIXES: CORE-2509
2024-07-09 14:45:55 +00:00
Carlos R. L. Rodrigues
07715e6b50
chore(order): cancel return ( #7881 )
2024-07-02 06:52:58 -03:00
Carlos R. L. Rodrigues
cfa983001b
feat(order): create claim and exchange ( #7734 )
2024-06-18 08:08:16 -03:00
Carlos R. L. Rodrigues
37426939da
Feat(order): post purchase support ( #7666 )
2024-06-10 18:44:51 -03:00
Carlos R. L. Rodrigues
af0140d317
feat(order): cancel fulfillment ( #7573 )
2024-06-02 09:33:24 -03:00
Adrien de Peretti
4eae25e1ef
chore(): Reorganize modules ( #7210 )
...
**What**
Move all modules to the modules directory
2024-05-02 15:33:34 +00:00