From 3abab71f4a0c87a5051b7cdd539f54e8debbff66 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Fri, 11 Apr 2025 16:28:52 -0400 Subject: [PATCH 1/2] adds payment_instrument and card_brand as subscribable products --- src/resources/Account/types.ts | 12 ++++++++---- test/resources/Account.tests.ts | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/resources/Account/types.ts b/src/resources/Account/types.ts index df0dcdb..eec5704 100644 --- a/src/resources/Account/types.ts +++ b/src/resources/Account/types.ts @@ -73,6 +73,8 @@ export interface IAccountProductListResponse { }; export const AccountSubscriptionTypes = { + card_brand: 'card_brand', + payment_instrument: 'payment_instrument', transaction: 'transaction', update: 'update', update_snapshot: 'update.snapshot', @@ -98,15 +100,17 @@ export type TAccountUpdateSources = keyof typeof AccountUpdateSources; export const AccountLiabilityTypes = { auto_loan: 'auto_loan', + bnpl: 'bnpl', + credit_builder: 'credit_builder', credit_card: 'credit_card', collection: 'collection', + fintech: 'fintech', + insurance: 'insurance', + loan: 'loan', + medical: 'medical', mortgage: 'mortgage', personal_loan: 'personal_loan', student_loans: 'student_loans', - loan: 'loan', - credit_builder: 'credit_builder', - insurance: 'insurance', - medical: 'medical', utility: 'utility', } as const; diff --git a/test/resources/Account.tests.ts b/test/resources/Account.tests.ts index fdd2137..8bf753e 100644 --- a/test/resources/Account.tests.ts +++ b/test/resources/Account.tests.ts @@ -825,10 +825,10 @@ describe('Accounts - core methods tests', () => { status: 'posted', descriptor, amount, - auth_amount: amount, + auth_amount: transactions_response.auth_amount, currency_code: 'USD', - transaction_amount: amount, - transaction_auth_amount: amount, + transaction_amount: transactions_response.transaction_amount, + transaction_auth_amount: transactions_response.transaction_auth_amount, transaction_currency_code: 'USD', merchant_category_code: '5182', transacted_at, From 72ac583e221202b6227a30f7094dcd0618d70377 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Fri, 11 Apr 2025 16:29:23 -0400 Subject: [PATCH 2/2] bumps version --- 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 36e23cb..447f928 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "method-node", - "version": "1.1.12", + "version": "1.1.13", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "method-node", - "version": "1.1.12", + "version": "1.1.13", "license": "ISC", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index 1cae57f..fb35a90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "method-node", - "version": "1.1.12", + "version": "1.1.13", "description": "Node.js library for the Method API", "main": "dist/index.ts", "module": "dist/index.mjs",