Sebastian Rindom
4fd361fddd
merge develop
2021-10-15 20:09:31 +02:00
pKorsholm
42cdfde6d9
Feat/nested return reasons ( #418 )
...
* api endpoints for nested return_reasons
* add nested return reasons to database
* add parent reason to update
* integration tests
* add children relation
* integration tests for nested returns and failing doubly nesting returns
* add delete-route and nested relations
* delete return reason route
* doubly nested return reason creation check and deletion
* nested return reasons migration
* list only parent reasons
* removed null filter
* remove empty migration
* add return reason filter to get list of categories with children
* removed console log
* corrected delete route
* return reason testing
* return reasons query
* listREasonsFromIDs
* create return testing
* listReasonsFromIds
* return reason tests
* failing if returnreason has child on return
* integration tests
* cascading deletes on return reasons
* more elegant checking for children of return reasons when creating a return
* remove console.log
* pr adjust
Co-authored-by: Philip Korsholm <phko@MacBook-Pro.localdomain >
2021-09-29 09:22:09 +02:00
Oliver Windall Juhl
85de2039cc
hotfix: bug related to region update with no shipping address ( #415 )
2021-09-23 10:52:46 +02:00
Kasper Fabricius Kristensen
a82332da3e
feat: add product status ( #400 )
...
* added statuses to product + unit test for updating status
* add update to product model
* added integration tests
* added integration test to validate that updating status to null results in invalid_data error
* removed comment
* update GET /store/products integration test
* fixed unit test with IdMap
* changed dbehaviour on invalid status input on admin list products
* updated migration to add status = published on all existing products + added integration test on GET /admin/products when status null is provided
* made requested changes to migration and GET /store/products
* fixed test
* made requested changes to migration
2021-09-21 11:22:17 +02:00
Oliver Windall Juhl
00ab03f3a2
feat: Allow backorder on swaps ( #404 )
2021-09-19 15:33:43 +02:00
Sebastian Rindom
bf43896d19
fix: customer endpoints shouldn't use customer id already provided through authentication ( #402 )
...
* Updated customers/:id to customers/me - untested
* fix: integration +unit tests
* docs: fix oas docs
Co-authored-by: ColdMeekly <20516479+ColdMeekly@users.noreply.github.com >
2021-09-17 08:27:46 +02:00
Vilfred Sikker Dreijer
d477ca9842
fix: add default relations to variants to include prices ( #394 )
2021-09-14 16:54:39 +02:00
Vilfred Sikker Dreijer
682741041a
Feat: add product default relations support for variant prices ( #359 )
...
Co-authored-by: olivermrbl <oliver@mrbltech.com >
2021-09-10 14:53:12 +02:00
Sebastian Mateos Nicolajsen
cf66f97758
feat: update and cancel swaps, claims, and returns ( #310 )
2021-09-10 13:57:34 +02:00
Sebastian Mateos Nicolajsen
0076332e0e
Fix/create customer in draft order ( #285 )
...
* draft order now creates customer when creating cart
* corrected to update instead of create
* corrected tests
* added creation of customer to create of cart
* removed update function from mock
* added test
* corrected update to update email properly
* corrected tests
* removed unused func
* updated core properly
* removed manual-payment service
2021-09-07 11:15:43 +02:00
Sebastian Rindom
ae82cfc70a
feat: creates support for swaps on the storefront ( #355 )
2021-08-30 12:14:56 +02:00
Oliver Windall Juhl
fd14e243da
fix: Account for non-discountable items in getRefundTotal ( #347 )
2021-08-20 17:12:37 +02:00
Kasper Fabricius Kristensen
143f06aa39
feat: Update to API references look and feel ( #343 )
...
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com >
Co-authored-by: zakariasaad <zakaria.elas@gmail.com >
Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com >
Co-authored-by: olivermrbl <oliver@mrbltech.com >
2021-08-20 10:26:29 +02:00
Sebastian Rindom
1039d040e9
Add SQLite support for easy setup ( #336 )
...
* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process.
* Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected.
* Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js
* Small improvements to bin resolution
* Improvements to endpoint stability
2021-08-16 15:45:26 +02:00
Sebastian Rindom
9a701ff229
fix: improves integration tests ( #332 )
...
* fix: improves integration tests
* fix: giftcard order with total 0
* fix: remove breaking eager
2021-08-11 09:26:25 +02:00
Kasper Fabricius Kristensen
f07cc0fa40
feat: In band inventory updates ( #311 )
...
Co-authored-by: olivermrbl <oliver@mrbltech.com >
2021-08-05 12:21:15 +02:00
Oliver Windall Juhl
6053c4a8dd
feat: Add discountable flag to product ( #329 )
2021-08-05 10:40:12 +02: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
Sebastian Rindom
5a1cbc68b7
fix: allow updating billing address on customer
2021-07-13 10:41:06 +02:00
Sebastian Rindom
c33c431889
chore: remove console.log
2021-06-29 16:54:24 +02:00
Sebastian Rindom
6342e68d06
fix: better store/customer support
2021-06-29 16:31:30 +02:00
Sebastian Rindom
10113d0657
test: adds integration test for shipping-option-requirements
2021-06-08 17:21:42 +02:00
olivermrbl
c0f2d629ab
PR Review fixes
2021-06-07 15:23:41 +02:00
olivermrbl
e3343f74a7
fix merge conflicts from develop
2021-05-25 15:44:26 +02:00
Oliver Windall Juhl
fb0613d3cb
fix(medusa): Add free shipping functionality ( #241 )
2021-04-27 15:14:18 +02:00
Sebastian Rindom
d243b55ccf
fix: integration tests
2021-04-13 12:28:31 +02:00
olivermrbl
7872d37c04
fix merge conflicts
2021-03-17 14:50:07 +01:00
Sebastian Rindom
a26b12a536
fix: expose statusses on order
2021-03-17 14:35:53 +01:00
olivermrbl
c513813bb6
fix(medusa): Add usage_count + usage_limit to discount
2021-03-17 08:42:14 +01:00
Sebastian Rindom
192237b335
Return Reason ( #205 )
...
* feat: add return reasons
* feat: add return reasons
* feat: adds return reason entity
* fix: endpoint tag
* fix: endpoint tag
* fix: do not require label
* fix: PR
2021-03-16 13:57:33 +01:00
Sebastian Rindom
7c7f86e8e8
fix: allows shipping option filters in return ( #202 )
...
* fix: allows shipping option filters in return
* fix: test
* chore: update fixtures
* docs: update openapi
2021-03-12 14:23:03 +01:00
Sebastian Rindom
dd7b306333
feat(medusa): cart context ( #201 )
...
- Adds a context field to Cart
- context is automatically populated with ip + user agent
- context can be updated via POST /store/cart/:id or set when creating via POST /store/cart
2021-03-12 11:48:51 +01:00
olivermrbl
d55c24e28c
Merge branch 'develop' into feat/draft-orders
2021-03-11 08:35:41 +01:00
Sebastian Rindom
252db5ef7e
feat(medusa): storefront return ( #194 )
...
* feat: adds endpoint to lookup an order by its display_id and email
* feat: adds storefront returns
* fix: pr comments
2021-03-10 17:42:39 +01:00
Sebastian Rindom
0b172b6d77
Allow Gift Card balance lookup in the Storefront API ( #193 )
...
* feat: enable balance lookup for gift-cards
2021-03-08 13:26:30 +01:00
olivermrbl
b65edfce06
PR review modifications
2021-02-19 17:42:18 +01:00
olivermrbl
362c5c6055
adds endpoints for draft orders
2021-02-16 16:53:55 +01:00
Oliver Windall Juhl
81df78384c
hotfix(medusa): Get cart with session ( #165 )
2021-02-04 14:51:04 +01:00
Sebastian Rindom
690d339667
feat(medusa,brightpearl,segment,webshipper): claims ( #163 )
...
* chore: create tests
* chore: models
* fix: passing initial tests
* test: adds integration test
* test: clean up integration implementation
* fix: claims
* fix: brightpearl + webshipper
* tests: passing
* fix: update claim items
* fix: adds gitignore
* fix: pr comments
* fix: single migration
* fix(medusa-plugin-segment): adds item claimed event to segment
2021-02-03 09:49:12 +01:00