@spritz-finance/service-client 0.2.37 → 0.2.38

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.
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { CheckbookCardResponse } from './liabilitiesServiceClient';
3
- import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
3
+ import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountInstitution, 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",
@@ -30,6 +30,7 @@ export declare type ExternalBillInput = {
30
30
  payable: boolean;
31
31
  verifying?: boolean;
32
32
  nickname?: string;
33
+ testPaymentAvailable?: string;
33
34
  };
34
35
  export declare type CheckbookAccountInput = {
35
36
  userId: string;
@@ -52,6 +53,7 @@ declare type PayableAccountModelExtension = {
52
53
  externalId?: string | null;
53
54
  nickname?: string | null;
54
55
  payable: boolean;
56
+ testPaymentAvailable: boolean;
55
57
  };
56
58
  declare type BillModel = Omit<Bill, 'type'> & PayableAccountModelExtension;
57
59
  declare type BankAcountModel = Omit<BankAccount, 'type'> & PayableAccountModelExtension;
@@ -69,6 +71,7 @@ export declare class PayableAccountsServiceClient {
69
71
  deleteAccount(accountId: string): Promise<BillModel | BankAcountModel | VirtualCardModel>;
70
72
  renameAccount(accountId: string, name: String): Promise<BillModel | BankAcountModel | VirtualCardModel>;
71
73
  getAccounts(accountIds: string[]): Promise<PayableAccount[]>;
74
+ getAccountInstitutions(institutionIds: string[]): Promise<PayableAccountInstitution[]>;
72
75
  createFromCheckbook(input: CheckbookAccountInput): Promise<BankAcountModel>;
73
76
  createCardFromCheckbook(input: CheckbookCardResponse): Promise<VirtualCardModel>;
74
77
  getVirtualCardDetails(accountId: string): Promise<VirtualCardDetails>;
@@ -48,6 +48,11 @@ class PayableAccountsServiceClient {
48
48
  .get(`/payable-accounts?accountIds=${accountIds.join(',')}`)
49
49
  .then((res) => res.data);
50
50
  }
51
+ async getAccountInstitutions(institutionIds) {
52
+ return this.client
53
+ .get(`/account-institutions?institutionIds=${institutionIds.join(',')}`)
54
+ .then((res) => res.data);
55
+ }
51
56
  async createFromCheckbook(input) {
52
57
  return this.client
53
58
  .post(`/create-from-checkbook`, input)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.37",
3
+ "version": "0.2.38",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",