From 11ec84d24b10e9e299616357459960871cde920e Mon Sep 17 00:00:00 2001 From: YegorZh Date: Tue, 30 Dec 2025 10:02:24 +0000 Subject: [PATCH 1/2] feat: check payment rejected event --- types/events.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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: { From d3c8f1b375671a3a289849d9633e03ece898774a Mon Sep 17 00:00:00 2001 From: YegorZh Date: Mon, 5 Jan 2026 08:38:58 +0000 Subject: [PATCH 2/2] version bump 1.3.11 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",