@spritz-finance/service-client 0.2.42 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.42",
3
+ "version": "0.2.43",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",