Commit Graph

259 Commits

Author SHA1 Message Date
Sebastian Rindom 5659d106e3 fix: performant relations 2021-02-18 10:31:09 +01:00
Sebastian Rindom 46006e4b06 fix: use parallel relation fetching (#173)
optimizes performance of queries with many left joins
2021-02-17 10:40:48 +01:00
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 15450546f0 chore: create indexes on foreign keys (#164) 2021-02-03 13:02:58 +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 e592bf66f9 hotfix(medusa): Fix gift card created event (#158) 2021-01-29 16:32:27 +01:00
Oliver Windall Juhl fe2657dfa5 hotfix(medusa): include optional id in discount rule validation (#157) 2021-01-29 16:18:16 +01:00
Sebastian Rindom 178d12fc71 fix: tax_rate extraction in totals service (#156) 2021-01-27 18:55:05 +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
Sebastian Rindom 3ed62802fa hotfix(swap): add email to swap fulfillments 2021-01-06 13:24:29 +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
Sebastian Rindom e7f2d20138 hotfix(medusa): match stringified id 2020-12-17 10:50:39 +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
Sebastian Rindom 59bb490c14 hotfix(medusa): missing this 2020-12-09 18:00:12 +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 aae8d5e112 fix: swaps with discounts (#142) 2020-11-29 12:18:36 +01:00
Sebastian Rindom 9ea9b7ab77 hotfix(medusa): allow free products 2020-11-28 10:50:50 +01:00
Sebastian Rindom 83844de960 hotfix(medusa): adds variant retrieve/list endpoints 2020-11-26 15:12:37 +01:00
Sebastian Rindom 57b2e51334 hotfix(medusa): add discounts to swap cart 2020-11-24 14:45:07 +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 f4965eba8d hotfix(medusa): compatible with missing shipped_quantity fields 2020-11-13 14:36:33 +01:00
Oliver Windall Juhl 6a3c545537 feat(medusa): Adds shipped status to line items + Capture fails will give payment_status = requires_action 2020-11-13 12:43:02 +01:00
Sebastian Rindom 53124349ef hotfix: throw on empty carts 2020-11-05 10:19:28 +01:00
Sebastian Rindom f3aba57056 hotfix: don't allow empty carts to be created 2020-11-05 10:08:06 +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 696799da23 hotfix(medusa): pass value instead of reference 2020-10-20 18:13:48 +02:00
Oliver Windall Juhl cc23a3b070 feat(medusa-interfaces): Adds schema options to base model 2020-10-20 17:07:47 +02:00
Sebastian Rindom c5c19d2988 hotfix(medusa): missing shipping_address update 2020-10-20 15:29:39 +02:00
Sebastian Rindom 30e64dda71 allow country code on set region 2020-10-20 14:34:49 +02:00
Sebastian Rindom ec93aea110 hotfix(medusa): emit event with updated shipment 2020-10-19 16:07:00 +02:00
Oliver Windall Juhl 46dbbdb9fb hotfix(medusa): Save empty metadata on line-items (#126) 2020-10-17 17:06:20 +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