@spritz-finance/service-client 0.2.43 → 0.2.44

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,5 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { CheckbookUser } from './lib/graphClient/generated';
3
+ import { ExternalBillInput } from './payableAccountsServiceClient';
3
4
  export declare enum RewardProvider {
4
5
  INTERNAL = "INTERNAL",
5
6
  REFERRAL_ROCK = "REFERRAL_ROCK",
@@ -174,6 +175,7 @@ export declare class LiabilitiesServiceClient {
174
175
  createCheckbookUser(args: CreateCheckbookUserParams): Promise<CheckbookUser>;
175
176
  getCheckbookUser(userId: string): Promise<CheckbookUser>;
176
177
  createCheckbookVirtualCard(userId: string): Promise<CheckbookCardResponse>;
178
+ createUSBillFromAccountNumber(userId: string, accountNumber: string, merchantId: string): Promise<ExternalBillInput>;
177
179
  getVirtualCardBalance(cardExternalId: string, userId: string): Promise<number>;
178
180
  getVirtualCardTransactions(cardExternalId: string, userId: string): Promise<CardTransaction[]>;
179
181
  canUserMakeTestPayment(userId: string): Promise<boolean>;
@@ -59,6 +59,14 @@ class LiabilitiesServiceClient {
59
59
  .post(`/virtual-card/create/${userId}`)
60
60
  .then((res) => res.data);
61
61
  }
62
+ async createUSBillFromAccountNumber(userId, accountNumber, merchantId) {
63
+ return this.client
64
+ .post(`/methodFi/bill/user/${userId}`, {
65
+ accountNumber,
66
+ merchantId,
67
+ })
68
+ .then((res) => res.data);
69
+ }
62
70
  async getVirtualCardBalance(cardExternalId, userId) {
63
71
  return this.client
64
72
  .get(`/virtual-card/card/${cardExternalId}/balance?userId=${userId}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",