fix(utils): export payment events in core flows events (#12636)

This commit is contained in:
Shahed Nasser
2025-05-29 10:10:26 +03:00
committed by GitHub
parent cf0297f74a
commit 3d65807d99
4 changed files with 34 additions and 5 deletions
@@ -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
View File
@@ -1,5 +1,4 @@
export * from "./abstract-payment-provider"
export * from "./events"
export * from "./payment-collection"
export * from "./payment-session"
export * from "./webhook"