Skip to content

Commit 36e3f9a

Browse files
authored
Tax Form Events (#440)
* tax forms events * lint-fix
1 parent 5ae66ad commit 36e3f9a

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

types/events.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReceivedPaymentStatus } from "./payments"
33

44
export type UnitEvent = AccountEvents | ApplicationEvents | AuthorizationEvents | CardEvents | CustomerEvents | DocumentEvents |
55
CheckDepositEvents | PaymentEvents | RecurringPaymentEvents | StatementsCreated | TransactionEvents |
6-
ChargeBackCreated | RewardEvents | DisputeEvents | RepaymentEvents | StopPaymentEvents | CheckPaymentEvents
6+
ChargeBackCreated | RewardEvents | DisputeEvents | RepaymentEvents | StopPaymentEvents | CheckPaymentEvents | TaxFormEvents
77

88
export interface BaseEvent {
99
id: string
@@ -851,3 +851,30 @@ export type RepaymentStatusChanged = BaseEvent & {
851851

852852
export type RepaymentEvents = RepaymentCreated | RepaymentStatusChanged
853853

854+
export type TaxFormCreated = BaseEvent & {
855+
type: "taxForm.created"
856+
attributes: {
857+
taxYear: string
858+
formType: string
859+
revision: number
860+
}
861+
relationships: {
862+
taxForm: Relationship
863+
customer: Relationship
864+
}
865+
}
866+
867+
export type TaxFormUpdated = BaseEvent & {
868+
type: "taxForm.updated"
869+
attributes: {
870+
taxYear: string
871+
formType: string
872+
revision: number
873+
}
874+
relationships: {
875+
taxForm: Relationship
876+
customer: Relationship
877+
}
878+
}
879+
880+
export type TaxFormEvents = TaxFormCreated | TaxFormUpdated

0 commit comments

Comments
 (0)