File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { TriggeredBy } from './execution'
2
2
3
3
export const WEBHOOK_EVENTS = [
4
+ 'all' ,
4
5
'item/created' ,
5
6
'item/updated' ,
6
7
'item/error' ,
@@ -9,7 +10,15 @@ export const WEBHOOK_EVENTS = [
9
10
'item/login_succeeded' ,
10
11
'connector/status_updated' ,
11
12
'transactions/deleted' ,
12
- 'all' ,
13
+ 'connector/status_updated' ,
14
+ 'payment_intent/created' ,
15
+ 'payment_intent/completed' ,
16
+ 'payment_intent/waiting_payer_authorization' ,
17
+ 'payment_intent/error' ,
18
+ 'scheduled_payment/created' ,
19
+ 'scheduled_payment/completed' ,
20
+ 'scheduled_payment/error' ,
21
+ 'scheduled_payment/canceled' ,
13
22
] as const
14
23
/**
15
24
* @typedef WebhookEvent
@@ -104,4 +113,13 @@ export type WebhookEventPayload = {
104
113
paymentIntentId : string
105
114
paymentRequestId : string
106
115
}
116
+ | {
117
+ event :
118
+ | 'scheduled_payment/created'
119
+ | 'scheduled_payment/completed'
120
+ | 'scheduled_payment/error'
121
+ | 'scheduled_payment/canceled'
122
+ paymentRequestId : string
123
+ scheduledPaymentId : string
124
+ }
107
125
)
You can’t perform that action at this time.
0 commit comments