@tonder.io/ionic-full-sdk 0.0.46-beta.4 → 0.0.46-beta.8

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,6 +1,7 @@
1
1
  import { IConfigureCheckout } from "@tonder.io/ionic-lite-sdk/dist/types/commons";
2
2
  import { IProcessPaymentRequest, IStartCheckoutResponse } from "@tonder.io/ionic-lite-sdk/dist/types/checkout";
3
3
  import { ITransaction } from "@tonder.io/ionic-lite-sdk/dist/types/transaction";
4
+ import { GetSecureTokenResponse } from "@tonder.io/ionic-lite-sdk/dist/types/responses";
4
5
  export interface IInlineCheckout {
5
6
  /**
6
7
  * The configureCheckout function allows you to set initial information, such as the customer's email, which is used to retrieve a list of saved cards.
@@ -63,6 +64,15 @@ export interface IInlineCheckout {
63
64
  * @public
64
65
  */
65
66
  saveCard(): Promise<string>;
67
+ /**
68
+ * Retrieves security token to access the saved cards functionality.
69
+ * @returns {Promise<GetSecureTokenResponse>} A promise that resolves with the token.
70
+ *
71
+ * @throws {Error} Throws an error object if the operation fails.
72
+ *
73
+ * @public
74
+ */
75
+ getSecureToken(): Promise<GetSecureTokenResponse>;
66
76
  /**
67
77
  * @deprecated This method is deprecated and will be removed in a future release.
68
78
  * Use the {@link configureCheckout} method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-full-sdk",
3
- "version": "0.0.46-beta.4",
3
+ "version": "0.0.46-beta.8",
4
4
  "description": "Tonder ionic full SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@tonder.io/ionic-lite-sdk": "^0.0.42-beta.4",
13
+ "@tonder.io/ionic-lite-sdk": "^0.0.42-beta.8",
14
14
  "crypto-js": "^4.1.1",
15
15
  "skyflow-js": "^1.34.1"
16
16
  },
@@ -5,6 +5,7 @@ import {
5
5
  IStartCheckoutResponse
6
6
  } from "@tonder.io/ionic-lite-sdk/dist/types/checkout";
7
7
  import {ITransaction} from "@tonder.io/ionic-lite-sdk/dist/types/transaction";
8
+ import {GetSecureTokenResponse} from "@tonder.io/ionic-lite-sdk/dist/types/responses";
8
9
 
9
10
  export interface IInlineCheckout {
10
11
 
@@ -76,6 +77,16 @@ export interface IInlineCheckout {
76
77
  */
77
78
  saveCard(): Promise<string>;
78
79
 
80
+ /**
81
+ * Retrieves security token to access the saved cards functionality.
82
+ * @returns {Promise<GetSecureTokenResponse>} A promise that resolves with the token.
83
+ *
84
+ * @throws {Error} Throws an error object if the operation fails.
85
+ *
86
+ * @public
87
+ */
88
+ getSecureToken(): Promise<GetSecureTokenResponse>
89
+
79
90
  /**
80
91
  * @deprecated This method is deprecated and will be removed in a future release.
81
92
  * Use the {@link configureCheckout} method