@spritz-finance/service-client 0.2.39 → 0.2.41

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.
@@ -30,7 +30,7 @@ export declare type ExternalBillInput = {
30
30
  payable: boolean;
31
31
  verifying?: boolean;
32
32
  nickname?: string;
33
- testPaymentAvailable?: string;
33
+ testPaymentAvailable?: boolean;
34
34
  };
35
35
  export declare type CheckbookAccountInput = {
36
36
  userId: string;
@@ -73,6 +73,7 @@ export declare class PayableAccountsServiceClient {
73
73
  renameAccount(accountId: string, name: String): Promise<BillModel | BankAcountModel | VirtualCardModel>;
74
74
  getAccounts(accountIds: string[]): Promise<PayableAccount[]>;
75
75
  getAccountInstitutions(institutionIds: string[]): Promise<PayableAccountInstitution[]>;
76
+ getAccountInstitution(institutionId: string): Promise<PayableAccountInstitution>;
76
77
  createFromCheckbook(input: CheckbookAccountInput): Promise<BankAcountModel>;
77
78
  createCardFromCheckbook(input: CheckbookCardResponse): Promise<VirtualCardModel>;
78
79
  getVirtualCardDetails(accountId: string): Promise<VirtualCardDetails>;
@@ -53,6 +53,11 @@ class PayableAccountsServiceClient {
53
53
  .get(`/account-institutions?institutionIds=${institutionIds.join(',')}`)
54
54
  .then((res) => res.data);
55
55
  }
56
+ async getAccountInstitution(institutionId) {
57
+ return this.client
58
+ .get(`/account-institution/id/${institutionId}`)
59
+ .then((res) => res.data);
60
+ }
56
61
  async createFromCheckbook(input) {
57
62
  return this.client
58
63
  .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.39",
3
+ "version": "0.2.41",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",