@tonder.io/ionic-lite-sdk 0.0.35-beta.2 → 0.0.35-beta.21
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/prettier.xml +6 -0
- package/.idea/workspace.xml +37 -47
- package/dist/classes/BaseInlineCheckout.d.ts +15 -16
- package/dist/classes/liteCheckout.d.ts +8 -9
- package/dist/data/paymentMethodApi.d.ts +1 -1
- package/dist/helpers/skyflow.d.ts +1 -1
- package/dist/helpers/utils.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/types/card.d.ts +1 -0
- package/dist/types/checkout.d.ts +2 -1
- package/dist/types/commons.d.ts +6 -3
- package/dist/types/customer.d.ts +10 -0
- package/dist/types/transaction.d.ts +101 -0
- package/package.json +3 -1
- package/src/classes/BaseInlineCheckout.ts +363 -300
- package/src/classes/errorResponse.ts +1 -1
- package/src/classes/liteCheckout.ts +267 -213
- package/src/data/businessApi.ts +16 -12
- package/src/data/cardApi.ts +65 -62
- package/src/data/checkoutApi.ts +73 -60
- package/src/data/customerApi.ts +26 -26
- package/src/data/openPayApi.ts +12 -7
- package/src/data/paymentMethodApi.ts +32 -29
- package/src/data/skyflowApi.ts +18 -14
- package/src/helpers/mercadopago.ts +14 -14
- package/src/helpers/skyflow.ts +35 -29
- package/src/helpers/utils.ts +51 -39
- package/src/helpers/validations.ts +35 -35
- package/src/index.ts +9 -1
- package/src/shared/catalog/paymentMethodsCatalog.ts +8 -8
- package/src/shared/constants/paymentMethodAPM.ts +59 -59
- package/src/shared/constants/tonderUrl.ts +4 -4
- package/src/types/card.ts +1 -0
- package/src/types/checkout.ts +2 -1
- package/src/types/commons.ts +101 -99
- package/src/types/customer.ts +10 -0
- package/src/types/liteInlineCheckout.d.ts +207 -184
- package/src/types/transaction.ts +101 -0
- package/src/types/index.d.ts +0 -10
package/src/types/commons.ts
CHANGED
|
@@ -1,125 +1,127 @@
|
|
|
1
|
-
import {ICustomer} from "./customer";
|
|
1
|
+
import { ICustomer } from "./customer";
|
|
2
|
+
import {IStartCheckoutResponse} from "./checkout";
|
|
2
3
|
|
|
3
4
|
export type Business = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
5
|
+
business: {
|
|
6
|
+
pk: number;
|
|
7
|
+
name: string;
|
|
8
|
+
categories: {
|
|
9
|
+
pk: number;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
web: string;
|
|
13
|
+
logo: string;
|
|
14
|
+
full_logo_url: string;
|
|
15
|
+
background_color: string;
|
|
16
|
+
primary_color: string;
|
|
17
|
+
checkout_mode: boolean;
|
|
18
|
+
textCheckoutColor: string;
|
|
19
|
+
textDetailsColor: string;
|
|
20
|
+
checkout_logo: string;
|
|
21
|
+
};
|
|
22
|
+
openpay_keys: {
|
|
23
|
+
merchant_id: string;
|
|
24
|
+
public_key: string;
|
|
25
|
+
};
|
|
26
|
+
fintoc_keys: {
|
|
27
|
+
public_key: string;
|
|
28
|
+
};
|
|
29
|
+
mercado_pago: {
|
|
30
|
+
active: boolean;
|
|
31
|
+
};
|
|
32
|
+
vault_id: string;
|
|
33
|
+
vault_url: string;
|
|
34
|
+
reference: number;
|
|
35
|
+
is_installments_available: boolean;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
export type Customer = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
firstName: string;
|
|
40
|
+
lastName: string;
|
|
41
|
+
country: string;
|
|
42
|
+
street: string;
|
|
43
|
+
city: string;
|
|
44
|
+
state: string;
|
|
45
|
+
postCode: string;
|
|
46
|
+
email: string;
|
|
47
|
+
phone: string;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
export type OrderItem = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
description: string;
|
|
52
|
+
quantity: number;
|
|
53
|
+
price_unit: number;
|
|
54
|
+
discount: number;
|
|
55
|
+
taxes: number;
|
|
56
|
+
product_reference: number;
|
|
57
|
+
name: string;
|
|
58
|
+
amount_total: number;
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
export type PaymentData = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
customer: Customer;
|
|
63
|
+
currency: string;
|
|
64
|
+
cart: {
|
|
65
|
+
total: string | number;
|
|
66
|
+
items: OrderItem[];
|
|
67
|
+
};
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
export type TonderAPM = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
71
|
+
pk: string;
|
|
72
|
+
payment_method: string;
|
|
73
|
+
priority: number;
|
|
74
|
+
category: string;
|
|
75
|
+
unavailable_countries: string[];
|
|
76
|
+
status: string;
|
|
77
|
+
};
|
|
77
78
|
|
|
78
79
|
export type APM = {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
80
|
+
id: string;
|
|
81
|
+
payment_method: string;
|
|
82
|
+
priority: number;
|
|
83
|
+
category: string;
|
|
84
|
+
icon: string;
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
87
|
|
|
88
88
|
export interface IConfigureCheckout {
|
|
89
|
-
|
|
89
|
+
customer: ICustomer | { email: string };
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export interface IInlineCheckoutBaseOptions {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
93
|
+
mode?: "production" | "sandbox" | "stage" | "development";
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated This property is deprecated and will be removed in a future release.
|
|
96
|
+
* `baseUrlTonder` is no longer required.
|
|
97
|
+
*/
|
|
98
|
+
baseUrlTonder?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated This property is deprecated and will be removed in a future release.
|
|
101
|
+
* Use `apiKey` instead, as `apiKeyTonder` is no longer required.
|
|
102
|
+
*/
|
|
103
|
+
apiKeyTonder?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated This property is deprecated and will be removed in a future release.
|
|
106
|
+
* `signal` is no longer required.
|
|
107
|
+
*/
|
|
108
|
+
signal?: AbortSignal;
|
|
109
|
+
apiKey: string;
|
|
110
|
+
returnUrl?: string;
|
|
111
|
+
callBack?: (response: IStartCheckoutResponse | Record<string, any>) => void;
|
|
112
112
|
}
|
|
113
|
+
|
|
114
|
+
|
|
113
115
|
export interface IApiError {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
code: string;
|
|
117
|
+
body: Record<string, string> | string;
|
|
118
|
+
name: string;
|
|
119
|
+
message: string;
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
export interface IPublicError {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
123
|
+
status: string;
|
|
124
|
+
code: number;
|
|
125
|
+
message: string;
|
|
126
|
+
detail: Record<string, any> | string;
|
|
127
|
+
}
|
package/src/types/customer.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export type ICustomer = {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated This property is deprecated and will be removed in a future release.
|
|
4
|
+
* Use `firstName` instead, as `name` is no longer required.
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This property is deprecated and will be removed in a future release.
|
|
9
|
+
* Use `lastName` instead, as `lastname` is no longer required.
|
|
10
|
+
*/
|
|
11
|
+
lastname?: string;
|
|
2
12
|
firstName: string;
|
|
3
13
|
lastName: string;
|
|
4
14
|
country?: string;
|
|
@@ -1,191 +1,214 @@
|
|
|
1
|
-
import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./
|
|
2
|
-
import {ICustomerCardsResponse, ISaveCardRequest, ISaveCardResponse} from "./card";
|
|
3
|
-
import {IPaymentMethod} from "./paymentMethod";
|
|
4
|
-
import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
|
|
5
|
-
import {ITransaction} from "./transaction";
|
|
6
|
-
import {APM} from "./commons";
|
|
7
|
-
import {ErrorResponse} from "../classes/errorResponse";
|
|
1
|
+
import { IConfigureCheckout, IInlineCheckoutBaseOptions } from "./commons";
|
|
8
2
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
ICustomerCardsResponse,
|
|
4
|
+
ISaveCardRequest,
|
|
5
|
+
ISaveCardResponse,
|
|
6
|
+
} from "./card";
|
|
7
|
+
import { IPaymentMethod } from "./paymentMethod";
|
|
8
|
+
import { IProcessPaymentRequest, IStartCheckoutResponse } from "./checkout";
|
|
9
|
+
import { ITransaction } from "./transaction";
|
|
10
|
+
import { APM } from "./commons";
|
|
11
|
+
import { ErrorResponse } from "../classes/errorResponse";
|
|
12
|
+
import {
|
|
13
|
+
CreateOrderRequest,
|
|
14
|
+
CreatePaymentRequest,
|
|
15
|
+
RegisterCustomerCardRequest,
|
|
16
|
+
StartCheckoutFullRequest,
|
|
17
|
+
StartCheckoutIdRequest,
|
|
18
|
+
StartCheckoutRequest,
|
|
19
|
+
TokensRequest,
|
|
15
20
|
} from "./requests";
|
|
16
21
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
CreateOrderResponse,
|
|
23
|
+
CreatePaymentResponse,
|
|
24
|
+
CustomerRegisterResponse,
|
|
25
|
+
GetBusinessResponse,
|
|
26
|
+
RegisterCustomerCardResponse,
|
|
27
|
+
StartCheckoutResponse,
|
|
21
28
|
} from "./responses";
|
|
22
29
|
|
|
23
|
-
export class
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
30
|
+
export class LiteCheckout {
|
|
31
|
+
constructor(options: IInlineLiteCheckoutOptions);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
* @param {import("./index").IConfigureCheckout} data - Configuration data including customer information and potentially other settings.
|
|
36
|
+
* @returns {Promise<void>}.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
configureCheckout(data: IConfigureCheckout): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes and prepares the checkout for use.
|
|
43
|
+
* This method set up the initial environment.
|
|
44
|
+
* @returns {Promise<void>} A promise that resolves when the checkout has been initialized.
|
|
45
|
+
* @throws {Error} If there's any problem during the checkout initialization.
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
injectCheckout(): Promise<void>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Processes a payment.
|
|
52
|
+
* @param {import("./index").IProcessPaymentRequest} data - Payment data including customer, cart, and other relevant information.
|
|
53
|
+
* @returns {Promise<import("./index").IStartCheckoutResponse>} A promise that resolves with the payment response or 3DS redirect or is rejected with an error.
|
|
54
|
+
*
|
|
55
|
+
* @throws {Error} Throws an error if the checkout process fails. The error object contains
|
|
56
|
+
* additional `details` property with the response from the server if available.
|
|
57
|
+
* @property {import("./index").IStartCheckoutErrorResponse} error.details - The response body from the server when an error occurs.
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
payment(data: IProcessPaymentRequest): Promise<IStartCheckoutResponse>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Verifies the 3DS transaction status.
|
|
65
|
+
* @returns {Promise<import("./index").ITransaction | void>} The result of the 3DS verification and checkout resumption.
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
verify3dsTransaction(): Promise<ITransaction | void>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves the list of cards associated with a customer.
|
|
72
|
+
* @returns {Promise<import("./index").ICustomerCardsResponse>} A promise that resolves with the customer's card data.
|
|
73
|
+
*
|
|
74
|
+
* @throws {import("./index").IPublicError} Throws an error object if the operation fails.
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
getCustomerCards(): Promise<ICustomerCardsResponse>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Saves a card to a customer's account. This method can be used to add a new card
|
|
82
|
+
* or update an existing one.
|
|
83
|
+
* @param {import("./index").ISaveCardRequest} card - The card information to be saved.
|
|
84
|
+
* @returns {Promise<import("./index").ISaveCardResponse>} A promise that resolves with the saved card data.
|
|
85
|
+
*
|
|
86
|
+
* @throws {import("./index").IPublicError} Throws an error object if the operation fails.
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
saveCustomerCard(card: ISaveCardRequest): Promise<ISaveCardResponse>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Removes a card from a customer's account.
|
|
94
|
+
* @param {string} skyflowId - The unique identifier of the card to be deleted.
|
|
95
|
+
* @returns {Promise<string>} A promise that resolves when the card is successfully deleted.
|
|
96
|
+
*
|
|
97
|
+
* @throws {import("./index").IPublicError} Throws an error object if the operation fails.
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
removeCustomerCard(skyflowId: string): Promise<string>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Retrieves the list of available Alternative Payment Methods (APMs).
|
|
105
|
+
* @returns {Promise<import("./index").IPaymentMethod[]>} A promise that resolves with the list of APMs.
|
|
106
|
+
*
|
|
107
|
+
* @throws {import("./index").IPublicError} Throws an error object if the operation fails.
|
|
108
|
+
*
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
getCustomerPaymentMethods(): Promise<IPaymentMethod[]>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves the business information.
|
|
115
|
+
* @returns {Promise<import("./index").GetBusinessResponse>} A promise that resolves with the business information.
|
|
116
|
+
*
|
|
117
|
+
* @throws {import("./index").IPublicError} Throws an error object if the operation fails.
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
getBusiness(): Promise<GetBusinessResponse>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
125
|
+
* It is no longer necessary to use this method as customer registration is now automatically handled
|
|
126
|
+
* during the payment process or when using card management methods.
|
|
127
|
+
*/
|
|
128
|
+
customerRegister(
|
|
129
|
+
email: string,
|
|
130
|
+
): Promise<CustomerRegisterResponse | ErrorResponse>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
134
|
+
* It is no longer necessary to use this method as order creation is now automatically
|
|
135
|
+
* handled when making a payment through the `payment` function.
|
|
136
|
+
*/
|
|
137
|
+
createOrder(
|
|
138
|
+
orderItems: CreateOrderRequest,
|
|
139
|
+
): Promise<CreateOrderResponse | ErrorResponse>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
143
|
+
* It is no longer necessary to use this method as payment creation is now automatically
|
|
144
|
+
* handled when making a payment through the `payment` function.
|
|
145
|
+
*/
|
|
146
|
+
createPayment(
|
|
147
|
+
paymentItems: CreatePaymentRequest,
|
|
148
|
+
): Promise<CreatePaymentResponse | ErrorResponse>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
152
|
+
* Use the {@link payment} method
|
|
153
|
+
*/
|
|
154
|
+
startCheckoutRouter(
|
|
155
|
+
routerData: StartCheckoutRequest | StartCheckoutIdRequest,
|
|
156
|
+
): Promise<StartCheckoutResponse | ErrorResponse | undefined>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
160
|
+
* Use the {@link payment} method
|
|
161
|
+
*/
|
|
162
|
+
startCheckoutRouterFull(
|
|
163
|
+
routerFullData: StartCheckoutFullRequest,
|
|
164
|
+
): Promise<StartCheckoutResponse | ErrorResponse | undefined>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
168
|
+
* Use the {@link saveCustomerCard} method
|
|
169
|
+
*/
|
|
170
|
+
registerCustomerCard(
|
|
171
|
+
customerToken: string,
|
|
172
|
+
data: RegisterCustomerCardRequest,
|
|
173
|
+
): Promise<RegisterCustomerCardResponse | ErrorResponse>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
177
|
+
* Use the {@link removeCustomerCard} method
|
|
178
|
+
*/
|
|
179
|
+
deleteCustomerCard(
|
|
180
|
+
customerToken: string,
|
|
181
|
+
skyflowId: string,
|
|
182
|
+
): Promise<Boolean | ErrorResponse>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
186
|
+
* Use the {@link getCustomerPaymentMethods} method
|
|
187
|
+
*/
|
|
188
|
+
getActiveAPMs(): Promise<APM[]>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
192
|
+
* It is no longer necessary to use this method as customer registration is now automatically handled
|
|
193
|
+
* during the payment process or when using card management methods.
|
|
194
|
+
*/
|
|
195
|
+
getSkyflowTokens({
|
|
196
|
+
vault_id,
|
|
197
|
+
vault_url,
|
|
198
|
+
data,
|
|
199
|
+
}: TokensRequest): Promise<any | ErrorResponse>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated This method is deprecated and will be removed in a future release.
|
|
203
|
+
* It is no longer necessary to use this method is now automatically handled
|
|
204
|
+
* during the payment process.
|
|
205
|
+
*/
|
|
206
|
+
getOpenpayDeviceSessionID(
|
|
207
|
+
merchant_id: string,
|
|
208
|
+
public_key: string,
|
|
209
|
+
is_sandbox: boolean,
|
|
210
|
+
): Promise<string | ErrorResponse>;
|
|
188
211
|
}
|
|
189
212
|
|
|
190
|
-
|
|
191
|
-
|
|
213
|
+
export interface IInlineLiteCheckoutOptions
|
|
214
|
+
extends IInlineCheckoutBaseOptions {}
|