@instabrain-sdks/api-client 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/README.md +18 -20
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -117,11 +117,11 @@ Authenticate with the InstaBrain API and obtain a JWT token.
117
117
  const jwtToken = await client.authenticate(12345, 'uuid-access-token');
118
118
  ```
119
119
 
120
- ### Quotes
120
+ ### IB Term Quote Flow
121
121
 
122
122
  #### `getQuote(request: ThirdPartyQuoteReq): Promise<ThirdPartyQuoteResp>`
123
123
 
124
- Get an insurance quote based on the provided parameters.
124
+ Get an IB Term insurance quote based on the provided parameters.
125
125
 
126
126
  ```typescript
127
127
  const quoteReq : ThirdPartyQuoteReq = {
@@ -145,11 +145,9 @@ const quoteReq : ThirdPartyQuoteReq = {
145
145
  const quote = await client.getQuote(quoteReq);
146
146
  ```
147
147
 
148
- ### Applications
149
-
150
148
  #### `startApplication(request: ThirdPartyStartApplicationReq): Promise<ThirdPartyStartAppResp>`
151
149
 
152
- Start an insurance application from a quote.
150
+ Start an IB Term insurance application from a quote.
153
151
 
154
152
  ```typescript
155
153
  const startApplicationReq : ThirdPartyStartApplicationReq = {
@@ -233,21 +231,6 @@ console.log('Opportunity ID:', app.opportunityId);
233
231
  console.log('Declined:', app.isDeclined);
234
232
  ```
235
233
 
236
- #### `saveEftPayment(request: ThirdPartyEftPaymentReq): Promise<boolean>`
237
-
238
- Returns `true` when payment saved successfully.
239
-
240
- ```typescript
241
- const eftReq: ThirdPartyEftPaymentReq = {
242
- opportunityId: app.opportunityId,
243
- accountHolderName: 'Jane Smith',
244
- routingNumber: '021000021',
245
- accountNumber: '123456789'
246
- };
247
- const success = await client.saveEftPayment(eftReq);
248
- console.log('Payment saved:', success);
249
- ```
250
-
251
234
  #### `updateGigdbQuote(request: ThirdPartyGigdbUpdateQuoteReq): Promise<ThirdPartyQuoteResp>`
252
235
 
253
236
  Update a GIGDB quote with a different face amount or payment frequency.
@@ -271,6 +254,21 @@ const existingQuote = await client.getExistingGigdbQuote(app.opportunityId);
271
254
  console.log('Current quote:', existingQuote.selectedQuote.quoteAmount);
272
255
  ```
273
256
 
257
+ #### `saveEftPayment(request: ThirdPartyEftPaymentReq): Promise<boolean>`
258
+
259
+ Returns `true` when payment details saved successfully.
260
+
261
+ ```typescript
262
+ const eftReq: ThirdPartyEftPaymentReq = {
263
+ opportunityId: app.opportunityId,
264
+ accountHolderName: 'Jane Smith',
265
+ routingNumber: '021000021',
266
+ accountNumber: '123456789'
267
+ };
268
+ const success = await client.saveEftPayment(eftReq);
269
+ console.log('Payment saved:', success);
270
+ ```
271
+
274
272
  ### Secure Sign (Document Signing)
275
273
 
276
274
  The signing flow is shared across all products. Call after EFT payment has been saved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instabrain-sdks/api-client",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Official Node.js SDK for InstaBrain APIs - Insurance quotes and application processing",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "node": ">=14.0.0"
39
39
  },
40
40
  "dependencies": {
41
+ "@instabrain-sdks/api-client": "^2.0.0",
41
42
  "axios": "^1.6.0"
42
43
  },
43
44
  "devDependencies": {