From f25e603437235c33ba03f9c299e70261d0c3aad2 Mon Sep 17 00:00:00 2001 From: Juan Cernadas Date: Tue, 18 Jun 2024 16:38:37 -0300 Subject: [PATCH] feat: add new payment request statuses --- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/types/payments/paymentRequest.ts | 6 +++++- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index e366255..0619669 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "pluggy-sdk", - "version": "0.48.1", + "version": "0.55.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pluggy-sdk", - "version": "0.48.1", + "version": "0.55.0", "license": "MIT", "dependencies": { - "got": "^11.8.5", + "got": "11.8.6", "jsonwebtoken": "^8.5.1" }, "devDependencies": { @@ -2916,9 +2916,9 @@ } }, "node_modules/got": { - "version": "11.8.5", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.5.tgz", - "integrity": "sha512-o0Je4NvQObAuZPHLFoRSkdG2lTgtcynqymzg2Vupdx6PorhaT5MCbIyXG6d4D94kk8ZG57QeosgdiqfJWhEhlQ==", + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", "dependencies": { "@sindresorhus/is": "^4.0.0", "@szmarczak/http-timer": "^4.0.5", @@ -11464,9 +11464,9 @@ } }, "got": { - "version": "11.8.5", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.5.tgz", - "integrity": "sha512-o0Je4NvQObAuZPHLFoRSkdG2lTgtcynqymzg2Vupdx6PorhaT5MCbIyXG6d4D94kk8ZG57QeosgdiqfJWhEhlQ==", + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", "requires": { "@sindresorhus/is": "^4.0.0", "@szmarczak/http-timer": "^4.0.5", diff --git a/package.json b/package.json index f035f99..38b74ee 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "open banking" ], "dependencies": { - "got": "^11.8.5", + "got": "11.8.6", "jsonwebtoken": "^8.5.1" }, "devDependencies": { @@ -73,4 +73,4 @@ ] ] } -} +} \ No newline at end of file diff --git a/src/types/payments/paymentRequest.ts b/src/types/payments/paymentRequest.ts index 046a3a0..4bf2c9e 100644 --- a/src/types/payments/paymentRequest.ts +++ b/src/types/payments/paymentRequest.ts @@ -4,9 +4,13 @@ import { PaymentRecipient } from './paymentRecipient' export const PAYMENT_REQUEST_STATUS = [ 'CREATED', 'IN_PROGRESS', - 'WAITING_PAYER_AUTHORIZATION', 'COMPLETED', + 'SCHEDULED', + 'WAITING_PAYER_AUTHORIZATION', 'ERROR', + 'REFUND_IN_PROGRESS', + 'REFUNDED', + 'REFUND_ERROR', ] as const /** * @typedef PaymentRequestStatus