tonder-web-sdk 1.12.0-beta.11 → 1.12.0-beta.13
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.
- package/.idea/workspace.xml +10 -0
- package/package.json +1 -1
- package/src/classes/BaseInlineCheckout.js +1 -1
- package/types/inlineCheckout.d.ts +7 -7
- package/types/liteInlineCheckout.d.ts +13 -13
- /package/types/{card.ts → card.d.ts} +0 -0
- /package/types/{checkout.ts → checkout.d.ts} +0 -0
- /package/types/{common.ts → common.d.ts} +0 -0
- /package/types/{customer.ts → customer.d.ts} +0 -0
- /package/types/{paymentMethod.ts → paymentMethod.d.ts} +0 -0
- /package/types/{transaction.ts → transaction.d.ts} +0 -0
package/.idea/workspace.xml
CHANGED
|
@@ -6,10 +6,20 @@
|
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
7
|
<list default="true" id="37fc62e5-7dd0-4a2e-b68c-304069cdf5bd" name="Changes" comment="">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
|
|
9
10
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
10
11
|
<change beforePath="$PROJECT_DIR$/src/classes/BaseInlineCheckout.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/BaseInlineCheckout.js" afterDir="false" />
|
|
11
12
|
<change beforePath="$PROJECT_DIR$/src/classes/LiteInlineCheckout.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/LiteInlineCheckout.js" afterDir="false" />
|
|
12
13
|
<change beforePath="$PROJECT_DIR$/src/classes/inlineCheckout.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/classes/inlineCheckout.js" afterDir="false" />
|
|
14
|
+
<change beforePath="$PROJECT_DIR$/types/card.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/card.d.ts" afterDir="false" />
|
|
15
|
+
<change beforePath="$PROJECT_DIR$/types/checkout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/checkout.d.ts" afterDir="false" />
|
|
16
|
+
<change beforePath="$PROJECT_DIR$/types/common.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/common.d.ts" afterDir="false" />
|
|
17
|
+
<change beforePath="$PROJECT_DIR$/types/customer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/customer.d.ts" afterDir="false" />
|
|
18
|
+
<change beforePath="$PROJECT_DIR$/types/inlineCheckout.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/inlineCheckout.d.ts" afterDir="false" />
|
|
19
|
+
<change beforePath="$PROJECT_DIR$/types/liteInlineCheckout.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/liteInlineCheckout.d.ts" afterDir="false" />
|
|
20
|
+
<change beforePath="$PROJECT_DIR$/types/paymentMethod.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/paymentMethod.d.ts" afterDir="false" />
|
|
21
|
+
<change beforePath="$PROJECT_DIR$/types/transaction.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/transaction.d.ts" afterDir="false" />
|
|
22
|
+
<change beforePath="$PROJECT_DIR$/v1/bundle.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/v1/bundle.min.js" afterDir="false" />
|
|
13
23
|
</list>
|
|
14
24
|
<option name="SHOW_DIALOG" value="false" />
|
|
15
25
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ export class BaseInlineCheckout {
|
|
|
29
29
|
/**
|
|
30
30
|
* 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.
|
|
31
31
|
* @param {import("../../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
|
|
32
|
-
* @returns {
|
|
32
|
+
* @returns {void}.
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
35
|
configureCheckout(data) {
|
|
@@ -7,11 +7,11 @@ export class InlineCheckout {
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 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.
|
|
10
|
-
* @param {import("
|
|
11
|
-
* @returns {
|
|
10
|
+
* @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
|
|
11
|
+
* @returns {void}.
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
configureCheckout(data: IConfigureCheckout):
|
|
14
|
+
configureCheckout(data: IConfigureCheckout): void;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Injects the checkout into the DOM and initializes it.
|
|
@@ -23,12 +23,12 @@ export class InlineCheckout {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Processes a payment.
|
|
26
|
-
* @param {import("
|
|
27
|
-
* @returns {Promise<import("
|
|
26
|
+
* @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
|
|
27
|
+
* @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
|
|
28
28
|
*
|
|
29
29
|
* @throws {Error} Throws an error if the checkout process fails. The error object contains
|
|
30
30
|
* additional `details` property with the response from the server if available.
|
|
31
|
-
* @property {import("
|
|
31
|
+
* @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
|
|
32
32
|
*
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
@@ -36,7 +36,7 @@ export class InlineCheckout {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Verifies the 3DS transaction status.
|
|
39
|
-
* @returns {Promise<import("
|
|
39
|
+
* @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
42
|
verify3dsTransaction(): Promise<ITransaction | void>;
|
|
@@ -9,7 +9,7 @@ export class LiteInlineCheckout {
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 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.
|
|
12
|
-
* @param {import("
|
|
12
|
+
* @param {import("../types").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
|
|
13
13
|
* @returns {Promise<void>}.
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
@@ -26,12 +26,12 @@ export class LiteInlineCheckout {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Processes a payment.
|
|
29
|
-
* @param {import("
|
|
30
|
-
* @returns {Promise<import("
|
|
29
|
+
* @param {import("../types").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
|
|
30
|
+
* @returns {Promise<import("../types").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
|
|
31
31
|
*
|
|
32
32
|
* @throws {Error} Throws an error if the checkout process fails. The error object contains
|
|
33
33
|
* additional `details` property with the response from the server if available.
|
|
34
|
-
* @property {import("
|
|
34
|
+
* @property {import("../types").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
@@ -39,16 +39,16 @@ export class LiteInlineCheckout {
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Verifies the 3DS transaction status.
|
|
42
|
-
* @returns {Promise<import("
|
|
42
|
+
* @returns {Promise<import("../types").ITransaction | void>} The result of the 3DS verification and checkout resumption.
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
45
|
verify3dsTransaction(): Promise<ITransaction | void>;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Retrieves the list of cards associated with a customer.
|
|
49
|
-
* @returns {Promise<import("
|
|
49
|
+
* @returns {Promise<import("../types").ICustomerCardsResponse>} A promise that resolves with the customer's card data.
|
|
50
50
|
*
|
|
51
|
-
* @throws {import("
|
|
51
|
+
* @throws {import("../types").IPublicError} Throws an error object if the operation fails.
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
54
|
*/
|
|
@@ -57,10 +57,10 @@ export class LiteInlineCheckout {
|
|
|
57
57
|
/**
|
|
58
58
|
* Saves a card to a customer's account. This method can be used to add a new card
|
|
59
59
|
* or update an existing one.
|
|
60
|
-
* @param {import("
|
|
61
|
-
* @returns {Promise<import("
|
|
60
|
+
* @param {import("../types").ISaveCardRequest} card - The card information to be saved.
|
|
61
|
+
* @returns {Promise<import("../types").ISaveCardResponse>} A promise that resolves with the saved card data.
|
|
62
62
|
*
|
|
63
|
-
* @throws {import("
|
|
63
|
+
* @throws {import("../types").IPublicError} Throws an error object if the operation fails.
|
|
64
64
|
*
|
|
65
65
|
* @public
|
|
66
66
|
*/
|
|
@@ -73,7 +73,7 @@ export class LiteInlineCheckout {
|
|
|
73
73
|
* @param {string} skyflowId - The unique identifier of the card to be deleted.
|
|
74
74
|
* @returns {Promise<string>} A promise that resolves when the card is successfully deleted.
|
|
75
75
|
*
|
|
76
|
-
* @throws {import("
|
|
76
|
+
* @throws {import("../types").IPublicError} Throws an error object if the operation fails.
|
|
77
77
|
*
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
@@ -83,9 +83,9 @@ export class LiteInlineCheckout {
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Retrieves the list of available Alternative Payment Methods (APMs).
|
|
86
|
-
* @returns {Promise<import("
|
|
86
|
+
* @returns {Promise<import("../types").IPaymentMethod[]>} A promise that resolves with the list of APMs.
|
|
87
87
|
*
|
|
88
|
-
* @throws {import("
|
|
88
|
+
* @throws {import("../types").IPublicError} Throws an error object if the operation fails.
|
|
89
89
|
*
|
|
90
90
|
* @public
|
|
91
91
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|