diff --git a/package-lock.json b/package-lock.json index d1cc0dc9..a42b87cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@unit-finance/unit-node-sdk", - "version": "1.3.10", + "version": "1.3.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@unit-finance/unit-node-sdk", - "version": "1.3.10", + "version": "1.3.11", "license": "MPLv2", "dependencies": { "axios": "^1.8.4" diff --git a/package.json b/package.json index 03de74f7..373e5081 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/events.ts b/types/events.ts index f5188bf1..18607ac7 100644 --- a/types/events.ts +++ b/types/events.ts @@ -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" @@ -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: {