Links between Region Module and Other Modules
This document showcases the module links defined between the Region Module and other Commerce Modules.
Summary#
The Region Module has the following links to other modules:
First Data Model | Second Data Model | Type | Description |
---|---|---|---|
Cart in Cart Module | Read-only - has one | ||
Read-only - has one | |||
Stored - many-to-many |
Cart Module#
Medusa defines a read-only link between the Cart Module's Cart
data model and the Region
data model. Because the link is read-only from the Cart
's side, you can only retrieve the region of a cart, and not the other way around.
Retrieve with Query#
To retrieve the region of a cart with Query, pass region.*
in fields
:
Order Module#
Medusa defines a read-only link between the Order Module's Order
data model and the Region
data model. Because the link is read-only from the Order
's side, you can only retrieve the region of an order, and not the other way around.
Retrieve with Query#
To retrieve the region of an order with Query, pass region.*
in fields
:
Payment Module#
You can specify for each region which payment providers are available for use.
Medusa defines a module link between the PaymentProvider
and the Region
data models.
Retrieve with Query#
To retrieve the payment providers of a region with Query, pass payment_providers.*
in fields
:
Manage with Link#
To manage the payment providers in a region, use Link: