-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: document missing events in reference (#10779)
- Loading branch information
1 parent
0e2f608
commit 6780ea9
Showing
11 changed files
with
205 additions
and
2 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
www/apps/resources/app/commerce-modules/fulfillment/events/_content.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Table } from "docs-ui" | ||
|
||
<Table> | ||
<Table.Header> | ||
<Table.Row> | ||
<Table.HeaderCell>Event Name</Table.HeaderCell> | ||
<Table.HeaderCell>Description</Table.HeaderCell> | ||
<Table.HeaderCell className="w-1/3">Payload</Table.HeaderCell> | ||
</Table.Row> | ||
</Table.Header> | ||
<Table.Body> | ||
<Table.Row> | ||
<Table.Cell> | ||
|
||
`shipment.created` | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
Emitted when an admin user creates a shipment. | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
```ts blockStyle="inline" | ||
{ | ||
id, // The ID of the shipment | ||
} | ||
``` | ||
|
||
</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell> | ||
|
||
`delivery.created` | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
Emitted when the admin user marks an order fulfillment as delivered. | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
```ts blockStyle="inline" | ||
{ | ||
id, // The ID of the fulfillment | ||
} | ||
``` | ||
|
||
</Table.Cell> | ||
</Table.Row> | ||
</Table.Body> | ||
</Table> |
11 changes: 11 additions & 0 deletions
11
www/apps/resources/app/commerce-modules/fulfillment/events/page.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Content from "./_content.mdx" | ||
|
||
export const metadata = { | ||
title: `Fulfillment Module Events Reference`, | ||
} | ||
|
||
# {metadata.title} | ||
|
||
This reference shows all the events emitted by the Medusa application related to the Fulfillment Module. If you use the module outside the Medusa application, these events aren't emitted. | ||
|
||
<Content /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
www/apps/resources/app/commerce-modules/payment/events/_content.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Table } from "docs-ui" | ||
|
||
<Table> | ||
<Table.Header> | ||
<Table.Row> | ||
<Table.HeaderCell>Event Name</Table.HeaderCell> | ||
<Table.HeaderCell>Description</Table.HeaderCell> | ||
<Table.HeaderCell className="w-1/3">Payload</Table.HeaderCell> | ||
</Table.Row> | ||
</Table.Header> | ||
<Table.Body> | ||
<Table.Row> | ||
<Table.Cell> | ||
|
||
`payment.captured` | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
Emitted when a payment is captured. | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
```ts blockStyle="inline" | ||
{ | ||
id, // The ID of the payment | ||
} | ||
``` | ||
|
||
</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell> | ||
|
||
`payment.refunded` | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
Emitted when a payment is refunded. | ||
|
||
</Table.Cell> | ||
<Table.Cell> | ||
|
||
```ts blockStyle="inline" | ||
{ | ||
id, // The ID of the payment | ||
} | ||
``` | ||
|
||
</Table.Cell> | ||
</Table.Row> | ||
</Table.Body> | ||
</Table> |
11 changes: 11 additions & 0 deletions
11
www/apps/resources/app/commerce-modules/payment/events/page.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Content from "./_content.mdx" | ||
|
||
export const metadata = { | ||
title: `Payment Module Events Reference`, | ||
} | ||
|
||
# {metadata.title} | ||
|
||
This reference shows all the events emitted by the Medusa application related to the Payment Module. If you use the module outside the Medusa application, these events aren't emitted. | ||
|
||
<Content /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters