Commit Graph

13 Commits

Author SHA1 Message Date
Sebastian Rindom
3d0dff58c4 docs: fixture improvements + small fixes (#204)
* fix: deref arrays

* docs: clean up

* fix: update license
2021-03-16 18:15:41 +01:00
Sebastian Rindom
1e5a1398d8 hotfix: docs build (#198)
* fix: build

* fix: build

* fix: build

* fix: build
2021-03-10 16:15:06 +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
Oliver Windall Juhl
6f1da4ff7d docs: fix cart documentation 2021-02-12 08:44:43 +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
olivermrbl
34e6c52745 chore: updates API reference docs 2020-12-15 13:49:45 +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
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
47e2ad2952 docs: adds first version of REST docs (#116) 2020-09-30 21:17:22 +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
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
Sebastian Rindom
3b707d4edb Adds CartService docs 2020-02-21 13:52:26 +01:00
Sebastian Rindom
3d494bc652 Adds docs endpoint 2020-01-18 15:23:26 +01:00