Commit Graph

90 Commits

Author SHA1 Message Date
olivermrbl
3b801e7486 fix nullable description 2021-03-29 11:45:30 +02:00
olivermrbl
d9cd52a177 fix(medusa): Move discount usage from rule to discount 2021-03-29 10:15:41 +02:00
olivermrbl
8fc6b26cb8 pr review fixes 2021-03-17 10:32:11 +01:00
olivermrbl
c513813bb6 fix(medusa): Add usage_count + usage_limit to discount 2021-03-17 08:42:14 +01:00
Sebastian Rindom
192237b335 Return Reason (#205)
* feat: add return reasons

* feat: add return reasons

* feat: adds return reason entity

* fix: endpoint tag

* fix: endpoint tag

* fix: do not require label

* fix: PR
2021-03-16 13:57:33 +01:00
Sebastian Rindom
dd7b306333 feat(medusa): cart context (#201)
- Adds a context field to Cart
- context is automatically populated with ip + user agent
- context can be updated via POST /store/cart/:id or set when creating via POST /store/cart
2021-03-12 11:48:51 +01:00
Oliver Windall Juhl
a031f1f338 fix(medusa): Upsert product images (#200) 2021-03-12 10:09:01 +01:00
Sebastian Rindom
8edb32c742 docs: oas (#197)
Adds OpenAPI specification of Storefront and Admin APIs.
Updates docs project.
2021-03-10 11:51:54 +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
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
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
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
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
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
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
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
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
Oliver Windall Juhl
cc23a3b070 feat(medusa-interfaces): Adds schema options to base model 2020-10-20 17:07:47 +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
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
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
Oliver Windall Juhl
e3d8eea3cd (feat): Adds phone number to Customer 2020-09-09 16:55:34 +02:00
Sebastian Rindom
021544d454 fix(medusa): adds fulfillment_created event in order service (#101) 2020-09-05 15:40:57 +02:00
olivermrbl
fa6b131111 All tests passes 2020-08-20 09:19:54 +02:00
Sebastian Rindom
341e9423ce Pretty order numbers 2020-08-11 21:53:00 +02:00
Sebastian Rindom
ab0c51819c Brightpearl integration sales flow 2020-08-11 15:40:04 +02:00
Sebastian Rindom
ee93256e69 Tests passing 2020-08-05 15:26:00 +02:00
Sebastian Rindom
21bc096b2e Adds Oauth support to plugins 2020-08-04 17:13:47 +02:00
Sebastian Rindom
c18677d5f2 Adds integration to send sales orders to brightpearl 2020-08-03 10:23:45 +02:00
Sebastian Rindom
630bf3abc6 Adds gift card support 2020-07-29 11:51:59 +02:00
Sebastian Rindom
4c9b876407 Adds gift card line item generation 2020-07-20 16:29:27 +02:00
Sebastian Rindom
df47da50fa Gift cards are automatically added to gift card profile 2020-07-20 15:54:14 +02:00
Sebastian Rindom
3710f7f80a Adds dynamic coupon codes and segment plugin 2020-07-17 14:06:55 +02:00
Sebastian Rindom
ec6a538877 All tests passing 2020-07-15 17:47:43 +02:00
Sebastian Rindom
44c7177e43 Automatic stripe customers; address 2020-07-14 08:10:09 +02:00
Sebastian Rindom
cd989c56a7 Setup future usage 2020-07-13 17:35:50 +02:00
Sebastian Rindom
60b8bca753 Adds account support 2020-07-12 12:11:31 +02:00
Sebastian Rindom
419d5db340 Klarna clean up 2020-07-11 16:32:05 +02:00
Sebastian Rindom
d930d00723 Klarna orders 2020-07-10 15:41:42 +02:00
olivermrbl
30c101a8be Adds create order transactiom 2020-07-10 10:23:31 +02:00
Sebastian Rindom
788ededf4e Add model details 2020-07-10 08:34:32 +02:00