Riqwan Thamir
987d007ba8
fix(core-flows): fixes case where inventory attempts delete when input is empty ( #9156 )
...
what:
- when an empty array is passed to the workflow, it attempts to delete all inventory locations. This PR adds a conditional to prevent it from happening.
RESOLVES CC-477
Fixes https://github.com/medusajs/medusa/issues/9154
2024-09-17 08:04:48 +00:00
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
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Riqwan Thamir
64d5b74c12
feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked ( #9118 )
...
what:
- module only deletes api keys once its revoked
- disables ui elements
https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30
RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Riqwan Thamir
24704f420a
feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted ( #9106 )
...
* feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted
* chore: fix specs
2024-09-11 21:24:01 +02:00
Riqwan Thamir
a729fb3fbb
feat(utils,types,framework,medusa): store endpoints should require publishable key ( #9068 )
...
* feat(utils,types,framework,medusa): store endpoints should require publishable key
* chore: fix specs
* chore: fix more specs
* chore: update js-sdk
* chore: fix specs wrt to default SC
* chore: revert custom headers + change error message
* chore: fix specs
* chore: fix new store specs
2024-09-11 15:08:37 +02:00
Riqwan Thamir
c097931469
feat(core-flows,types,medusa): validate deleting location level when quantities exist ( #9086 )
...
what:
- adds validation in workflow to prevent deleting a location level when reserved or stocked quantity exists
- disabled delete button when quantities exist
- consolidate delete workflows
<img width="1079" alt="Screenshot 2024-09-10 at 16 39 02" src="https://github.com/user-attachments/assets/cf1f4b2e-75ea-4f7c-9b97-24622396c632 ">
RESOLVES CC-120
2024-09-10 17:59:03 +00:00
Oli Juhl
4bf42f7889
fix: Update auth app_metadata when deleting users + customers ( #9041 )
...
* wip
* more work
* working on stuff
* more
* fix test
* remove incorrect test
* fix test
* fix: Only allow deletion of yourself
* remove redundant tests
2024-09-10 19:58:16 +02:00
Stevche Radevski
62e0c593c8
feat: Add support for refreshing JWT tokens ( #9013 )
...
* feat: Add support for refreshing JWT tokens
* feat: Add refresh method to the auth SDK
2024-09-06 12:58:57 +02:00
Oli Juhl
e27056b3c3
feat: Reset password ( #8962 )
...
* wip
* more work
* wip
* more work
* wrap up first iteration
* work on new approach
* more work
* move middleware func to route
* cleanup
* more work
* wrap up
* more work
* fix workflow
* minor tweaks
* finalize
* Use JWT secret instead
2024-09-06 12:28:29 +02:00
Carlos R. L. Rodrigues
2a055b71ef
feat(core-flows): custom price flag for order line items and shipping methods ( #8969 )
...
CLOSES: CC-402
2024-09-04 20:30:59 +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
Shahed Nasser
423583e06c
fix(medusa): fix update promotion's request type ( #8966 )
...
Fix the validator of the update promotion API route to match the update workflow input's type.
2024-09-03 15:08:22 +00:00
Riqwan Thamir
e49d004fef
chore: remove promotions in campaign validators + move tests to http ( #8965 )
2024-09-03 14:19:42 +02:00
Riqwan Thamir
230acb700b
feat(core-flows,types): Refunds can only be performed when order is imbalanced ( #8944 )
...
* feat(core-flows,types): Refunds can only be performed when order is imbalanced
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-09-03 13:53:20 +02:00
Adrien de Peretti
479e712c17
fix(core-flows): Handle variant creation duplicate inventory item ids ( #8937 )
...
* fix(core-flows): Handle variant creation duplicate inventory item ids
* disabled already selected options
* address feedback
* fix tests
2024-09-02 18:36:42 +02:00
Oli Juhl
cbb0a6adc7
fix: Customer registration ( #8896 )
...
* fix: Customer registration
* update test
* one mroe test
* chore: add transformation
2024-09-01 11:41:39 +02:00
Carlos R. L. Rodrigues
891037081d
chore(core-flows): apply taxes to items and shipping on RMA flows ( #8858 )
...
** What
Apply taxes to order line items and shipping methods
2024-08-29 17:33:39 +00:00
Carlos R. L. Rodrigues
b6521e4c1a
feat(medusa): order changes endpoint ( #8728 )
...
What:
- `admin/orders/:id/changes` endpoint to get order changes related to the order
- added `*_by` attributes missing
2024-08-29 14:20:12 +00:00
Carlos R. L. Rodrigues
8dea3e44c6
fix(order): order change references ( #8845 )
2024-08-28 08:57:44 -03:00
Oli Juhl
c2e7940f61
fix: Validate boolean query params ( #8834 )
2024-08-28 13:14:15 +02:00
Alexander Nortung
ac18b5d35f
fix(product): Add metadata to property to product category data model ( #8766 )
...
* fix: Add metadata to property to product category data model
* chore: Add migration for adding metadata column to product category
* chore: Added test for product category metadata
2024-08-27 16:21:41 +02:00
Carlos R. L. Rodrigues
ff6fcfb139
fix(core-flows,order): return damaged items ( #8818 )
2024-08-27 11:21:10 -03:00
Oli Juhl
c11ef01c15
feat: Separate registration from authentication in auth domain ( #8683 )
...
* wip
* feat: Introduce register
* fix: user command
* fix: Invite HTTP tests
* fix: Auth tests
* fix: Invite modules tests
2024-08-27 13:44:52 +02:00
Carlos R. L. Rodrigues
571f0c7629
chore(core-flows): product events ( #8769 )
2024-08-26 18:38:30 -03:00
Riqwan Thamir
59599ac237
feat(core-flows,dashboard): adds item validations for claims, returns and exchanges ( #8735 )
...
what:
- adds item validations for claims, returns and exchanges
- prevents autofocus on item add
- reset item quantity when error
2024-08-23 09:30:27 +00:00
Riqwan Thamir
335061d8cd
feat(medusa,types,core-flows): apply created_by values - claims, exchanges, returns, fulfillment ( #8712 )
...
what:
- Applies created_by values - claims, exchanges, returns, fulfillment
RESOLVES CC-96
2024-08-21 18:15:55 +00:00
Carlos R. L. Rodrigues
27a2dcb10d
feat(core-flows): order edit request ( #8705 )
2024-08-21 13:59:33 -03:00
Riqwan Thamir
de7848f68d
fix(core-flows): account for unfulfilled items while generating order status ( #8698 )
...
what:
- account for unfulfilled items while generating order status
RESOLVES CC-314
2024-08-21 14:33:43 +00:00
Riqwan Thamir
8bd284779e
feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid ( #8679 )
...
* feat(core-flows): create or update payment collections in RMA flows
* chore: change ui to pick payment link from unpaid payment collection
* Apply suggestions from code review
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* chore: fix mathbn
* feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid
* chore: add captured bt
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-20 22:58:28 +02:00
Carlos R. L. Rodrigues
99eca64c20
chore(order): preview removed items ( #8680 )
2024-08-20 14:53:39 -03:00
Riqwan Thamir
430d9a38c4
feat(core-flows): create or update payment collections in RMA flows ( #8676 )
...
* feat(core-flows): create or update payment collections in RMA flows
* chore: change ui to pick payment link from unpaid payment collection
* Apply suggestions from code review
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* chore: fix mathbn
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-20 18:40:58 +02:00
Riqwan Thamir
fa44e3f5a8
feat(dashboard,core-flows,js-sdk,types,link-modules,payment): ability to copy payment link ( #8630 )
...
what:
- enables a button to create a payment link when a payment delta is present
- api to delete order payment collection
- adds a pending amount to payment collections
Note: Not the happiest with the decision on when to create a payment collection and when not to. The code should programatically create or delete payment collections currently to generate the right collection for the payment delta. Adding a more specific flow to create and manage a payment collection will help reduce this burden from the code path and onto CX/merchant.
Another issue I found is that the payment collection status doesn't get updated when payment is complete as it still gets stuck to "authorized" state
https://github.com/user-attachments/assets/037a10f9-3621-43c2-94ba-1ada4b0a041b
2024-08-20 10:30:17 +00:00
Carlos R. L. Rodrigues
1be9373290
chore(core-flows): order update item quantity ( #8659 )
2024-08-19 18:14:57 +00:00
Stevche Radevski
4980285317
chore: Remove create user tests that are no longer relevant ( #8638 )
2024-08-18 16:53:56 +02:00
Carlos R. L. Rodrigues
be942ff15c
fix(order): update order summary when transactions change ( #8633 )
2024-08-16 19:40:44 +00:00
Stevche Radevski
0f240137e9
fix: Remove the endpoint to create a user ( #8629 )
2024-08-16 16:12:32 +02:00
Carlos R. L. Rodrigues
5200e816c9
fix(order): order summary on order creation ( #8624 )
2024-08-16 07:52:24 -03:00
Riqwan Thamir
adcd25650c
feat(medusa,core-flows,types): API to create payment collections for order ( #8617 )
...
what:
- adds an API to create a payment collection for order
2024-08-16 08:16:40 +00:00
Oli Juhl
9de9b3825f
fix(payment): Partial refunds ( #8603 )
...
* fix(payment): Partial payment provider refunds
* add tests
2024-08-15 19:01:22 +02:00
Riqwan Thamir
4cb28531e5
feat(core-flows,dashboard): add fixes to allow only outbound or inbound claims ( #8590 )
...
what:
- allows completing claim with only inbound items
- allows completing claim with only outbound items
- validates against creating claims when an active change order is present
2024-08-14 21:09:05 +00:00
Riqwan Thamir
6f50e376a9
fix(core-flows): fixes duplicate fulfillment issue ( #8581 )
...
what:
- fixes a bug where fulfilling an outbound item was throwing an error due to the entire order being processed for fulfillment
RESOLVES CC-298
2024-08-13 10:40:46 +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
c9c1a5b41c
chore: rm pg dependency ( #8526 )
2024-08-08 17:22:57 +00:00
Riqwan Thamir
a7cace90e0
feat(medusa): filter shipping options by location ( #8511 )
...
what:
- filters shipping options by location ID
RESOLVES CC-328
2024-08-08 14:40:02 +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
Carlos R. L. Rodrigues
3f5ddc5bce
chore: normalize packages version ( #8492 )
2024-08-08 13:52:05 +00: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
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