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
olivermrbl
72c5030da3
Merge branch 'master' into develop
2021-11-22 13:40:55 +01:00
Oliver Windall Juhl
f387b4919f
fix: Addresses breaking change from library class-transformer ( #835 )
...
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
2021-11-22 13:39:38 +01:00
Sebastian Rindom
59761163c2
chore: merge release
2021-11-20 15:59:31 +01:00
Derek Wene
ebb7c0aa53
Fix: admin api create customer ( #826 )
2021-11-20 11:50:28 +01:00
Derek Wene
2d9879ea09
feat: admin api - allow customers to be created and updated with metadata ( #824 )
...
* feat: admin api - allow customers to be created and updated with metadata
* feat: add integration test for metadata
2021-11-18 18:50:36 +01:00
Oliver Windall Juhl
373532ecbc
feat: Typescript for API layer ( #817 )
...
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
Co-authored-by: Zakaria El Asri <33696020+zakariaelas@users.noreply.github.com >
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
Co-authored-by: Sebastian Rindom <seb@medusa-commerce.com >
2021-11-18 15:19:17 +01:00
Oliver Windall Juhl
1e50aee4fe
feat: Allow retrieval of soft-deleted products ( #723 )
2021-11-10 22:23:56 +01:00
Sebastian Rindom
7ecfe207de
hotfix: joins discounts when creating claims ( #760 )
...
* fix: join discounts when creating claims
* fix: rm verbose/only
* fix: rm dup tests
2021-11-09 12:27:38 +01:00
Sebastian Rindom
e0fa06fe96
fix: make it possible to update order shipping address ( #668 )
2021-11-05 16:48:29 +01:00
Sebastian Rindom
45b344fbe1
fix: add product count to storefront ( #719 )
2021-11-04 15:32:48 +01:00
Zakaria El Asri
0a65eca3de
fix: delete region causes cascade error ( #672 )
...
Co-authored-by: olivermrbl <oliver@mrbltech.com >
2021-11-03 15:19:46 +01:00
Sebastian Rindom
692cccf53a
Merge remote-tracking branch 'origin/master' into develop
2021-11-03 14:13:58 +01:00
Sebastian Rindom
a5fe1c2e28
fix: include discount rule in swap retrieval ( #682 )
2021-11-03 14:11:27 +01:00
Sebastian Rindom
e82737a035
fix: adds options to default relations in storefront product endpoints ( #712 )
2021-11-03 13:15:36 +01:00
Sebastian Rindom
58127564d7
feat(medusa): adds collection endpoints to storefront ( #711 )
...
Adds:
- `/store/collections/:id`
- `/store/collections`
2021-11-03 11:24:45 +01:00
Philip Korsholm
68c2a4fe3a
Fix/polish discount ( #569 )
...
* formatting and optional "is_dynamic" on updates
* formatting
* uppercasing discount code on update
* multiple regions fail with fixed discounts
* discount testing
* testing
* spelling
* removed comment
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2021-10-26 13:20:38 +02:00
Sebastian Rindom
531075208f
Merge remote-tracking branch 'origin/master' into develop
2021-10-24 14:08:45 +02:00
Sebastian Rindom
caa9ab81df
fix: add integration test
2021-10-23 13:15:04 +02:00
Philip Korsholm
6b83653bf6
Fix/cascading product variant deletion ( #570 )
...
* testing for deletes of variants when a product is deleted
* remove variants with products
* test using direct db query
* formatting
* removed unused imports
2021-10-22 09:20:59 +02:00
Sebastian Rindom
5441d47f88
fix: cleanup
2021-10-19 19:16:47 +02:00
Sebastian Rindom
06f5fe2670
fix: allow changing regions safely
2021-10-19 18:56:52 +02:00
Sebastian Rindom
fe34ab5976
fix: tests
2021-10-15 20:00:27 +02:00
Sebastian Rindom
690cdd2392
Merge branch 'develop' into feat/rma-shipping-options
2021-10-15 19:55:06 +02:00
Sebastian Rindom
dc7ecc959a
fix: add possiblity to unset billing address
2021-10-15 19:24:44 +02:00
Sebastian Rindom
9c72acda40
fix: failing integration tests
2021-10-15 19:14:44 +02:00
Sebastian Rindom
2297a84cb9
fix: merge develop
2021-10-15 18:44:19 +02:00
zakariaelas
569595d0bb
fix: include shipping profile and requirement relations when fetching custom shipping options
2021-10-15 15:01:23 +01:00
Sebastian Mateos Nicolajsen
fbd08e0feb
feat:swap/claim on claim and claim on swap ( #424 )
2021-10-14 18:21:38 +02:00
zakariaelas
29c5a1f8d2
fix: store cart integration test by removing custom shipping options when creating a swap
2021-10-14 16:03:59 +01:00
zakariaelas
7cdd628997
merge develop and resolve conflicts
2021-10-14 15:44:58 +01:00
zakariaelas
36aeb4fffa
fix: remove verbose mode in integration test + fix jsdoc
2021-10-14 14:50:28 +01:00
zakariaelas
dba1d5bb69
fix: adjustments based on seb's feedback
...
- remove eager from shipping_option relationship in `models/custom-shipping-options.ts`
- remove custom_shipping_options relation from cart model
2021-10-14 14:44:36 +01:00
Kasper Fabricius Kristensen
fc50aacde2
fix: options relations on GET variant ( #532 )
2021-10-13 19:46:44 +02:00
pKorsholm
5ef2a3fbcb
feat: Product filtering ( #439 )
2021-10-13 16:01:59 +02:00
Sebastian Mateos Nicolajsen
c0e947f47a
fix: update product images ( #494 )
2021-10-13 12:05:58 +02:00
Mark
3d891c9b4f
Issue #442 Prettier rules not applied to some integration tests files ( #445 )
2021-10-08 12:11:58 +02:00
zakariaelas
3d088c351b
fix: more adjustments
...
add: composite unique constraint for shipping_option_id and cart_id
fix: fetchCartOptions to format custom shipping options like normal shipping options
fix: addShippingMethod should throw when custom shipping options is not empty and no optionId corresponds to custom shipping options
2021-10-07 14:54:05 +01:00
Sebastian Rindom
b8d515cb0b
wip
2021-10-06 15:21:16 +02:00
zakariaelas
52be911e50
fix: adjustments based on feedback
...
rename RMAShippingOption to CustomShippingOption
update models and relations
update unit and integration tests
update services
2021-10-06 14:17:36 +01:00
Oliver Windall Juhl
17b192fe37
fix: Throw on cart creation when no region exist ( #455 )
...
If you try to create a cart without a region in your setup, we should throw a proper error message.
2021-10-06 11:19:38 +02:00
Sebastian Rindom
38813ec66f
fix: add integration test
2021-10-05 12:36:43 +02:00
zakariaelas
db83448d18
fix: tests
2021-10-01 16:41:27 +01:00
zakariaelas
632ad17e3f
fix: merge conflicts
2021-09-30 20:29:58 +01:00
zakariaelas
7ea284bb20
fix: tests
2021-09-30 17:57:46 +01:00
zakariaelas
79c601279e
tests: integration tests
2021-09-30 14:52:43 +01:00
pKorsholm
cd4afd1576
fix(medusa): hide password hash ( #429 )
...
* auth tests
* customer auth tests
* user auth test
* store auth snapshot
* auth snapshot
* auth with deleted password hashes
* manual field input for test scripts
* fix circleci with double retrieve of user and customer
* add email validation to user
* fix: cleanup
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2021-09-30 12:19:37 +02:00
pKorsholm
9b64828ec3
Feat:discount expiration date ( #403 )
...
* discount expiration validation and testing
* integration testing
* double quotes
* add iso8601 package
* api testing
* add joi validation of start and end dates as well as valid_duration
* valid_duration column
* service testing
* discount validation in services
* integration test with invalid date interval
* include valid_duration when fetching a discount
* rename variable for clarity
* add test for dynamic discount with expiration date
* remove debug code
* adjust tests to reflect valid_duration being included in default fields
* additional discount update validation
* fixed failing test
* set ends_at on dynamic discount creation
* discount integration tests
* removed unused console.log
* removed validation of dynamic discounts by duration and added ends_at to dynamic discount creation
* integration tests for dynamic discount with and without duration
* optional valid duration for dynamic discounts
* allow nullable dynamic discount durations
* expect assertions
* fix unit test after change to dynamic discounts without duration
* change to date instead of string
* add assertions
* error handling
* addressed feedback
2021-09-30 12:13:59 +02:00
Oliver Windall Juhl
ae0ab03fac
fix: Creating shipping options with requirements ( #428 )
2021-09-29 15:20:14 +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