Commit Graph
75 Commits
Author SHA1 Message Date
Sebastian Rindom da7dcdf777 Update .gitignore 2020-04-30 22:06:47 +02:00
Sebastian Rindom feda00d2d1 Decorators (#42)
Adds decorator functionality to BaseService
2020-04-30 21:39:30 +02:00
Sebastian Rindom 2273cc519a Revert "[medusa-interfaces] : Adds decorator functionality to BaseService (#39)" (#41)
This reverts commit 9c76754e79.
2020-04-30 21:16:09 +02:00
Sebastian Rindom 9c76754e79 [medusa-interfaces] : Adds decorator functionality to BaseService (#39)
Plugins and projects can add decorators in services. E.g. if a plugin needs to load some additional information on carts the plugin can register a decorator via: `cartService.addDecorator(someFunc)` which will be available later through `cartService.runDecorators()`.
2020-04-30 20:40:22 +02:00
Sebastian Rindom 904a2369fb Create CODEOWNERS 2020-04-08 10:58:42 +02:00
Sebastian Rindom b7557db9f9 Adds Regions (#33)
Regions are a collection of countries that share some common functionality, e.g., currency, available fulfillment and shipping providers and a taxrate. The store operator can have as many Regions as needed.
2020-04-08 09:44:41 +02:00
Sebastian Rindom ea4185eddd Creates ShippingProfileService & ShippingOptionService (#30)
Adds ShippingProfiles:

With Shipping Profiles store operators can group products together and select which shipping options can fulfill the products. The shipping profiles are region agnostic, but for products to be shippable to a given region the shipping profile must have a shipping option associated that ships to this region.

Adds Shipping Options:

Shipping Options represents a way that the customer can have their order shipped. The shipping option has a fulfillment provider associated to determine who fulfills orders with the given shipping method. If a fulfillment provider has multiple ways that they can ship a shipping option for each of the fulfillment provider's shipping options can be created.
2020-04-07 16:35:27 +02:00
Sebastian Rindom bc5dc5fab4 Fixes failing user tetst 2020-04-06 12:51:23 +02:00
Sebastian Rindom 35e0930650 v0.3.0 2020-04-06 12:14:08 +02:00
Sebastian Rindom f0a9fd34f4 Publish 2020-04-06 12:13:55 +02:00
Sebastian Rindom a83ab58c76 v0.2.0 2020-04-06 12:13:16 +02:00
Sebastian Rindom 9308707884 Publish 2020-04-06 12:12:33 +02:00
Sebastian Rindom b874495fde v0.2.0-alpha.0 2020-04-04 15:48:28 +02:00
Sebastian Rindom cc8ccd44b9 v0.1.27-alpha.0 2020-04-04 15:48:15 +02:00
Sebastian Rindom 6ae1a1d25e User fixes 2020-04-03 15:43:40 +02:00
Sebastian Rindom c82c9f3733 Singleton models; do not require user password 2020-04-03 12:53:52 +02:00
Sebastian Rindom 51c97abec9 Remove ProductService dependency from ProductVariantService 2020-03-30 17:17:25 +02:00
Sebastian Rindom 808d0912e3 Load Services, Models and API from Core, Plugins and Project root (#23) 2020-03-30 16:52:20 +02:00
Sebastian Rindom 9740e9faac v0.1.12-alpha.0 2020-03-24 14:37:21 +01:00
Sebastian Rindom c622162e0d Duplicate definition 2020-03-24 14:36:55 +01:00
Sebastian Rindom f5d0ecd4ee v0.1.11-alpha.0 2020-03-24 14:36:01 +01:00
Sebastian Rindom 65e3a1852d load core models and app models separately 2020-03-24 14:35:37 +01:00
Sebastian Rindom 03a80797d8 v0.1.10-alpha.0 2020-03-24 14:24:51 +01:00
Sebastian Rindom 763ae82aff Imports core services and app services separately (#19) 2020-03-24 14:24:23 +01:00
Sebastian Rindom f50de7fac3 Ignore tests in build 2020-03-24 14:23:07 +01:00
Sebastian Rindom 2692b860dc v0.1.9-alpha.0 2020-03-24 11:44:06 +01:00
Sebastian Rindom 5e8e94ba9e chore : dependency fix 2020-03-24 11:43:40 +01:00
Sebastian Rindom d980c20491 v0.1.8-alpha.0 2020-03-24 11:41:31 +01:00
Sebastian Rindom 3fff45a0de v0.1.7-alpha.0 2020-03-24 11:38:54 +01:00
Sebastian Rindom 1abf560d89 chore : Adds prepare script 2020-03-24 11:38:25 +01:00
Sebastian Rindom 086e7dac7d v0.1.6-alpha.0 2020-03-24 11:18:21 +01:00
Sebastian Rindom 1aee503162 Lerna ready 2020-03-24 11:18:04 +01:00
Sebastian Rindom d3ae95ffe0 v0.1.5-alpha.0 2020-03-24 10:53:36 +01:00
Sebastian Rindom edc9052adc v0.1.4-alpha.0 2020-03-24 10:33:43 +01:00
Sebastian Rindom b32c7c760b Rename 2020-03-24 10:33:13 +01:00
Sebastian Rindom 6fce625a01 v0.1.3-alpha.0 2020-03-24 10:28:11 +01:00
Sebastian Rindom 665860d239 chore: lerna 2020-03-24 10:26:45 +01:00
Sebastian Rindom ba3d667655 v0.1.2-alpha.0 2020-03-24 10:04:55 +01:00
Sebastian Rindom c66ec0e525 chore: update repo url 2020-03-24 10:02:21 +01:00
Sebastian Rindom 75d85829c7 v0.1.1-alpha.0 2020-03-24 09:54:56 +01:00
Sebastian Rindom 351aa21861 chore: update repo url 2020-03-24 09:48:38 +01:00
Sebastian Rindom 3a42488897 v0.1.0-alpha.0 2020-03-24 09:22:04 +01:00
Sebastian Rindom 51aaf5105c Completes Cart Service and store/carts endpoints (#18)
Completes Cart Service to allow shopping and checkout flows.
2020-03-16 09:48:52 +01:00
Sebastian Rindom 8e7b66a205 Merge pull request #15 from srindom/refactor/issue-14
Refactors retrieve functions in services
2020-03-10 16:10:43 +01:00
Sebastian Rindom 245557ac2e POST /store/carts/:id to update email, addresses, dicsounts, region 2020-02-25 16:50:40 +01:00
Sebastian Rindom 30785ebb95 adds get cart and create cart endpoints; adds in 2020-02-25 15:56:37 +01:00
Sebastian Rindom 379aa8f83f Adds list products 2020-02-25 12:40:14 +01:00
Sebastian Rindom 1926ad396a Import missing mongoose module 2020-02-25 12:06:57 +01:00
Sebastian Rindom df898f86f3 Merge branch 'master' of github.com:srindom/medusa 2020-02-21 13:54:00 +01:00
Sebastian Rindom 3b707d4edb Adds CartService docs 2020-02-21 13:52:26 +01:00
Sebastian Rindom 2236bde459 MVP Roadmap 2020-02-18 16:57:28 +01:00
Sebastian Rindom e5a400306c Adds provider service test; Better provider mock 2020-02-18 15:10:09 +01:00
Sebastian Rindom d4517b9f00 Necessary methods for region service 2020-02-18 14:58:58 +01:00
Sebastian Rindom f8fcd5a3dd Adds a payment provider service that can easily retrieve payment providers 2020-02-18 14:58:11 +01:00
Sebastian Rindom d114b806d6 cart service: setRegion - filter items that don't have region price 2020-02-08 18:35:56 +01:00
Sebastian Rindom 64afe158bb Get region specific prices from the product variant service 2020-02-05 16:38:52 +01:00
Sebastian Rindom 8fb5845874 Creates setRegion 2020-02-05 16:20:04 +01:00
Sebastian Rindom 2f2dd5eae3 Merge branch 'master' of github.com:srindom/medusa 2020-02-05 15:14:31 +01:00
Sebastian Rindom 1d939342b4 Creates prices modifiers in productVariant 2020-02-05 15:14:19 +01:00
Sebastian Rindom cb727c8689 cart service: updateShippingAddress, updateBillingAdress, updateEmail; address validator in core utils 2020-02-05 10:20:58 +01:00
Sebastian Rindom eed979b9d9 Adds comment 2020-02-05 08:56:01 +01:00
Sebastian Rindom 8c515fa9d4 Adds addLineItem to cart service; adds canCoverQuantity to product variant service 2020-01-30 16:13:03 +01:00
Sebastian Rindom a912b81426 Refactor IdMap test helper to medusa-test-utils package 2020-01-30 09:54:12 +01:00
Sebastian Rindom edce88c34b Moves Medusa interfaces defines model schemas for Customer, Cart, Order 2020-01-30 09:38:08 +01:00
Sebastian Rindom 751adec7f7 Adds cart service skeleton 2020-01-28 16:25:28 +01:00
Sebastian Rindom b16f32f63f Adds cart service skeleton 2020-01-28 16:24:47 +01:00
Sebastian Rindom 4ba63ccc0d create product endpoint 2020-01-21 16:27:02 +01:00
Sebastian Rindom ed472e9fba Creates test request helper for API endpoints
Separates common utils into the medusa-core-utils package.
Sets up a testing environment where mocked models/services/etc. can be placed in
__mocks__ folder within its corresponding directory. The mocks will
automatically be registered in a awilix container only used for testing.
2020-01-21 15:13:47 +01:00
Sebastian Rindom 3d494bc652 Adds docs endpoint 2020-01-18 15:23:26 +01:00
Sebastian Rindom 46a384d6cb .gitignore update 2020-01-18 15:19:23 +01:00
Sebastian Rindom c7cf9b8061 Add core 2020-01-18 15:08:22 +01:00
Sebastian Rindom 2d8dd4b0a9 Lerna setup 2020-01-18 14:58:25 +01:00
Sebastian Rindom cc958369d8 Adds lerna 2020-01-18 14:51:11 +01:00
Sebastian Rindom aa6bb4648e Initial commit 2020-01-18 14:48:15 +01:00
Sebastian Rindom f83b33de44 Initial commit 2020-01-18 14:39:05 +01:00