Commit Graph

201 Commits

Author SHA1 Message Date
Sebastian Rindom
dc75b9e983 Merge branch 'release/next' 2021-02-26 09:58:53 +01:00
Oliver Windall Juhl
4d708d2306 hotfix(medusa): Optimize product retrieval (#185) 2021-02-26 07:58:59 +01:00
Oliver Windall Juhl
22be418ec1 fix(medusa): Add querying func. on customer retrievals (#181) 2021-02-23 13:40:49 +01:00
Sebastian Rindom
99ad43bf47 feat(medusa): tracking links (#177)
* fix: creates tracking links on fulfillments

* fix: typo
2021-02-18 16:59:19 +01:00
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
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
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
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
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
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
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
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
696799da23 hotfix(medusa): pass value instead of reference 2020-10-20 18:13:48 +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
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
Oliver Windall Juhl
371fd0c433 Adds use of injected decorators in all services (#122)
* hotfix(services): Use injected decorators in services

* Fixes test
2020-10-08 09:03:05 +02:00
Sebastian Rindom
5deca90b5f hotfix: fulfillment-schema (#121)
* chore: debug

* corrects fulfillment schema
2020-10-06 16:59:15 +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
0889059ba1 fix(medusa-plugin-brightpearl): reliable oauth (#119) 2020-10-05 11:48:20 +02:00
Oliver Windall Juhl
a06d603722 hotfix(medusa): Check metadata in line item isEqual 2020-10-05 11:22:46 +02:00
Oliver Windall Juhl
d8483cd135 fix(medusa-plugin-addon): Fixes admin endpoints, Adds flag to avoid merging add-on line-items 2020-09-23 09:51: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
c5019ca0d1 fix(medusa): add line item to order.gift_card_created event 2020-09-11 13:48:07 +02:00