docs: improve commerce modules [1/n] (#9498)
Improve and add docs for API Key, Auth, and Cart Modules [1/n]
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
export const metadata = {
|
||||
title: `Links between Cart Module and Other Modules`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
This document showcases the module links defined between the Cart Module and other commerce modules.
|
||||
|
||||
## Payment Module
|
||||
|
||||
The Payment Module handles payment processing and management.
|
||||
|
||||
Medusa defines a link between the `Cart` and `PaymentCollection` data models. A cart has a payment collection which holds all the authorized payment sessions and payments made related to the cart.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Promotion Module
|
||||
|
||||
The Promotion Module provides discount features.
|
||||
|
||||
Medusa defines a link between the `Cart` and `Promotion` data models. This indicates the promotions applied on a cart.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Order Module
|
||||
|
||||
The Order Module provides order-management features.
|
||||
|
||||
Medusa defines a link between the `Cart` and `Order` data models. The cart is linked to the order created once the cart is completed.
|
||||
|
||||

|
||||
Reference in New Issue
Block a user