docs: changes for next release (#12098)

* docs: changes for next release

* generate

* generate
This commit is contained in:
Shahed Nasser
2025-04-11 11:58:19 +03:00
committed by GitHub
parent af5918d03f
commit 18dc3cf9c9
7 changed files with 14686 additions and 14498 deletions
@@ -105,11 +105,11 @@ To retrieve the account holder associated with a customer with [Query](!docs!/le
const { data: customers } = await query.graph({
entity: "customer",
fields: [
"account_holder.*",
"account_holders.*",
],
})
// customers.account_holder
// customers.account_holders
```
</CodeTab>
@@ -123,11 +123,11 @@ import { useQueryGraphStep } from "@medusajs/medusa/core-flows"
const { data: customers } = useQueryGraphStep({
entity: "customer",
fields: [
"account_holder.*",
"account_holders.*",
],
})
// customers.account_holder
// customers.account_holders
```
</CodeTab>
@@ -23,6 +23,14 @@ It holds fields retrieved from the third-party provider, such as:
A payment provider that supports saving payment methods for customers would create the equivalent of an account holder in the third-party provider. Then, whenever a payment method is saved, it would be saved under the account holder in the third-party provider.
### Relation between Account Holder and Customer
The Medusa application creates a link between the [Customer](/references/customer/models/Customer) data model of the [Customer Module](../../customer/page.mdx) and the `AccountHolder` data model of the Payment Module.
This link indicates that a customer can have more than one account holder, each representing saved payment methods in different payment providers.
Learn more about this link in the [Link to Other Modules](../links-to-other-modules/page.mdx) guide.
---
## Save Payment Methods
+2 -2
View File
@@ -5725,7 +5725,7 @@ export const generatedEditDates = {
"app/commerce-modules/tax/admin-widget-zones/page.mdx": "2024-12-24T08:47:13.176Z",
"app/commerce-modules/user/admin-widget-zones/page.mdx": "2024-12-24T08:48:14.186Z",
"app/commerce-modules/currency/links-to-other-modules/page.mdx": "2025-03-17T06:41:29.161Z",
"app/commerce-modules/customer/links-to-other-modules/page.mdx": "2025-03-14T15:18:39.759Z",
"app/commerce-modules/customer/links-to-other-modules/page.mdx": "2025-04-07T07:31:46.046Z",
"app/commerce-modules/fulfillment/events/page.mdx": "2024-12-31T09:37:49.253Z",
"app/commerce-modules/payment/events/page.mdx": "2024-12-31T09:41:56.582Z",
"references/core_flows/Payment/Steps_Payment/functions/core_flows.Payment.Steps_Payment.refundPaymentsStep/page.mdx": "2025-03-04T13:33:44.866Z",
@@ -5891,7 +5891,7 @@ export const generatedEditDates = {
"references/types/HttpTypes/interfaces/types.HttpTypes.StoreProductTypeResponse/page.mdx": "2025-01-27T11:43:54.212Z",
"references/types/interfaces/types.BaseProductTypeListParams/page.mdx": "2025-01-27T11:43:54.550Z",
"references/core_flows/Order/Steps_Order/variables/core_flows.Order.Steps_Order.updateOrderChangesStepId/page.mdx": "2025-01-27T11:43:49.278Z",
"app/commerce-modules/payment/account-holder/page.mdx": "2025-01-31T09:37:41.595Z",
"app/commerce-modules/payment/account-holder/page.mdx": "2025-04-07T07:31:20.235Z",
"app/troubleshooting/test-errors/page.mdx": "2025-01-31T13:08:42.639Z",
"app/commerce-modules/product/variant-inventory/page.mdx": "2025-02-26T11:21:20.075Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-03-05T11:30:19.896Z",