fix(utils): export payment events in core flows events (#12636)
This commit is contained in:
1 parent
cf0297f74a
commit
3d65807d99
4 files changed
+34
-5
No files matched your search
@@ -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",
|
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 "./abstract-payment-provider"
|
||||||
export * from "./events"
|
|
||||||
export * from "./payment-collection"
|
export * from "./payment-collection"
|
||||||
export * from "./payment-session"
|
export * from "./payment-session"
|
||||||
export * from "./webhook"
|
export * from "./webhook"
|
||||||
Reference in new issue
Block a user