Skip to content

Commit 2f1180a

Browse files
YegorZhjyywong
andauthored
feat: add application approved event (#529)
* add application approved event * fix: relationships --------- Co-authored-by: Jonathan Wong <[email protected]>
1 parent 9938afd commit 2f1180a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

types/events.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ 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: BaseEventRelationships
63+
}
5964

6065
export type ApplicationCanceled = BaseEvent & {
6166
type: "application.canceled"
@@ -909,4 +914,4 @@ export type TaxFormUpdated = BaseEvent & {
909914
}
910915
}
911916

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

0 commit comments

Comments
 (0)