@alipay/ams-checkout 2.0.29 → 2.0.30
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 +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/elementProcessor/convertPaymentMethods.d.ts +1 -0
- package/esm/core/component/element/elementProcessor/convertPaymentMethods.js +4 -2
- package/esm/core/component/element/modernElementController/index.js +2 -2
- package/esm/core/component/element/type.d.ts +4 -0
- package/esm/modern/component/channel.d.ts +21 -0
- package/esm/modern/component/component.inline.style.d.ts +10 -0
- package/esm/modern/component/component.popup.style.d.ts +26 -0
- package/esm/modern/component/popupWindow.style.d.ts +27 -0
- package/esm/modern/config/index.d.ts +23 -0
- package/esm/modern/config/request.d.ts +21 -0
- package/esm/modern/constant/auto-debit.d.ts +12 -0
- package/esm/modern/constant/easysafepay.d.ts +16 -0
- package/esm/modern/constant/element.d.ts +27 -0
- package/esm/modern/constant/index.d.ts +331 -0
- package/esm/modern/core/bus/ability/callback.d.ts +9 -0
- package/esm/modern/core/bus/ability/security.d.ts +10 -0
- package/esm/modern/core/bus/ability/tracker.d.ts +9 -0
- package/esm/modern/core/bus/index.d.ts +125 -0
- package/esm/modern/core/bus/interface.d.ts +36 -0
- package/esm/modern/core/component/address.d.ts +8 -0
- package/esm/modern/core/component/appPreloadProcessing.d.ts +1 -0
- package/esm/modern/core/component/ckp/index.d.ts +29 -0
- package/esm/modern/core/component/element/EventCenter/index.d.ts +41 -0
- package/esm/modern/core/component/element/config.d.ts +10 -0
- package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +34 -0
- package/esm/modern/core/component/element/elementContainerService/index.d.ts +20 -0
- package/esm/modern/core/component/element/elementController/index.d.ts +54 -0
- package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +20 -0
- package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +20 -0
- package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +42 -0
- package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +23 -0
- package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +37 -0
- package/esm/modern/core/component/element/index.d.ts +17 -0
- package/esm/modern/core/component/element/mock.d.ts +10 -0
- package/esm/modern/core/component/element/modernElementController/adapter.d.ts +19 -0
- package/esm/modern/core/component/element/modernElementController/index.d.ts +172 -0
- package/esm/modern/core/component/element/type.d.ts +590 -0
- package/esm/modern/core/component/element/util.d.ts +93 -0
- package/esm/modern/core/component/index.d.ts +58 -0
- package/esm/modern/core/instance/index.d.ts +97 -0
- package/esm/modern/core/utils/connectConfig.d.ts +11 -0
- package/esm/modern/foundation/core/index.d.ts +36 -0
- package/esm/modern/foundation/index.d.ts +93 -0
- package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +14 -0
- package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +48 -0
- package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +20 -0
- package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +29 -0
- package/esm/modern/foundation/product-processor/element/index.d.ts +7 -0
- package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +10 -0
- package/esm/modern/foundation/service/api-bus/ability/request.d.ts +10 -0
- package/esm/modern/foundation/service/api-bus/ability/security.d.ts +12 -0
- package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +9 -0
- package/esm/modern/foundation/service/api-bus/busManager.d.ts +127 -0
- package/esm/modern/foundation/service/api-bus/index.d.ts +20 -0
- package/esm/modern/foundation/service/api-bus/interface.d.ts +48 -0
- package/esm/modern/foundation/service/container/index.d.ts +42 -0
- package/esm/modern/foundation/service/container/popup.d.ts +31 -0
- package/esm/modern/foundation/service/container/utils.d.ts +7 -0
- package/esm/modern/foundation/service/event-center.d.ts +82 -0
- package/esm/modern/foundation/service/global-data/index.d.ts +11 -0
- package/esm/modern/foundation/service/index.d.ts +19 -0
- package/esm/modern/foundation/service/log/index.d.ts +44 -0
- package/esm/modern/foundation/service/log/keys.d.ts +13 -0
- package/esm/modern/foundation/service/log/processor.d.ts +9 -0
- package/esm/modern/foundation/service/log/types.d.ts +33 -0
- package/esm/modern/foundation/service/requester/deps.d.ts +17 -0
- package/esm/modern/foundation/service/requester/requester.d.ts +22 -0
- package/esm/modern/foundation/service/security/index.d.ts +33 -0
- package/esm/modern/foundation/service/security/security.d.ts +54 -0
- package/esm/modern/foundation/utils/gray_scale_utils.d.ts +7 -0
- package/esm/modern/foundation/utils/payment_context_utils.d.ts +13 -0
- package/esm/modern/foundation/utils/payment_product_utils.d.ts +13 -0
- package/esm/modern/foundation/utils/preload_helper.d.ts +24 -0
- package/esm/modern/foundation/utils/redirect_utils.d.ts +11 -0
- package/esm/modern/foundation/utils/system_events.d.ts +4 -0
- package/esm/modern/foundation/utils/web_app_url_utils.d.ts +114 -0
- package/esm/modern/index.js +1 -1
- package/esm/modern/loader/constant.d.ts +36 -0
- package/esm/modern/loader/utils/proxyPerformance.d.ts +20 -0
- package/esm/modern/main.d.ts +54 -0
- package/esm/modern/{index.d.ts → modern/index.d.ts} +1 -1
- package/esm/modern/modern/loadAntomTracker.d.ts +7 -0
- package/esm/modern/modern/preload/antomManifestAdapter.d.ts +11 -0
- package/esm/modern/modern/preload/config.d.ts +10 -0
- package/esm/modern/modern/preload/gatewayPreconnection.d.ts +53 -0
- package/esm/modern/modern/preload/preloadAntomElements.d.ts +12 -0
- package/esm/modern/modern/preload/startAntomPreload.d.ts +2 -0
- package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +102 -0
- package/esm/modern/modern/sdk/elements/CVVElement.d.ts +144 -0
- package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +204 -0
- package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +59 -0
- package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +2 -0
- package/esm/modern/modern/sdk/eventsMap.d.ts +135 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +69 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +5346 -0
- package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +6 -0
- package/esm/modern/modern/sdk/stageName.d.ts +3 -0
- package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +14 -0
- package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +4 -0
- package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +1 -0
- package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +9 -0
- package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +32 -0
- package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +277 -0
- package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +2 -0
- package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +6 -0
- package/esm/modern/modern/sdk/tools/getMetaData.d.ts +126 -0
- package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +41 -0
- package/esm/modern/modern/sdk/tools/openModal.d.ts +20 -0
- package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +38 -0
- package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +38 -0
- package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +16 -0
- package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +19 -0
- package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +5 -0
- package/esm/modern/modern/sdk/tools/showToast.d.ts +33 -0
- package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +19 -0
- package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +65 -0
- package/esm/modern/modern/sdk/types.d.ts +310 -0
- package/esm/modern/modern/tools.d.ts +26 -0
- package/esm/modern/plugin/applepay/component.d.ts +50 -0
- package/esm/modern/plugin/applepay/index.d.ts +17 -0
- package/esm/modern/plugin/applepay/interface.d.ts +161 -0
- package/esm/modern/plugin/applepay/service.d.ts +54 -0
- package/esm/modern/plugin/component/cashierApp.d.ts +38 -0
- package/esm/modern/plugin/component/channel.d.ts +73 -0
- package/esm/modern/plugin/component/component.inline.style.d.ts +10 -0
- package/esm/modern/plugin/component/component.popup.style.d.ts +25 -0
- package/esm/modern/plugin/component/index.d.ts +133 -0
- package/esm/modern/plugin/component/popupWindow.style.d.ts +11 -0
- package/esm/modern/plugin/const.d.ts +2 -0
- package/esm/modern/plugin/payment-element/utils.d.ts +2 -0
- package/esm/modern/plugin/paypal/index.d.ts +20 -0
- package/esm/modern/plugin/type.d.ts +34 -0
- package/esm/modern/plugin/utils.d.ts +6 -0
- package/esm/modern/preload/antomManifestAdapter.d.ts +11 -0
- package/esm/modern/preload/antomManifestAdapter.js +116 -0
- package/esm/modern/preload/config.d.ts +10 -0
- package/esm/modern/preload/config.js +46 -0
- package/esm/modern/preload/gatewayPreconnection.d.ts +53 -0
- package/esm/modern/preload/gatewayPreconnection.js +213 -0
- package/esm/modern/preload/preloadAntomElements.d.ts +12 -0
- package/esm/modern/preload/preloadAntomElements.js +99 -0
- package/esm/modern/preload/startAntomPreload.d.ts +2 -0
- package/esm/modern/preload/startAntomPreload.js +9 -0
- package/esm/modern/request/index.d.ts +9 -0
- package/esm/modern/request/utils.d.ts +28 -0
- package/esm/modern/service/index.d.ts +13 -0
- package/esm/modern/tools.js +1 -1
- package/esm/modern/types/index.d.ts +862 -0
- package/esm/modern/util/beforeConfirm.d.ts +14 -0
- package/esm/modern/util/createIframeNode.d.ts +6 -0
- package/esm/modern/util/debug.d.ts +1 -0
- package/esm/modern/util/get.d.ts +25 -0
- package/esm/modern/util/getBackScheme.d.ts +5 -0
- package/esm/modern/util/index.d.ts +61 -0
- package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +89 -0
- package/esm/modern/util/jshield-apdid/index.d.ts +21 -0
- package/esm/modern/util/logger.d.ts +67 -0
- package/esm/modern/util/mock.d.ts +1 -0
- package/esm/modern/util/redirect.d.ts +6 -0
- package/esm/modern/util/security-registry.d.ts +72 -0
- package/esm/modern/util/security.d.ts +55 -0
- package/esm/modern/util/spm-map.d.ts +217 -0
- package/esm/modern/util/storage.d.ts +2 -0
- package/esm/modern/util/timezone.d.ts +1 -0
- package/esm/modern/util/upgrade.d.ts +39 -0
- package/esm/modern/util/versionCompare.d.ts +15 -0
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/types/index.d.ts +6 -0
- package/esm/util/logger.js +1 -1
- package/package.json +2 -1
- package/types.d.ts +52 -2
- package/types.untrimmed.d.ts +70 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare function isWebPlatform(platform?: string): boolean;
|
|
2
|
+
export interface UpgradeItem {
|
|
3
|
+
productScene?: string;
|
|
4
|
+
v: string;
|
|
5
|
+
appVersion: string;
|
|
6
|
+
platform?: string;
|
|
7
|
+
mid?: string;
|
|
8
|
+
greyscale?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpgradeSdkInfo {
|
|
11
|
+
productScene?: string;
|
|
12
|
+
sdkVersion: string;
|
|
13
|
+
appVersion?: string;
|
|
14
|
+
greyscale?: number;
|
|
15
|
+
mid?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function findUpgradeVersion(upgradeItems: UpgradeItem[], sdkInfo: UpgradeSdkInfo): string;
|
|
18
|
+
export declare const getGrascaleId: (key?: string) => string;
|
|
19
|
+
export declare function getGrayscaleValue(seed?: string): number;
|
|
20
|
+
export declare function isGreyscaleMatch(item: UpgradeItem, randomGreyscale: number): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 查询匹配到的版本
|
|
23
|
+
* @param _extendInfo
|
|
24
|
+
* @param param1
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
export declare const getMatchAppVersion: (_extendInfo: string, sdkInfo: UpgradeSdkInfo) => string;
|
|
28
|
+
/**
|
|
29
|
+
* 获取保存的加载版本
|
|
30
|
+
* @param versionKey
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
export declare const getLastAppVersion: (versionKey: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* 保存指定场景的加载版本供下次使用
|
|
36
|
+
* @param versionKey
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const setLastAppVersion: (versionKey: string, appVersion: string) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 返回值0标识一样大,1表示v1大,-1表示v2大
|
|
3
|
+
* @param v1
|
|
4
|
+
* @param v2
|
|
5
|
+
*/
|
|
6
|
+
export declare function compareVersion(v1: string, v2: string): 0 | 1 | -1;
|
|
7
|
+
/**
|
|
8
|
+
* 判断version版本是否在range参数版本的范围内
|
|
9
|
+
* @param version
|
|
10
|
+
* @param range
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function isVersionInStringRange(version: string, range: string): boolean;
|
|
14
|
+
export declare function isVersionInRange(currentVersion: any, minVersion: any, maxVersion: any): boolean;
|
|
15
|
+
export declare function matchVersion(config: any, currentVersion: any): boolean;
|
package/esm/tsdoc-metadata.json
CHANGED
package/esm/types/index.d.ts
CHANGED
|
@@ -807,6 +807,12 @@ export interface IPaymentMethod {
|
|
|
807
807
|
category?: string;
|
|
808
808
|
paymentElements?: IPaymentElement[];
|
|
809
809
|
paymentMethodId?: string;
|
|
810
|
+
/** Token 支付模式;缺失或 null 表示不支持 */
|
|
811
|
+
supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
|
|
812
|
+
/** Token 状态 */
|
|
813
|
+
paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
|
|
814
|
+
/** 脱敏后的渠道账号 */
|
|
815
|
+
userLoginId?: string;
|
|
810
816
|
paymentMethodDetail?: {
|
|
811
817
|
last4?: string;
|
|
812
818
|
requireIssuerAuthentication?: string;
|
package/esm/util/logger.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alipay/ams-checkout",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"exports": {
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
+
"@antintl/opensdk-preload": "^1.0.0",
|
|
92
93
|
"axios": "^1.3.4",
|
|
93
94
|
"proxy-polyfill": "^0.3.2",
|
|
94
95
|
"uuid": "^9.0.0"
|
package/types.d.ts
CHANGED
|
@@ -203,6 +203,13 @@ export declare type AntomLayouts = 'tabs' | 'accordion';
|
|
|
203
203
|
|
|
204
204
|
/* Excluded from this release type: AntomOpenModalConfig */
|
|
205
205
|
|
|
206
|
+
export declare interface AntomPreloadConfig {
|
|
207
|
+
/** Elements2 types the merchant expects to create after loading the SDK. */
|
|
208
|
+
elements: AntomPreloadElement[];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export declare type AntomPreloadElement = 'payment' | 'express' | 'vaulting' | 'CVV';
|
|
212
|
+
|
|
206
213
|
/**
|
|
207
214
|
* @description The Antom main class, all uses are based on this class instance
|
|
208
215
|
*/
|
|
@@ -347,8 +354,8 @@ export declare const AntomSDKErrorCodes: {
|
|
|
347
354
|
readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
|
|
348
355
|
readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
|
|
349
356
|
readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
|
|
350
|
-
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
351
|
-
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
357
|
+
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
358
|
+
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
352
359
|
readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
|
|
353
360
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
354
361
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
@@ -2331,6 +2338,7 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
|
|
|
2331
2338
|
/* Excluded from this release type: renderData */
|
|
2332
2339
|
/* Excluded from this release type: sdkVersion */
|
|
2333
2340
|
/* Excluded from this release type: _requestConfig */
|
|
2341
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
2334
2342
|
/**
|
|
2335
2343
|
* @description 语言配置
|
|
2336
2344
|
*/
|
|
@@ -3287,6 +3295,7 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
|
|
|
3287
3295
|
/* Excluded from this release type: setupError */
|
|
3288
3296
|
/* Excluded from this release type: locale */
|
|
3289
3297
|
/* Excluded from this release type: _paypalSdkEnvironment */
|
|
3298
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
3290
3299
|
/**
|
|
3291
3300
|
* 是否运行在 Native App 的 WebView 中。
|
|
3292
3301
|
* 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
|
|
@@ -4793,6 +4802,8 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
4793
4802
|
* @description 环境配置,默认为prod
|
|
4794
4803
|
*/
|
|
4795
4804
|
env?: 'sandbox' | 'prod';
|
|
4805
|
+
/** Starts best-effort Elements2 resource preload without delaying loadAntom. */
|
|
4806
|
+
preload?: AntomPreloadConfig;
|
|
4796
4807
|
}
|
|
4797
4808
|
|
|
4798
4809
|
/**
|
|
@@ -7368,6 +7379,7 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
|
|
|
7368
7379
|
/* Excluded from this release type: sdkVersion */
|
|
7369
7380
|
/* Excluded from this release type: _requestConfig */
|
|
7370
7381
|
/* Excluded from this release type: logMetaData */
|
|
7382
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
7371
7383
|
/* Excluded from this release type: heightOfVisible */
|
|
7372
7384
|
/**
|
|
7373
7385
|
* Amount & Currency
|
|
@@ -7802,6 +7814,33 @@ declare interface PaymentMethodView {
|
|
|
7802
7814
|
* @description 分期银行信息列表
|
|
7803
7815
|
*/
|
|
7804
7816
|
supportIppBankList?: FrontSupportIppBank[];
|
|
7817
|
+
/**
|
|
7818
|
+
* @description consult 是否打标该支付方式支持代扣(tokenPay)。
|
|
7819
|
+
*
|
|
7820
|
+
* <p>来源 iexpprod {@code PaymentOption.supportTokenPay}(Boolean, 默认 false), 仅当 iexpfront 显式传
|
|
7821
|
+
* {@code PaymentFactor.markSupportTokenPay=true} 时 iexpprod 才会打标。 sdkQuery 内部流转字段。
|
|
7822
|
+
*/
|
|
7823
|
+
supportTokenPay?: boolean;
|
|
7824
|
+
/**
|
|
7825
|
+
* @description tokenized 模式, 取值 EASYSAFEPAY / TOKENIZEDPAY;null 或缺失表示不支持。
|
|
7826
|
+
*
|
|
7827
|
+
* <p>sdkQuery 响应下发, submitPayByPaymentSession 由 SDK 原值回传; 服务端不信任前端回传值, 必须与会话上下文比对。
|
|
7828
|
+
*/
|
|
7829
|
+
supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
|
|
7830
|
+
/**
|
|
7831
|
+
* @description 用户是否选择开启 token 支付(首次支付/授权场景的入口标识)。
|
|
7832
|
+
*
|
|
7833
|
+
* <p>submitPayByPaymentSession 请求入参, 由前端上报。
|
|
7834
|
+
*/
|
|
7835
|
+
enableTokenPay?: boolean;
|
|
7836
|
+
/**
|
|
7837
|
+
* @description token(accessToken) 状态, 取值 ACTIVE / INACTIVE, 对齐 iexpprod facade {@code
|
|
7838
|
+
* AlipayAccessTokenStatusEnum}。
|
|
7839
|
+
*
|
|
7840
|
+
* <p>sdkQuery 响应下发, 取 {@code PaymentMethodTokenDetail.alipayAccessTokenStatus}; 首次支付(无
|
|
7841
|
+
* tokenDetail)不下发。
|
|
7842
|
+
*/
|
|
7843
|
+
paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
|
|
7805
7844
|
}
|
|
7806
7845
|
|
|
7807
7846
|
declare interface PaymentOption {
|
|
@@ -7925,6 +7964,14 @@ declare interface PaymentOption {
|
|
|
7925
7964
|
* @description 支付支持的交互方式
|
|
7926
7965
|
*/
|
|
7927
7966
|
interactionTypes?: string[];
|
|
7967
|
+
/**
|
|
7968
|
+
* @description 支付方式是否支持代扣(token pay)
|
|
7969
|
+
* <p>
|
|
7970
|
+
* 仅当请求侧 PaymentFactor.markSupportTokenPay=true 时才可能被置为 true;
|
|
7971
|
+
* 默认 false, 未打标时与现状完全一致, 向后兼容。
|
|
7972
|
+
* @default false
|
|
7973
|
+
*/
|
|
7974
|
+
supportTokenPay?: boolean;
|
|
7928
7975
|
}
|
|
7929
7976
|
|
|
7930
7977
|
declare interface PaymentQuoteInfo {
|
|
@@ -8216,6 +8263,8 @@ declare interface PollingSetting {
|
|
|
8216
8263
|
pollingTimes?: string;
|
|
8217
8264
|
}
|
|
8218
8265
|
|
|
8266
|
+
/* Excluded from this release type: PreloadTelemetryContext */
|
|
8267
|
+
|
|
8219
8268
|
declare interface PromotionDetail {
|
|
8220
8269
|
/**
|
|
8221
8270
|
* @description promotion amount for mobile view
|
|
@@ -24882,6 +24931,7 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
|
|
|
24882
24931
|
/* Excluded from this release type: renderDataError */
|
|
24883
24932
|
/* Excluded from this release type: sdkVersion */
|
|
24884
24933
|
/* Excluded from this release type: _requestConfig */
|
|
24934
|
+
/* Excluded from this release type: preloadTelemetryContext */
|
|
24885
24935
|
}
|
|
24886
24936
|
|
|
24887
24937
|
export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
|
package/types.untrimmed.d.ts
CHANGED
|
@@ -284,6 +284,13 @@ export declare interface AntomMiddlePageEventMap extends AntomBridgeEventMap {
|
|
|
284
284
|
export declare interface AntomOpenModalConfig extends OpenModalParams {
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
export declare interface AntomPreloadConfig {
|
|
288
|
+
/** Elements2 types the merchant expects to create after loading the SDK. */
|
|
289
|
+
elements: AntomPreloadElement[];
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export declare type AntomPreloadElement = 'payment' | 'express' | 'vaulting' | 'CVV';
|
|
293
|
+
|
|
287
294
|
/**
|
|
288
295
|
* @description The Antom main class, all uses are based on this class instance
|
|
289
296
|
*/
|
|
@@ -439,8 +446,8 @@ export declare const AntomSDKErrorCodes: {
|
|
|
439
446
|
readonly ELEMENT_DEFINE_ERROR: "ELEMENT_DEFINE_ERROR";
|
|
440
447
|
readonly ELEMENT_ALREADY_REGISTERED: "ELEMENT_ALREADY_REGISTERED";
|
|
441
448
|
readonly CANNOT_CREATE_SAME_ELEMENT_TWICE: "CANNOT_CREATE_SAME_ELEMENT_TWICE";
|
|
442
|
-
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
443
|
-
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
449
|
+
readonly GROUPS_ONLY_ONE_MAIN_ELEMENT: "GROUPS_ONLY_ONE_MAIN_ELEMENT";
|
|
450
|
+
readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
|
|
444
451
|
readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
|
|
445
452
|
readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
|
|
446
453
|
readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
|
|
@@ -2738,6 +2745,8 @@ export declare interface CVVAppConfig extends BaseElementAppConfig {
|
|
|
2738
2745
|
* @internal 内部联调使用,生产环境传递无效
|
|
2739
2746
|
*/
|
|
2740
2747
|
_requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
|
|
2748
|
+
/** @internal Elements2 preload grouping data. */
|
|
2749
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
2741
2750
|
/**
|
|
2742
2751
|
* @description 语言配置
|
|
2743
2752
|
*/
|
|
@@ -3719,6 +3728,8 @@ export declare interface ExpressAppConfig extends BaseElementAppConfig {
|
|
|
3719
3728
|
locale?: string;
|
|
3720
3729
|
/** @internal PayPal v6 core script environment injected from the element env. */
|
|
3721
3730
|
_paypalSdkEnvironment?: 'sandbox' | 'prod';
|
|
3731
|
+
/** @internal Elements2 preload grouping data. */
|
|
3732
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
3722
3733
|
/**
|
|
3723
3734
|
* 是否运行在 Native App 的 WebView 中。
|
|
3724
3735
|
* 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
|
|
@@ -5244,6 +5255,8 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
|
|
|
5244
5255
|
* @description 环境配置,默认为prod
|
|
5245
5256
|
*/
|
|
5246
5257
|
env?: 'sandbox' | 'prod';
|
|
5258
|
+
/** Starts best-effort Elements2 resource preload without delaying loadAntom. */
|
|
5259
|
+
preload?: AntomPreloadConfig;
|
|
5247
5260
|
}
|
|
5248
5261
|
|
|
5249
5262
|
/**
|
|
@@ -7852,6 +7865,8 @@ export declare interface PaymentAppConfig extends BaseElementAppConfig {
|
|
|
7852
7865
|
merchantId?: string;
|
|
7853
7866
|
paymentMethodType?: string;
|
|
7854
7867
|
};
|
|
7868
|
+
/** @internal Elements2 preload grouping data. */
|
|
7869
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
7855
7870
|
/**
|
|
7856
7871
|
* @internal 内部使用,无需用户传递,高度信息
|
|
7857
7872
|
*/
|
|
@@ -8295,6 +8310,33 @@ declare interface PaymentMethodView {
|
|
|
8295
8310
|
* @description 分期银行信息列表
|
|
8296
8311
|
*/
|
|
8297
8312
|
supportIppBankList?: FrontSupportIppBank[];
|
|
8313
|
+
/**
|
|
8314
|
+
* @description consult 是否打标该支付方式支持代扣(tokenPay)。
|
|
8315
|
+
*
|
|
8316
|
+
* <p>来源 iexpprod {@code PaymentOption.supportTokenPay}(Boolean, 默认 false), 仅当 iexpfront 显式传
|
|
8317
|
+
* {@code PaymentFactor.markSupportTokenPay=true} 时 iexpprod 才会打标。 sdkQuery 内部流转字段。
|
|
8318
|
+
*/
|
|
8319
|
+
supportTokenPay?: boolean;
|
|
8320
|
+
/**
|
|
8321
|
+
* @description tokenized 模式, 取值 EASYSAFEPAY / TOKENIZEDPAY;null 或缺失表示不支持。
|
|
8322
|
+
*
|
|
8323
|
+
* <p>sdkQuery 响应下发, submitPayByPaymentSession 由 SDK 原值回传; 服务端不信任前端回传值, 必须与会话上下文比对。
|
|
8324
|
+
*/
|
|
8325
|
+
supportTokenizedMode?: 'EASYSAFEPAY' | 'TOKENIZEDPAY' | null;
|
|
8326
|
+
/**
|
|
8327
|
+
* @description 用户是否选择开启 token 支付(首次支付/授权场景的入口标识)。
|
|
8328
|
+
*
|
|
8329
|
+
* <p>submitPayByPaymentSession 请求入参, 由前端上报。
|
|
8330
|
+
*/
|
|
8331
|
+
enableTokenPay?: boolean;
|
|
8332
|
+
/**
|
|
8333
|
+
* @description token(accessToken) 状态, 取值 ACTIVE / INACTIVE, 对齐 iexpprod facade {@code
|
|
8334
|
+
* AlipayAccessTokenStatusEnum}。
|
|
8335
|
+
*
|
|
8336
|
+
* <p>sdkQuery 响应下发, 取 {@code PaymentMethodTokenDetail.alipayAccessTokenStatus}; 首次支付(无
|
|
8337
|
+
* tokenDetail)不下发。
|
|
8338
|
+
*/
|
|
8339
|
+
paymentMethodIdStatus?: 'ACTIVE' | 'INACTIVE' | null;
|
|
8298
8340
|
}
|
|
8299
8341
|
|
|
8300
8342
|
declare interface PaymentOption {
|
|
@@ -8418,6 +8460,14 @@ declare interface PaymentOption {
|
|
|
8418
8460
|
* @description 支付支持的交互方式
|
|
8419
8461
|
*/
|
|
8420
8462
|
interactionTypes?: string[];
|
|
8463
|
+
/**
|
|
8464
|
+
* @description 支付方式是否支持代扣(token pay)
|
|
8465
|
+
* <p>
|
|
8466
|
+
* 仅当请求侧 PaymentFactor.markSupportTokenPay=true 时才可能被置为 true;
|
|
8467
|
+
* 默认 false, 未打标时与现状完全一致, 向后兼容。
|
|
8468
|
+
* @default false
|
|
8469
|
+
*/
|
|
8470
|
+
supportTokenPay?: boolean;
|
|
8421
8471
|
}
|
|
8422
8472
|
|
|
8423
8473
|
declare interface PaymentQuoteInfo {
|
|
@@ -8709,6 +8759,22 @@ declare interface PollingSetting {
|
|
|
8709
8759
|
pollingTimes?: string;
|
|
8710
8760
|
}
|
|
8711
8761
|
|
|
8762
|
+
/** @internal Telemetry context passed to Elements2 through the existing handshake. */
|
|
8763
|
+
export declare interface PreloadTelemetryContext {
|
|
8764
|
+
requested: boolean;
|
|
8765
|
+
phaseAtElementCreate: 'not_requested' | 'resolving' | 'running' | 'critical_completed' | 'failed' | 'skipped';
|
|
8766
|
+
leadTimeMs?: number;
|
|
8767
|
+
criticalDurationMs?: number;
|
|
8768
|
+
taskId?: string;
|
|
8769
|
+
preconnectedRegions?: readonly ('SG' | 'US' | 'DE')[];
|
|
8770
|
+
preconnectionMode?: 'configured' | 'regional';
|
|
8771
|
+
actualRegion?: string;
|
|
8772
|
+
predictionResult?: 'hit' | 'miss';
|
|
8773
|
+
preconnectionStatus?: 'running' | 'completed' | 'partial_failed' | 'failed';
|
|
8774
|
+
preconnectionLeadTimeMs?: number;
|
|
8775
|
+
preconnectionReadyBeforeFirstRpc?: boolean;
|
|
8776
|
+
}
|
|
8777
|
+
|
|
8712
8778
|
declare interface PromotionDetail {
|
|
8713
8779
|
/**
|
|
8714
8780
|
* @description promotion amount for mobile view
|
|
@@ -25400,6 +25466,8 @@ export declare interface VaultingAppConfig extends BaseElementAppConfig {
|
|
|
25400
25466
|
* @internal 内部联调使用,生产环境传递无效
|
|
25401
25467
|
*/
|
|
25402
25468
|
_requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
|
|
25469
|
+
/** @internal Elements2 preload grouping data. */
|
|
25470
|
+
preloadTelemetryContext?: PreloadTelemetryContext;
|
|
25403
25471
|
}
|
|
25404
25472
|
|
|
25405
25473
|
export declare type VaultingAppearance = PickAntomAppearance<VaultingAppearanceProps>;
|