@alipay/ams-checkout 0.0.1763539719-dev.0 → 0.0.1763711027-dev.1
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 -0
- package/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/index.js +8 -8
- package/esm/constant/auto-debit.js +15 -0
- package/esm/constant/element.js +30 -0
- package/esm/constant/index.js +3 -0
- package/esm/core/component/element/elementProcessor/addressProcessor.js +2 -3
- package/esm/core/component/element/elementProcessor/authProcessor.js +2 -3
- package/esm/core/component/element/elementProcessor/paymentProcessor.js +30 -28
- package/esm/foundation/core/index.js +27 -0
- package/esm/foundation/service/container/index.js +33 -2
- package/esm/foundation/utils/web_app_url_utils.js +10 -15
- package/esm/index.js +19 -339
- package/esm/loader/Proxy.js +364 -0
- package/esm/loader/constant.js +36 -0
- package/esm/loader/index.js +23 -0
- package/esm/loader/utils/common.js +63 -0
- package/esm/loader/utils/debugger.js +15 -0
- package/esm/loader/utils/loadSDK.js +92 -0
- package/esm/loader/utils/logger.js +59 -0
- package/esm/loader/utils/proxyPerformance.js +66 -0
- package/esm/main.js +329 -0
- package/esm/plugin/component/cashierApp.js +7 -4
- package/esm/util/integrationType.js +48 -0
- package/esm/util/logger.js +1 -1
- package/package.json +7 -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/easysafepay.d.ts +0 -16
- package/esm/constant/index.d.ts +0 -341
- 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 -41
- 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 -116
- package/esm/index.d.ts +0 -54
- 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/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 -64
- 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
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare enum PaymentActionEnum {
|
|
2
|
-
optional_init = "plugin_optional_init"
|
|
3
|
-
}
|
|
4
|
-
export declare enum ApplePayActionEnum {
|
|
5
|
-
canMakePayments = "plugin_CARD_APPLE_PAY_available",
|
|
6
|
-
createComponent = "plugin_CARD_APPLE_PAY_createComponent",
|
|
7
|
-
destroyComponent = "plugin_CARD_APPLE_PAY_destroyComponent"
|
|
8
|
-
}
|
|
9
|
-
export declare enum PaypalActionEnum {
|
|
10
|
-
mountComponent = "plugin_Paypal_mountComponent",
|
|
11
|
-
destroyComponent = "plugin_Paypal_destroyComponent"
|
|
12
|
-
}
|
|
13
|
-
export declare enum SDKCallbackActionEnum {
|
|
14
|
-
onEventCallback = "onEventCallback"
|
|
15
|
-
}
|
|
16
|
-
export declare enum SecuritySDKActionEnum {
|
|
17
|
-
getSecurityDeviceId = "getSecurityDeviceId"
|
|
18
|
-
}
|
|
19
|
-
export declare enum TrackerActionEnum {
|
|
20
|
-
/**
|
|
21
|
-
* level: string info/error
|
|
22
|
-
* basic: json object
|
|
23
|
-
* extra: json object
|
|
24
|
-
*/
|
|
25
|
-
reportAnalytics = "reportAnalytics"
|
|
26
|
-
}
|
|
27
|
-
export declare enum ComponentActiontEnum {
|
|
28
|
-
onDestory = "onDestory"
|
|
29
|
-
}
|
|
30
|
-
export declare enum RequestActiontEnum {
|
|
31
|
-
onDestory = "httpRequest"
|
|
32
|
-
}
|
|
33
|
-
export declare enum LoadingActiontEnum {
|
|
34
|
-
showLoading = "showLoading",
|
|
35
|
-
dismissLoading = "dismissLoading"
|
|
36
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IoptionsParams } from '../../types';
|
|
2
|
-
import { AMSComponent } from './index';
|
|
3
|
-
export declare class AddressComponent extends AMSComponent {
|
|
4
|
-
constructor(options: IoptionsParams & {
|
|
5
|
-
appVersion: string;
|
|
6
|
-
});
|
|
7
|
-
getValue(hasValidate?: boolean): Promise<unknown>;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadChannelPneumaticControl(paymentSessionFactor: any, logger: any): Promise<unknown>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IcreateComponent, IoptionsParams } from '../../../types';
|
|
2
|
-
import { Logger } from '../../../util/logger';
|
|
3
|
-
type LOCAL_URL = string;
|
|
4
|
-
export type CKPEmbeddedAppEnv = 'dev' | 'sit' | 'pre' | 'prod';
|
|
5
|
-
export type CKPEmbeddedEventType = 'SDK_PAYMENT_SUCCESSFUL' | 'SDK_PAYMENT_FAIL' | 'SDK_PAYMENT_CANCEL' | 'SDK_PAYMENT_CLICK_BACK_TO_MERCHANT';
|
|
6
|
-
export declare const getCKPPageAddress: (env: IoptionsParams['environment'] | LOCAL_URL) => string;
|
|
7
|
-
export declare class AMSCheckoutPage {
|
|
8
|
-
logger: Logger;
|
|
9
|
-
private _instanceId;
|
|
10
|
-
private iframe;
|
|
11
|
-
private originOptions;
|
|
12
|
-
private readonly APP_IFRAME_ID;
|
|
13
|
-
private eventListener?;
|
|
14
|
-
constructor(options: Pick<IoptionsParams, 'environment' | 'locale' | 'onEventCallback'>);
|
|
15
|
-
private generateIframeSrc;
|
|
16
|
-
private eventListenerWrapper;
|
|
17
|
-
private addListener;
|
|
18
|
-
private removeListener;
|
|
19
|
-
private dispatchToApp;
|
|
20
|
-
/**
|
|
21
|
-
* 挂载组件
|
|
22
|
-
*/
|
|
23
|
-
mountComponent(params: Pick<IcreateComponent, 'sessionData'>, selector: string): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* 卸载组件
|
|
26
|
-
*/
|
|
27
|
-
unmount(): void;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LogService } from '../../../../foundation/service/log';
|
|
2
|
-
export declare class EventCenter {
|
|
3
|
-
private activeEvents;
|
|
4
|
-
private heartbeatIntervalId;
|
|
5
|
-
private readonly HEARTBEAT_INTERVAL;
|
|
6
|
-
private uniqueId;
|
|
7
|
-
private readonly logger;
|
|
8
|
-
constructor({ logger }: {
|
|
9
|
-
logger: LogService;
|
|
10
|
-
});
|
|
11
|
-
/**
|
|
12
|
-
* 注册事件
|
|
13
|
-
* @param {string} functionName 函数名称
|
|
14
|
-
* @returns {string} 返回事件起始ID
|
|
15
|
-
*/
|
|
16
|
-
registerEvent(functionName: string, sessionData?: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* 结束事件
|
|
19
|
-
* @param startId 事件起始ID
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
endEvent(startId: string, extra?: any): void;
|
|
23
|
-
private startHeartbeat;
|
|
24
|
-
private stopHeartbeat;
|
|
25
|
-
private sendHeartbeat;
|
|
26
|
-
private sendLog;
|
|
27
|
-
private buildId;
|
|
28
|
-
private getEventName;
|
|
29
|
-
private buildIdFromStart;
|
|
30
|
-
private getEventNameFromStart;
|
|
31
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import BaseElementProcessor from '../elementProcessor/baseElementProcessor';
|
|
2
|
-
import { ContainerService } from './../../../../foundation/service/container';
|
|
3
|
-
import { EventCenter } from './../../../../foundation/service/event-center';
|
|
4
|
-
export declare enum IContainerStatus {
|
|
5
|
-
UNINIT = "UNINIT",
|
|
6
|
-
INITING = "INITING",
|
|
7
|
-
READY = "READY",
|
|
8
|
-
IN_BIZ_FLOW = "IN_BIZ_FLOW",
|
|
9
|
-
DESTROYED = "DESTROYED"
|
|
10
|
-
}
|
|
11
|
-
export declare class ContainerController {
|
|
12
|
-
private containerStatus;
|
|
13
|
-
private instanceId;
|
|
14
|
-
private containerService;
|
|
15
|
-
private eventService;
|
|
16
|
-
private containerElement;
|
|
17
|
-
private _globalData?;
|
|
18
|
-
constructor({ type, instanceId, selector, processor, options, }: {
|
|
19
|
-
type: string;
|
|
20
|
-
instanceId: string;
|
|
21
|
-
selector: string;
|
|
22
|
-
processor: BaseElementProcessor;
|
|
23
|
-
options: any;
|
|
24
|
-
});
|
|
25
|
-
private addEventListener;
|
|
26
|
-
getContainerElement(): HTMLDivElement;
|
|
27
|
-
createWebLaunchPromise(): Promise<unknown>;
|
|
28
|
-
switchContainerStatus(status: IContainerStatus): void;
|
|
29
|
-
getContainerStatus(): IContainerStatus;
|
|
30
|
-
getEventService(): EventCenter;
|
|
31
|
-
destroy(): void;
|
|
32
|
-
getContainerService(): ContainerService;
|
|
33
|
-
getInstanceId(): string;
|
|
34
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementType } from '../type';
|
|
2
|
-
import { ContainerController } from './containerService';
|
|
3
|
-
export declare class ElementContainerService {
|
|
4
|
-
private containerServices;
|
|
5
|
-
private instanceId;
|
|
6
|
-
constructor({ instanceId }: {
|
|
7
|
-
instanceId: any;
|
|
8
|
-
});
|
|
9
|
-
addContainerService(name: ElementType, service: ContainerController): void;
|
|
10
|
-
getContainerService(name: ElementType): ContainerController | undefined;
|
|
11
|
-
getContainerServices(): Map<ElementType, ContainerController>;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
mount({ type, selector, processor, options }: {
|
|
14
|
-
type: any;
|
|
15
|
-
selector: any;
|
|
16
|
-
processor: any;
|
|
17
|
-
options: any;
|
|
18
|
-
}): void;
|
|
19
|
-
getEventService(name: ElementType): import("../../../../foundation/service/event-center").EventCenter;
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AddressMountOptions, ICommonApiResponse, IElementOptions, IPaymentApiResponse, LinkAuthMountOptions, PaymentMountOptions } from '../type';
|
|
2
|
-
declare class ElementController {
|
|
3
|
-
private options;
|
|
4
|
-
private elementContainer;
|
|
5
|
-
private serviceMap;
|
|
6
|
-
private loading;
|
|
7
|
-
private elementProcessors;
|
|
8
|
-
private initTimeout;
|
|
9
|
-
private elementContainerService;
|
|
10
|
-
private onStatusChangeCallback;
|
|
11
|
-
private submitPayPromise;
|
|
12
|
-
private elementEventCenter;
|
|
13
|
-
constructor(options: IElementOptions);
|
|
14
|
-
private initService;
|
|
15
|
-
private initElementProcessors;
|
|
16
|
-
private onEventCallback;
|
|
17
|
-
/**
|
|
18
|
-
* 处理初始化错误的方法
|
|
19
|
-
*/
|
|
20
|
-
private handleInitializationError;
|
|
21
|
-
private handleMountError;
|
|
22
|
-
private clearAndSetInitTimeout;
|
|
23
|
-
private setInitTimeout;
|
|
24
|
-
private initializeAndMountProcessor;
|
|
25
|
-
private handleStartBizFlowError;
|
|
26
|
-
mount(renderOptions: LinkAuthMountOptions | AddressMountOptions | PaymentMountOptions, sdkSelector: string): Promise<ICommonApiResponse>;
|
|
27
|
-
private onValidateFunc;
|
|
28
|
-
private onValidateAndSubmitPay;
|
|
29
|
-
/**
|
|
30
|
-
* 25/09/08 新增商户主动校验api
|
|
31
|
-
* @returns {Promise<{isValid: boolean}>}
|
|
32
|
-
*/
|
|
33
|
-
validateFields(): Promise<{
|
|
34
|
-
isValid: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
submitPayment(): Promise<IPaymentApiResponse>;
|
|
37
|
-
private changeLoading;
|
|
38
|
-
private addEventListener;
|
|
39
|
-
private sendRequestAndWaitWebLaunch;
|
|
40
|
-
private getErrorFromResponse;
|
|
41
|
-
private areAllContainersReady;
|
|
42
|
-
private sendReady;
|
|
43
|
-
updatePayment(paymentSessionData: any): Promise<unknown>;
|
|
44
|
-
private destroyHandle;
|
|
45
|
-
destroy(): void;
|
|
46
|
-
private setControllerStatusOrView;
|
|
47
|
-
}
|
|
48
|
-
export default ElementController;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import BaseElementProcessor from './baseElementProcessor';
|
|
2
|
-
declare class AddressProcessor extends BaseElementProcessor {
|
|
3
|
-
onReady(extraParam: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}): void;
|
|
6
|
-
parameterInitAndCheck(): void;
|
|
7
|
-
beforeMount(): void;
|
|
8
|
-
preload(): void;
|
|
9
|
-
generateIframeSrc({ link, instanceId }: {
|
|
10
|
-
link: any;
|
|
11
|
-
instanceId: any;
|
|
12
|
-
}): string;
|
|
13
|
-
obtainData(): any;
|
|
14
|
-
getValue(hasValidate?: boolean): any;
|
|
15
|
-
update({ data, paymentSessionData }: {
|
|
16
|
-
data: any;
|
|
17
|
-
paymentSessionData: any;
|
|
18
|
-
}): void;
|
|
19
|
-
}
|
|
20
|
-
export default AddressProcessor;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import BaseElementProcessor from './baseElementProcessor';
|
|
2
|
-
declare class AuthProcessor extends BaseElementProcessor {
|
|
3
|
-
onReady(extraParam: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}): void;
|
|
6
|
-
parameterInitAndCheck(): void;
|
|
7
|
-
beforeMount(): void;
|
|
8
|
-
preload(): void;
|
|
9
|
-
generateIframeSrc({ link, instanceId }: {
|
|
10
|
-
link: any;
|
|
11
|
-
instanceId: any;
|
|
12
|
-
}): string;
|
|
13
|
-
obtainData(): any;
|
|
14
|
-
getValue(): any;
|
|
15
|
-
update({ data, paymentSessionData }: {
|
|
16
|
-
data: any;
|
|
17
|
-
paymentSessionData: any;
|
|
18
|
-
}): void;
|
|
19
|
-
}
|
|
20
|
-
export default AuthProcessor;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AntomSDKCore } from "../../../../foundation/core";
|
|
2
|
-
import { Ianalytics, Ienv } from '../../../../types';
|
|
3
|
-
import { EventCenter } from './../../../../foundation/service/event-center';
|
|
4
|
-
interface ElementProcessorOptions {
|
|
5
|
-
env: Ienv;
|
|
6
|
-
locale: string;
|
|
7
|
-
networkMode: string;
|
|
8
|
-
mode: string;
|
|
9
|
-
analytics?: Ianalytics;
|
|
10
|
-
product: string;
|
|
11
|
-
}
|
|
12
|
-
declare abstract class BaseElementProcessor {
|
|
13
|
-
elementContainer: AntomSDKCore;
|
|
14
|
-
instanceId: string;
|
|
15
|
-
options: ElementProcessorOptions;
|
|
16
|
-
obtainDataRes: any;
|
|
17
|
-
elementUrl: string;
|
|
18
|
-
eventCenter: EventCenter;
|
|
19
|
-
eventListener: {};
|
|
20
|
-
abstract beforeMount(): void;
|
|
21
|
-
abstract preload(): void;
|
|
22
|
-
abstract generateIframeSrc({ instanceId, link }: {
|
|
23
|
-
instanceId: any;
|
|
24
|
-
link: any;
|
|
25
|
-
}): string;
|
|
26
|
-
abstract obtainData(): any;
|
|
27
|
-
abstract getValue(): any;
|
|
28
|
-
abstract onReady(extraParam: {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}): void;
|
|
31
|
-
constructor(options: any);
|
|
32
|
-
private _setOptions;
|
|
33
|
-
abstract update(data: any): void;
|
|
34
|
-
registerElementContainer(elementContainer: AntomSDKCore): void;
|
|
35
|
-
registerEventCenter(eventCenter: EventCenter): void;
|
|
36
|
-
registerEventListener(event: any, callback: any): void;
|
|
37
|
-
setElementUrl(url: any): void;
|
|
38
|
-
getElementUrl(): string;
|
|
39
|
-
getObtainDataRes(): any;
|
|
40
|
-
}
|
|
41
|
-
export default BaseElementProcessor;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LogService } from "../../../../foundation/service/log";
|
|
2
|
-
import BaseElementProcessor from './baseElementProcessor';
|
|
3
|
-
declare class PaymentProcessor extends BaseElementProcessor {
|
|
4
|
-
private ApplePayService;
|
|
5
|
-
onReady(extraParam: any): void;
|
|
6
|
-
getLogger(): LogService;
|
|
7
|
-
private addEventListener;
|
|
8
|
-
private initApplePaySdk;
|
|
9
|
-
beforeMount(): void;
|
|
10
|
-
preload(): void;
|
|
11
|
-
generateIframeSrc({ link, instanceId }: {
|
|
12
|
-
link: any;
|
|
13
|
-
instanceId: any;
|
|
14
|
-
}): string;
|
|
15
|
-
obtainData(): Promise<any>;
|
|
16
|
-
getValue(): any;
|
|
17
|
-
update({ data, paymentSessionData }: {
|
|
18
|
-
data: any;
|
|
19
|
-
paymentSessionData: any;
|
|
20
|
-
}): void;
|
|
21
|
-
}
|
|
22
|
-
export default PaymentProcessor;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IElementOptions, PaymentMountOptions } from './type';
|
|
2
|
-
export declare class ElementComponent {
|
|
3
|
-
private options;
|
|
4
|
-
private controller;
|
|
5
|
-
constructor(options: IElementOptions);
|
|
6
|
-
updatePayment(paymentSessionData: any): Promise<unknown>;
|
|
7
|
-
mount(renderOptions: PaymentMountOptions, sdkSelector: string): Promise<import("./type").ICommonApiResponse>;
|
|
8
|
-
validateFields(): Promise<{
|
|
9
|
-
isValid: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
submitPayment(): Promise<import("./type").IPaymentApiResponse>;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const sdkAction1: any;
|
|
2
|
-
export declare const sdkAction2: any;
|
|
3
|
-
export declare const sdkAction: any;
|
|
4
|
-
export declare const oneAccount1: any;
|
|
5
|
-
export declare const oneAccount2: any;
|
|
6
|
-
export declare const oneAccount: any;
|
|
7
|
-
export declare const paymentResult: any;
|
|
8
|
-
export declare const submitResult: any;
|
|
9
|
-
export declare const sdkActionUpdate: any;
|
|
10
|
-
export declare const oneAccountUpdate: any;
|