File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
src/api/webhooks/trolley/handlers Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export enum RecipientAccountWebhookEvent {
4
4
deleted = 'recipientAccount.deleted' ,
5
5
}
6
6
7
- export interface RecipientAccountEventData {
7
+ export interface RecipientAccountEventDataFields {
8
8
status : string ;
9
9
type : string ;
10
10
primary : boolean ;
@@ -15,6 +15,10 @@ export interface RecipientAccountEventData {
15
15
disabledAt : string | null ;
16
16
recipientReferenceId : string | null ;
17
17
deliveryBusinessDaysEstimate : number ;
18
+ }
19
+
20
+ export interface RecipientAccountEventDataWithBankDetails
21
+ extends RecipientAccountEventDataFields {
18
22
country : string ;
19
23
iban : string ;
20
24
accountNum : string ;
@@ -33,6 +37,15 @@ export interface RecipientAccountEventData {
33
37
recipientFees : string ;
34
38
}
35
39
40
+ export interface RecipientAccountEventDataWithPaypalDetails
41
+ extends RecipientAccountEventDataFields {
42
+ emailAddress : string ;
43
+ }
44
+
45
+ export type RecipientAccountEventData =
46
+ | RecipientAccountEventDataWithBankDetails
47
+ | RecipientAccountEventDataWithPaypalDetails ;
48
+
36
49
export type RecipientAccountDeleteEventData = Pick <
37
50
RecipientAccountEventData ,
38
51
'id'
You can’t perform that action at this time.
0 commit comments