Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unit-finance/unit-node-sdk",
"version": "1.3.10",
"version": "1.3.11",
"description": "",
"main": "dist/unit.js",
"types": "dist/unit.d.ts",
Expand Down
14 changes: 13 additions & 1 deletion types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export type StopPaymentDisabled = BaseEvent & {

export type StopPaymentEvents = StopPaymentCreated | StopPaymentStopped | StopPaymentDisabled

export type CheckPaymentEvents = CheckPaymentCreated | CheckPaymentMarkedForReturn | CheckPaymentProcessed | CheckPaymentReturned | CheckPaymentAdditionalVerificationRequired | CheckPaymentAdditionalVerificationApproved | CheckPaymentPending | CheckPaymentCanceled | CheckPaymentDelivered | CheckPaymentInProduction | CheckPaymentInDelivery | CheckPaymentDeliveryStatusChanged | CheckPaymentReturnToSender
export type CheckPaymentEvents = CheckPaymentCreated | CheckPaymentMarkedForReturn | CheckPaymentProcessed | CheckPaymentReturned | CheckPaymentRejected | CheckPaymentAdditionalVerificationRequired | CheckPaymentAdditionalVerificationApproved | CheckPaymentPending | CheckPaymentCanceled | CheckPaymentDelivered | CheckPaymentInProduction | CheckPaymentInDelivery | CheckPaymentDeliveryStatusChanged | CheckPaymentReturnToSender

export type CheckPaymentCreated = BaseEvent & {
type: "checkPayment.created"
Expand Down Expand Up @@ -621,6 +621,18 @@ export type CheckPaymentReturned = BaseEvent & {
} & BaseEventRelationships
}

export type CheckPaymentRejected = BaseEvent & {
type: "checkPayment.rejected"
attributes: {
previousStatus: string
status: string
rejectReason: string
} & BaseEventAttributes
relationships: {
checkPayment: Relationship
} & BaseEventRelationships
}

export type CheckPaymentPending = BaseEvent & {
type: "checkPayment.pending"
attributes: {
Expand Down