@@ -69,20 +69,20 @@ export type WebhookEventPayload = {
69
69
/** Primary identifier of the event that was notified */
70
70
eventId : string
71
71
} & (
72
- | {
72
+ | {
73
73
/** Type of event subscribed */
74
74
event :
75
- | 'item/created'
76
- | 'item/updated'
77
- | 'item/waiting_user_input'
78
- | 'item/login_succeeded'
79
- | 'item/deleted'
75
+ | 'item/created'
76
+ | 'item/updated'
77
+ | 'item/waiting_user_input'
78
+ | 'item/login_succeeded'
79
+ | 'item/deleted'
80
80
/** Primary identifier of the item related to the event */
81
81
itemId : string
82
82
/** Who trigger the event */
83
83
triggeredBy ?: TriggeredBy | null
84
84
}
85
- | {
85
+ | {
86
86
/** Type of event subscribed */
87
87
event : 'item/error'
88
88
/** Primary identifier of the item related to the event */
@@ -95,15 +95,15 @@ export type WebhookEventPayload = {
95
95
/** Who trigger the event */
96
96
triggeredBy ?: TriggeredBy | null
97
97
}
98
- | {
98
+ | {
99
99
/** Type of event subscribed */
100
100
event : 'connector/status_updated'
101
101
/** Object with extra information of the connector updated */
102
102
data : {
103
103
status : string
104
104
}
105
105
}
106
- | {
106
+ | {
107
107
/** Type of event subscribed */
108
108
event : 'transactions/deleted' | 'transactions/updated'
109
109
/** Primary identifier of the item related to the event */
@@ -115,18 +115,29 @@ export type WebhookEventPayload = {
115
115
/** Primary identifier of the transactions related to the event */
116
116
transactionIds : string [ ]
117
117
}
118
- | {
118
+ | {
119
+ event : 'transactions/created'
120
+ /** Primary identifier of the item related to the event */
121
+ itemId : string
122
+ /** Primary identifier of the account related to the event */
123
+ accountId : string
124
+ /** Filter transactions created after date. Format is ISO Date. */
125
+ transactionsCreatedAtFrom : string
126
+ /** Link to get the created transactions of the sync */
127
+ createdTransactionsLink : string
128
+ }
129
+ | {
119
130
event : 'payment_intent/created' | 'payment_intent/completed' | 'payment_intent/error'
120
131
paymentIntentId : string
121
132
paymentRequestId : string
122
133
}
123
- | {
134
+ | {
124
135
event :
125
- | 'scheduled_payment/created'
126
- | 'scheduled_payment/completed'
127
- | 'scheduled_payment/error'
128
- | 'scheduled_payment/canceled'
136
+ | 'scheduled_payment/created'
137
+ | 'scheduled_payment/completed'
138
+ | 'scheduled_payment/error'
139
+ | 'scheduled_payment/canceled'
129
140
paymentRequestId : string
130
141
scheduledPaymentId : string
131
142
}
132
- )
143
+ )
0 commit comments