@spritz-finance/service-client 0.3.95 → 0.3.97

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.
@@ -77,6 +77,7 @@ export type UpsertVirtualCardInput = {
77
77
  externalId: string;
78
78
  provider?: AccountProvider;
79
79
  currency?: string;
80
+ balance?: number;
80
81
  country?: string;
81
82
  mask?: string;
82
83
  name?: string;
@@ -6,3 +6,4 @@ export declare function createUserVerification(input: {
6
6
  userId: string;
7
7
  email?: string;
8
8
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<Verification>>;
9
+ export declare function activateVirtualCardModule(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<Verification>>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.createUserVerification = exports.getUserIdentity = exports.getUserVerification = exports.VerificationClient = void 0;
26
+ exports.activateVirtualCardModule = exports.createUserVerification = exports.getUserIdentity = exports.getUserVerification = exports.VerificationClient = void 0;
27
27
  exports.VerificationClient = __importStar(require("./verificationServiceClient"));
28
28
  const serviceClient_1 = require("../serviceClient");
29
29
  const VERIFICATION_ENDPOINT = '/verification';
@@ -45,3 +45,9 @@ async function createUserVerification(input) {
45
45
  .then((res) => res.data);
46
46
  }
47
47
  exports.createUserVerification = createUserVerification;
48
+ async function activateVirtualCardModule(userId) {
49
+ return serviceClient_1.baseClient
50
+ .post(`${VERIFICATION_ENDPOINT}/v2/users/${userId}/activate-virtual-card`)
51
+ .then((res) => res.data);
52
+ }
53
+ exports.activateVirtualCardModule = activateVirtualCardModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.95",
3
+ "version": "0.3.97",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",