@spritz-finance/service-client 0.3.21 → 0.3.23

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.
@@ -11,7 +11,7 @@ export declare function getCheckbookUser(userId: string): Promise<CheckbookUser>
11
11
  export declare function createCheckbookVirtualCard(userId: string): Promise<CheckbookCardResponse>;
12
12
  export declare function createCheckbookDebitCard(input: CreateDebitCardInput): Promise<CheckbookDebitCardResponse>;
13
13
  export declare function createUSBillFromAccountNumber(userId: string, accountNumber: string, merchantId: string): Promise<ExternalBillInput>;
14
- export declare function getVirtualCardBalance(cardExternalId: string, userId: string): Promise<number>;
14
+ export declare function getVirtualCardBalance(cardExternalId: string, userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<number>>;
15
15
  export declare function getVirtualCardTransactions(cardExternalId: string, userId: string): Promise<CardTransaction[]>;
16
16
  export declare function getUserIdForDirectPayment(directPaymentId: string): Promise<string>;
17
17
  export declare function updateCheckbookVirtualCard(userId: string, cardExternalId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CheckbookUpdateCardResponse>>;
@@ -79,3 +79,4 @@ export declare function upsertBillFromExternalAccount(input: ExternalBillInput):
79
79
  provider: import("../lib/graphClient/generated").AccountProvider;
80
80
  }>;
81
81
  export declare function getAccountById(accountId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<PayableAccount>>;
82
+ export declare function createUSVirtualCardNoKyc(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<PayableAccount>>;
@@ -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.getAccountById = exports.upsertBillFromExternalAccount = exports.getAccountInstitution = exports.getAccounts = exports.getAccountsForUser = exports.getAccountByExternalId = exports.getAccount = exports.PayableAccountsClient = void 0;
26
+ exports.createUSVirtualCardNoKyc = exports.getAccountById = exports.upsertBillFromExternalAccount = exports.getAccountInstitution = exports.getAccounts = exports.getAccountsForUser = exports.getAccountByExternalId = exports.getAccount = exports.PayableAccountsClient = void 0;
27
27
  exports.PayableAccountsClient = __importStar(require("./payableAccountsServiceClient"));
28
28
  const serviceClient_1 = require("../serviceClient");
29
29
  const PAYABLE_ACCOUNTS_ENDPOINT = '/payable-accounts';
@@ -69,3 +69,9 @@ async function getAccountById(accountId) {
69
69
  .then((res) => res.data);
70
70
  }
71
71
  exports.getAccountById = getAccountById;
72
+ async function createUSVirtualCardNoKyc(userId) {
73
+ return serviceClient_1.baseClient
74
+ .post(`${PAYABLE_ACCOUNTS_ENDPOINT}/v2/virtual-card/create-no-kyc/${userId}`)
75
+ .then((res) => res.data);
76
+ }
77
+ exports.createUSVirtualCardNoKyc = createUSVirtualCardNoKyc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",