Commit Graph

185 Commits

Author SHA1 Message Date
Carlos R. L. Rodrigues
96bdf3e2c6 chore(core-flows): order transactions (#8568)
What:

- Add order transaction when Cart is completed and payment is refunded
2024-08-12 19:06:58 +00:00
Riqwan Thamir
dd4147314f feat(core-flows,dashboard,medusa): fixes set of tiny bugs in claims flow (#8551)
* feat(types,dashboard): ability to set shipping methods for claim

* chore: fix a bunch of stuff

* chore: update comment
2024-08-12 13:09:19 +02:00
Carlos R. L. Rodrigues
6ffe85aa3d chore(core-flows): favor runAsStep (#8540) 2024-08-12 06:21:11 -03:00
Shahed Nasser
79b49c1288 chore(core-flows): export used steps / workflows (#8534)
Export steps / workflows I missed that weren't exported but are used by other workflows
2024-08-09 13:29:54 +00:00
Shahed Nasser
f659c6d8bd chore(core-flows): [10] export types and types, add basic TSDocs (#8520)
* chore(core-flows): [10] export types and types, add basic TSDocs

* fix overlapping names

* fix overlapping name
2024-08-09 09:08:27 +02:00
Shahed Nasser
f9a8fcc0bc chore(core-flows): [13] export types and steps, add basic TSDocs (#8523) 2024-08-08 21:14:10 +03:00
Shahed Nasser
10f72f15b0 chore(core-flows): [15] export types and steps, add basic TSDocs (#8525) 2024-08-08 21:13:55 +03:00
Shahed Nasser
6efdfbc9a6 chore(core-flows): [18/18] export types and types, add basic TSDocs (#8529) 2024-08-08 20:03:49 +03:00
Shahed Nasser
faa09d12f6 chore(core-flows): [17] export types and steps, add basic TSDocs (#8528) 2024-08-08 20:03:38 +03:00
Shahed Nasser
8ee3da4644 chore(core-flows): [16] export types and steps, add basic TSDocs (#8527) 2024-08-08 20:03:27 +03:00
Shahed Nasser
e386216512 chore(core-flows): [14] export types and steps, add basic TSDocs (#8524) 2024-08-08 20:03:13 +03:00
Shahed Nasser
288ed2747b chore(core-flows): [12] export types and types, add basic TSDocs (#8522) 2024-08-08 20:02:42 +03:00
Shahed Nasser
4c2d605599 chore(core-flows): [11] export types and types, add basic TSDocs (#8521) 2024-08-08 20:02:28 +03:00
Shahed Nasser
945b920708 chore(core-flows): [9] export types and types, add basic TSDocs (#8519)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 9/n
2024-08-08 16:41:12 +00:00
Shahed Nasser
6e4037edf4 chore(core-flows): [8] export types and types, add basic TSDocs (#8517)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 8/n
2024-08-08 16:39:32 +00:00
Shahed Nasser
89fd065fa3 chore(core-flows): [7] export types and types, add basic TSDocs (#8514)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 7/n
2024-08-08 16:38:10 +00:00
Shahed Nasser
0bfe31e594 chore(core-flows): [6] export types and types, add basic TSDocs (#8512)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 6/n
2024-08-08 16:37:03 +00:00
Christian
d4c5f6593d Feat: admin return reason list (#8482)
* feat: add missing endpoints to return reason sdk

* add return reason list route

* add return reason query hooks

* fix update return reasons in order modules service

* fix store/return-reasons middleware

* add missing tests for /return-resasons/:id
2024-08-08 16:24:13 +02:00
Shahed Nasser
f9989e1659 chore(core-flows): [5] export types and types, add basic TSDocs (#8510)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 5/n
2024-08-08 14:15:06 +00:00
Shahed Nasser
cb6796fe4b chore(core-flows): [2] export types and types, add basic TSDocs (#8505)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 2/n
2024-08-08 14:14:55 +00:00
Shahed Nasser
1bb4e764d1 chore(core-flows): [3] export types and types, add basic TSDocs (#8507)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 3/n
2024-08-08 14:12:05 +00:00
Shahed Nasser
9ea0783494 chore(core-flows): [4] export types and types, add basic TSDocs (#8509)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 4/n
2024-08-08 14:11:52 +00:00
Shahed Nasser
73cc66905a chore(core-flows): [1] export types and types, add basic TSDocs (#8504)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 1/n
2024-08-08 13:15:44 +00:00
Harminder Virk
08764e3965 feature: add workflows hooks to the order module (#8496) 2024-08-08 16:25:11 +05:30
Carlos R. L. Rodrigues
0b6bcdd538 chore(core-flows): util to format inventory input (#8483) 2024-08-07 15:15:17 -03:00
Riqwan Thamir
eb590417be feat(core-flows,dashboard,medusa): ability to add and remove items to claim inbound (#8480)
* wip: setup UI

* wip: rendering modal, adding claim items, create checks

* fix: make form work after merge

* fix: continuation of claim edit

* chore: ability to add and remove items to claim inbound

* chore: minor fixes

---------

Co-authored-by: fPolic <mainacc.polic@gmail.com>
2024-08-07 15:27:04 +02:00
Carlos R. L. Rodrigues
1fb679e785 feat(core-flows): manage inventory reservation of claims and exchanges (#8448) 2024-08-07 07:49:58 -03:00
Harminder Virk
7695d30952 feature: add create and update cart hooks (#8481) 2024-08-07 16:00:37 +05:30
Oli Juhl
78eb457487 fix(core-flows): Allow return requests with no shipping (#8472)
Closes CC-265
2024-08-07 07:48:14 +00:00
Oli Juhl
1e0149ad08 fix(core-flows): Unsetting reason on return items (#8470) 2024-08-07 09:33:43 +02:00
Carlos R. L. Rodrigues
3d7dce2bec fix(core-flows): copy line items attribute (#8471)
removing `requires_shipping` from variant won't be part of this PR
2024-08-06 18:58:08 +00:00
Riqwan Thamir
0ff5b975e7 feat(core-flows,payment,medusa,types): Refund reasons management API (#8436)
* feat(core-flows,payment,medusa,types): add ability to set and manage refund reasons

* fix(payment): validate total amount when refunding payment (#8437)

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* feature: introduce additional_data to the product endpoints (#8405)

* chore(docs): Generated References (#8440)

Generated the following references:
- `product`

* chore: align payment database schema

* Update packages/core/core-flows/src/payment-collection/steps/create-refund-reasons.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* chore: address review

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
Co-authored-by: Harminder Virk <virk.officials@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-08-06 11:47:42 +02:00
Harminder Virk
8fb079786d feature: add hooks to campaigns (#8450) 2024-08-06 15:15:41 +05:30
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
5125d1328d chore(medusa,core-flows): cart payment collection link (#8457) 2024-08-06 06:12:21 -03:00
Shahed Nasser
b37e976b9a chore(core-flows): add TSDocs to the emitEventStep (#8413) 2024-08-05 13:20:22 +03:00
Harminder Virk
0dab340013 feature: add hooks to customers modules workflows (#8442) 2024-08-05 15:16:32 +05:30
Harminder Virk
0706bab663 feature: introduce additional_data to the product endpoints (#8405) 2024-08-05 09:24:49 +05:30
Stevche Radevski
4b0119f7ce fix: Don't remove pricing if no variant is passed to update (#8416) 2024-08-02 17:55:47 +02:00
Carlos R. L. Rodrigues
5cae91040e chore(core-flows): use create order step on complete cart (#8397) 2024-08-02 06:18:39 -03:00
Stevche Radevski
dbfc145ab3 fix: Check for existence of modules when seeding default data (#8406) 2024-08-02 08:44:57 +00:00
Riqwan Thamir
ce8c90838d fix(core-flows,utils,medusa): fix bug where payment collection across orders were getting updated (#8401)
This took embarrassingly long to debug. :|

what:

- fixes a bug where the payment collection of other orders were getting updated
- adds order status to payments section

<img width="1069" alt="Screenshot 2024-08-02 at 08 37 38" src="https://github.com/user-attachments/assets/31776bd3-e6b9-4d23-8be6-f972f7316cf3">
<img width="1072" alt="Screenshot 2024-08-02 at 08 37 48" src="https://github.com/user-attachments/assets/38cdd8a1-9f31-4920-91bf-a3554e298960">
2024-08-02 08:34:42 +00:00
Stevche Radevski
3a068c6b27 feat: Use tag ids instead of values wherever possible (#8394) 2024-08-02 09:22:03 +02:00
Harminder Virk
c2faca1e8b fix: pass updatedCollections to the hook and not the step (#8402) 2024-08-02 10:27:03 +05:30
Harminder Virk
6efdba1967 feat: add hooks to product module's workflows (#8389) 2024-08-01 22:02:07 +05:30
Oli Juhl
dbd0b18726 feat: Add requested_at + open status to return (#8391)
* feat: Add requested_at + open status to return

* Update return in confirm claim workflow

* Revert snapshot

* feat: Change OrderChangeType

* fix test
2024-08-01 16:20:45 +02:00
Stevche Radevski
4081b3359d feat: Add support for sorting export headers (#8386)
* feat: Add support for sorting export headers

* fix: Minor fixes to import flow
2024-08-01 13:23:49 +02:00
Carlos R. L. Rodrigues
accf884bb1 chore(core-flows): Order Exchange - initial workflows (#8374)
PR: 1:n

This is the first PR with a initial skeleton for Order exchange workflows.
This is not yet to be considered functional or reflecting the exact behavior of Order Exchanges.

What:
* organize folder structure of order-related steps and workflows 
* initial worklows for Order exchange - This first draft is just a copy of Claims behavior
2024-08-01 10:27:06 +00:00
Stevche Radevski
123dad7db8 feat: Add support for categories in product import and export (#8375)
* feat: Add support for product categories on export and import

* fix: Make the rest of the import workflow async as well
2024-08-01 09:07:30 +02:00
Stevche Radevski
31449972ed fix: Use region name in product pricing exports (#8373)
* fix:Bug fixes to product import

* fix:Add an export failed notification if an export fails

* fix: Use region name in product export prices
2024-07-31 15:34:27 +02:00