Commit Graph

57 Commits

Author SHA1 Message Date
Sebastian Rindom bc5ff91a02 Adds Store Service to control store settings (#76)
Also adds support for `projectConfig.admin_cors` & `projectConfig.store_cors`
2020-06-29 10:23:24 +02:00
Sebastian Rindom ef43fb2030 Makes all endpoints return objects (#71) 2020-05-28 20:15:17 +02:00
Sebastian Rindom 3c7864dfca Creates updateSession and createSession in PaymentProviderService (#70) 2020-05-28 14:36:13 +02:00
Sebastian Rindom 706ca8ac45 Makes ProductVariant operations go through ProductService (#68)
Ensures that we can reliably manage product variants and their relationship to products
2020-05-28 11:44:11 +02:00
Oliver Windall Juhl 420c1d8cdb Adds ProductVariant endpoints (#59)
Adds endpoints for product variants with tests.

Closes #58
2020-05-14 11:05:26 +02:00
Oliver Windall Juhl 809133fa2a Closes #53
Use email for reset password and reset password token
2020-05-11 13:55:44 +02:00
Oliver Windall Juhl 8255a839f6 Adds OrderService and /orders endpoints
Adds OrderService

Adds endpoints for orders - both store and admin
2020-05-11 13:54:09 +02:00
Sebastian Rindom 7ca03579db Fixes event-bus tests 2020-05-08 11:42:16 +02:00
Sebastian Rindom 4c2aec2838 Adds publish/subscribe pattern to allow plugins and projects to hook into events (#55)
Also adds CLI to ease development.
2020-05-07 13:47:27 +02:00
Sebastian Rindom 6a78df1ecd Adds endpoints to manage customers (#54) 2020-05-07 13:31:38 +02:00
Sebastian Rindom 516bc7675d Adds Middleware API (#40)
* Adds test project

* Adds e2e for end-2-end tests

* Update gitignore

* Update loaders

* Creates test project

* v0.1.27

* Upgrade

* dependency fixes

* Load project plugins in the plugin loader

* Issue with instanceof

* Fixes versioning issues

* Adds medusa middleware api

* Adds documentation

* Fixes tests
2020-05-01 13:33:03 +02:00
Oliver Windall Juhl a53822d298 Adds admin endpoints / routes for user (#36)
Adds all endpoints / routes for user operations
Tweaks in UserService
Adds update in UserService
Fixes old tests
2020-04-17 08:13:24 +02:00
Oliver Windall Juhl e3cdde3c9e Fixes according to issue #21 (#35) 2020-04-14 21:44:05 +02:00
Oliver Windall Juhl 20735de62d Adds admin discount routes / endpoints (#34) 2020-04-12 17:18:07 +02:00
Oliver Windall Juhl 42fdd14e42 Adds admin API endpoints for product operations (#32) 2020-04-08 21:18:03 +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
Oliver Windall Juhl aff1ec3390 Adds DiscountService and TotalsService (#26) 2020-04-07 12:48:57 +02:00
Oliver Windall Juhl f6d5180e5f Adds medusa-plugin-permissions (#12) 2020-04-06 15:57:31 +02:00
Sebastian Rindom bc5dc5fab4 Fixes failing user tetst 2020-04-06 12:51:23 +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
Oliver Windall Juhl 8ab9b823b9 #22 Fixes create return value 2020-04-02 19:39:04 +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 c622162e0d Duplicate definition 2020-03-24 14:36:55 +01:00
Sebastian Rindom 65e3a1852d load core models and app models separately 2020-03-24 14:35:37 +01:00
Sebastian Rindom 763ae82aff Imports core services and app services separately (#19) 2020-03-24 14:24:23 +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
olivermrbl 83883dce16 small typo fix 2020-03-10 11:45:10 +01:00
olivermrbl 9014d2bd1b Refactors retrieve function in services 2020-03-10 11:36:14 +01:00
Oliver Windall Juhl 8d51a3f716 Adds LineItemService (#11) 2020-03-10 10:46:01 +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
Oliver Windall Juhl bcaac913d2 Adds UserService (#10) 2020-02-18 20:14:20 +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
Oliver Windall Juhl cc2e87754d Feature/customer service (#8)
Adds CustomerService
2020-02-05 12:25:58 +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