Relations between Cart Module and Other Modules
When Commerce Modules are used together in a Medusa application, the Medusa application handles building the relations between these modules.
This document showcases the relation between the Cart Module and other Commerce Modules.
Customer Module
A cart is scoped to the customer using it. The Medusa application forms a relation between the Cart
and Customer
data models.
Payment Module
The Payment Module allows you to associate payments with a cart. The Medusa application forms a relation between the Cart
and PaymentCollection
data models.
Promotion Module
A promotion can be applied on line items and shipping methods of a cart. The Medusa application forms a relation between the Cart
and Promotion
data models.
Sales Channel Module
A cart is scoped to a sales channel. The Medusa application forms a relation between the Cart
and SalesChannel
data models.