@spritz-finance/service-client 0.2.21 → 0.2.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.
@@ -41,17 +41,17 @@ class LiabilitiesServiceClient {
41
41
  }
42
42
  async createCheckbookVirtualCard(userId) {
43
43
  return this.client
44
- .post(`/virtual-card/${userId}/create`)
44
+ .post(`/virtual-card/create/${userId}`)
45
45
  .then((res) => res.data);
46
46
  }
47
47
  async getVirtualCardBalance(cardExternalId, userId) {
48
48
  return this.client
49
- .get(`/virtual-card/${cardExternalId}/balance?userId=${userId}`)
49
+ .get(`/virtual-card/card/${cardExternalId}/balance?userId=${userId}`)
50
50
  .then((res) => res.data);
51
51
  }
52
52
  async getVirtualCardTransactions(cardExternalId, userId) {
53
53
  return this.client
54
- .get(`/virtual-card/${cardExternalId}/transactions?userId=${userId}`)
54
+ .get(`/virtual-card/card/${cardExternalId}/transactions?userId=${userId}`)
55
55
  .then((res) => res.data);
56
56
  }
57
57
  }
@@ -50,6 +50,11 @@ export declare type Scalars = {
50
50
  output: any;
51
51
  };
52
52
  };
53
+ export declare type AccountDataSync = {
54
+ __typename?: 'AccountDataSync';
55
+ lastSync?: Maybe<Scalars['DateTime']['output']>;
56
+ syncStatus?: Maybe<AccountSyncStatus>;
57
+ };
53
58
  export declare enum AccountPaymentType {
54
59
  UsBill = "US_BILL",
55
60
  UsLocalAch = "US_LOCAL_ACH"
@@ -59,9 +64,9 @@ export declare enum AccountProvider {
59
64
  MethodFi = "METHOD_FI"
60
65
  }
61
66
  export declare enum AccountSyncStatus {
62
- Complete = "Complete",
67
+ Active = "Active",
63
68
  Error = "Error",
64
- InProgress = "InProgress",
69
+ Syncing = "Syncing",
65
70
  Unavailable = "Unavailable"
66
71
  }
67
72
  export declare enum AccountType {
@@ -117,12 +122,14 @@ export declare type BankAccount = PayableAccount & {
117
122
  country: Scalars['String']['output'];
118
123
  createdAt: Scalars['DateTime']['output'];
119
124
  currency: Scalars['String']['output'];
125
+ dataSync?: Maybe<AccountDataSync>;
120
126
  email: Scalars['String']['output'];
121
127
  holder: Scalars['String']['output'];
122
128
  id: Scalars['ID']['output'];
123
129
  institution?: Maybe<PayableAccountInstitution>;
130
+ mask?: Maybe<Scalars['String']['output']>;
124
131
  name?: Maybe<Scalars['String']['output']>;
125
- originator: PayableAccountCreator;
132
+ originator: PayableAccountOriginator;
126
133
  ownedByUser: Scalars['Boolean']['output'];
127
134
  paymentCount?: Maybe<Scalars['Int']['output']>;
128
135
  type: PayableAccountType;
@@ -176,11 +183,12 @@ export declare type Bill = PayableAccount & {
176
183
  country: Scalars['String']['output'];
177
184
  createdAt: Scalars['DateTime']['output'];
178
185
  currency: Scalars['String']['output'];
186
+ dataSync?: Maybe<AccountDataSync>;
179
187
  id: Scalars['ID']['output'];
180
188
  institution?: Maybe<PayableAccountInstitution>;
181
189
  mask?: Maybe<Scalars['String']['output']>;
182
190
  name?: Maybe<Scalars['String']['output']>;
183
- originator: PayableAccountCreator;
191
+ originator: PayableAccountOriginator;
184
192
  paymentCount?: Maybe<Scalars['Int']['output']>;
185
193
  type: PayableAccountType;
186
194
  userId: Scalars['String']['output'];
@@ -241,6 +249,7 @@ export declare type BillAccountInstitution = {
241
249
  };
242
250
  export declare type BillingInfo = {
243
251
  __typename?: 'BillingInfo';
252
+ address?: Maybe<CardHolderAddress>;
244
253
  email: Scalars['String']['output'];
245
254
  holder: Scalars['String']['output'];
246
255
  phone: Scalars['String']['output'];
@@ -276,11 +285,24 @@ export declare enum BillType {
276
285
  Unknown = "Unknown",
277
286
  Utility = "Utility"
278
287
  }
288
+ export declare type BrexBalance = {
289
+ __typename?: 'BrexBalance';
290
+ available: Scalars['Float']['output'];
291
+ };
279
292
  export declare type CanadianBankAccountDetails = {
280
293
  __typename?: 'CanadianBankAccountDetails';
281
294
  institutionNumber: Scalars['Float']['output'];
282
295
  transitNumber: Scalars['Float']['output'];
283
296
  };
297
+ export declare type CardHolderAddress = {
298
+ __typename?: 'CardHolderAddress';
299
+ city?: Maybe<Scalars['String']['output']>;
300
+ countryCode?: Maybe<Scalars['String']['output']>;
301
+ postalCode?: Maybe<Scalars['String']['output']>;
302
+ street?: Maybe<Scalars['String']['output']>;
303
+ street2?: Maybe<Scalars['String']['output']>;
304
+ subdivision?: Maybe<Scalars['String']['output']>;
305
+ };
284
306
  export declare type CardTransaction = {
285
307
  __typename?: 'CardTransaction';
286
308
  amount: Scalars['Float']['output'];
@@ -555,6 +577,7 @@ export declare type IdentityModule = {
555
577
  country?: Maybe<Scalars['String']['output']>;
556
578
  sessionId?: Maybe<Scalars['String']['output']>;
557
579
  status: ModuleStatus;
580
+ statusLog?: Maybe<Array<StatusLogEntry>>;
558
581
  templateId?: Maybe<Scalars['String']['output']>;
559
582
  user?: Maybe<UserIdentity>;
560
583
  verificationUrl?: Maybe<Scalars['String']['output']>;
@@ -801,6 +824,7 @@ export declare type Mutation = {
801
824
  deleteDirectPayment: Scalars['Boolean']['output'];
802
825
  deletePayableAccount: PayableAccount;
803
826
  deleteSubscription: Scalars['Boolean']['output'];
827
+ disableUser?: Maybe<Verification>;
804
828
  disconnectBill: Scalars['Boolean']['output'];
805
829
  flushBalances: Array<TokenBalance>;
806
830
  forcePayment: Payment;
@@ -809,6 +833,7 @@ export declare type Mutation = {
809
833
  lockEntityAuth: MethodFiEntity;
810
834
  markNotificationAsRead?: Maybe<UserNotification>;
811
835
  methodFiUpdateSSN: MethodFiEntity;
836
+ moveMoney: Scalars['Boolean']['output'];
812
837
  refreshEntities: Scalars['Boolean']['output'];
813
838
  refundPayment: Payment;
814
839
  refundPaymentWithCredits: Payment;
@@ -823,6 +848,7 @@ export declare type Mutation = {
823
848
  setupWallet: Scalars['Boolean']['output'];
824
849
  setUserLimits: PricingUser;
825
850
  setUserPricing: PricingUser;
851
+ setVerificationStatus?: Maybe<Verification>;
826
852
  simulatePaymentUpdate: Scalars['Boolean']['output'];
827
853
  updateAnalyticsSession?: Maybe<User>;
828
854
  updateAppDomain: Scalars['Boolean']['output'];
@@ -913,6 +939,9 @@ export declare type MutationDeletePayableAccountArgs = {
913
939
  export declare type MutationDeleteSubscriptionArgs = {
914
940
  subscriptionId: Scalars['String']['input'];
915
941
  };
942
+ export declare type MutationDisableUserArgs = {
943
+ userId: Scalars['String']['input'];
944
+ };
916
945
  export declare type MutationDisconnectBillArgs = {
917
946
  accountId: Scalars['String']['input'];
918
947
  provider?: InputMaybe<AccountProvider>;
@@ -935,6 +964,11 @@ export declare type MutationMarkNotificationAsReadArgs = {
935
964
  export declare type MutationMethodFiUpdateSsnArgs = {
936
965
  ssn: Scalars['String']['input'];
937
966
  };
967
+ export declare type MutationMoveMoneyArgs = {
968
+ amount: Scalars['Float']['input'];
969
+ from: Scalars['String']['input'];
970
+ to: Scalars['String']['input'];
971
+ };
938
972
  export declare type MutationRefundPaymentArgs = {
939
973
  refundPaymentInput: RefundPaymentInput;
940
974
  };
@@ -979,6 +1013,11 @@ export declare type MutationSetUserLimitsArgs = {
979
1013
  export declare type MutationSetUserPricingArgs = {
980
1014
  input: SetUserPricingInput;
981
1015
  };
1016
+ export declare type MutationSetVerificationStatusArgs = {
1017
+ note?: InputMaybe<Scalars['String']['input']>;
1018
+ status: ModuleStatus;
1019
+ userId: Scalars['String']['input'];
1020
+ };
982
1021
  export declare type MutationSimulatePaymentUpdateArgs = {
983
1022
  paymentId: Scalars['String']['input'];
984
1023
  status: Scalars['String']['input'];
@@ -1034,18 +1073,16 @@ export declare type PayableAccount = {
1034
1073
  country: Scalars['String']['output'];
1035
1074
  createdAt: Scalars['DateTime']['output'];
1036
1075
  currency: Scalars['String']['output'];
1076
+ dataSync?: Maybe<AccountDataSync>;
1037
1077
  id: Scalars['ID']['output'];
1038
1078
  institution?: Maybe<PayableAccountInstitution>;
1079
+ mask?: Maybe<Scalars['String']['output']>;
1039
1080
  name?: Maybe<Scalars['String']['output']>;
1040
- originator: PayableAccountCreator;
1081
+ originator: PayableAccountOriginator;
1041
1082
  paymentCount?: Maybe<Scalars['Int']['output']>;
1042
1083
  type: PayableAccountType;
1043
1084
  userId: Scalars['String']['output'];
1044
1085
  };
1045
- export declare enum PayableAccountCreator {
1046
- Provider = "Provider",
1047
- User = "User"
1048
- }
1049
1086
  export declare type PayableAccountInstitution = {
1050
1087
  country: Scalars['String']['output'];
1051
1088
  createdAt: Scalars['DateTime']['output'];
@@ -1054,6 +1091,10 @@ export declare type PayableAccountInstitution = {
1054
1091
  logo?: Maybe<Scalars['String']['output']>;
1055
1092
  name: Scalars['String']['output'];
1056
1093
  };
1094
+ export declare enum PayableAccountOriginator {
1095
+ Provider = "Provider",
1096
+ User = "User"
1097
+ }
1057
1098
  export declare enum PayableAccountType {
1058
1099
  BankAccount = "BankAccount",
1059
1100
  Bill = "Bill",
@@ -1190,6 +1231,7 @@ export declare type Query = {
1190
1231
  __typename?: 'Query';
1191
1232
  achInstitution?: Maybe<AchInstitution>;
1192
1233
  activeBills: Array<BillAccount>;
1234
+ adminCheckbookVirtualCard?: Maybe<CheckbookVirtualCard>;
1193
1235
  adminDirectPayment?: Maybe<DirectPayment>;
1194
1236
  adminDirectPayments: Array<DirectPayment>;
1195
1237
  adminPayments: Array<Payment>;
@@ -1197,9 +1239,11 @@ export declare type Query = {
1197
1239
  adminRecentPayments: Array<Payment>;
1198
1240
  adminTransactionPrice: Scalars['Float']['output'];
1199
1241
  apiTokens: Array<ApiToken>;
1242
+ bankAccounts: Array<BankAccount>;
1200
1243
  billAccounts: Array<BillAccount>;
1201
1244
  /** @deprecated Use billAccounts instead */
1202
1245
  bills: Array<BillAccount>;
1246
+ brexBalance: BrexBalance;
1203
1247
  checkbookPrefundedAccountBalance?: Maybe<Scalars['Float']['output']>;
1204
1248
  checkbookVirtualCard?: Maybe<CheckbookVirtualCard>;
1205
1249
  circleBalances: CircleBalances;
@@ -1257,23 +1301,30 @@ export declare type Query = {
1257
1301
  transactionPrice: Scalars['Float']['output'];
1258
1302
  transactions: Array<Transaction>;
1259
1303
  transactionVolume: Scalars['Float']['output'];
1304
+ /** @deprecated Use bankAccounts instead */
1260
1305
  userBankAccounts: Array<BankAccount>;
1261
1306
  userBills: Array<BillAccount>;
1262
1307
  userPayment: Payment;
1263
1308
  userPayments: Array<Payment>;
1264
1309
  userUpcomingPayments: Array<Payment>;
1310
+ userVerification?: Maybe<Verification>;
1265
1311
  utxoBalance: UtxoBalance;
1266
1312
  validateReferralCode: Scalars['Boolean']['output'];
1267
1313
  verification?: Maybe<Verification>;
1268
1314
  verificationFlow: CognitoKycFlow;
1269
1315
  /** @deprecated use checkbookVirtualCard instead */
1270
1316
  virtualCard?: Maybe<CheckbookVirtualCard>;
1317
+ virtualCardDetails?: Maybe<Scalars['String']['output']>;
1318
+ /** @deprecated No longer valid */
1271
1319
  virtualCards: Array<CheckbookVirtualCard>;
1272
1320
  virtualDebitCard?: Maybe<VirtualCard>;
1273
1321
  };
1274
1322
  export declare type QueryAchInstitutionArgs = {
1275
1323
  routingNumber: Scalars['String']['input'];
1276
1324
  };
1325
+ export declare type QueryAdminCheckbookVirtualCardArgs = {
1326
+ userId: Scalars['String']['input'];
1327
+ };
1277
1328
  export declare type QueryAdminDirectPaymentArgs = {
1278
1329
  directPaymentId: Scalars['String']['input'];
1279
1330
  };
@@ -1392,6 +1443,9 @@ export declare type QueryUserPaymentsArgs = {
1392
1443
  export declare type QueryUserUpcomingPaymentsArgs = {
1393
1444
  userId: Scalars['String']['input'];
1394
1445
  };
1446
+ export declare type QueryUserVerificationArgs = {
1447
+ userId: Scalars['String']['input'];
1448
+ };
1395
1449
  export declare type QueryUtxoBalanceArgs = {
1396
1450
  address: Scalars['String']['input'];
1397
1451
  network: Scalars['String']['input'];
@@ -1399,6 +1453,10 @@ export declare type QueryUtxoBalanceArgs = {
1399
1453
  export declare type QueryValidateReferralCodeArgs = {
1400
1454
  referralCode: Scalars['String']['input'];
1401
1455
  };
1456
+ export declare type QueryVirtualCardDetailsArgs = {
1457
+ key: Scalars['String']['input'];
1458
+ renderSecret: Scalars['String']['input'];
1459
+ };
1402
1460
  export declare type RawContract = {
1403
1461
  __typename?: 'RawContract';
1404
1462
  address?: Maybe<Scalars['String']['output']>;
@@ -1472,6 +1530,12 @@ export declare type SignatureParamsInput = {
1472
1530
  subscriptionType: Scalars['Int']['input'];
1473
1531
  totalPayments: Scalars['Float']['input'];
1474
1532
  };
1533
+ export declare type StatusLogEntry = {
1534
+ __typename?: 'StatusLogEntry';
1535
+ createdAt: Scalars['DateTime']['output'];
1536
+ note?: Maybe<Scalars['String']['output']>;
1537
+ status: ModuleStatus;
1538
+ };
1475
1539
  export declare type SubscriptionError = {
1476
1540
  __typename?: 'SubscriptionError';
1477
1541
  nextRetry?: Maybe<Scalars['DateTime']['output']>;
@@ -1660,11 +1724,12 @@ export declare type VirtualCard = PayableAccount & {
1660
1724
  country: Scalars['String']['output'];
1661
1725
  createdAt: Scalars['DateTime']['output'];
1662
1726
  currency: Scalars['String']['output'];
1727
+ dataSync?: Maybe<AccountDataSync>;
1663
1728
  id: Scalars['ID']['output'];
1664
1729
  institution?: Maybe<PayableAccountInstitution>;
1665
1730
  mask?: Maybe<Scalars['String']['output']>;
1666
1731
  name?: Maybe<Scalars['String']['output']>;
1667
- originator: PayableAccountCreator;
1732
+ originator: PayableAccountOriginator;
1668
1733
  paymentCount?: Maybe<Scalars['Int']['output']>;
1669
1734
  renderSecret?: Maybe<Scalars['String']['output']>;
1670
1735
  type: PayableAccountType;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.PaymentType = exports.PaymentStatus = exports.PaymentProvider = exports.PayableAccountType = exports.PayableAccountCreator = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.CheckbookPaymentStatus = exports.BillType = exports.BillSyncStatus = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.AppDomain = exports.AccountType = exports.AccountSyncStatus = exports.AccountProvider = exports.AccountPaymentType = void 0;
3
+ exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.PaymentType = exports.PaymentStatus = exports.PaymentProvider = exports.PayableAccountType = exports.PayableAccountOriginator = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.CheckbookPaymentStatus = exports.BillType = exports.BillSyncStatus = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.AppDomain = exports.AccountType = exports.AccountSyncStatus = exports.AccountProvider = exports.AccountPaymentType = void 0;
4
4
  var AccountPaymentType;
5
5
  (function (AccountPaymentType) {
6
6
  AccountPaymentType["UsBill"] = "US_BILL";
@@ -13,9 +13,9 @@ var AccountProvider;
13
13
  })(AccountProvider = exports.AccountProvider || (exports.AccountProvider = {}));
14
14
  var AccountSyncStatus;
15
15
  (function (AccountSyncStatus) {
16
- AccountSyncStatus["Complete"] = "Complete";
16
+ AccountSyncStatus["Active"] = "Active";
17
17
  AccountSyncStatus["Error"] = "Error";
18
- AccountSyncStatus["InProgress"] = "InProgress";
18
+ AccountSyncStatus["Syncing"] = "Syncing";
19
19
  AccountSyncStatus["Unavailable"] = "Unavailable";
20
20
  })(AccountSyncStatus = exports.AccountSyncStatus || (exports.AccountSyncStatus = {}));
21
21
  var AccountType;
@@ -118,11 +118,11 @@ var Network;
118
118
  Network["Optimism"] = "Optimism";
119
119
  Network["Polygon"] = "Polygon";
120
120
  })(Network = exports.Network || (exports.Network = {}));
121
- var PayableAccountCreator;
122
- (function (PayableAccountCreator) {
123
- PayableAccountCreator["Provider"] = "Provider";
124
- PayableAccountCreator["User"] = "User";
125
- })(PayableAccountCreator = exports.PayableAccountCreator || (exports.PayableAccountCreator = {}));
121
+ var PayableAccountOriginator;
122
+ (function (PayableAccountOriginator) {
123
+ PayableAccountOriginator["Provider"] = "Provider";
124
+ PayableAccountOriginator["User"] = "User";
125
+ })(PayableAccountOriginator = exports.PayableAccountOriginator || (exports.PayableAccountOriginator = {}));
126
126
  var PayableAccountType;
127
127
  (function (PayableAccountType) {
128
128
  PayableAccountType["BankAccount"] = "BankAccount";
@@ -1,11 +1,34 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  import { CheckbookCardResponse } from './liabilitiesServiceClient';
3
- import { BankAccount, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
3
+ import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
4
+ export { PayableAccountOriginator, AccountSyncStatus, } from './lib/graphClient/generated';
4
5
  export declare enum BankAccountSubType {
5
6
  Business = "BUSINESS",
6
7
  Checking = "CHECKING",
7
8
  Savings = "SAVINGS"
8
9
  }
10
+ export declare type ExternalBillInput = {
11
+ userId: string;
12
+ externalId: string;
13
+ institutionExternalId?: string | null;
14
+ provider: AccountProvider;
15
+ mask?: string;
16
+ name: string;
17
+ billType: BillType;
18
+ originator: PayableAccountOriginator;
19
+ lastSync?: Date;
20
+ syncStatus?: AccountSyncStatus;
21
+ amountDue?: number | null;
22
+ nextPaymentDueDate?: string | null;
23
+ balance?: number | null;
24
+ lastPaymentAmount?: number | null;
25
+ lastPaymentDate?: string | null;
26
+ nextPaymentMinimumAmount?: number | null;
27
+ lastStatementBalance?: number | null;
28
+ remainingStatementBalance?: number | null;
29
+ openedAt?: string | null;
30
+ payable: boolean;
31
+ };
9
32
  export declare type CheckbookAccountInput = {
10
33
  userId: string;
11
34
  name: string;
@@ -27,21 +50,23 @@ declare type PayableAccountModelExtension = {
27
50
  externalId?: string | null;
28
51
  nickname?: string | null;
29
52
  };
53
+ declare type BillModel = Omit<Bill, 'type'> & PayableAccountModelExtension;
30
54
  declare type BankAcountModel = Omit<BankAccount, 'type'> & PayableAccountModelExtension;
31
55
  declare type VirtualCardModel = Omit<VirtualCard, 'type'> & PayableAccountModelExtension;
32
- export declare type PayableAccount = BankAcountModel | VirtualCardModel;
56
+ export declare type PayableAccount = BankAcountModel | VirtualCardModel | BillModel;
33
57
  export declare type PayableAccountBankAccount = BankAcountModel;
34
58
  export declare type PayableAccountVirtualCard = VirtualCardModel;
59
+ export declare type PayableAccountBill = BillModel;
35
60
  export declare class PayableAccountsServiceClient {
36
61
  client: AxiosInstance;
37
62
  constructor();
38
- getAccount(accountId: string): Promise<BankAcountModel | VirtualCardModel>;
63
+ getAccount(accountId: string): Promise<BillModel | BankAcountModel | VirtualCardModel>;
39
64
  getAccountsForUser(userId: string): Promise<PayableAccount[]>;
40
- deleteAccount(accountId: string): Promise<BankAcountModel | VirtualCardModel>;
41
- renameAccount(accountId: string, name: String): Promise<BankAcountModel | VirtualCardModel>;
65
+ deleteAccount(accountId: string): Promise<BillModel | BankAcountModel | VirtualCardModel>;
66
+ renameAccount(accountId: string, name: String): Promise<BillModel | BankAcountModel | VirtualCardModel>;
42
67
  getAccounts(accountIds: string[]): Promise<PayableAccount[]>;
43
68
  createFromCheckbook(input: CheckbookAccountInput): Promise<BankAcountModel>;
44
69
  createCardFromCheckbook(input: CheckbookCardResponse): Promise<VirtualCardModel>;
45
70
  getVirtualCardDetails(accountId: string): Promise<VirtualCardDetails>;
71
+ upsertBillFromExternalAccount(input: ExternalBillInput): Promise<BillModel>;
46
72
  }
47
- export {};
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayableAccountsServiceClient = exports.BankAccountSubType = void 0;
3
+ exports.PayableAccountsServiceClient = exports.BankAccountSubType = exports.AccountSyncStatus = exports.PayableAccountOriginator = void 0;
4
4
  const config_1 = require("./config");
5
5
  const serviceClient_1 = require("./serviceClient");
6
+ var generated_1 = require("./lib/graphClient/generated");
7
+ Object.defineProperty(exports, "PayableAccountOriginator", { enumerable: true, get: function () { return generated_1.PayableAccountOriginator; } });
8
+ Object.defineProperty(exports, "AccountSyncStatus", { enumerable: true, get: function () { return generated_1.AccountSyncStatus; } });
6
9
  var BankAccountSubType;
7
10
  (function (BankAccountSubType) {
8
11
  BankAccountSubType["Business"] = "BUSINESS";
@@ -55,5 +58,10 @@ class PayableAccountsServiceClient {
55
58
  .get(`/virtual-card/${accountId}/details`)
56
59
  .then((res) => res.data);
57
60
  }
61
+ async upsertBillFromExternalAccount(input) {
62
+ return this.client
63
+ .post(`/bills/upsert-external-account`, input)
64
+ .then((res) => res.data);
65
+ }
58
66
  }
59
67
  exports.PayableAccountsServiceClient = PayableAccountsServiceClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "coverageDirectory": "../coverage",
52
52
  "testEnvironment": "node"
53
53
  },
54
- "gitHead": "2c870b810e6be6d7cc6e752629123803c3489979"
54
+ "gitHead": "ba9a82d9e0d449ffc9f5254ffa549fc9e7515935"
55
55
  }