@alipay/ams-checkout 0.0.1730107332-dev.32 → 0.0.1730107332-dev.33
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/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/index.d.ts +7 -7
- package/esm/config/index.js +7 -7
- package/esm/constant/index.d.ts +5 -9
- package/esm/constant/index.js +78 -12
- package/esm/core/component/ckp/index.js +3 -3
- package/esm/core/component/index.d.ts +4 -4
- package/esm/core/component/index.js +14 -14
- package/esm/core/drop-in/index.js +2 -2
- package/esm/core/instance/index.js +9 -9
- package/esm/index.d.ts +6 -8
- package/esm/index.js +64 -60
- package/esm/plugin/applepay/component.js +3 -3
- package/esm/plugin/applepay/service.d.ts +2 -2
- package/esm/plugin/applepay/service.js +2 -2
- package/esm/plugin/component/cashierApp.d.ts +5 -5
- package/esm/plugin/component/cashierApp.js +3 -3
- package/esm/plugin/component/channel.d.ts +3 -3
- package/esm/plugin/component/component.inline.style.d.ts +3 -3
- package/esm/plugin/component/component.inline.style.js +4 -4
- package/esm/plugin/component/component.popup.style.d.ts +6 -6
- package/esm/plugin/component/component.popup.style.js +6 -6
- package/esm/plugin/component/index.d.ts +7 -7
- package/esm/plugin/component/index.js +35 -35
- package/esm/plugin/const.js +5 -5
- package/esm/plugin/drop-in/index.d.ts +5 -5
- package/esm/plugin/drop-in/index.js +7 -7
- package/esm/plugin/type.d.ts +3 -3
- package/esm/types/index.d.ts +38 -65
- package/esm/types/index.js +59 -64
- package/esm/util/createIframeNode.d.ts +2 -2
- package/esm/util/createIframeNode.js +3 -3
- package/esm/util/getBackScheme.js +3 -95
- package/esm/util/security.d.ts +2 -2
- package/esm/util/security.js +2 -2
- package/esm/util/ua/index.d.ts +2 -0
- package/esm/util/ua/index.js +2 -0
- package/esm/util/ua/isAndroid.d.ts +4 -0
- package/esm/util/ua/isAndroid.js +7 -0
- package/esm/util/ua/isIOS.d.ts +4 -0
- package/esm/util/ua/isIOS.js +7 -0
- package/package.json +1 -1
- package/esm/component/channel.d.ts +0 -19
- package/esm/component/channel.js +0 -80
- package/esm/component/component.inline.style.d.ts +0 -10
- package/esm/component/component.inline.style.js +0 -121
- package/esm/component/component.popup.style.d.ts +0 -23
- package/esm/component/component.popup.style.js +0 -190
- package/esm/component/popupWindow.style.d.ts +0 -11
- package/esm/component/popupWindow.style.js +0 -121
- package/esm/foundation/core/index.d.ts +0 -26
- package/esm/foundation/core/index.js +0 -366
- package/esm/foundation/index.d.ts +0 -74
- package/esm/foundation/index.js +0 -42
- package/esm/foundation/product-processor/easysafepay/deps.d.ts +0 -18
- package/esm/foundation/product-processor/easysafepay/deps.js +0 -12
- package/esm/foundation/product-processor/easysafepay/index.d.ts +0 -26
- package/esm/foundation/product-processor/easysafepay/index.js +0 -471
- package/esm/foundation/service/api-bus/ability/callback.d.ts +0 -9
- package/esm/foundation/service/api-bus/ability/callback.js +0 -55
- package/esm/foundation/service/api-bus/ability/globalData.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/globalData.js +0 -89
- package/esm/foundation/service/api-bus/ability/request.d.ts +0 -10
- package/esm/foundation/service/api-bus/ability/request.js +0 -151
- package/esm/foundation/service/api-bus/ability/security.d.ts +0 -12
- package/esm/foundation/service/api-bus/ability/security.js +0 -161
- package/esm/foundation/service/api-bus/ability/tracker.d.ts +0 -9
- package/esm/foundation/service/api-bus/ability/tracker.js +0 -80
- package/esm/foundation/service/api-bus/busManager.d.ts +0 -127
- package/esm/foundation/service/api-bus/busManager.js +0 -398
- package/esm/foundation/service/api-bus/index.d.ts +0 -20
- package/esm/foundation/service/api-bus/index.js +0 -88
- package/esm/foundation/service/api-bus/interface.d.ts +0 -48
- package/esm/foundation/service/api-bus/interface.js +0 -54
- package/esm/foundation/service/container/index.d.ts +0 -28
- package/esm/foundation/service/container/index.js +0 -256
- package/esm/foundation/service/container/popup.d.ts +0 -17
- package/esm/foundation/service/container/popup.js +0 -103
- package/esm/foundation/service/container/utils.d.ts +0 -7
- package/esm/foundation/service/container/utils.js +0 -48
- package/esm/foundation/service/event-center.d.ts +0 -74
- package/esm/foundation/service/event-center.js +0 -213
- package/esm/foundation/service/global-data/index.d.ts +0 -11
- package/esm/foundation/service/global-data/index.js +0 -68
- package/esm/foundation/service/index.d.ts +0 -19
- package/esm/foundation/service/index.js +0 -82
- package/esm/foundation/service/log/index.d.ts +0 -43
- package/esm/foundation/service/log/index.js +0 -235
- package/esm/foundation/service/log/types.d.ts +0 -32
- package/esm/foundation/service/log/types.js +0 -1
- package/esm/foundation/service/requester/deps.d.ts +0 -17
- package/esm/foundation/service/requester/deps.js +0 -11
- package/esm/foundation/service/requester/requester.d.ts +0 -22
- package/esm/foundation/service/requester/requester.js +0 -214
- package/esm/foundation/service/security/index.d.ts +0 -28
- package/esm/foundation/service/security/index.js +0 -270
- package/esm/foundation/service/security/security.d.ts +0 -33
- package/esm/foundation/service/security/security.js +0 -182
- package/esm/foundation/utils/gray_scale_utils.d.ts +0 -7
- package/esm/foundation/utils/gray_scale_utils.js +0 -40
- package/esm/foundation/utils/payment_context_utils.d.ts +0 -13
- package/esm/foundation/utils/payment_context_utils.js +0 -57
- package/esm/foundation/utils/payment_product_utils.d.ts +0 -13
- package/esm/foundation/utils/payment_product_utils.js +0 -38
- package/esm/foundation/utils/redirect_utils.d.ts +0 -11
- package/esm/foundation/utils/redirect_utils.js +0 -253
- package/esm/foundation/utils/system_events.d.ts +0 -4
- package/esm/foundation/utils/system_events.js +0 -71
- package/esm/foundation/utils/web_app_url_utils.d.ts +0 -46
- package/esm/foundation/utils/web_app_url_utils.js +0 -112
@@ -21,7 +21,7 @@ import { v4 as uuid } from 'uuid';
|
|
21
21
|
import { sdkVersion } from "../../config";
|
22
22
|
import { COMPONENTPLUGINID, COMPONENT_CLOSE_BLOCK_ID, COMPONENT_CONTAINER_ID, COMPONENT_RETENTION_ID, COMPONENT_SECTION_ID, ERRORMESSAGE, EVENT, LISTENER_PREFIX, LOADING_ID, LOADTIME_LIMIT, MOCKUP_ID, POPUP_LOADTIME_LOG_LIMIT, TIMEOUT_WEB_APP_HEART_BEAT, TIME_DELAY_SEND_HEART_BEAT } from "../../constant";
|
23
23
|
import { queryPaymentInfo, submitPayInfo } from "../../service";
|
24
|
-
import {
|
24
|
+
import { componentSignEnum, eventCodeEnum, messageName, platformEnum, productSceneEnum, RedirectType, renderDisplayTypeEnum, targetEnum } from "../../types";
|
25
25
|
import { getType, isJsonString, isPC } from "../../util";
|
26
26
|
import { isLocalMock } from "../../util/mock";
|
27
27
|
import { matchVersion } from "../../util/versionCompare";
|
@@ -54,9 +54,9 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
54
54
|
_defineProperty(this, "_actionQueryPromise", null);
|
55
55
|
_defineProperty(this, "_actionSubmitPromise", null);
|
56
56
|
_defineProperty(this, "_renderParams", null);
|
57
|
-
_defineProperty(this, "_componentSign",
|
57
|
+
_defineProperty(this, "_componentSign", componentSignEnum.NONE);
|
58
58
|
_defineProperty(this, "_appLocationSearch", void 0);
|
59
|
-
_defineProperty(this, "_renderDisplayType",
|
59
|
+
_defineProperty(this, "_renderDisplayType", renderDisplayTypeEnum.popup);
|
60
60
|
_defineProperty(this, "_multipleCallbackEvents", void 0);
|
61
61
|
_defineProperty(this, "_isAppWebview", void 0);
|
62
62
|
_defineProperty(this, "_merchantAppointParam", void 0);
|
@@ -70,7 +70,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
70
70
|
this.createPreloadIframeNode = function () {
|
71
71
|
return Promise.resolve();
|
72
72
|
};
|
73
|
-
this.platform = isPC() ?
|
73
|
+
this.platform = isPC() ? platformEnum.desktop : platformEnum.mobile;
|
74
74
|
this._isRetention = true;
|
75
75
|
this._appLocationSearch = '';
|
76
76
|
this._performanceData.push({
|
@@ -105,7 +105,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
105
105
|
var paymentSessionMetaData = (_this$_renderParams = this._renderParams) === null || _this$_renderParams === void 0 ? void 0 : _this$_renderParams.paymentSessionMetaData;
|
106
106
|
var paymentSessionConfig = paymentSessionMetaData.paymentSessionConfig;
|
107
107
|
this.AMSSDK.logger.setMedta({
|
108
|
-
platform: this.platform ===
|
108
|
+
platform: this.platform === platformEnum.desktop ? 'PC' : 'WAP',
|
109
109
|
// PC/WAP,
|
110
110
|
sdkVersion: sdkVersion,
|
111
111
|
webAppVersion: this._appVersion,
|
@@ -142,8 +142,8 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
142
142
|
var _this$_renderParams4,
|
143
143
|
_this = this;
|
144
144
|
var product = (_this$_renderParams4 = this._renderParams) === null || _this$_renderParams4 === void 0 || (_this$_renderParams4 = _this$_renderParams4.paymentSessionMetaData) === null || _this$_renderParams4 === void 0 || (_this$_renderParams4 = _this$_renderParams4.paymentSessionConfig) === null || _this$_renderParams4 === void 0 ? void 0 : _this$_renderParams4.productScene;
|
145
|
-
if (
|
146
|
-
if (
|
145
|
+
if (componentSignEnum.CASHIER_PAYMENT_APM === this._componentSign) return;
|
146
|
+
if (componentSignEnum.CASHIER_PAYMENT_BANK === this._componentSign) {
|
147
147
|
this.AMSSDK.logger.logInfo({
|
148
148
|
title: 'sdk_event_security_unneeded_scenarios'
|
149
149
|
}, {
|
@@ -269,7 +269,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
269
269
|
if ((_renderParams = renderParams) !== null && _renderParams !== void 0 && _renderParams.selector) this._selector = renderParams.selector;
|
270
270
|
this._renderDisplayType = renderParams.renderDisplayType;
|
271
271
|
this._isAppWebview = renderParams.isAppWebview;
|
272
|
-
var insertedNode = this._renderDisplayType ===
|
272
|
+
var insertedNode = this._renderDisplayType === renderDisplayTypeEnum.inline ? "#".concat(COMPONENT_CONTAINER_ID) : this._selector;
|
273
273
|
this.initLoggerMeta();
|
274
274
|
this.initSecurity();
|
275
275
|
this._performanceData.push({
|
@@ -301,14 +301,14 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
301
301
|
version: productSceneVersion,
|
302
302
|
product: this.AMSSDK.options.product
|
303
303
|
}).send();
|
304
|
-
if (
|
305
|
-
if (productScene ===
|
304
|
+
if (componentSignEnum.EASY_PAY_WALLET === this._componentSign) {
|
305
|
+
if (productScene === productSceneEnum.EASY_PAY && productSceneVersion === '1.0' && !autoDebitWithToken && requireFastSdk) {
|
306
306
|
// EASY_PAY 1.0首次支付,requireFastSdk为true,不需要接口请求
|
307
307
|
this.handleAuthUrlInfo(authUrlInfo);
|
308
308
|
return;
|
309
309
|
}
|
310
310
|
}
|
311
|
-
if (
|
311
|
+
if (componentSignEnum.AUTO_DEBIT_WALLET === this._componentSign) {
|
312
312
|
var _this$_renderParams9, _action$web, _action$wap;
|
313
313
|
var action = ((_this$_renderParams9 = this._renderParams) === null || _this$_renderParams9 === void 0 || (_this$_renderParams9 = _this$_renderParams9.paymentSessionMetaData) === null || _this$_renderParams9 === void 0 ? void 0 : _this$_renderParams9.action) || {};
|
314
314
|
var signType = isPC() ? action === null || action === void 0 || (_action$web = action.web) === null || _action$web === void 0 ? void 0 : _action$web.signType : action === null || action === void 0 || (_action$wap = action.wap) === null || _action$wap === void 0 ? void 0 : _action$wap.signType;
|
@@ -319,7 +319,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
319
319
|
return;
|
320
320
|
}
|
321
321
|
}
|
322
|
-
if (
|
322
|
+
if (componentSignEnum.AUTO_DEBIT_PAY_WALLET === this._componentSign) {
|
323
323
|
if (requireFastSdk === true && productSceneVersion === '1.0') {
|
324
324
|
// REDIRECT,requireFastSdk为true,不需要接口请求
|
325
325
|
this.handleAuthUrlInfo(authUrlInfo);
|
@@ -334,12 +334,12 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
334
334
|
this.dispatchToSDK(EVENT.eventCallback.name, {
|
335
335
|
code: eventCodeEnum.SDK_START_OF_LOADING
|
336
336
|
});
|
337
|
-
if (this._renderDisplayType ===
|
337
|
+
if (this._renderDisplayType === renderDisplayTypeEnum.inline) {
|
338
338
|
var container = createInlineBaseElement(this._selector);
|
339
339
|
if (container) this.renderInlineLoading(renderParams, container);
|
340
340
|
insertStyleSheet();
|
341
341
|
}
|
342
|
-
if (this._renderDisplayType ===
|
342
|
+
if (this._renderDisplayType === renderDisplayTypeEnum.popup) {
|
343
343
|
var _this$_renderParams10;
|
344
344
|
createBaseElement(this.platform, this.closeBtnFunc.bind(this));
|
345
345
|
createRetentionPopup(this.platform, this.hideRetentionPopupFunc.bind(this), this.retentionPopupLeaveFunc.bind(this));
|
@@ -382,7 +382,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
382
382
|
key: "setParameterDefaultValues",
|
383
383
|
value: function setParameterDefaultValues(componentSign, renderParams) {
|
384
384
|
var newParams = Object.assign({}, renderParams);
|
385
|
-
if (componentSign ===
|
385
|
+
if (componentSign === componentSignEnum.VAULTING_CARD) {
|
386
386
|
var _newParams$notRedirec;
|
387
387
|
newParams.notRedirectAfterComplete = (_newParams$notRedirec = newParams === null || newParams === void 0 ? void 0 : newParams.notRedirectAfterComplete) !== null && _newParams$notRedirec !== void 0 ? _newParams$notRedirec : true;
|
388
388
|
}
|
@@ -488,11 +488,11 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
488
488
|
success: true
|
489
489
|
}));
|
490
490
|
case 9:
|
491
|
-
if (
|
491
|
+
if (componentSignEnum.ELEMENT_PAYMENT === _this5._componentSign) {
|
492
492
|
params.paymentSessionConfig = handlePaymentSessionConfig(params.paymentSessionConfig);
|
493
493
|
}
|
494
494
|
/** 地址组件跳过接口查询 */
|
495
|
-
if (!(
|
495
|
+
if (!(componentSignEnum.ELEMENT_ADDRESS === _this5._componentSign)) {
|
496
496
|
_context2.next = 12;
|
497
497
|
break;
|
498
498
|
}
|
@@ -501,7 +501,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
501
501
|
success: true
|
502
502
|
}));
|
503
503
|
case 12:
|
504
|
-
if (!(
|
504
|
+
if (!(componentSignEnum.VAULTING_CARD === _this5._componentSign)) {
|
505
505
|
_context2.next = 24;
|
506
506
|
break;
|
507
507
|
}
|
@@ -549,7 +549,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
549
549
|
success: true
|
550
550
|
}));
|
551
551
|
case 27:
|
552
|
-
if (!(
|
552
|
+
if (!(componentSignEnum.CASHIER_PAYMENT_CARD === _this5._componentSign || componentSignEnum.VAULTING_CARD === _this5._componentSign)) {
|
553
553
|
_context2.next = 33;
|
554
554
|
break;
|
555
555
|
}
|
@@ -564,7 +564,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
564
564
|
};
|
565
565
|
}
|
566
566
|
case 33:
|
567
|
-
if (!(
|
567
|
+
if (!(componentSignEnum.EASY_PAY_WALLET === _this5._componentSign)) {
|
568
568
|
_context2.next = 42;
|
569
569
|
break;
|
570
570
|
}
|
@@ -578,7 +578,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
578
578
|
success: true
|
579
579
|
}));
|
580
580
|
case 37:
|
581
|
-
if (!(productScene ===
|
581
|
+
if (!(productScene === productSceneEnum.EASY_PAY && productSceneVersion === '2.0')) {
|
582
582
|
_context2.next = 39;
|
583
583
|
break;
|
584
584
|
}
|
@@ -592,7 +592,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
592
592
|
case 41:
|
593
593
|
envInfo.deviceId = _context2.sent;
|
594
594
|
case 42:
|
595
|
-
if (!(
|
595
|
+
if (!(componentSignEnum.AUTO_DEBIT_WALLET === _this5._componentSign)) {
|
596
596
|
_context2.next = 52;
|
597
597
|
break;
|
598
598
|
}
|
@@ -642,7 +642,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
642
642
|
responseBody: res
|
643
643
|
}).send();
|
644
644
|
}).catch(function (err) {
|
645
|
-
if ([
|
645
|
+
if ([componentSignEnum.CASHIER_PAYMENT_CARD, componentSignEnum.VAULTING_CARD, componentSignEnum.CASHIER_PAYMENT_APM].includes(_this5._componentSign)) {
|
646
646
|
return resolve({
|
647
647
|
success: false
|
648
648
|
});
|
@@ -696,7 +696,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
696
696
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
697
697
|
while (1) switch (_context3.prev = _context3.next) {
|
698
698
|
case 0:
|
699
|
-
if (!(_this6.AMSSDK.options.product ===
|
699
|
+
if (!(_this6.AMSSDK.options.product === productSceneEnum.ELEMENT_ADDRESS)) {
|
700
700
|
_context3.next = 2;
|
701
701
|
break;
|
702
702
|
}
|
@@ -710,13 +710,13 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
710
710
|
// 新逻辑走 channelBehavior判断
|
711
711
|
shouldSkipSubmitPayInSDK = !channelBehavior.submitPayInSdk;
|
712
712
|
} else {
|
713
|
-
shouldSkipSubmitPayInSDK = !((_this6$_renderParams = _this6._renderParams) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.paymentSessionMetaData) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.action) !== null && _this6$_renderParams !== void 0 && _this6$_renderParams.skipSdkQuery) ||
|
713
|
+
shouldSkipSubmitPayInSDK = !((_this6$_renderParams = _this6._renderParams) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.paymentSessionMetaData) !== null && _this6$_renderParams !== void 0 && (_this6$_renderParams = _this6$_renderParams.action) !== null && _this6$_renderParams !== void 0 && _this6$_renderParams.skipSdkQuery) || componentSignEnum.EASY_PAY_WALLET !== _this6._componentSign;
|
714
714
|
}
|
715
|
-
if (
|
715
|
+
if (componentSignEnum.EASY_PAY_WALLET === _this6._componentSign) {
|
716
716
|
_ref10 = params.paymentSessionConfig || {}, _ref10$productSceneVe = _ref10.productSceneVersion, productSceneVersion = _ref10$productSceneVe === void 0 ? '' : _ref10$productSceneVe, _ref10$productScene = _ref10.productScene, productScene = _ref10$productScene === void 0 ? '' : _ref10$productScene;
|
717
717
|
_ref11 = ((_this6$_renderParams2 = _this6._renderParams) === null || _this6$_renderParams2 === void 0 ? void 0 : _this6$_renderParams2.paymentSessionMetaData) || {}, _ref11$action = _ref11.action, _ref11$action2 = _ref11$action === void 0 ? {} : _ref11$action, _ref11$action2$enable = _ref11$action2.enableSignAgreement, enableSignAgreement = _ref11$action2$enable === void 0 ? false : _ref11$action2$enable, _ref11$action2$autoDe = _ref11$action2.autoDebitWithToken, autoDebitWithToken = _ref11$action2$autoDe === void 0 ? false : _ref11$action2$autoDe;
|
718
718
|
_ref12 = ((_this6$_renderParams3 = _this6._renderParams) === null || _this6$_renderParams3 === void 0 ? void 0 : _this6$_renderParams3.paymentSessionMetaData) || {}, _ref12$paymentMethodI = _ref12.paymentMethodInfoView, _ref12$paymentMethodI2 = _ref12$paymentMethodI === void 0 ? {} : _ref12$paymentMethodI, _ref12$paymentMethodI3 = _ref12$paymentMethodI2.paymentMethodType, paymentMethodType = _ref12$paymentMethodI3 === void 0 ? '' : _ref12$paymentMethodI3;
|
719
|
-
if (productScene ===
|
719
|
+
if (productScene === productSceneEnum.EASY_PAY && productSceneVersion === '2.0' && !autoDebitWithToken) {
|
720
720
|
isAppWebview = _this6._isAppWebview || false; ///EasyPay 2.0 首次传signAgreement字段
|
721
721
|
params['signAgreement'] = enableSignAgreement;
|
722
722
|
if (paymentMethodType == 'ALIPAY_CN' && !isAppWebview) {
|
@@ -842,7 +842,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
842
842
|
var preloadIframe = createPreloadIframe(componentSign, productSceneVersion);
|
843
843
|
var productScene = componentSign.split(/_(?=[^_]*$)/)[0];
|
844
844
|
var _getIframeUrl = getIframeUrl({
|
845
|
-
renderDisplayType:
|
845
|
+
renderDisplayType: renderDisplayTypeEnum.popup,
|
846
846
|
componentSign: componentSign,
|
847
847
|
analytics: {
|
848
848
|
enabled: false
|
@@ -947,7 +947,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
947
947
|
var isJson = isJsonString(e.data);
|
948
948
|
if (isJson) {
|
949
949
|
var data = JSON.parse(e.data);
|
950
|
-
if (data.name !==
|
950
|
+
if (data.name !== messageName.APP_TO_SDK && data.name !== messageName.APP_TO_APP || data.instanceId !== this.AMSSDK._instanceId) return;
|
951
951
|
this._handleAppMessage(data);
|
952
952
|
} else {
|
953
953
|
console.warn(ERRORMESSAGE.NOT_JSON_FORMAT);
|
@@ -1324,7 +1324,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1324
1324
|
if (((_data$context$data4 = data.context.data) === null || _data$context$data4 === void 0 ? void 0 : _data$context$data4.height) <= 1 || data.context.data.height === parseInt(cashier.style.height)) return;
|
1325
1325
|
cashier.style.height = "".concat(data.context.data.height, "px");
|
1326
1326
|
this.app.style.opacity = '1';
|
1327
|
-
if (this._renderDisplayType ===
|
1327
|
+
if (this._renderDisplayType === renderDisplayTypeEnum.popup) {
|
1328
1328
|
if (this.platform === 'desktop') {
|
1329
1329
|
if (data.context.data.width) cashier.style.width = "".concat(data.context.data.width, "px");
|
1330
1330
|
cashier.classList.add("".concat(COMPONENT_CONTAINER_ID, "-").concat(this.platform, "-animation"));
|
@@ -1357,7 +1357,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1357
1357
|
// 关闭loading,保留蒙层
|
1358
1358
|
this.dismissLoadingFunc();
|
1359
1359
|
}
|
1360
|
-
if (this._renderDisplayType ===
|
1360
|
+
if (this._renderDisplayType === renderDisplayTypeEnum.inline) {
|
1361
1361
|
var _document$getElementB3;
|
1362
1362
|
(_document$getElementB3 = document.getElementById(LOADING_ID)) === null || _document$getElementB3 === void 0 || _document$getElementB3.remove();
|
1363
1363
|
this.app.style.height = "".concat(data.context.data.height, "px");
|
@@ -1442,13 +1442,13 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1442
1442
|
};
|
1443
1443
|
|
1444
1444
|
// 支持 target: _blank,新开tab页打开
|
1445
|
-
if (_data.target ===
|
1445
|
+
if (_data.target === targetEnum.BLANK) {
|
1446
1446
|
if (!_data.normalUrl) return failCallback(RedirectType.NormalUrl, '');
|
1447
1447
|
successCallback(RedirectType.NormalUrl, _data.normalUrl);
|
1448
1448
|
window.open(_data.normalUrl);
|
1449
1449
|
return;
|
1450
1450
|
}
|
1451
|
-
if (_data.target ===
|
1451
|
+
if (_data.target === targetEnum.REPLACE && !(_data !== null && _data !== void 0 && _data.applinkUrl) && !(_data !== null && _data !== void 0 && _data.schemeUrl)) {
|
1452
1452
|
if (!_data.normalUrl) return failCallback(RedirectType.NormalUrl, '');
|
1453
1453
|
successCallback(RedirectType.NormalUrl, _data.normalUrl);
|
1454
1454
|
window.location.replace(_data.normalUrl);
|
@@ -1604,7 +1604,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1604
1604
|
value: function dispatchToApp(payload) {
|
1605
1605
|
var targetElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
1606
1606
|
var data = Object.assign({}, payload, {
|
1607
|
-
name:
|
1607
|
+
name: messageName.SDK_TO_APP,
|
1608
1608
|
mode: this.AMSSDK.options.mode,
|
1609
1609
|
appId: COMPONENTPLUGINID,
|
1610
1610
|
instanceId: this.AMSSDK._instanceId
|
@@ -1648,7 +1648,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1648
1648
|
while (1) switch (_context8.prev = _context8.next) {
|
1649
1649
|
case 0:
|
1650
1650
|
_context8.prev = 0;
|
1651
|
-
isAddressElement = this.AMSSDK.options.product ===
|
1651
|
+
isAddressElement = this.AMSSDK.options.product === productSceneEnum.ELEMENT_ADDRESS;
|
1652
1652
|
if (!((!this._actionQueryPromise || !this._actionSubmitPromise) && !isAddressElement)) {
|
1653
1653
|
_context8.next = 4;
|
1654
1654
|
break;
|
package/esm/plugin/const.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ApplePayActionEnum, PaymentActionEnum, PaypalActionEnum } from "../core/bus/interface";
|
2
|
-
import {
|
2
|
+
import { paymentMethodCategoryTypeEnum, PaypalMethodEnum, productSceneEnum, ProductSceneVersion } from "../types/index";
|
3
3
|
export var ExtendPlugin = [{
|
4
4
|
sessionMatcher: {
|
5
|
-
productScene:
|
5
|
+
productScene: productSceneEnum.CASHIER_PAYMENT,
|
6
6
|
productSceneVersion: ProductSceneVersion.V1,
|
7
|
-
paymentMethodCategoryType:
|
7
|
+
paymentMethodCategoryType: paymentMethodCategoryTypeEnum.CARD,
|
8
8
|
paymentMethodTypes: ['CARD_APPLE_PAY']
|
9
9
|
},
|
10
10
|
paymentChannelMatcher: {
|
@@ -18,9 +18,9 @@ export var ExtendPlugin = [{
|
|
18
18
|
}
|
19
19
|
}, {
|
20
20
|
sessionMatcher: {
|
21
|
-
productScene:
|
21
|
+
productScene: productSceneEnum.CASHIER_PAYMENT,
|
22
22
|
productSceneVersion: ProductSceneVersion.V1,
|
23
|
-
paymentMethodCategoryType:
|
23
|
+
paymentMethodCategoryType: paymentMethodCategoryTypeEnum.APM,
|
24
24
|
paymentMethodTypes: [PaypalMethodEnum.PAYPAL_CHECKOUT, PaypalMethodEnum.PAYPAL_PAYLATER, PaypalMethodEnum.PAYPAL_VAULT]
|
25
25
|
},
|
26
26
|
paymentChannelMatcher: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type AMSCheckout from '../../core/instance';
|
2
|
-
import type { IcreatePaymentParams,
|
2
|
+
import type { IcreatePaymentParams, eventPayload } from '../../types';
|
3
3
|
export default class CheckoutApp {
|
4
4
|
app: any;
|
5
5
|
paymentMethodsResult: any;
|
@@ -47,15 +47,15 @@ export default class CheckoutApp {
|
|
47
47
|
/**
|
48
48
|
* @description Processing messages from iframe
|
49
49
|
*/
|
50
|
-
_handleAppMessage(data:
|
50
|
+
_handleAppMessage(data: eventPayload): void;
|
51
51
|
/**
|
52
52
|
* @description Send message to SDK
|
53
53
|
*/
|
54
|
-
_dispatchToSDK(data:
|
54
|
+
_dispatchToSDK(data: eventPayload): void;
|
55
55
|
/**
|
56
56
|
* @description Send message to iframe
|
57
57
|
*/
|
58
|
-
_dispatchToApp(data:
|
58
|
+
_dispatchToApp(data: eventPayload): void;
|
59
59
|
/**
|
60
60
|
* @description Subscribe to messages from SDK
|
61
61
|
*/
|
@@ -67,5 +67,5 @@ export default class CheckoutApp {
|
|
67
67
|
/**
|
68
68
|
* @description Send the post submission processing event, and the cashier applies the consumption result
|
69
69
|
*/
|
70
|
-
_handleRequestPayment(data:
|
70
|
+
_handleRequestPayment(data: eventPayload): void;
|
71
71
|
}
|
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
13
13
|
*/
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
15
15
|
import { BASEPLUGINID, ERRORMESSAGE, EVENT } from "../../constant";
|
16
|
-
import {
|
16
|
+
import { messageName } from "../../types";
|
17
17
|
import { getOrigin, getType, getViewPort, isDom, isJsonString, serialize } from "../../util";
|
18
18
|
var getServerPath = function getServerPath() {
|
19
19
|
var _environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'prod';
|
@@ -120,7 +120,7 @@ var CheckoutApp = /*#__PURE__*/function () {
|
|
120
120
|
iframe = this._createIframe();
|
121
121
|
} catch (error) {
|
122
122
|
this._dispatchToSDK({
|
123
|
-
name:
|
123
|
+
name: messageName.APP_TO_SDK,
|
124
124
|
instanceId: this.AMSSDK._instanceId,
|
125
125
|
context: {
|
126
126
|
event: 'onError',
|
@@ -133,7 +133,7 @@ var CheckoutApp = /*#__PURE__*/function () {
|
|
133
133
|
}
|
134
134
|
if (!!window.postMessage !== true) {
|
135
135
|
this._dispatchToSDK({
|
136
|
-
name:
|
136
|
+
name: messageName.APP_TO_SDK,
|
137
137
|
instanceId: this.AMSSDK._instanceId,
|
138
138
|
context: {
|
139
139
|
event: 'onError',
|
@@ -200,14 +200,14 @@ var CheckoutApp = /*#__PURE__*/function () {
|
|
200
200
|
var isJson = isJsonString(e.data);
|
201
201
|
if (isJson) {
|
202
202
|
var data = JSON.parse(e.data);
|
203
|
-
if (data.name !==
|
203
|
+
if (data.name !== messageName.APP_TO_SDK && data.name !== messageName.APP_TO_APP || data.instanceId !== this.AMSSDK._instanceId) {
|
204
204
|
return;
|
205
205
|
}
|
206
206
|
this._handleAppMessage(data);
|
207
207
|
} else {
|
208
208
|
console.warn(ERRORMESSAGE.NOT_JSON_FORMAT);
|
209
209
|
this._dispatchToSDK({
|
210
|
-
name:
|
210
|
+
name: messageName.APP_TO_SDK,
|
211
211
|
instanceId: this.AMSSDK._instanceId,
|
212
212
|
context: {
|
213
213
|
event: 'onError',
|
@@ -260,7 +260,7 @@ var CheckoutApp = /*#__PURE__*/function () {
|
|
260
260
|
key: "_dispatchToSDK",
|
261
261
|
value: function _dispatchToSDK(data) {
|
262
262
|
var _data = Object.assign({
|
263
|
-
name:
|
263
|
+
name: messageName.APP_TO_SDK,
|
264
264
|
mode: this.AMSSDK.options.mode,
|
265
265
|
appId: BASEPLUGINID,
|
266
266
|
instanceId: this.AMSSDK._instanceId
|
@@ -300,7 +300,7 @@ var CheckoutApp = /*#__PURE__*/function () {
|
|
300
300
|
key: "_renderPaymentMethods",
|
301
301
|
value: function _renderPaymentMethods(paymentResult) {
|
302
302
|
this._dispatchToApp({
|
303
|
-
name:
|
303
|
+
name: messageName.SDK_TO_APP,
|
304
304
|
mode: this.AMSSDK.options.mode,
|
305
305
|
appId: BASEPLUGINID,
|
306
306
|
instanceId: this.AMSSDK._instanceId,
|
package/esm/plugin/type.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BusSubscriber } from 'src/core/bus';
|
2
|
-
import {
|
2
|
+
import { paymentMethodCategoryTypeEnum, productSceneEnum, ProductSceneVersion } from '../types';
|
3
3
|
export type IExtendPlugin = IExtendPluginItem[];
|
4
4
|
export interface ComponentActionNamesType {
|
5
5
|
canMakePayments?: string;
|
@@ -15,9 +15,9 @@ export type IExtendPluginItem = {
|
|
15
15
|
* 以下为sessionData匹配的场景
|
16
16
|
*/
|
17
17
|
sessionMatcher?: {
|
18
|
-
productScene:
|
18
|
+
productScene: productSceneEnum;
|
19
19
|
productSceneVersion: ProductSceneVersion;
|
20
|
-
paymentMethodCategoryType:
|
20
|
+
paymentMethodCategoryType: paymentMethodCategoryTypeEnum;
|
21
21
|
paymentMethodTypes: string[];
|
22
22
|
};
|
23
23
|
/**
|
package/esm/types/index.d.ts
CHANGED
@@ -29,18 +29,18 @@ export interface IoptionsParams {
|
|
29
29
|
onEventCallback?: callOnEventCallback;
|
30
30
|
onClose?: callOnClose;
|
31
31
|
onChange?: onChange;
|
32
|
+
networkMode?: string;
|
33
|
+
mode?: string;
|
32
34
|
analytics?: {
|
33
35
|
enabled: boolean;
|
34
36
|
};
|
35
|
-
onBeforeSubmit?: callOnBeforeSubmit;
|
36
37
|
product?: string;
|
37
|
-
|
38
|
-
mode?: string;
|
38
|
+
onBeforeSubmit?: callOnBeforeSubmit;
|
39
39
|
}
|
40
40
|
export interface IApplePayOptionsParams extends Pick<IoptionsParams, 'locale' | 'environment' | 'onEventCallback' | 'analytics'> {
|
41
41
|
}
|
42
42
|
export type Iselector = string;
|
43
|
-
export declare enum
|
43
|
+
export declare enum renderDisplayTypeEnum {
|
44
44
|
'popup' = "popup",
|
45
45
|
'inline' = "inline"
|
46
46
|
}
|
@@ -57,7 +57,7 @@ export declare enum ComponentSignEnumV2 {
|
|
57
57
|
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL",
|
58
58
|
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL"
|
59
59
|
}
|
60
|
-
export declare enum
|
60
|
+
export declare enum componentSignEnum {
|
61
61
|
'EASY_PAY_WALLET' = "EASY_PAY_WALLET",
|
62
62
|
'EASY_PAY_APM' = "EASY_PAY_APM",
|
63
63
|
'CASHIER_PAYMENT_CARD' = "CASHIER_PAYMENT_CARD",
|
@@ -67,11 +67,11 @@ export declare enum ComponentSignEnum {
|
|
67
67
|
'AUTO_DEBIT_PAY_WALLET' = "AUTO_DEBIT_PAY_WALLET",
|
68
68
|
'NONE' = "NONE",
|
69
69
|
'VAULTING_CARD' = "VAULTING_CARD",
|
70
|
-
'CHECKOUT_PAYMENT' = "CHECKOUT_PAYMENT",
|
71
70
|
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL",
|
72
|
-
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL"
|
71
|
+
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL",
|
72
|
+
'CHECKOUT_PAYMENT' = "CHECKOUT_PAYMENT"
|
73
73
|
}
|
74
|
-
export declare enum
|
74
|
+
export declare enum productSceneEnum {
|
75
75
|
'EASY_PAY' = "EASY_PAY",
|
76
76
|
'CASHIER_PAYMENT' = "CASHIER_PAYMENT",
|
77
77
|
'AUTO_DEBIT' = "AUTO_DEBIT",
|
@@ -83,7 +83,7 @@ export declare enum ProductSceneEnum {
|
|
83
83
|
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS",
|
84
84
|
'CHECKOUT_PAYMENT' = "CHECKOUT_PAYMENT"
|
85
85
|
}
|
86
|
-
export declare enum
|
86
|
+
export declare enum paymentMethodCategoryTypeEnum {
|
87
87
|
'CARD' = "CARD",
|
88
88
|
'WALLET' = "WALLET",
|
89
89
|
'BANK' = "BANK",
|
@@ -92,8 +92,8 @@ export declare enum PaymentMethodCategoryTypeEnum {
|
|
92
92
|
}
|
93
93
|
export interface DeviceIdParameter {
|
94
94
|
scene?: string;
|
95
|
-
productScene?:
|
96
|
-
paymentMethodCategoryType?:
|
95
|
+
productScene?: productSceneEnum;
|
96
|
+
paymentMethodCategoryType?: paymentMethodCategoryTypeEnum;
|
97
97
|
tokenCollectTime?: string;
|
98
98
|
dataPollingInterval?: string;
|
99
99
|
}
|
@@ -110,8 +110,8 @@ export interface IcreateComponent {
|
|
110
110
|
merchantAppointParam?: IMerchantAppointParam;
|
111
111
|
}
|
112
112
|
export interface IappendIframeNodesParams extends IcreateComponent {
|
113
|
-
paymentSessionMetaData:
|
114
|
-
renderDisplayType:
|
113
|
+
paymentSessionMetaData: IpaymentSessionMetaData;
|
114
|
+
renderDisplayType: renderDisplayTypeEnum;
|
115
115
|
selector?: Iselector;
|
116
116
|
paypalConfiguration?: IPaypalConfiguration;
|
117
117
|
/** 将address-element参数定义合入原参数定义 */
|
@@ -197,8 +197,8 @@ export interface Isubmit {
|
|
197
197
|
billingAddress?: IbillingAddress;
|
198
198
|
}
|
199
199
|
export interface IpaymentSessionConfig {
|
200
|
-
productScene:
|
201
|
-
paymentMethodCategoryType?:
|
200
|
+
productScene: productSceneEnum;
|
201
|
+
paymentMethodCategoryType?: paymentMethodCategoryTypeEnum;
|
202
202
|
productSceneVersion: string;
|
203
203
|
}
|
204
204
|
export interface IpaymentSecurityConfig {
|
@@ -216,28 +216,14 @@ export interface IsecurityConfig {
|
|
216
216
|
h5gateway: string;
|
217
217
|
}
|
218
218
|
export interface InitSecurityConfig {
|
219
|
-
product:
|
219
|
+
product: productSceneEnum;
|
220
220
|
region?: string;
|
221
221
|
}
|
222
222
|
export interface frontModulesToBeLoadedInterface {
|
223
223
|
acquirerName: string;
|
224
224
|
scriptUrl: string;
|
225
225
|
}
|
226
|
-
export interface
|
227
|
-
amountConfirmRequired?: boolean;
|
228
|
-
autoDebitWithToken: boolean;
|
229
|
-
enableSignAgreement?: boolean;
|
230
|
-
skipSdkQuery: boolean;
|
231
|
-
requireFastSdk: boolean;
|
232
|
-
nonCompliant?: boolean;
|
233
|
-
nonInitSecuritySDK?: boolean;
|
234
|
-
skipSdkQueryForm?: {
|
235
|
-
value: boolean;
|
236
|
-
version: string;
|
237
|
-
platform: string;
|
238
|
-
};
|
239
|
-
}
|
240
|
-
export interface IPaymentSessionMetaData {
|
226
|
+
export interface IpaymentSessionMetaData {
|
241
227
|
clientId?: string;
|
242
228
|
renderDisplayType?: string;
|
243
229
|
paymentSessionConfig?: IpaymentSessionConfig;
|
@@ -245,8 +231,18 @@ export interface IPaymentSessionMetaData {
|
|
245
231
|
moneyView?: any;
|
246
232
|
extendInfo?: string;
|
247
233
|
paymentMethodInfoView?: any;
|
248
|
-
|
249
|
-
|
234
|
+
action?: {
|
235
|
+
amountConfirmRequired?: boolean;
|
236
|
+
autoDebitWithToken: boolean;
|
237
|
+
enableSignAgreement?: boolean;
|
238
|
+
skipSdkQuery: boolean;
|
239
|
+
requireFastSdk: boolean;
|
240
|
+
skipSdkQueryForm?: {
|
241
|
+
value: boolean;
|
242
|
+
version: string;
|
243
|
+
platform: string;
|
244
|
+
};
|
245
|
+
};
|
250
246
|
authUrlInfo?: {
|
251
247
|
appIdentifier?: string;
|
252
248
|
applinkUrl?: string;
|
@@ -317,9 +313,6 @@ export interface IPaymentSessionMetaData {
|
|
317
313
|
};
|
318
314
|
frontModulesToBeLoaded?: frontModulesToBeLoadedInterface[];
|
319
315
|
};
|
320
|
-
connectFactor?: {
|
321
|
-
enableConnect?: boolean;
|
322
|
-
};
|
323
316
|
}
|
324
317
|
export interface IPaymentSessionFactor {
|
325
318
|
merchantInfo?: IMerchantInfo;
|
@@ -366,7 +359,7 @@ export declare enum networkModeEnum {
|
|
366
359
|
export interface IcheckoutState {
|
367
360
|
paymentMethodType?: string;
|
368
361
|
}
|
369
|
-
export declare enum
|
362
|
+
export declare enum environmentEnum {
|
370
363
|
sandbox = "sandbox",
|
371
364
|
prod = "prod",
|
372
365
|
light_sandbox = "light_sandbox"
|
@@ -387,7 +380,7 @@ export interface Ienv {
|
|
387
380
|
terminalType: terminalTypeEnum;
|
388
381
|
environment: string;
|
389
382
|
}
|
390
|
-
export declare enum
|
383
|
+
export declare enum platformEnum {
|
391
384
|
desktop = "desktop",
|
392
385
|
mobile = "mobile"
|
393
386
|
}
|
@@ -441,19 +434,19 @@ export type callOnBeforeSubmit = (state?: Record<string, any>) => Promise<onBefo
|
|
441
434
|
* @description Create an event handler, In pop-up layer mode, the user clicks the semi floating layer close button and is called.
|
442
435
|
*/
|
443
436
|
export type callOnClose = () => void;
|
444
|
-
export declare enum
|
437
|
+
export declare enum messageName {
|
445
438
|
SDK_TO_APP = "SDK_TO_APP",
|
446
439
|
APP_TO_SDK = "APP_TO_SDK",
|
447
440
|
APP_TO_APP = "APP_TO_APP"
|
448
441
|
}
|
449
|
-
export interface
|
450
|
-
name:
|
442
|
+
export interface eventPayload {
|
443
|
+
name: messageName;
|
451
444
|
mode?: string;
|
452
445
|
appId?: string;
|
453
446
|
instanceId: string;
|
454
|
-
context:
|
447
|
+
context: eventPayloadContext;
|
455
448
|
}
|
456
|
-
export interface
|
449
|
+
export interface eventPayloadContext {
|
457
450
|
event: string;
|
458
451
|
data: any;
|
459
452
|
eventCallbackId?: string;
|
@@ -469,7 +462,7 @@ export interface AMSCheckoutOptions {
|
|
469
462
|
export interface Ianalytics {
|
470
463
|
enabled: boolean;
|
471
464
|
}
|
472
|
-
export declare enum
|
465
|
+
export declare enum targetEnum {
|
473
466
|
BLANK = "_blank",
|
474
467
|
SELF = "_self",
|
475
468
|
REPLACE = "_replace"
|
@@ -600,7 +593,6 @@ export interface CashierSubmitPayResult {
|
|
600
593
|
normalUrl?: string;
|
601
594
|
errorStatus?: string;
|
602
595
|
message?: string;
|
603
|
-
traceId?: string;
|
604
596
|
}
|
605
597
|
export declare enum eventCodeEnum {
|
606
598
|
SDK_START_OF_LOADING = "SDK_START_OF_LOADING",
|
@@ -655,28 +647,9 @@ export declare enum ProductSceneVersion {
|
|
655
647
|
V2 = "2.0"
|
656
648
|
}
|
657
649
|
export type IAppendParams = {
|
658
|
-
componentSign:
|
650
|
+
componentSign: componentSignEnum;
|
659
651
|
iframeNodesParams: IappendIframeNodesParams;
|
660
652
|
};
|
661
|
-
export declare enum EventCallbackCode {
|
662
|
-
Failed = "Failed",
|
663
|
-
Completed = "Completed"
|
664
|
-
}
|
665
|
-
export interface IElementOptions {
|
666
|
-
sessionData: string;
|
667
|
-
environment?: string;
|
668
|
-
locale?: string;
|
669
|
-
mode?: string;
|
670
|
-
onEventCallback?: ({ code, message }: {
|
671
|
-
code: EventCallbackCode;
|
672
|
-
message: string;
|
673
|
-
}) => void;
|
674
|
-
loading?: {
|
675
|
-
showLoading: boolean;
|
676
|
-
onStartLoading?: () => void;
|
677
|
-
onEndLoading?: () => void;
|
678
|
-
};
|
679
|
-
}
|
680
653
|
export interface IoptionsAddressParams {
|
681
654
|
environment?: string;
|
682
655
|
locale?: string;
|