@alipay/ams-checkout 0.0.1763724075-dev.0 → 0.0.1763724075-dev.4
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/ams-checkout.js +1 -1
- package/dist/umd/ams-checkout.min.js +1 -1
- package/esm/constant/element.js +1 -1
- package/esm/index.js +0 -16
- package/package.json +1 -1
- package/LEGAL.md +0 -6
- package/LICENSE +0 -6
- package/README.md +0 -49
- package/esm/component/channel.d.ts +0 -21
- package/esm/component/component.inline.style.d.ts +0 -10
- package/esm/component/component.popup.style.d.ts +0 -26
- package/esm/component/popupWindow.style.d.ts +0 -24
- package/esm/config/index.d.ts +0 -16
- package/esm/config/request.d.ts +0 -21
- package/esm/constant/auto-debit.d.ts +0 -12
- package/esm/constant/easysafepay.d.ts +0 -16
- package/esm/constant/element.d.ts +0 -26
- package/esm/constant/index.d.ts +0 -344
- package/esm/core/bus/ability/callback.d.ts +0 -9
- package/esm/core/bus/ability/security.d.ts +0 -10
- package/esm/core/bus/ability/tracker.d.ts +0 -9
- package/esm/core/bus/index.d.ts +0 -125
- package/esm/core/bus/interface.d.ts +0 -36
- package/esm/core/component/address.d.ts +0 -8
- package/esm/core/component/appPreloadProcessing.d.ts +0 -1
- package/esm/core/component/ckp/index.d.ts +0 -29
- package/esm/core/component/element/EventCenter/index.d.ts +0 -31
- package/esm/core/component/element/elementContainerService/containerService.d.ts +0 -34
- package/esm/core/component/element/elementContainerService/index.d.ts +0 -20
- package/esm/core/component/element/elementController/index.d.ts +0 -48
- package/esm/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
- package/esm/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
- package/esm/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -41
- package/esm/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -22
- package/esm/core/component/element/index.d.ts +0 -13
- package/esm/core/component/element/mock.d.ts +0 -10
- package/esm/core/component/element/type.d.ts +0 -443
- package/esm/core/component/element/util.d.ts +0 -85
- package/esm/core/component/index.d.ts +0 -58
- package/esm/core/drop-in/index.d.ts +0 -22
- package/esm/core/instance/index.d.ts +0 -89
- package/esm/foundation/core/index.d.ts +0 -36
- package/esm/foundation/index.d.ts +0 -97
- package/esm/foundation/product-processor/autoDebit/deps.d.ts +0 -14
- package/esm/foundation/product-processor/autoDebit/index.d.ts +0 -48
- package/esm/foundation/product-processor/easysafepay/deps.d.ts +0 -20
- package/esm/foundation/product-processor/easysafepay/index.d.ts +0 -29
- package/esm/foundation/product-processor/element/index.d.ts +0 -7
- package/esm/foundation/service/api-bus/ability/callback.d.ts +0 -9
- package/esm/foundation/service/api-bus/ability/globalData.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/request.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/security.d.ts +0 -12
- package/esm/foundation/service/api-bus/ability/tracker.d.ts +0 -9
- package/esm/foundation/service/api-bus/busManager.d.ts +0 -127
- package/esm/foundation/service/api-bus/index.d.ts +0 -20
- package/esm/foundation/service/api-bus/interface.d.ts +0 -48
- package/esm/foundation/service/container/index.d.ts +0 -42
- package/esm/foundation/service/container/popup.d.ts +0 -31
- package/esm/foundation/service/container/utils.d.ts +0 -7
- package/esm/foundation/service/event-center.d.ts +0 -82
- package/esm/foundation/service/global-data/index.d.ts +0 -11
- package/esm/foundation/service/index.d.ts +0 -19
- package/esm/foundation/service/log/index.d.ts +0 -43
- package/esm/foundation/service/log/keys.d.ts +0 -13
- package/esm/foundation/service/log/processor.d.ts +0 -9
- package/esm/foundation/service/log/types.d.ts +0 -33
- package/esm/foundation/service/requester/deps.d.ts +0 -17
- package/esm/foundation/service/requester/requester.d.ts +0 -22
- package/esm/foundation/service/security/index.d.ts +0 -28
- package/esm/foundation/service/security/security.d.ts +0 -33
- package/esm/foundation/utils/gray_scale_utils.d.ts +0 -7
- package/esm/foundation/utils/payment_context_utils.d.ts +0 -13
- package/esm/foundation/utils/payment_product_utils.d.ts +0 -13
- package/esm/foundation/utils/preload_helper.d.ts +0 -21
- package/esm/foundation/utils/redirect_utils.d.ts +0 -11
- package/esm/foundation/utils/system_events.d.ts +0 -4
- package/esm/foundation/utils/web_app_url_utils.d.ts +0 -114
- package/esm/index.d.ts +0 -15
- package/esm/loader/Proxy.d.ts +0 -5
- package/esm/loader/constant.d.ts +0 -36
- package/esm/loader/index.d.ts +0 -20
- package/esm/loader/utils/common.d.ts +0 -13
- package/esm/loader/utils/debugger.d.ts +0 -7
- package/esm/loader/utils/loadSDK.d.ts +0 -8
- package/esm/loader/utils/logger.d.ts +0 -10
- package/esm/loader/utils/proxyPerformance.d.ts +0 -20
- package/esm/main.d.ts +0 -45
- package/esm/plugin/applepay/component.d.ts +0 -50
- package/esm/plugin/applepay/index.d.ts +0 -17
- package/esm/plugin/applepay/interface.d.ts +0 -161
- package/esm/plugin/applepay/service.d.ts +0 -54
- package/esm/plugin/component/cashierApp.d.ts +0 -38
- package/esm/plugin/component/channel.d.ts +0 -57
- package/esm/plugin/component/component.inline.style.d.ts +0 -10
- package/esm/plugin/component/component.popup.style.d.ts +0 -25
- package/esm/plugin/component/index.d.ts +0 -133
- package/esm/plugin/component/popupWindow.style.d.ts +0 -11
- package/esm/plugin/const.d.ts +0 -2
- package/esm/plugin/drop-in/index.d.ts +0 -71
- package/esm/plugin/payment-element/utils.d.ts +0 -2
- package/esm/plugin/paypal/index.d.ts +0 -20
- package/esm/plugin/type.d.ts +0 -34
- package/esm/plugin/utils.d.ts +0 -6
- package/esm/request/index.d.ts +0 -9
- package/esm/request/utils.d.ts +0 -28
- package/esm/service/index.d.ts +0 -13
- package/esm/types/index.d.ts +0 -854
- package/esm/util/createIframeNode.d.ts +0 -6
- package/esm/util/debug.d.ts +0 -1
- package/esm/util/get.d.ts +0 -25
- package/esm/util/getBackScheme.d.ts +0 -5
- package/esm/util/index.d.ts +0 -61
- package/esm/util/integrationType.d.ts +0 -21
- package/esm/util/intl-callapp/es/browser.d.ts +0 -21
- package/esm/util/intl-callapp/es/evoke.d.ts +0 -13
- package/esm/util/intl-callapp/es/generate.d.ts +0 -29
- package/esm/util/intl-callapp/es/index.d.ts +0 -43
- package/esm/util/intl-callapp/es/main.d.ts +0 -41
- package/esm/util/intl-callapp/es/openWallet.d.ts +0 -15
- package/esm/util/intl-callapp/es/types.d.ts +0 -46
- package/esm/util/intl-callapp/es/utils/config.d.ts +0 -24
- package/esm/util/intl-callapp/es/utils/index.d.ts +0 -15
- package/esm/util/logger.d.ts +0 -66
- package/esm/util/mock.d.ts +0 -1
- package/esm/util/redirect.d.ts +0 -6
- package/esm/util/security.d.ts +0 -34
- package/esm/util/spm-map.d.ts +0 -211
- package/esm/util/storage.d.ts +0 -2
- package/esm/util/upgrade.d.ts +0 -39
- package/esm/util/versionCompare.d.ts +0 -15
package/esm/types/index.d.ts
DELETED
|
@@ -1,854 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
-
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
|
6
|
-
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
|
7
|
-
*/
|
|
8
|
-
import { IApplePayContactField } from '../plugin/applepay/interface';
|
|
9
|
-
export type onChange = () => onCnageResult;
|
|
10
|
-
export { type IElementOptions, ElementType, PaymentElementLayout, ThemeType } from '../core/component/element/type';
|
|
11
|
-
interface onCnageResult {
|
|
12
|
-
complete: boolean;
|
|
13
|
-
addressValue: AddressItem[];
|
|
14
|
-
selectIndex: number | string;
|
|
15
|
-
}
|
|
16
|
-
export type getValue = (hasValidate: boolean) => Promise<AddressValueResult>;
|
|
17
|
-
interface AddressValueResult {
|
|
18
|
-
complete: boolean;
|
|
19
|
-
value: AddressItem;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* SDK options
|
|
23
|
-
*/
|
|
24
|
-
export interface IoptionsParams {
|
|
25
|
-
environment?: string;
|
|
26
|
-
locale?: string;
|
|
27
|
-
onError?: callOnError;
|
|
28
|
-
onSizeChanged?: callOnSizeChanged;
|
|
29
|
-
onPaymentMethodSelected?: callonPaymentMethodSelected;
|
|
30
|
-
onLog?: callOnLog;
|
|
31
|
-
onEventCallback?: callOnEventCallback;
|
|
32
|
-
onClose?: callOnClose;
|
|
33
|
-
onChange?: onChange;
|
|
34
|
-
analytics?: {
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
};
|
|
37
|
-
onBeforeSubmit?: callOnBeforeSubmit;
|
|
38
|
-
product?: string;
|
|
39
|
-
networkMode?: string;
|
|
40
|
-
mode?: string;
|
|
41
|
-
securityRegion?: 'US' | 'SG' | 'DE';
|
|
42
|
-
}
|
|
43
|
-
export interface ValidationResult {
|
|
44
|
-
isValid: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface IPreloadOptions {
|
|
47
|
-
environment?: string;
|
|
48
|
-
securityRegion?: 'US' | 'SG' | 'DE';
|
|
49
|
-
}
|
|
50
|
-
export interface IApplePayOptionsParams extends Pick<IoptionsParams, 'locale' | 'environment' | 'onEventCallback' | 'analytics'> {
|
|
51
|
-
}
|
|
52
|
-
export type Iselector = string;
|
|
53
|
-
export declare enum DisplayTypeEnum {
|
|
54
|
-
'popup' = "popup",
|
|
55
|
-
'inline' = "inline"
|
|
56
|
-
}
|
|
57
|
-
export interface IcreatePaymentParams {
|
|
58
|
-
paymentMethodsResult?: any;
|
|
59
|
-
sessionData?: string;
|
|
60
|
-
selector: Iselector;
|
|
61
|
-
appearance?: {
|
|
62
|
-
displayType?: checkoutDisplayEnum;
|
|
63
|
-
backgroundColor?: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export declare enum ComponentSignEnumV2 {
|
|
67
|
-
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL",
|
|
68
|
-
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL"
|
|
69
|
-
}
|
|
70
|
-
export declare enum ComponentSignEnum {
|
|
71
|
-
'EASY_PAY_WALLET' = "EASY_PAY_WALLET",
|
|
72
|
-
'EASY_PAY_APM' = "EASY_PAY_APM",
|
|
73
|
-
'CASHIER_PAYMENT_CARD' = "CASHIER_PAYMENT_CARD",
|
|
74
|
-
'CASHIER_PAYMENT_BANK' = "CASHIER_PAYMENT_BANK",
|
|
75
|
-
'CASHIER_PAYMENT_APM' = "CASHIER_PAYMENT_APM",
|
|
76
|
-
'AUTO_DEBIT_WALLET' = "AUTO_DEBIT_WALLET",
|
|
77
|
-
'AUTO_DEBIT_PAY_WALLET' = "AUTO_DEBIT_PAY_WALLET",
|
|
78
|
-
'NONE' = "NONE",
|
|
79
|
-
'VAULTING_CARD' = "VAULTING_CARD",
|
|
80
|
-
'CHECKOUT_PAYMENT' = "CHECKOUT_PAYMENT",
|
|
81
|
-
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL",
|
|
82
|
-
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL",
|
|
83
|
-
'AUTO_DEBIT_APM' = "AUTO_DEBIT_APM"
|
|
84
|
-
}
|
|
85
|
-
export declare enum ProductSceneEnum {
|
|
86
|
-
'EASY_PAY' = "EASY_PAY",
|
|
87
|
-
'CASHIER_PAYMENT' = "CASHIER_PAYMENT",
|
|
88
|
-
'AUTO_DEBIT' = "AUTO_DEBIT",
|
|
89
|
-
'AUTO_DEBIT_PAY' = "AUTO_DEBIT_PAY",
|
|
90
|
-
'VAULTING' = "VAULTING",
|
|
91
|
-
'FLASH_BUY' = "FLASH_BUY",
|
|
92
|
-
'CARD_APPLE_PAY' = "CARD_APPLE_PAY",
|
|
93
|
-
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT",
|
|
94
|
-
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS",
|
|
95
|
-
'CHECKOUT_PAYMENT' = "CHECKOUT_PAYMENT"
|
|
96
|
-
}
|
|
97
|
-
export declare enum PaymentMethodCategoryTypeEnum {
|
|
98
|
-
'CARD' = "CARD",
|
|
99
|
-
'WALLET' = "WALLET",
|
|
100
|
-
'BANK' = "BANK",
|
|
101
|
-
'APM' = "APM",
|
|
102
|
-
'ALL' = "ALL"
|
|
103
|
-
}
|
|
104
|
-
export interface DeviceIdParameter {
|
|
105
|
-
scene?: string;
|
|
106
|
-
productScene?: ProductSceneEnum;
|
|
107
|
-
paymentMethodCategoryType?: PaymentMethodCategoryTypeEnum;
|
|
108
|
-
tokenCollectTime?: string;
|
|
109
|
-
dataPollingInterval?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface IcreateComponent {
|
|
112
|
-
sessionData: string;
|
|
113
|
-
paymentSessionData?: string;
|
|
114
|
-
elementProps?: {
|
|
115
|
-
elementLink: string;
|
|
116
|
-
};
|
|
117
|
-
appendAliasContainerId?: boolean;
|
|
118
|
-
notRedirectAfterComplete?: boolean;
|
|
119
|
-
appearance?: {
|
|
120
|
-
[x: string]: any;
|
|
121
|
-
themeType?: string;
|
|
122
|
-
accentColor?: string;
|
|
123
|
-
};
|
|
124
|
-
isAppWebview?: boolean;
|
|
125
|
-
merchantAppointParam?: IMerchantAppointParam;
|
|
126
|
-
isNativeAppWebview?: boolean;
|
|
127
|
-
}
|
|
128
|
-
export interface IappendIframeNodesParams extends IcreateComponent {
|
|
129
|
-
paymentSessionMetaData: IPaymentSessionMetaData;
|
|
130
|
-
renderDisplayType: DisplayTypeEnum;
|
|
131
|
-
selector?: Iselector;
|
|
132
|
-
paypalConfiguration?: IPaypalConfiguration;
|
|
133
|
-
/** 将address-element参数定义合入原参数定义 */
|
|
134
|
-
configParams?: {
|
|
135
|
-
hideFields?: string[];
|
|
136
|
-
addressAutoSuggestDisabled?: addressAutoSuggestDisabledType;
|
|
137
|
-
};
|
|
138
|
-
prefillValue?: AddressItem[];
|
|
139
|
-
componentSession?: string;
|
|
140
|
-
loca?: string;
|
|
141
|
-
}
|
|
142
|
-
/** 表单地址数据 */
|
|
143
|
-
export interface AddressItem {
|
|
144
|
-
shippingName: {
|
|
145
|
-
firstName: string;
|
|
146
|
-
lastName: string;
|
|
147
|
-
};
|
|
148
|
-
/** 手机号 */
|
|
149
|
-
shippingPhoneNo: string;
|
|
150
|
-
/** 地址 */
|
|
151
|
-
shippingAddress: {
|
|
152
|
-
/** 国家 */
|
|
153
|
-
region: string;
|
|
154
|
-
/** 地址1 */
|
|
155
|
-
address1: string;
|
|
156
|
-
/** 地址2 */
|
|
157
|
-
address2: string;
|
|
158
|
-
/** 省份 */
|
|
159
|
-
province?: string;
|
|
160
|
-
/** 城市 */
|
|
161
|
-
city?: string;
|
|
162
|
-
/** 地址级联 四层 【province,city,district,subDistrict】 */
|
|
163
|
-
district?: string[];
|
|
164
|
-
/** 邮政编码 */
|
|
165
|
-
zipCode: string;
|
|
166
|
-
/** 对应地址级联数据对象 */
|
|
167
|
-
districtValues?: {
|
|
168
|
-
/** 城市 */
|
|
169
|
-
city?: string;
|
|
170
|
-
/** 区/县 */
|
|
171
|
-
district?: string;
|
|
172
|
-
/** 省份 */
|
|
173
|
-
province?: string;
|
|
174
|
-
/** 子区域 */
|
|
175
|
-
subDistrict?: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
/** 备注 */
|
|
179
|
-
notes?: string;
|
|
180
|
-
open?: boolean;
|
|
181
|
-
/** 是否默认地址 */
|
|
182
|
-
prefer?: '1' | '0';
|
|
183
|
-
shippingId?: string;
|
|
184
|
-
}
|
|
185
|
-
type addressAutoSuggestDisabledType = 0 | 1;
|
|
186
|
-
export interface IPaypalConfiguration {
|
|
187
|
-
style?: object;
|
|
188
|
-
blockPayPalCreditButton?: boolean;
|
|
189
|
-
blockPayPalPayLaterButton?: boolean;
|
|
190
|
-
displayPayPalPayLaterButtonOnly?: boolean;
|
|
191
|
-
enableMessages?: boolean;
|
|
192
|
-
intent?: payPalConfigurationIntentEnum;
|
|
193
|
-
}
|
|
194
|
-
export declare enum payPalConfigurationIntentEnum {
|
|
195
|
-
'intent' = "intent",
|
|
196
|
-
'capture' = "capture"
|
|
197
|
-
}
|
|
198
|
-
export interface IMerchantAppointParam {
|
|
199
|
-
storedCard?: IStoredCard;
|
|
200
|
-
}
|
|
201
|
-
export interface IStoredCard {
|
|
202
|
-
needCVV?: boolean;
|
|
203
|
-
}
|
|
204
|
-
export interface IbillingAddress {
|
|
205
|
-
region?: string;
|
|
206
|
-
address1?: string;
|
|
207
|
-
address2?: string;
|
|
208
|
-
city?: string;
|
|
209
|
-
state?: string;
|
|
210
|
-
zipCode?: string;
|
|
211
|
-
}
|
|
212
|
-
export interface Isubmit {
|
|
213
|
-
billingAddress?: IbillingAddress;
|
|
214
|
-
}
|
|
215
|
-
export interface IpaymentSessionConfig {
|
|
216
|
-
productScene: ProductSceneEnum;
|
|
217
|
-
paymentMethodCategoryType?: PaymentMethodCategoryTypeEnum;
|
|
218
|
-
productSceneVersion: string;
|
|
219
|
-
}
|
|
220
|
-
export interface IpaymentSecurityConfig {
|
|
221
|
-
appId: string;
|
|
222
|
-
appName: string;
|
|
223
|
-
bizToken: string;
|
|
224
|
-
gateway: string;
|
|
225
|
-
h5gateway: string;
|
|
226
|
-
tokenCollectTime?: string;
|
|
227
|
-
dataPollingInterval?: string;
|
|
228
|
-
workSpaceId: string;
|
|
229
|
-
}
|
|
230
|
-
export interface IsecurityConfig {
|
|
231
|
-
scene: string;
|
|
232
|
-
h5gateway: string;
|
|
233
|
-
}
|
|
234
|
-
export interface InitSecurityConfig {
|
|
235
|
-
product: ProductSceneEnum;
|
|
236
|
-
region?: string;
|
|
237
|
-
securityRegion?: 'US' | 'SG' | 'DE';
|
|
238
|
-
}
|
|
239
|
-
export interface frontModulesToBeLoadedInterface {
|
|
240
|
-
acquirerName: string;
|
|
241
|
-
scriptUrl: string;
|
|
242
|
-
}
|
|
243
|
-
type ActionDeviceInfo = {
|
|
244
|
-
signType?: string;
|
|
245
|
-
};
|
|
246
|
-
export interface PaymentSessionActionData {
|
|
247
|
-
amountConfirmRequired?: boolean;
|
|
248
|
-
autoDebitWithToken: boolean;
|
|
249
|
-
enableSignAgreement?: boolean;
|
|
250
|
-
skipSdkQuery: boolean;
|
|
251
|
-
requireFastSdk: boolean;
|
|
252
|
-
nonCompliant?: boolean;
|
|
253
|
-
nonInitSecuritySDK?: boolean;
|
|
254
|
-
signButtonDisplay?: boolean;
|
|
255
|
-
userSignAgreement?: boolean;
|
|
256
|
-
skipSdkQueryForm?: {
|
|
257
|
-
value: boolean;
|
|
258
|
-
version: string;
|
|
259
|
-
platform: string;
|
|
260
|
-
};
|
|
261
|
-
web: ActionDeviceInfo;
|
|
262
|
-
wap: ActionDeviceInfo;
|
|
263
|
-
app: ActionDeviceInfo;
|
|
264
|
-
}
|
|
265
|
-
export interface IPaymentSessionMetaData {
|
|
266
|
-
clientId?: string;
|
|
267
|
-
renderDisplayType?: string;
|
|
268
|
-
paymentSessionConfig?: IpaymentSessionConfig;
|
|
269
|
-
securityConfig?: IpaymentSecurityConfig;
|
|
270
|
-
moneyView?: any;
|
|
271
|
-
extendInfo?: string;
|
|
272
|
-
paymentMethodInfoView?: any;
|
|
273
|
-
paymentView?: any;
|
|
274
|
-
action?: PaymentSessionActionData;
|
|
275
|
-
authUrlInfo?: {
|
|
276
|
-
appIdentifier?: string;
|
|
277
|
-
applinkUrl?: string;
|
|
278
|
-
normalUrl?: string;
|
|
279
|
-
schemeUrl?: string;
|
|
280
|
-
authUrl?: string;
|
|
281
|
-
};
|
|
282
|
-
paymentSessionFactor?: {
|
|
283
|
-
externalRiskTimeout?: number;
|
|
284
|
-
extendInfo?: {
|
|
285
|
-
merchantCapabilities?: string[];
|
|
286
|
-
supportedNetworks?: string[];
|
|
287
|
-
requiredBillingContactFields: IApplePayContactField[];
|
|
288
|
-
requiredShippingContactFields: IApplePayContactField[];
|
|
289
|
-
};
|
|
290
|
-
merchantInfo?: {
|
|
291
|
-
registeredCountry?: string;
|
|
292
|
-
partnerId?: string;
|
|
293
|
-
merchantName?: string;
|
|
294
|
-
};
|
|
295
|
-
order?: {
|
|
296
|
-
orderDescription: string;
|
|
297
|
-
};
|
|
298
|
-
paymentAmount?: {
|
|
299
|
-
value?: string;
|
|
300
|
-
currency?: string;
|
|
301
|
-
};
|
|
302
|
-
paymentMethodInfo?: {
|
|
303
|
-
paymentMethodType?: string;
|
|
304
|
-
};
|
|
305
|
-
paymentMethodViewMetaData?: any;
|
|
306
|
-
paymentRequestId?: string;
|
|
307
|
-
supportedLanguages?: any;
|
|
308
|
-
/**
|
|
309
|
-
* 当前为苹果分期场景的信息
|
|
310
|
-
*/
|
|
311
|
-
recurringInfo?: {
|
|
312
|
-
/**
|
|
313
|
-
* 代扣协议开始日期 不传为当前系统时间
|
|
314
|
-
*/
|
|
315
|
-
startDate?: number;
|
|
316
|
-
/**
|
|
317
|
-
* 代扣协议结束日期 不传不限制结束时间
|
|
318
|
-
*/
|
|
319
|
-
endDate?: number;
|
|
320
|
-
/**
|
|
321
|
-
* 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
|
|
322
|
-
*/
|
|
323
|
-
intervalUnit?: string;
|
|
324
|
-
/**
|
|
325
|
-
* 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
|
|
326
|
-
*/
|
|
327
|
-
intervalCount?: number;
|
|
328
|
-
/**
|
|
329
|
-
* 分期标题信息
|
|
330
|
-
*/
|
|
331
|
-
title?: string;
|
|
332
|
-
/**
|
|
333
|
-
* 分期管理页面
|
|
334
|
-
*/
|
|
335
|
-
managementURL?: string;
|
|
336
|
-
/**
|
|
337
|
-
* 苹果通知ipay MAPN信息变更的地址
|
|
338
|
-
*/
|
|
339
|
-
tokenNotificationURL?: string;
|
|
340
|
-
/**
|
|
341
|
-
* 分期协议描述
|
|
342
|
-
*/
|
|
343
|
-
agreementDescription?: string;
|
|
344
|
-
};
|
|
345
|
-
frontModulesToBeLoaded?: frontModulesToBeLoadedInterface[];
|
|
346
|
-
};
|
|
347
|
-
connectFactor?: {
|
|
348
|
-
enableConnect?: boolean;
|
|
349
|
-
};
|
|
350
|
-
skipRenderPaymentMethod?: boolean;
|
|
351
|
-
needAccountConfirmPage?: boolean;
|
|
352
|
-
}
|
|
353
|
-
export interface IPaymentSessionFactor {
|
|
354
|
-
merchantInfo?: IMerchantInfo;
|
|
355
|
-
paymentMethodInfo: IPaymentMethodInfo;
|
|
356
|
-
paymentAmount?: IPaymentAmount;
|
|
357
|
-
paypal?: IPaypalConfig;
|
|
358
|
-
}
|
|
359
|
-
export interface IPaymentMethodInfo {
|
|
360
|
-
paymentMethodMetaData?: IPaymentMethodMetaData;
|
|
361
|
-
paymentMethodType?: PaypalMethodEnum;
|
|
362
|
-
}
|
|
363
|
-
export type IPaypalConfig = {
|
|
364
|
-
accessToken: string;
|
|
365
|
-
};
|
|
366
|
-
export interface IPaymentMethodMetaData {
|
|
367
|
-
bindPaymentMethod?: string;
|
|
368
|
-
boundPaymentMethod?: string;
|
|
369
|
-
}
|
|
370
|
-
export interface IMerchantInfo {
|
|
371
|
-
channelMerchantClientId?: string;
|
|
372
|
-
}
|
|
373
|
-
export interface IPaymentAmount {
|
|
374
|
-
value?: string;
|
|
375
|
-
currency?: PaymentAmountEnum;
|
|
376
|
-
}
|
|
377
|
-
export declare enum PaymentAmountEnum {
|
|
378
|
-
USD = "USD"
|
|
379
|
-
}
|
|
380
|
-
export declare enum localeEnum {
|
|
381
|
-
'en-US' = "en-US"
|
|
382
|
-
}
|
|
383
|
-
export declare enum checkoutDisplayEnum {
|
|
384
|
-
horizon = "horizon",
|
|
385
|
-
vertical = "vertical"
|
|
386
|
-
}
|
|
387
|
-
export declare enum modeEnum {
|
|
388
|
-
dropin = "dropin",
|
|
389
|
-
component = "component"
|
|
390
|
-
}
|
|
391
|
-
export declare enum networkModeEnum {
|
|
392
|
-
proxy = "proxy",
|
|
393
|
-
session = "session"
|
|
394
|
-
}
|
|
395
|
-
export interface IcheckoutState {
|
|
396
|
-
paymentMethodType?: string;
|
|
397
|
-
}
|
|
398
|
-
export declare enum EnvironmentEnum {
|
|
399
|
-
sandbox = "sandbox",
|
|
400
|
-
prod = "prod",
|
|
401
|
-
light_sandbox = "light_sandbox"
|
|
402
|
-
}
|
|
403
|
-
export declare enum osTypeEnum {
|
|
404
|
-
IOS = "IOS",
|
|
405
|
-
ANDROID = "ANDROID",
|
|
406
|
-
ELSE = "ELSE"
|
|
407
|
-
}
|
|
408
|
-
export declare enum terminalTypeEnum {
|
|
409
|
-
WEB = "WEB",
|
|
410
|
-
WAP = "WAP",
|
|
411
|
-
APP = "APP",
|
|
412
|
-
MINI_APP = "MINI_APP"
|
|
413
|
-
}
|
|
414
|
-
export interface Ienv {
|
|
415
|
-
osType?: osTypeEnum;
|
|
416
|
-
terminalType: terminalTypeEnum;
|
|
417
|
-
environment: string;
|
|
418
|
-
}
|
|
419
|
-
export declare enum PlatformEnum {
|
|
420
|
-
desktop = "desktop",
|
|
421
|
-
mobile = "mobile"
|
|
422
|
-
}
|
|
423
|
-
export type EventCallbackResult = {
|
|
424
|
-
result?: {
|
|
425
|
-
resultCode: string;
|
|
426
|
-
resultStatus: string;
|
|
427
|
-
resultMessage: string;
|
|
428
|
-
};
|
|
429
|
-
redirectUrls?: {
|
|
430
|
-
applinkUrl?: string;
|
|
431
|
-
schemeUrl?: string;
|
|
432
|
-
normalUrl?: string;
|
|
433
|
-
};
|
|
434
|
-
paymentResultCode?: string;
|
|
435
|
-
paymentResultMessage?: string;
|
|
436
|
-
paymentStatus?: string;
|
|
437
|
-
} & Record<string, any>;
|
|
438
|
-
/**
|
|
439
|
-
* @description Create an event handler, called when an error occurs in AMSCheckout.
|
|
440
|
-
*/
|
|
441
|
-
export type callOnError = (state: {
|
|
442
|
-
code: string;
|
|
443
|
-
message: string;
|
|
444
|
-
stack?: any;
|
|
445
|
-
}) => void;
|
|
446
|
-
/**
|
|
447
|
-
* @description Create an event handler, called when the general log triggers during the SDK runtime.
|
|
448
|
-
*/
|
|
449
|
-
export type callOnLog = (state: {
|
|
450
|
-
code: string;
|
|
451
|
-
message: string;
|
|
452
|
-
}) => void;
|
|
453
|
-
/**
|
|
454
|
-
* @description Create an event handler, during the running of the sdk, some events are called after execution, and the specific event code is returned.
|
|
455
|
-
*/
|
|
456
|
-
export type callOnEventCallback = (state: {
|
|
457
|
-
code: string;
|
|
458
|
-
message?: string;
|
|
459
|
-
result?: EventCallbackResult;
|
|
460
|
-
}) => void;
|
|
461
|
-
export type callonPaymentMethodSelected = (state: {
|
|
462
|
-
paymentMethodType: string;
|
|
463
|
-
}) => void;
|
|
464
|
-
export type callOnSizeChanged = (state: {
|
|
465
|
-
width: number;
|
|
466
|
-
height: number;
|
|
467
|
-
}) => void;
|
|
468
|
-
export type onBeforeSubmitResult = {
|
|
469
|
-
result: 'CANCEL' | 'CONTINUE' | 'ERROR' | 'IGNORE' | 'TIMEOUT';
|
|
470
|
-
processType: string;
|
|
471
|
-
submitRequestData: Record<string, any>;
|
|
472
|
-
};
|
|
473
|
-
export type callOnBeforeSubmit = (state?: Record<string, any>) => Promise<onBeforeSubmitResult> | onBeforeSubmitResult;
|
|
474
|
-
/**
|
|
475
|
-
* @description Create an event handler, In pop-up layer mode, the user clicks the semi floating layer close button and is called.
|
|
476
|
-
*/
|
|
477
|
-
export type callOnClose = () => void;
|
|
478
|
-
export declare enum MessageName {
|
|
479
|
-
SDK_TO_APP = "SDK_TO_APP",
|
|
480
|
-
APP_TO_SDK = "APP_TO_SDK",
|
|
481
|
-
APP_TO_APP = "APP_TO_APP"
|
|
482
|
-
}
|
|
483
|
-
export interface EventPayload {
|
|
484
|
-
name: MessageName;
|
|
485
|
-
mode?: string;
|
|
486
|
-
appId?: string;
|
|
487
|
-
instanceId: string;
|
|
488
|
-
context: EventPayloadContext;
|
|
489
|
-
}
|
|
490
|
-
export interface EventPayloadContext {
|
|
491
|
-
event: string;
|
|
492
|
-
data: any;
|
|
493
|
-
eventCallbackId?: string;
|
|
494
|
-
}
|
|
495
|
-
export interface AMSCheckoutOptions {
|
|
496
|
-
env: Ienv;
|
|
497
|
-
locale: string;
|
|
498
|
-
networkMode: string;
|
|
499
|
-
mode: string;
|
|
500
|
-
analytics?: Ianalytics;
|
|
501
|
-
product: string;
|
|
502
|
-
}
|
|
503
|
-
export interface Ianalytics {
|
|
504
|
-
enabled: boolean;
|
|
505
|
-
}
|
|
506
|
-
export declare enum TargetEnum {
|
|
507
|
-
BLANK = "_blank",
|
|
508
|
-
SELF = "_self",
|
|
509
|
-
REPLACE = "_replace"
|
|
510
|
-
}
|
|
511
|
-
export declare enum errorEnum {
|
|
512
|
-
PARAMS = "PARAMS",
|
|
513
|
-
TIMEOUT = "TIMEOUT",
|
|
514
|
-
NETWORK = "NETWORK",
|
|
515
|
-
SYSTEM = "SYSTEM",
|
|
516
|
-
LOGIN = "LOGIN",
|
|
517
|
-
GATEWAY = "GATEWAY",
|
|
518
|
-
VALIDATION = "VALIDATION",
|
|
519
|
-
TAOBAOBINDALIPAY = "TAOBAOBINDALIPAY",
|
|
520
|
-
REGISTERWALLET = "REGISTERWALLET",
|
|
521
|
-
NOALIPAYID = "NOALIPAYID",
|
|
522
|
-
TRUSTLOGINERROR = "TRUSTLOGINERROR",
|
|
523
|
-
SIGNIN = "SIGNIN",
|
|
524
|
-
GETSIGNPARAMSERROR = "GETSIGNPARAMSERROR"
|
|
525
|
-
}
|
|
526
|
-
export interface RequestConfig {
|
|
527
|
-
env?: string;
|
|
528
|
-
baseURL?: string;
|
|
529
|
-
timeout?: number;
|
|
530
|
-
headers?: any;
|
|
531
|
-
withCredentials?: boolean;
|
|
532
|
-
method?: string;
|
|
533
|
-
workspaceId?: string;
|
|
534
|
-
'Operation-Type'?: string;
|
|
535
|
-
beforerRequest?: () => void;
|
|
536
|
-
afterRequest?: () => void;
|
|
537
|
-
needEnvInfo?: boolean;
|
|
538
|
-
hostSign?: string;
|
|
539
|
-
appId?: string;
|
|
540
|
-
sandbox?: boolean;
|
|
541
|
-
deviceId?: string;
|
|
542
|
-
locale?: string;
|
|
543
|
-
envInfo?: Record<string, any>;
|
|
544
|
-
}
|
|
545
|
-
export interface CashierSdkActionQueryRequest {
|
|
546
|
-
paymentSessionData: string;
|
|
547
|
-
paymentSessionConfig?: IpaymentSessionConfig;
|
|
548
|
-
paymentMethodType?: string;
|
|
549
|
-
notRedirectAfterComplete?: boolean;
|
|
550
|
-
merchantAppointParam?: IMerchantAppointParam;
|
|
551
|
-
extParams?: any;
|
|
552
|
-
}
|
|
553
|
-
export interface CashierSubmitPayRequest {
|
|
554
|
-
/**
|
|
555
|
-
* @description payment method type
|
|
556
|
-
*/
|
|
557
|
-
paymentMethodType?: string;
|
|
558
|
-
/**
|
|
559
|
-
* @description payment factors
|
|
560
|
-
*/
|
|
561
|
-
paymentFactors?: Record<string, string>;
|
|
562
|
-
/**
|
|
563
|
-
* @description 需要验证的场景
|
|
564
|
-
*/
|
|
565
|
-
verifyFactors?: Record<string, string>;
|
|
566
|
-
paymentSessionData: string;
|
|
567
|
-
paymentSessionConfig?: any;
|
|
568
|
-
paymentMethod?: {
|
|
569
|
-
paymentMethodType: string;
|
|
570
|
-
paymentMethodId?: string;
|
|
571
|
-
paymentMethodDetail?: Record<string, any>;
|
|
572
|
-
category?: string;
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
export interface CashierSubmitPayRequest {
|
|
576
|
-
paymentMethodType?: string;
|
|
577
|
-
paymentFactors?: Record<string, string>;
|
|
578
|
-
verifyFactors?: Record<string, string>;
|
|
579
|
-
paymentSessionData: string;
|
|
580
|
-
paymentSessionConfig?: any;
|
|
581
|
-
extParams?: any;
|
|
582
|
-
}
|
|
583
|
-
export interface CashierSdkActionQueryResult {
|
|
584
|
-
supportedLanguages?: any[];
|
|
585
|
-
amountConfirmRequired?: boolean;
|
|
586
|
-
orderAmount?: Record<string, string>;
|
|
587
|
-
paymentMethodView?: Record<string, string>;
|
|
588
|
-
autoDebitWithToken?: boolean;
|
|
589
|
-
success: boolean;
|
|
590
|
-
errorCode?: string;
|
|
591
|
-
errorMessage?: string;
|
|
592
|
-
message?: string;
|
|
593
|
-
errorStatus?: string;
|
|
594
|
-
redirectUrl?: string;
|
|
595
|
-
normalUrl?: string;
|
|
596
|
-
applinkUrl?: string;
|
|
597
|
-
schemeUrl?: string;
|
|
598
|
-
authUrl?: string;
|
|
599
|
-
extendInfo?: {
|
|
600
|
-
channelOrderId?: string;
|
|
601
|
-
};
|
|
602
|
-
errorActions?: Record<string, string>;
|
|
603
|
-
orderAmountView?: IAmountView;
|
|
604
|
-
paymentAmountView?: IAmountView;
|
|
605
|
-
paymentMethods?: IPaymentMethod[];
|
|
606
|
-
savedPaymentMethods?: IPaymentMethod[];
|
|
607
|
-
traceId?: string;
|
|
608
|
-
}
|
|
609
|
-
export interface CashierSdkActionQuerySessionResult extends IPaymentSessionMetaData {
|
|
610
|
-
success: boolean;
|
|
611
|
-
errorCode?: string;
|
|
612
|
-
errorMessage?: string;
|
|
613
|
-
message?: string;
|
|
614
|
-
errorStatus?: string;
|
|
615
|
-
traceId?: string;
|
|
616
|
-
}
|
|
617
|
-
/**
|
|
618
|
-
* Get App Pay Payment Session Request.
|
|
619
|
-
*/
|
|
620
|
-
export interface ApplePayPaymentSessionRequest {
|
|
621
|
-
validateUrl: string;
|
|
622
|
-
paymentSessionData: string;
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Get App Pay Payment Session Result.
|
|
626
|
-
*/
|
|
627
|
-
export interface ApplePayPaymentSessionResult {
|
|
628
|
-
merchantSessionObject: string;
|
|
629
|
-
success: boolean;
|
|
630
|
-
errorCode?: string;
|
|
631
|
-
errorMessage?: string;
|
|
632
|
-
message?: string;
|
|
633
|
-
}
|
|
634
|
-
export declare enum redirectTypeEnum {
|
|
635
|
-
UNSAFE_BROWSER = "UNSAFE_BROWSER",// 非安全浏览器
|
|
636
|
-
SAFETY_BROWSER = "SAFETY_BROWSER",// 安全浏览器
|
|
637
|
-
INVOKE_SDK = "INVOKE_SDK"
|
|
638
|
-
}
|
|
639
|
-
export interface ActionForm {
|
|
640
|
-
parameters: any;
|
|
641
|
-
redirectUrl: any;
|
|
642
|
-
elementValue?: string;
|
|
643
|
-
redirectType?: redirectTypeEnum;
|
|
644
|
-
}
|
|
645
|
-
export interface CashierSubmitPayResult {
|
|
646
|
-
success: boolean;
|
|
647
|
-
resultCode?: string;
|
|
648
|
-
resultMessage?: string;
|
|
649
|
-
errorActions?: Record<string, string>;
|
|
650
|
-
errorCode?: string;
|
|
651
|
-
errorMessage?: string;
|
|
652
|
-
extendInfo?: Record<string, string>;
|
|
653
|
-
actionForm?: ActionForm;
|
|
654
|
-
normalUrl?: string;
|
|
655
|
-
errorStatus?: string;
|
|
656
|
-
message?: string;
|
|
657
|
-
traceId?: string;
|
|
658
|
-
}
|
|
659
|
-
export declare enum eventCodeEnum {
|
|
660
|
-
SDK_START_OF_LOADING = "SDK_START_OF_LOADING",
|
|
661
|
-
SDK_END_OF_LOADING = "SDK_END_OF_LOADING",
|
|
662
|
-
SDK_INTERNAL_ERROR = "SDK_INTERNAL_ERROR",
|
|
663
|
-
SDK_CREATEPAYMENT_PARAMETER_ERROR = "SDK_CREATEPAYMENT_PARAMETER_ERROR",
|
|
664
|
-
SDK_INIT_PARAMETER_ERROR = "SDK_INIT_PARAMETER_ERROR",
|
|
665
|
-
SDK_CREATECOMPONENT_ERROR = "SDK_CREATECOMPONENT_ERROR",
|
|
666
|
-
/**
|
|
667
|
-
* 拉取WEB应用&收银台失败
|
|
668
|
-
*/
|
|
669
|
-
SDK_LAUNCH_PAYMENT_APP_ERROR = "SDK_LAUNCH_PAYMENT_APP_ERROR",
|
|
670
|
-
/**
|
|
671
|
-
* 拉取WEB应用&收银台成功
|
|
672
|
-
*/
|
|
673
|
-
SDK_CALL_URL_SUCCESS = "SDK_CALL_URL_SUCCESS",
|
|
674
|
-
/**
|
|
675
|
-
@deprecated 已废弃 请使用SDK_LAUNCH_PAYMENT_APP_ERROR
|
|
676
|
-
*/
|
|
677
|
-
SDK_CALL_URL_ERROR = "SDK_CALL_URL_ERROR",
|
|
678
|
-
SDK_PAYMENT_SUCCESSFUL = "SDK_PAYMENT_SUCCESSFUL",
|
|
679
|
-
SDK_PAYMENT_FAIL = "SDK_PAYMENT_FAIL",
|
|
680
|
-
SDK_PAYMENT_ERROR = "SDK_PAYMENT_ERROR",
|
|
681
|
-
SDK_PAYMENT_CANCEL = "SDK_PAYMENT_CANCEL",
|
|
682
|
-
/**
|
|
683
|
-
* 当前为Apple Pay发起了Pay请求,但是用户关闭了页面
|
|
684
|
-
*/
|
|
685
|
-
SDK_PAYMENT_PROCESSING = "SDK_PAYMENT_PROCESSING",
|
|
686
|
-
SDK_PAYMENT_WARN = "SDK_PAYMENT_WARN",
|
|
687
|
-
SDK_PAYMENT_SHIPPINGCHANGE = "SDK_PAYMENT_SHIPPINGCHANGE",
|
|
688
|
-
SDK_PAYMENT_APPROVE = "SDK_PAYMENT_APPROVE",
|
|
689
|
-
/**
|
|
690
|
-
* ESP createComponent时传参isNativeAppWebview:true,ESP外跳授权时透传此SDK给商户
|
|
691
|
-
*/
|
|
692
|
-
SDK_REDIRECT = "SDK_REDIRECT"
|
|
693
|
-
}
|
|
694
|
-
export declare enum RedirectType {
|
|
695
|
-
ApplinkUrl = "ApplinkUrl",
|
|
696
|
-
SchemeUrl = "SchemeUrl",
|
|
697
|
-
NormalUrl = "NormalUrl",
|
|
698
|
-
Unknown = "Unknown"
|
|
699
|
-
}
|
|
700
|
-
declare global {
|
|
701
|
-
interface Window {
|
|
702
|
-
[key: string]: any;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
export interface CallbackEventInfo {
|
|
706
|
-
enableCallback: boolean;
|
|
707
|
-
eventName: string;
|
|
708
|
-
eventResult?: any;
|
|
709
|
-
}
|
|
710
|
-
export interface MultipleCallbackEvents {
|
|
711
|
-
[key: string]: CallbackEventInfo;
|
|
712
|
-
}
|
|
713
|
-
export declare enum PaypalMethodEnum {
|
|
714
|
-
PAYPAL_CHECKOUT = "PAYPAL_CHECKOUT",
|
|
715
|
-
PAYPAL_VAULT = "PAYPAL_VAULT",
|
|
716
|
-
PAYPAL_PAYLATER = "PAYPAL_PAYLATER"
|
|
717
|
-
}
|
|
718
|
-
export type PaymentMethodTypeEnum = 'ApplePay';
|
|
719
|
-
export type ApplePaySubTypeEnum = 'ApplePayRecurringPayment';
|
|
720
|
-
export type SubPaymentMethodTypeEnum = ApplePaySubTypeEnum;
|
|
721
|
-
export declare enum ProductSceneVersion {
|
|
722
|
-
V1 = "1.0",
|
|
723
|
-
V2 = "2.0"
|
|
724
|
-
}
|
|
725
|
-
export type IAppendParams = {
|
|
726
|
-
componentSign: ComponentSignEnum;
|
|
727
|
-
iframeNodesParams: IappendIframeNodesParams;
|
|
728
|
-
};
|
|
729
|
-
interface ISubPaymentElementView {
|
|
730
|
-
defaultText: string;
|
|
731
|
-
defaultValue: string;
|
|
732
|
-
elementMandatory: boolean;
|
|
733
|
-
elementRegx?: string;
|
|
734
|
-
elementType: string;
|
|
735
|
-
extendInfo: string;
|
|
736
|
-
paramIllegalText: string;
|
|
737
|
-
paymentElementKey: string;
|
|
738
|
-
title: string;
|
|
739
|
-
validateFunction?: string;
|
|
740
|
-
isPart?: boolean;
|
|
741
|
-
isPartEnd?: boolean;
|
|
742
|
-
}
|
|
743
|
-
export interface IPaymentElement {
|
|
744
|
-
defaultValue: string;
|
|
745
|
-
elementMandatory: boolean;
|
|
746
|
-
elementType: string;
|
|
747
|
-
extendInfo: string;
|
|
748
|
-
paymentElementKey: string;
|
|
749
|
-
subPaymentElementView: ISubPaymentElementView[];
|
|
750
|
-
title: string;
|
|
751
|
-
}
|
|
752
|
-
export declare enum InterActionTypeEnum {
|
|
753
|
-
COLLECT_REDIRECT = "COLLECT_REDIRECT",
|
|
754
|
-
SHOW_CODE = "SHOW_CODE",
|
|
755
|
-
COLLECT_SHOW_CODE = "COLLECT_SHOW_CODE",
|
|
756
|
-
REDIRECT = "REDIRECT"
|
|
757
|
-
}
|
|
758
|
-
export interface IAmount {
|
|
759
|
-
amount?: string;
|
|
760
|
-
currency: string;
|
|
761
|
-
currencyLabel: string;
|
|
762
|
-
formattedAmount?: string;
|
|
763
|
-
formattedAmountWithCurrency?: string;
|
|
764
|
-
value: string;
|
|
765
|
-
}
|
|
766
|
-
export interface IAmountView {
|
|
767
|
-
currency: string;
|
|
768
|
-
currencyDivider: string;
|
|
769
|
-
currencyLabel: string;
|
|
770
|
-
currencySymbolPosition: 'L' | 'R';
|
|
771
|
-
formattedValue: string;
|
|
772
|
-
value: string;
|
|
773
|
-
}
|
|
774
|
-
export type ApplePayPaymentRequest = {
|
|
775
|
-
version?: number;
|
|
776
|
-
supportedNetworks: string[];
|
|
777
|
-
requiredBillingContactFields?: string[];
|
|
778
|
-
requiredShippingContactFields?: string[];
|
|
779
|
-
merchantInfo: {
|
|
780
|
-
instMid: string;
|
|
781
|
-
merchantName: string;
|
|
782
|
-
countryCode: string;
|
|
783
|
-
};
|
|
784
|
-
paymentAmount: {
|
|
785
|
-
value: string;
|
|
786
|
-
currency: string;
|
|
787
|
-
};
|
|
788
|
-
order?: {
|
|
789
|
-
orderDescription: string;
|
|
790
|
-
};
|
|
791
|
-
merchantCapabilities: string[];
|
|
792
|
-
};
|
|
793
|
-
export interface IPaymentMethod {
|
|
794
|
-
paymentMethodKey?: string;
|
|
795
|
-
antomPage?: string;
|
|
796
|
-
redirectUrl?: string;
|
|
797
|
-
icon?: string;
|
|
798
|
-
iconName?: string;
|
|
799
|
-
logoList?: Array<{
|
|
800
|
-
cardBrand: string;
|
|
801
|
-
logoUrl: string;
|
|
802
|
-
}>;
|
|
803
|
-
paymentMethod?: string;
|
|
804
|
-
paymentMethodName: string;
|
|
805
|
-
paymentMethodType: string;
|
|
806
|
-
category?: string;
|
|
807
|
-
paymentElements?: IPaymentElement[];
|
|
808
|
-
paymentMethodId?: string;
|
|
809
|
-
paymentMethodDetail?: {
|
|
810
|
-
last4?: string;
|
|
811
|
-
requireIssuerAuthentication?: string;
|
|
812
|
-
applePayProps?: {
|
|
813
|
-
paymentRequest: ApplePayPaymentRequest;
|
|
814
|
-
};
|
|
815
|
-
};
|
|
816
|
-
interActionType?: InterActionTypeEnum;
|
|
817
|
-
recommend?: boolean;
|
|
818
|
-
expressCheckout?: boolean;
|
|
819
|
-
webRedirectType?: string;
|
|
820
|
-
paymentCurrencyList?: string[];
|
|
821
|
-
paymentAmount?: IAmount;
|
|
822
|
-
paymentAmountView?: IAmountView;
|
|
823
|
-
paymentQuoteId?: string;
|
|
824
|
-
}
|
|
825
|
-
export declare enum ConnectErrorCode {
|
|
826
|
-
RISK_REJECT = "RISK_REJECT",
|
|
827
|
-
USER_AUTH_VERIFICATION_FAILED = "USER_AUTH_VERIFICATION_FAILED",
|
|
828
|
-
USER_NOT_EXISTS = "USER_NOT_EXISTS"
|
|
829
|
-
}
|
|
830
|
-
export interface IoptionsAddressParams {
|
|
831
|
-
environment?: string;
|
|
832
|
-
locale?: string;
|
|
833
|
-
onSizeChanged?: callOnSizeChanged;
|
|
834
|
-
onChange?: onChange;
|
|
835
|
-
analytics?: {
|
|
836
|
-
enabled: boolean;
|
|
837
|
-
};
|
|
838
|
-
product?: string;
|
|
839
|
-
}
|
|
840
|
-
export declare enum RiskSdkInfoEnum {
|
|
841
|
-
NEED = "need",
|
|
842
|
-
NO_NEED = "noneed"
|
|
843
|
-
}
|
|
844
|
-
export type HandleCloseSource = 'behavior' | 'retention';
|
|
845
|
-
export declare enum EventLoggingEventId {
|
|
846
|
-
OnlyClose = "OnlyClose",
|
|
847
|
-
LeaveAnyWay = "LeaveAnyWay",
|
|
848
|
-
ContinuePaying = "ContinuePaying"
|
|
849
|
-
}
|
|
850
|
-
export interface ErrorMessage {
|
|
851
|
-
code: string;
|
|
852
|
-
message: string;
|
|
853
|
-
[key: string]: ErrorMessage | string;
|
|
854
|
-
}
|