Commit Graph

128 Commits

Author SHA1 Message Date
Sebastian Rindom 7308946e56 feat: notifications (#172)
The Notifications API allows plugins to register Notification Providers which have `sendNotification` and `resendNotification`.

Each plugin can listen to any events transmittet over the event bus and the result of the notification send will be persisted in the database to allow for clear communications timeline + ability to resend notifications.
2021-02-15 11:59:37 +01:00
Sebastian Rindom 4229e241d0 fix: test 2021-02-14 23:18:15 +01:00
Oliver Windall Juhl c4d1203155 feat(medusa): Product category, type and tags 2021-02-12 08:42:19 +01:00
Sebastian Rindom 427ae25016 feat: adds paypal (#168) (#169) 2021-02-08 21:40:59 +01:00
Oliver Windall Juhl 81df78384c hotfix(medusa): Get cart with session (#165) 2021-02-04 14:51:04 +01:00
Sebastian Rindom d8e806d8ff Hotfix/tag relation (#166)
* fix: remove default tag relation

* fix: auto fulfill bp swaps
2021-02-04 14:38:41 +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
Oliver Windall Juhl 7e14da1225 feat: adds discount code search functionality (#155) 2021-01-27 11:13:24 +01:00
Oliver Windall Juhl 103749eb65 hotfix: customer address updates + mongo ids (#153) 2021-01-26 14:59:50 +01:00
Sebastian Rindom 282eaae675 fix: customer not found (#152) 2021-01-26 12:10:06 +01:00
Sebastian Rindom f1baca3cbd Replaces MongoDB support with PostgreSQL (#151)
- All schemas have been rewritten to a relational model
- All services have been rewritten to accommodate the new data model
- Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects
- Adds staged jobs to avoid putting jobs in the queue when transactions abort
- Adds atomic transactions to all methods with access to the data layer

Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com>
2021-01-26 10:26:14 +01:00
Oliver Windall Juhl 09d7ed232b feat(medusa): Adds filtering to order listing for use in admin (#149) 2020-12-28 16:45:02 +01:00
olivermrbl bb97a17fe3 hotfix(medusa): remove console.log 2020-12-16 12:12:22 +01:00
Oliver Windall Juhl 451451a38e feat(medusa): Adds product variant sale price (#148)
* feat(medusa): Adds product variant sale price

* fix(medusa-plugin-content): Always update prices in contentful
2020-12-16 11:54:28 +01:00
olivermrbl 89830421c8 hotfix(medusa): Decorate order on customers 2020-12-08 14:59:33 +01:00
Oliver Windall Juhl de7c98c9a6 hotfix(medusa): Allow SKU and EAN on create variant (#141) 2020-12-07 15:37:22 +01:00
olivermrbl 37dfd5b6f8 hotfix(medusa): Customer orders decoration 2020-12-04 08:37:50 +01:00
Sebastian Rindom 304431e7c3 fix: allow swaps with total < 0 (#143) 2020-12-02 17:37:46 +01:00
Sebastian Rindom 83844de960 hotfix(medusa): adds variant retrieve/list endpoints 2020-11-26 15:12:37 +01:00
Sebastian Rindom fd04233238 feature: swaps (#137)
* feat: swap schema

* chore(refactor): move returns to separate service

* swap order creates return

* fix: adds returns/fulfillments/shipments and cart creation to swaps

* search products by variants

* feat: swaps ready

* fix: test passing

* chore: include customer expand fields on order

* add tests

* fix: add brightpearl plugin support

* fix: adds swap link template setting

* fix: tests

* fix(medusa-plugin-brightpearl): add swap status option

* docs: add swap description

* fix: adds GET swap in store api

* chore: unmock axios

* fix: passing klarna tests

* fix: pr
2020-11-24 14:02:49 +01:00
Sebastian Rindom 8166a3952f hotfix: add missing totals calculations to order service decorate 2020-11-04 14:02:49 +01:00
Oliver Windall Juhl d67b6e6ebe feat(medusa): Adds set and delete metadata endpoints for region and orders (#131) 2020-11-04 11:38:04 +01:00
Sebastian Rindom e3faa646a7 fix: add country code on preCartCreation 2020-11-02 12:32:45 +01:00
Sebastian Rindom b1786ce9d8 fix: adds field selection to list order endpoint (#133) 2020-10-31 15:28:26 +01:00
Sebastian Rindom f2c62cd232 feat(medusa): adds support for gift cards (#132)
* fix(medusa-plugin-brightpearl): adds gift cards to gift card nominal code

* fix: allow orders with 0 total to be created

* fix: gift card ready

* tests passing

* docs: brightpearl comment

* docs: clearer REMEMBER note
2020-10-28 15:55:50 +01:00
Sebastian Rindom b33fcfa182 chore: test fix 2020-10-22 11:37:23 +02:00
Sebastian Rindom 30e64dda71 allow country code on set region 2020-10-20 14:34:49 +02:00
Sebastian Rindom c1e821d9d4 feat: return shipping and flow (#125)
Adds support for return shipping methods and changes returns to have a request/receive flow. Store operators should now first request a return, noting the line items that will be returned. When the inventory is received the return will be registered triggering the refund. Return shipping methods can now be created for all regions.
2020-10-14 17:58:23 +02:00
Oliver Windall Juhl 128351a8f0 hotfix(CartService): Preserve metadata on line-item updates 2020-10-14 08:28:56 +02:00
Sebastian Rindom abbe42cec8 hotfix(medusa): adds missing regionService 2020-10-08 10:17:38 +02:00
Sebastian Rindom 11bedf8c6f fix/cancel-order (#120)
* fix: adds ability to cancel order

* passing tests

* chore: clean up unused code
2020-10-06 14:00:47 +02:00
Sebastian Rindom d784e5b0fb hotfix: list shipping options by product id 2020-09-21 14:29:36 +02:00
Sebastian Rindom 15bcc1d68c hotfix(medusa): shipping option metadata (#110)
* hotfix(medusa): allow metadata update of shipping options

* fix: typo
2020-09-21 11:44:57 +02:00
Sebastian Rindom 745e64323c hotfix(medusa): allow custom refund with return 2020-09-18 13:49:53 +02:00
Oliver Windall Juhl e3d8eea3cd (feat): Adds phone number to Customer 2020-09-09 16:55:34 +02:00
Oliver Windall Juhl 3de1e6dd4a feat(plugins): Adds add-on plugin
Adds an add-on plugin, that supports adding add-ons to line items in the cart
2020-09-09 15:22:57 +02:00
Sebastian Rindom 951684c2e1 hotfix: Don't send entire error 2020-09-08 12:52:01 +02:00
Sebastian Rindom 1e04be90c8 fix: fulfillment api (#104)
* fix: updates admin fulfillment endpoint

* fix: adds shipment creation in admin

* fix: adds shipment creation in admin

* fix: missing await
2020-09-08 12:02:26 +02:00
Sebastian Rindom 520115a2ce fix(medusa): product variant metadata (#98)
fix(medusa-plugin-sendgrid): generic email support
2020-09-04 18:48:14 +02:00
olivermrbl bcd54d7412 Adds pagination to customerService 2020-09-03 12:32:28 +02:00
olivermrbl 238e9183a9 Admin related fixes 2020-09-02 15:53:14 +02:00
Sebastian Rindom e8afb6b968 fix: add tax_code to regions 2020-08-31 11:30:13 +02:00
olivermrbl 014354a16d Adds discount decoration 2020-08-28 11:36:35 +02:00
Oliver Windall Juhl 9dc6999a9a feat(pagination): Adds MVP pagination to orders and products for admin routes 2020-08-27 17:51:23 +02:00
olivermrbl d8aac759cf fix(discount): allow all updates on discounts 2020-08-27 16:26:30 +02:00
olivermrbl cfa74179dc fix(order): Adds display_id to free text search 2020-08-27 15:04:23 +02:00
Sebastian Rindom dd2980500e chore(medusa): cleanup test routes 2020-08-27 09:53:22 +02:00
olivermrbl ee00bd27e4 Adds decoration for admin endpoints 2020-08-25 13:24:35 +02:00
Oliver Windall Juhl eeca05117a Adds ip lookup middleware for cart creation 2020-08-25 09:51:30 +02:00
olivermrbl 5917927a44 Adds search for list-customer + fix for adyen package.json 2020-08-21 16:30:53 +02:00