@spritz-finance/service-client 0.2.41 → 0.2.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -176,5 +176,6 @@ export declare class LiabilitiesServiceClient {
176
176
  createCheckbookVirtualCard(userId: string): Promise<CheckbookCardResponse>;
177
177
  getVirtualCardBalance(cardExternalId: string, userId: string): Promise<number>;
178
178
  getVirtualCardTransactions(cardExternalId: string, userId: string): Promise<CardTransaction[]>;
179
+ canUserMakeTestPayment(userId: string): Promise<boolean>;
179
180
  }
180
181
  export {};
@@ -69,5 +69,10 @@ class LiabilitiesServiceClient {
69
69
  .get(`/virtual-card/card/${cardExternalId}/transactions?userId=${userId}`)
70
70
  .then((res) => res.data);
71
71
  }
72
+ async canUserMakeTestPayment(userId) {
73
+ return this.client
74
+ .get(`/direct-payments/test-payment-available/user/${userId}`)
75
+ .then((res) => res.data);
76
+ }
72
77
  }
73
78
  exports.LiabilitiesServiceClient = LiabilitiesServiceClient;
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { CheckbookCardResponse } from './liabilitiesServiceClient';
3
- import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
3
+ import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountInstitution as GraphInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
4
4
  export { PayableAccountOriginator, AccountSyncStatus, } from './lib/graphClient/generated';
5
5
  export declare enum BankAccountSubType {
6
6
  Business = "BUSINESS",
@@ -63,6 +63,9 @@ export declare type PayableAccount = BankAcountModel | VirtualCardModel | BillMo
63
63
  export declare type PayableAccountBankAccount = BankAcountModel;
64
64
  export declare type PayableAccountVirtualCard = VirtualCardModel;
65
65
  export declare type PayableAccountBill = BillModel;
66
+ export declare type PayableAccountInstitution = GraphInstitution & {
67
+ identificationNumber: string;
68
+ };
66
69
  export declare class PayableAccountsServiceClient {
67
70
  client: AxiosInstance;
68
71
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.41",
3
+ "version": "0.2.43",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",