Commit Graph

7328 Commits

Author SHA1 Message Date
Frane Polić
bde4b82194 feat(core-flows,dashboard,js-sdk,medusa,types): support Fulfillment Options (#10622)
**What**
- add a list point for fetching fulfillment options for a provider
- add FO support on SO create & update on dashboard
- pass `cart` and `stockLocation` to `validateFufillmentData` context

---

CLOSES CMRC-789
CLOSES CMRC-790
2024-12-18 09:16:26 +00:00
Oli Juhl
f3eca7734e fix(medusa): Missing metadata field on order (#10651) 2024-12-18 10:09:35 +01:00
Shahed Nasser
570c85538b chore: fix redocly circular dependencies (#10642) 2024-12-17 19:45:57 +02:00
github-actions[bot]
4479ecdc7b chore(docs): Updated API Reference (automated) (#10641)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-12-17 17:41:22 +00:00
Shahed Nasser
1232a43fce fix(core-flows): export getItemTaxLinesStep (#10640) 2024-12-17 19:31:55 +02:00
Shahed Nasser
0f5d640736 docs: generate references manually for v2.1.2 (#10639)
* docs: manually generate references for v2.1.2

* more changes
2024-12-17 19:20:44 +02:00
Shahed Nasser
ee62083c52 docs-util: infer resolved resources in workflow + steps (#10637) 2024-12-17 19:03:00 +02:00
github-actions[bot]
0a40b69276 chore(docs): Generated DML JSON files (automated) (#10634)
* chore(docs): Generated DML JSON files (automated)

* fixes

---------

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-12-17 18:22:20 +02:00
Nathan John
2ad08c4c44 Add FilterableRefundReason filter by description and label (#10606) 2024-12-17 15:54:06 +00:00
github-actions[bot]
302c01db3f chore(docs): Update version in documentation (automated) (#10633)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2024-12-17 17:14:23 +02:00
Shahed Nasser
8ded7fd781 docs: document float property (for v2.1.2) (#10575) 2024-12-17 17:13:17 +02:00
Riqwan Thamir
632c340bf5 chore(utils): add comments + cleanup util functions (#10628)
remnants from https://github.com/medusajs/medusa/pull/10579
2024-12-17 14:22:33 +00:00
olivermrbl
24a7315ea5 chore: Release 2024-12-17 14:44:18 +01:00
olivermrbl
a391a29aa8 chore: Version packages 2024-12-17 14:41:05 +01:00
Shahed Nasser
2a73d0ac0d docs-util: support @tags comments (#10627)
* support tags in tsdocs + add them in frontmatter

* fixes
2024-12-17 13:07:59 +02:00
Riqwan Thamir
6367bccde8 feat(medusa,pricing): Cart pricing context with customer group (#10579)
* fix(carts): Fixes cart modifications not accounting for certain price lists (#10493)

*What*

* Fixes #10490
* Expands any available customer_id into its customer_group_ids for cart
  updates that add line items.

*Why*

* Cart updates from the storefront were overriding any valid price lists
  that were correctly being shown in the storefront's product pages.

*How*

* Adds a new workflow step that expands an optional customer_id into the
  customer_group_ids it belongs to.
* Uses this step in the addToCartWorkflow and
  updateLineItemInCartWorkflow workflows.

*Testing*
* Using medusa-dev to test on a local backend.
* Adds integration tests for the addToCart and updateLineItemInCart
  workflows.

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>

* chore: update cart workflows to accept new pricing context

* chore: add transfer specs

* chore: fix specs

* chore: modify types + specs

* chore: add data migration + dashboard changes

* chore: fix update line item workflow

* chore: add changeset + unskip spec

---------

Co-authored-by: Sergio Campamá <sergiocampama@gmail.com>
2024-12-17 11:10:30 +01:00
Frane Polić
0c49470066 feat(core-flows): calculate SO price on cart ops (#10563)
**What**
- calculate the shipping option price when creating a shipping method
- calculate the shipping option price when refreshing cart
- add testing for calculated SO flow
- fix validation on calculated SO creation
- add manual fulfillment provider for testing
- add `from_location` to calculation context

---

RESOLVES CMRC-778
RESOLVES CMRC-602
RESOLVES SUP-136
2024-12-16 22:28:30 +00:00
Carlos R. L. Rodrigues
95baacfd00 fix(cart): Tax rate data type (#10626)
* fix(cart): tax rate data type

* update test
2024-12-16 20:09:05 +01:00
Shahed Nasser
612eb78c9e docs: fix expanding of custom relations in customer and product category routes (#10620) 2024-12-16 18:46:57 +02:00
Shahed Nasser
e8b7035ba0 docs: add example of Table component with pagination (#10621) 2024-12-16 18:46:36 +02:00
Shahed Nasser
6758d6acb0 docs: add stripe events to provider guide (#10618) 2024-12-16 17:33:55 +02:00
Shahed Nasser
078dcf6554 docs: remove unnecessary log (#10619) 2024-12-16 17:33:07 +02:00
Shahed Nasser
5a9f1b52f4 docs: small wording fix (#10616) 2024-12-16 15:21:45 +02:00
Shahed Nasser
f78b410b96 docs: add customize stripe integration in next.js guide (#10583) 2024-12-16 14:58:40 +02:00
Riqwan Thamir
90ad2566fd feat(types,fulfillment): ability to delete a canceled fulfillment (#10602) 2024-12-16 11:17:45 +01:00
Shahed Nasser
7c773fc108 docs: add pivotTable in digital product recipe (#10605) 2024-12-13 19:54:31 +02:00
Riqwan Thamir
429c57095b fix(core-flows): use customer create workflow to reuse the emit event (#10601)
what:

- uses the create customer workflow instead to reuse the event emit.

RESOLVES CMRC-792
2024-12-13 14:40:46 +00:00
Carlos R. L. Rodrigues
729eb5da7b chore(inventory): convert to dml (#10569)
Fixes: FRMW-2848

Co-authored-by: Harminder Virk <1706381+thetutlage@users.noreply.github.com>
2024-12-13 12:51:26 +00:00
Harminder Virk
ae1d875fcf fix: pluralization rule for the info word (#10599) 2024-12-13 16:09:09 +05:30
Shahed Nasser
03803283d6 chore: fix docs freshness check action (#10592) 2024-12-13 09:40:59 +02:00
Shahed Nasser
54118941ef docs-util: support @version tag (#10591) 2024-12-13 09:40:47 +02:00
Shahed Nasser
78d8698a24 docs: document alternatives for conditional operators (#10588)
* docs: document alternatives for conditional operators

* more operators

* fix lint errors
2024-12-12 18:10:29 +02:00
Shahed Nasser
ec5c7cf63f docs: add section on updating medusa (#10589) 2024-12-12 18:10:12 +02:00
Shahed Nasser
eec450276d docs: improve examples in module link direction (#10590) 2024-12-12 17:59:47 +02:00
Shahed Nasser
bbed7af027 docs: document many-to-many with extra columns (#10586) 2024-12-12 17:32:49 +02:00
Shahed Nasser
7f669b8c5f chore: small tsdoc update to dml float property. (#10576) 2024-12-12 15:32:22 +02:00
Shahed Nasser
96648523e0 docs: updates to contribution guidelines (#10578) 2024-12-12 14:47:17 +02:00
Shahed Nasser
d070c09185 docs: add documentation on sending requests to custom routes with JS SDK (#10582) 2024-12-12 14:47:00 +02:00
Shahed Nasser
65ad05f74c docs: clarify that stripe module provider is available in application (#10577) 2024-12-12 13:20:00 +02:00
Harminder Virk
e021c9258c Feat/tax dml (#10525)
Fixes: FRMW-2842

There are zero breaking changes and the users will have to run the migrations
2024-12-12 09:35:11 +00:00
Shahed Nasser
bf6d14cb54 docs: fix imports in createBrandStep (#10567) 2024-12-12 10:10:01 +02:00
Frane Polić
472e92e400 feat(medusa, core-flows, fulfillment): calculate SO price endpoint (#10532)
**What**
- endpoint + flow for fetching calculated price for a shipping option

---

CLOSES CMRC-777
2024-12-12 08:03:56 +00:00
Nicklas Gellner
52b494b62d Nits (#10558) 2024-12-12 09:10:11 +02:00
Harminder Virk
885c82ded6 feat: add support for float properties (#10551) 2024-12-12 10:34:39 +05:30
Shahed Nasser
cccce65ef9 docs: fix bugs in API reference (#10557) 2024-12-11 18:32:58 +02:00
Carlos R. L. Rodrigues
0264294ab5 chore(payment): Payment module DML (#10553)
* chore(payment): Payment module DML

* rm log

* migration
2024-12-11 13:09:10 -03:00
Shahed Nasser
91cd9aad47 Merge pull request #10555 from medusajs/chore/tsdocs-docs-util-fixes 2024-12-11 17:53:14 +02:00
Shahed Nasser
c3b2b4b438 chore: fixes to tsdocs + docs-util related to providers 2024-12-11 17:27:32 +02:00
Kasper Fabricius Kristensen
dc5e73af4d fix(dashboard): Prevent fulfillment provider modal from re-rendering before form submission is complete (#10547)
Resolves CMRC-782
2024-12-11 13:10:58 +00:00
Shahed Nasser
2ac6fd82d9 Merge pull request #10548 from medusajs/docs/revise-architectural-modules 2024-12-11 13:15:09 +02:00