Commit Graph
16 Commits
Author SHA1 Message Date
Zakaria El Asri 2e837fcdee fix: complete cart return type (#902) 2021-12-08 22:37:13 +01:00
Zakaria El Asri e8b6d2139d fix: return reasons type (#893) 2021-12-07 17:23:32 +01:00
Zakaria El Asri 487356a96f fix: medusa-js complete cart types + oas comments (#889) 2021-12-07 11:02:53 +01:00
Zakaria El Asri e0064026ed fix: update payment session route (#887) 2021-12-07 10:11:03 +01:00
Zakaria El Asri efadffe37a fix: refresh payment session oas comment (#888) 2021-12-07 10:10:07 +01:00
Zakaria El Asri 74bc9c618f fix: create cart with items (#851)
* fix: create cart with items

* remove: verbose mode

* fix: unit test
2021-12-01 10:53:01 +01:00
Zakaria El Asri 032fcb97ca fix: fine-tuning (#847)
fix: checkout guide markdown + punctuation
fix: remove @docusaurus/theme-search-algolia from project root package.json
fix: use 400 font-weight for paragraphs as opposed to current 450
2021-11-26 14:41:01 +01:00
Zakaria El Asri ded496cee5 fix: medusa-js fine-tuning (#836) 2021-11-22 23:30:36 +01:00
Zakaria El Asri 55e200bf68 add: upgrade oas-normalize and use promise-based api (#806) 2021-11-16 18:12:15 +01:00
Zakaria El Asriandolivermrbl 0a65eca3de fix: delete region causes cascade error (#672)
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-11-03 15:19:46 +01:00
Zakaria El Asri 49a132976d fix: ILIKE operator not supported in sqlite (#393)
* fix: replace ILIKE operator with ILike function where possible

* remove: unused import

* fix: remove alias from test case as it is not needed

* fix: product variant query

* add: integration tests + fallback to original query for all queries searching on the display_id field

* remove: console.log
2021-09-21 11:15:33 +02:00
Zakaria El Asri ca0de00d0b add: is_discount filtering + unit tests (#330) 2021-08-05 16:44:19 +02:00
Zakaria El Asri b101725396 fix: product and variant api route validation (#331) 2021-08-05 15:36:14 +01:00
Zakaria El Asri 821d8be733 feat: add route for retrieving a swap (#326)
* feat: swap details

* test: add get-swap and list-swaps route tests

* test: add swaps integration tests

* fix: use IdMap.getId in complete-cart unit test

commit 289d191 uses the IdMap.getId in the SwapServiceMock retrieve method, so a unit test in complete-cart needs to be adjusted accordingly

* fix: prefix default fields and totals with 'cart'
2021-07-29 16:47:33 +01:00
Zakaria El Asri 06fd882a67 fix: parameterize integration tests' db credentials (#319)
* add: read db credentials from .env

* remove: console.log

* fix: default to default pg user and password
2021-07-23 11:27:05 +01:00
Zakaria El Asri b378a4f8bc fix: enforce 1 shipping method per profile (#322)
prevents the scenario where multiple concurrent calls to insert a shipping method may lead to an inconsistent cart state with more than 1 shipping method per profile.
2021-07-23 11:26:20 +01:00