fix(utils): export payment events in core flows events (#12636)
This commit is contained in:
5
.changeset/famous-kangaroos-dress.md
Normal file
5
.changeset/famous-kangaroos-dress.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/utils": patch
|
||||
---
|
||||
|
||||
fix(utils): export payment events in core flows
|
||||
@@ -814,3 +814,32 @@ export const FulfillmentWorkflowEvents = {
|
||||
*/
|
||||
DELIVERY_CREATED: "delivery.created",
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Payment
|
||||
* @customNamespace Payment
|
||||
*/
|
||||
export const PaymentEvents = {
|
||||
/**
|
||||
* Emitted when a payment is captured.
|
||||
*
|
||||
* @eventPayload
|
||||
* ```ts
|
||||
* {
|
||||
* id, // the ID of the payment
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
CAPTURED: "payment.captured",
|
||||
/**
|
||||
* Emitted when a payment is refunded.
|
||||
*
|
||||
* @eventPayload
|
||||
* ```ts
|
||||
* {
|
||||
* id, // the ID of the payment
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
REFUNDED: "payment.refunded",
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
export const PaymentEvents = {
|
||||
CAPTURED: "payment.captured",
|
||||
REFUNDED: "payment.refunded",
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
export * from "./abstract-payment-provider"
|
||||
export * from "./events"
|
||||
export * from "./payment-collection"
|
||||
export * from "./payment-session"
|
||||
export * from "./webhook"
|
||||
|
||||
Reference in New Issue
Block a user