Commit Graph

2351 Commits

Author SHA1 Message Date
Philip Korsholm
c661cc789b Feat/decline order edit (#2234)
**What**
- Decline an order edit from a store endpoint
- Refactor totals setting to a service method

Fixes CORE-502
2022-09-21 11:02:10 +00:00
Frane Polić
de85a971c6 fix: infer MA currency on PL create (#2232)
**What**
- a MoneyAmount record can be created with either providing region or currency. MA records cannot be inserted in the DB without currency due to not null constraints therefore the currency needs to be inferred from provided region

**How**
- by using the same utility that fixes this issue on PL update

**Testing**
- extend the "create PL" integration test to handle a MA with a region

---

FIXES CORE-525
2022-09-19 18:30:31 +00:00
Frane Polić
e1fe5ed094 feat(medusa): Update OrderEdit (#2220) 2022-09-19 13:29:12 +02:00
Philip Korsholm
5a2ac76762 feat(medusa): Hard delete OrderEdits (#2225) 2022-09-19 10:18:21 +02:00
Oliver Windall Juhl
3f73170288 fix(medusa): Normalize discount code before querying DB (#2224)
**What**
Normalize discount code before querying DB

Fixes CORE-567
2022-09-16 12:01:36 +00:00
Adrien de Peretti
f7177c9033 feat(medusa): Implement premises of the creation flow of an order edit (#2187)
**What**
- Implements the admin create end point 
- Service implementation of the create method and the retrieveActive as well as the totals computation
- Improve compute line items
- client
  - medusa-js api
  - medusa-react mutations hooks

**Tests**
- Unit tests of the create end points
- Unit tests of the service create method
- Integration tests for admin that also take into account totals computations
- client
  - medusa-js tests
  - medusa-react hooks tests

FIXES CORE-491
2022-09-16 08:29:40 +00:00
sabakhilji
6132711eef fix(medusa-js): Use correct payload type in medusa-js (#2207) 2022-09-16 09:42:26 +02:00
Philip Korsholm
09627c01d3 feat(medusa): Support OrderEdit removal (#2204) 2022-09-16 08:39:40 +02:00
olivermrbl
6225aa57b8 chore(release): Publish 2022-09-15 17:22:12 +02:00
olivermrbl
d2932d328c chore: Include changesets 2022-09-15 17:19:17 +02:00
olivermrbl
625964dcf3 Merge branch 'master' into develop 2022-09-15 17:15:18 +02:00
Philip Korsholm
6f4b221971 fix(medusa): Cleanup Tax lines in case of a failed cart completion (#2212) 2022-09-15 17:14:10 +02:00
Oliver Windall Juhl
5d75e16b1f fix(medusa): Expose list-currencies endpoint by removing feature flag guard (#2216) 2022-09-15 16:29:14 +02:00
github-actions[bot]
d47b785b39 chore(docs): Generated Entities Reference (automated) (#2217)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-09-15 16:07:45 +03:00
github-actions[bot]
9ead8aedd1 chore(docs): Generated API Reference (#2218)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-09-15 16:07:31 +03:00
Shahed Nasser
7c6521101e docs: fixed errors in OAS comments (#2215) 2022-09-15 16:01:34 +03:00
Shahed Nasser
9dcbefd829 docs: fixes to OAS comments (#2214)
* fixed tag name

* added price selection query params

* added more info to the currency_code query param

* fix change in imports
2022-09-15 15:04:36 +03:00
Shahed Nasser
19f29bfe48 docs: fixed design bug in API reference (#2213) 2022-09-15 14:01:35 +03:00
Adrien de Peretti
f863d28b9a feat(medusa): Implement premises of order edit retrieval (#2183)
**What**
- Implements the admin/store retrieval end point 
- Service implementation of the retrieve method
- Service implementation of the computeLineItems method which aggregates the right line item based on the changes that are made
- client
  - medusa-js api
  - medusa-react queries hooks

**Tests**
- Unit tests of the retrieval end points
- Unit tests of the service retrieve method and computeLineItems
- Integration tests for admin/store
- client
  - medusa-js tests
  - medusa-react hooks tests

FIXES CORE-492
2022-09-15 09:12:20 +00:00
Shahed Nasser
18c4971d0c docs: added claims user guide (#2211) 2022-09-14 18:29:10 +03:00
Shahed Nasser
effa4248b6 docs: added docs for how to Import Products using API (#2209)
* fix code snippet for create upload

* added product import docs

* fix to upload endpoint code example

* added minimum version for MinIO
2022-09-14 16:17:02 +03:00
Shahed Nasser
02c3b18466 docs: added export order user guide (#2208) 2022-09-14 15:33:02 +03:00
github-actions[bot]
59448f2a26 chore(docs): Generated Entities Reference (automated) (#2205)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-09-14 13:26:33 +03:00
github-actions[bot]
fbdcb78066 chore(docs): Generated Services Reference (automated) (#2206)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-09-14 13:26:03 +03:00
olivermrbl
3efeb6b84f chore(release): Publish 2022-09-14 11:36:53 +02:00
olivermrbl
44b5914b43 chore: Update changesets 2022-09-14 11:33:21 +02:00
olivermrbl
b227fcb163 Merge branch 'master' into develop 2022-09-14 10:25:03 +02:00
olivermrbl
9be3860fa5 chore(release): Publish 2022-09-14 10:08:29 +02:00
Frane Polić
992ef733f4 fix(medusa): Check for Sales Channel on product import (#2202) 2022-09-14 09:53:23 +02:00
sabakhilji
2bfde7d787 docs: change title in Create a Service documentation (#2201)
Change title in Create a Service documentation
2022-09-14 10:37:47 +03:00
Sebastian Rindom
eb3b02baf4 fix(medusa): cart to be created with a country code (#2197)
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-09-13 19:19:06 +00:00
Frane Polić
f2eb942b41 feat: order editing data model (#2184)
**What**
- add order editing entities
- add repositories
- add a feature flag for the order editing feature
- add the migrations file

RESOLVES CORE-490
2022-09-13 16:40:21 +00:00
Shahed Nasser
3767cf26f7 docs: added returns user guide (#2199) 2022-09-13 18:30:48 +03:00
Shahed Nasser
a9e3c5e68a docs: added user guide for draft orders (#2198) 2022-09-13 17:47:41 +03:00
Shahed Nasser
99b51a90b7 docs: added "Manage Order's Fulfillments" user guide (#2196) 2022-09-13 16:31:43 +03:00
Shahed Nasser
27526fe879 docs: added user guide for manage payment (#2194) 2022-09-13 15:25:34 +03:00
Carlos R. L. Rodrigues
a94d9816fe chore: Centralise ESLint rules (#2162)
* chore: centrilize eslint rules
2022-09-13 07:42:33 -03:00
Shahed Nasser
ac9e1aca6f docs: updated strapi docs (#2193) 2022-09-13 13:14:27 +03:00
Sushil Kumar
a12d737d1c docs: removed prerequisite section and added required/optional tool section (#2192)
* docs: rearranged and removed installation section

> Removed "Prerequisite Background Knowledge" section
> Created "Required Tools" and "Optional Tools" sections
> Moved "Node.js", "Git", and "Medusa CLI" to Required Section 
> "PostgreSQL" and "Redis" to "Optional Section"

* removed links from heading

* Removed Lists under required tools

* added text below headline
2022-09-13 13:14:06 +03:00
olivermrbl
612a548875 chore: Bump minor version of plugins 2022-09-13 10:48:58 +02:00
github-actions[bot]
6e0258f36c chore(docs): Generated API Reference (#2191)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-09-13 10:59:51 +03:00
Sebastian Rindom
37fd48000b fix(medusa): allow address updates on carts w/o existing address (#2176) 2022-09-13 07:51:08 +00:00
olivermrbl
70cf3f1f2c chore: Bump medusa-file-minio 2022-09-13 09:02:14 +02:00
olivermrbl
91f087098c fix: Merge conflicts w. master 2022-09-13 08:59:06 +02:00
Bhargava Prabu Reddy
505a13eb1c fix(medusa): Resent notification replaces parent notification 2022-09-12 21:35:15 +02:00
Kasper Fabricius Kristensen
64949dc721 feat(medusa-js,medusa-react,medusa): Add missing Currency endpoints (#2185) 2022-09-12 19:28:43 +02:00
Shahed Nasser
5661250049 docs: adjust summary length of endpoints (#2188)
* change titles for admin apis

* adjusted titles for storefront apis

* added a note about length in contribution guidelines

* adjusted title for get customer endpoint
2022-09-12 18:32:26 +03:00
Shahed Nasser
020331e3ea docs: added manage order details user guide (#2190) 2022-09-12 18:24:41 +03:00
Shahed Nasser
6c1a099aa7 docs: added edit section to manage regions user guide (#2189) 2022-09-12 17:30:29 +03:00
Adrien de Peretti
b6161d2404 fix(medusa): Export/import fixes including export fields that contains new line char (#2150) 2022-09-12 15:53:45 +02:00