@finverse/sdk-typescript 0.0.28 → 0.0.31

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 (3) hide show
  1. package/README.md +18 -20
  2. package/dist/api.d.ts +44 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -40,13 +40,13 @@ const configuration = new Configuration({
40
40
  accessToken: customerToken.access_token
41
41
  });
42
42
  const linkTokenResp = await new CustomerApi(configuration).generateLinkToken({
43
- ClientId: clientId,
44
- UserId: userId,
45
- RedirectUri: redirectUri,
46
- State: state,
47
- ResponseMode: "form_post",
48
- ResponseType: "code",
49
- GrantType: "client_credentials",
43
+ client_id: clientId,
44
+ user_id: userId,
45
+ redirect_uri: redirectUri,
46
+ state: state,
47
+ response_mode: "form_post",
48
+ response_type: "code",
49
+ grant_type: "client_credentials",
50
50
  });
51
51
 
52
52
  // The linkUrl can be used to initiate Finverse Link
@@ -218,15 +218,15 @@ const configuration = new Configuration({
218
218
  accessToken: customerToken.access_token
219
219
  });
220
220
  const linkTokenResp = await new CustomerApi(configuration).generateLinkToken({
221
- ClientId: clientId,
222
- UserId: userId,
223
- RedirectUri: redirectUri,
224
- State: state,
225
- ResponseMode: "form_post",
226
- ResponseType: "code",
227
- GrantType: "client_credentials",
228
- PaymentInstructionId: createPaymentInstructionResponse.data.payment_instruction_id,
229
- ProductsRequested: "PAYMENTS",
221
+ client_id: clientId,
222
+ user_id: userId,
223
+ redirect_uri: redirectUri,
224
+ state: state,
225
+ response_mode: "form_post",
226
+ response_type: "code",
227
+ grant_type: "client_credentials",
228
+ payment_instruction_id: createPaymentInstructionResponse.data.payment_instruction_id,
229
+ products_requested: "PAYMENTS",
230
230
  });
231
231
 
232
232
  // The linkUrl can be used to initiate Finverse Link
@@ -259,8 +259,7 @@ Alternatively you can use webhook to receive LoginIdentity event.
259
259
  ```typescript
260
260
  enum FinalStatus {
261
261
  ERROR = 'ERROR',
262
- DATA_RETRIEVAL_PARTIALLY_SUCCESSFUL = 'DATA_RETRIEVAL_PARTIALLY_SUCCESSFUL',
263
- DATA_RETRIEVAL_COMPLETE = 'DATA_RETRIEVAL_COMPLETE',
262
+ CONNECTION_COMPLETE= 'CONNECTION_COMPLETE',
264
263
  }
265
264
 
266
265
  const configuration = new Configuration({
@@ -275,8 +274,7 @@ for (let i = 0; i < 20; i++) {
275
274
  const loginIdentityStatus = loginIdentity.data.login_identity.status;
276
275
  if (
277
276
  loginIdentityStatus === FinalStatus.ERROR ||
278
- loginIdentityStatus === FinalStatus.DATA_RETRIEVAL_COMPLETE ||
279
- loginIdentityStatus === FinalStatus.DATA_RETRIEVAL_PARTIALLY_SUCCESSFUL
277
+ loginIdentityStatus === FinalStatus.CONNECTION_COMPLETE
280
278
  ) { break; }
281
279
 
282
280
  await new Promise((resolve) => setTimeout(resolve, 3000));
package/dist/api.d.ts CHANGED
@@ -1403,6 +1403,12 @@ export interface LinkRequest {
1403
1403
  * @memberof LinkRequest
1404
1404
  */
1405
1405
  store_credential: boolean;
1406
+ /**
1407
+ * this is a mandatory field
1408
+ * @type {boolean}
1409
+ * @memberof LinkRequest
1410
+ */
1411
+ consent?: boolean | null;
1406
1412
  /**
1407
1413
  * products that is requested
1408
1414
  * @type {Array<string>}
@@ -1848,6 +1854,12 @@ export interface LoginIdentity {
1848
1854
  * @memberof LoginIdentity
1849
1855
  */
1850
1856
  last_session_id?: string;
1857
+ /**
1858
+ *
1859
+ * @type {RefreshData}
1860
+ * @memberof LoginIdentity
1861
+ */
1862
+ refresh?: RefreshData;
1851
1863
  }
1852
1864
  /**
1853
1865
  *
@@ -2088,7 +2100,13 @@ export interface PaymentDetails {
2088
2100
  */
2089
2101
  export interface PaymentInstruction {
2090
2102
  /**
2091
- * A id of the user of this payment, need to equal to userId when creating link
2103
+ * An id of the this payment
2104
+ * @type {string}
2105
+ * @memberof PaymentInstruction
2106
+ */
2107
+ payment_instruction_id?: string;
2108
+ /**
2109
+ * An id of the user of this payment, need to equal to userId when creating link
2092
2110
  * @type {string}
2093
2111
  * @memberof PaymentInstruction
2094
2112
  */
@@ -2305,6 +2323,25 @@ export interface RedirectUriResponse {
2305
2323
  */
2306
2324
  redirect_uri?: string;
2307
2325
  }
2326
+ /**
2327
+ *
2328
+ * @export
2329
+ * @interface RefreshData
2330
+ */
2331
+ export interface RefreshData {
2332
+ /**
2333
+ *
2334
+ * @type {boolean}
2335
+ * @memberof RefreshData
2336
+ */
2337
+ credentials_stored?: boolean;
2338
+ /**
2339
+ *
2340
+ * @type {boolean}
2341
+ * @memberof RefreshData
2342
+ */
2343
+ refresh_allowed?: boolean;
2344
+ }
2308
2345
  /**
2309
2346
  *
2310
2347
  * @export
@@ -2330,6 +2367,12 @@ export interface RelinkRequest {
2330
2367
  * @memberof RelinkRequest
2331
2368
  */
2332
2369
  store_credential: boolean;
2370
+ /**
2371
+ * this is a mandatory field
2372
+ * @type {boolean}
2373
+ * @memberof RelinkRequest
2374
+ */
2375
+ consent?: boolean | null;
2333
2376
  }
2334
2377
  /**
2335
2378
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.28",
3
+ "version": "0.0.31",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.20.0",
28
28
  "chai": "^4.3.6",
29
- "mocha": "^9.2.2",
29
+ "mocha": "^10.0.0",
30
30
  "ts-node": "^10.7.0",
31
31
  "typescript": "^3.6.4"
32
32
  },