From e978b93dedf45d11a228c659b604e359a9cb0686 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Fri, 23 May 2025 18:16:19 -0500 Subject: [PATCH 1/3] adds transaction merchant --- src/resources/Account/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/resources/Account/types.ts b/src/resources/Account/types.ts index 7a780da..5f69cb1 100644 --- a/src/resources/Account/types.ts +++ b/src/resources/Account/types.ts @@ -441,6 +441,7 @@ export interface IAccountTransaction { transaction_amount: number; transaction_auth_amount: number; transaction_currency_code: string; + merchant: ITransactionMerchant | null; merchant_category_code: string; status: TAccountTransactionStatuses; transacted_at: Date; @@ -451,6 +452,11 @@ export interface IAccountTransaction { updated_at: Date; }; +export interface ITransactionMerchant { + id: string; + logo: string | null; +}; + export const AccountVerificationSessionStatuses = { pending: 'pending', in_progress: 'in_progress', From ee5282127e918c5a375502b9821a2eddc02a5533 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Fri, 23 May 2025 18:17:01 -0500 Subject: [PATCH 2/3] bump version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ed8b3fd..7a6d260 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "method-node", - "version": "1.2.0", + "version": "1.2.1", "license": "ISC", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index 7b2ae0e..18b63af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "method-node", - "version": "1.2.0", + "version": "1.2.1", "description": "Node.js library for the Method API", "main": "dist/index.ts", "module": "dist/index.mjs", From e6bc8fcb478702e4068df662bd3f5027a5b8b65a Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Fri, 23 May 2025 18:17:51 -0500 Subject: [PATCH 3/3] update tests --- test/resources/Account.tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/resources/Account.tests.ts b/test/resources/Account.tests.ts index 7bc5105..d73a6dd 100644 --- a/test/resources/Account.tests.ts +++ b/test/resources/Account.tests.ts @@ -841,6 +841,7 @@ describe('Accounts - core methods tests', () => { transaction_auth_amount: transactions_response.transaction_auth_amount, transaction_currency_code: 'USD', merchant_category_code: '5182', + merchant: transactions_response.merchant, transacted_at, posted_at, voided_at: null, @@ -870,6 +871,7 @@ describe('Accounts - core methods tests', () => { transaction_auth_amount: retrieve_transaction_response.transaction_auth_amount, transaction_currency_code: 'USD', merchant_category_code: '5182', + merchant: retrieve_transaction_response.merchant, transacted_at: retrieve_transaction_response.transacted_at, posted_at: retrieve_transaction_response.posted_at, voided_at: null,