1445 Commits

Author SHA1 Message Date
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
Carlos R. L. Rodrigues
058378970a chore: dependecies reorg (#8535) 2024-08-23 07:16:04 -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
Carlos R. L. Rodrigues
9931b69a2a chore(core-flows): test allow backorder (#8725) 2024-08-22 11:47:31 +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
Harminder Virk
5f310c0a00 breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix (#8672) 2024-08-20 17:05:19 +05:30
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
Riqwan Thamir
4791d1d775 fix(promotion): validate rules accurately when attribute is scoped by context (#8655) 2024-08-19 15:38:42 +02: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
Stevche Radevski
a013c4edc5 feat: Move userpass default definition to defineConfig instead of a hard-coded value (#8557) 2024-08-13 11:10:23 +02:00
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
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
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
Christian
bbb891e5c1 feat: add claims/:id endpoint to admin api (#8465)
Closes [cc-291]
2024-08-06 14:53:40 +02: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
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
Carlos R. L. Rodrigues
8700896ce6 fix(medusa): plus sign to space (#8454) 2024-08-06 08:01:39 +02:00
Stevche Radevski
4b0119f7ce fix: Don't remove pricing if no variant is passed to update (#8416) 2024-08-02 17:55:47 +02: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
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