Skip to content

Commit bbf75c2

Browse files
committed
add application approved event
1 parent 6097ff6 commit bbf75c2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

types/events.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ export type AccountUnfrozen = BaseEvent & {
5555
relationships: BaseEventRelationships
5656
}
5757

58-
export type ApplicationEvents = ApplicationCanceled | ApplicationDenied | ApplicationAwaitingDocuments | ApplicationPendingReview | ApplicationCreated
58+
export type ApplicationEvents = ApplicationApproved | ApplicationCanceled | ApplicationDenied | ApplicationAwaitingDocuments | ApplicationPendingReview | ApplicationCreated
59+
60+
export type ApplicationApproved = BaseEvent & {
61+
type: "application.approved"
62+
relationships: {
63+
application: Relationship
64+
}
65+
}
5966

6067
export type ApplicationCanceled = BaseEvent & {
6168
type: "application.canceled"
@@ -909,4 +916,4 @@ export type TaxFormUpdated = BaseEvent & {
909916
}
910917
}
911918

912-
export type TaxFormEvents = TaxFormCreated | TaxFormUpdated
919+
export type TaxFormEvents = TaxFormCreated | TaxFormUpdated

0 commit comments

Comments
 (0)