@alipay/ams-checkout 2.0.32 → 2.0.34

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.
Files changed (173) hide show
  1. package/ams-checkout.js +3 -3
  2. package/dist/ams-checkout.min.js +1 -1
  3. package/esm/component/popupWindow.style.js +1 -1
  4. package/esm/config/index.js +1 -1
  5. package/esm/core/component/element/elementProcessor/paymentProcessor.js +4 -2
  6. package/esm/core/component/element/modernElementController/index.js +2 -2
  7. package/esm/modern/{modern/index.d.ts → index.d.ts} +1 -1
  8. package/esm/modern/index.js +1 -1
  9. package/esm/modern/tools.js +1 -1
  10. package/esm/plugin/component/popupWindow.style.js +1 -1
  11. package/esm/util/logger.js +1 -1
  12. package/package.json +2 -2
  13. package/types.d.ts +40 -2
  14. package/types.untrimmed.d.ts +41 -3
  15. package/esm/modern/component/channel.d.ts +0 -21
  16. package/esm/modern/component/component.inline.style.d.ts +0 -10
  17. package/esm/modern/component/component.popup.style.d.ts +0 -26
  18. package/esm/modern/component/popupWindow.style.d.ts +0 -27
  19. package/esm/modern/config/index.d.ts +0 -23
  20. package/esm/modern/config/request.d.ts +0 -21
  21. package/esm/modern/constant/auto-debit.d.ts +0 -12
  22. package/esm/modern/constant/easysafepay.d.ts +0 -16
  23. package/esm/modern/constant/element.d.ts +0 -27
  24. package/esm/modern/constant/index.d.ts +0 -331
  25. package/esm/modern/core/bus/ability/callback.d.ts +0 -9
  26. package/esm/modern/core/bus/ability/security.d.ts +0 -10
  27. package/esm/modern/core/bus/ability/tracker.d.ts +0 -9
  28. package/esm/modern/core/bus/index.d.ts +0 -125
  29. package/esm/modern/core/bus/interface.d.ts +0 -36
  30. package/esm/modern/core/component/address.d.ts +0 -8
  31. package/esm/modern/core/component/appPreloadProcessing.d.ts +0 -1
  32. package/esm/modern/core/component/ckp/index.d.ts +0 -29
  33. package/esm/modern/core/component/element/EventCenter/index.d.ts +0 -41
  34. package/esm/modern/core/component/element/config.d.ts +0 -10
  35. package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +0 -34
  36. package/esm/modern/core/component/element/elementContainerService/index.d.ts +0 -20
  37. package/esm/modern/core/component/element/elementController/index.d.ts +0 -54
  38. package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +0 -20
  39. package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +0 -20
  40. package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +0 -42
  41. package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +0 -23
  42. package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +0 -37
  43. package/esm/modern/core/component/element/index.d.ts +0 -17
  44. package/esm/modern/core/component/element/mock.d.ts +0 -10
  45. package/esm/modern/core/component/element/modernElementController/adapter.d.ts +0 -19
  46. package/esm/modern/core/component/element/modernElementController/index.d.ts +0 -172
  47. package/esm/modern/core/component/element/type.d.ts +0 -590
  48. package/esm/modern/core/component/element/util.d.ts +0 -93
  49. package/esm/modern/core/component/index.d.ts +0 -58
  50. package/esm/modern/core/instance/index.d.ts +0 -97
  51. package/esm/modern/core/utils/connectConfig.d.ts +0 -11
  52. package/esm/modern/foundation/core/index.d.ts +0 -36
  53. package/esm/modern/foundation/index.d.ts +0 -93
  54. package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +0 -14
  55. package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +0 -48
  56. package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +0 -20
  57. package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +0 -29
  58. package/esm/modern/foundation/product-processor/element/index.d.ts +0 -7
  59. package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +0 -10
  60. package/esm/modern/foundation/service/api-bus/ability/request.d.ts +0 -10
  61. package/esm/modern/foundation/service/api-bus/ability/security.d.ts +0 -12
  62. package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +0 -9
  63. package/esm/modern/foundation/service/api-bus/busManager.d.ts +0 -127
  64. package/esm/modern/foundation/service/api-bus/index.d.ts +0 -20
  65. package/esm/modern/foundation/service/api-bus/interface.d.ts +0 -48
  66. package/esm/modern/foundation/service/container/index.d.ts +0 -42
  67. package/esm/modern/foundation/service/container/popup.d.ts +0 -31
  68. package/esm/modern/foundation/service/container/utils.d.ts +0 -7
  69. package/esm/modern/foundation/service/event-center.d.ts +0 -82
  70. package/esm/modern/foundation/service/global-data/index.d.ts +0 -11
  71. package/esm/modern/foundation/service/index.d.ts +0 -19
  72. package/esm/modern/foundation/service/log/index.d.ts +0 -44
  73. package/esm/modern/foundation/service/log/keys.d.ts +0 -13
  74. package/esm/modern/foundation/service/log/processor.d.ts +0 -9
  75. package/esm/modern/foundation/service/log/types.d.ts +0 -33
  76. package/esm/modern/foundation/service/requester/deps.d.ts +0 -17
  77. package/esm/modern/foundation/service/requester/requester.d.ts +0 -22
  78. package/esm/modern/foundation/service/security/index.d.ts +0 -33
  79. package/esm/modern/foundation/service/security/security.d.ts +0 -54
  80. package/esm/modern/foundation/utils/gray_scale_utils.d.ts +0 -7
  81. package/esm/modern/foundation/utils/payment_context_utils.d.ts +0 -13
  82. package/esm/modern/foundation/utils/payment_product_utils.d.ts +0 -13
  83. package/esm/modern/foundation/utils/preload_helper.d.ts +0 -24
  84. package/esm/modern/foundation/utils/redirect_utils.d.ts +0 -11
  85. package/esm/modern/foundation/utils/system_events.d.ts +0 -4
  86. package/esm/modern/foundation/utils/web_app_url_utils.d.ts +0 -114
  87. package/esm/modern/loader/constant.d.ts +0 -36
  88. package/esm/modern/loader/utils/proxyPerformance.d.ts +0 -20
  89. package/esm/modern/main.d.ts +0 -54
  90. package/esm/modern/modern/loadAntomTracker.d.ts +0 -7
  91. package/esm/modern/modern/preload/antomManifestAdapter.d.ts +0 -11
  92. package/esm/modern/modern/preload/config.d.ts +0 -10
  93. package/esm/modern/modern/preload/gatewayPreconnection.d.ts +0 -53
  94. package/esm/modern/modern/preload/preloadAntomElements.d.ts +0 -12
  95. package/esm/modern/modern/preload/startAntomPreload.d.ts +0 -2
  96. package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +0 -102
  97. package/esm/modern/modern/sdk/elements/CVVElement.d.ts +0 -144
  98. package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +0 -204
  99. package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +0 -59
  100. package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +0 -2
  101. package/esm/modern/modern/sdk/eventsMap.d.ts +0 -135
  102. package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +0 -69
  103. package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +0 -5346
  104. package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +0 -6
  105. package/esm/modern/modern/sdk/stageName.d.ts +0 -3
  106. package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +0 -14
  107. package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +0 -4
  108. package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +0 -1
  109. package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +0 -9
  110. package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +0 -32
  111. package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +0 -277
  112. package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +0 -2
  113. package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +0 -6
  114. package/esm/modern/modern/sdk/tools/getMetaData.d.ts +0 -126
  115. package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +0 -41
  116. package/esm/modern/modern/sdk/tools/openModal.d.ts +0 -23
  117. package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +0 -38
  118. package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +0 -38
  119. package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +0 -16
  120. package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +0 -19
  121. package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +0 -5
  122. package/esm/modern/modern/sdk/tools/showToast.d.ts +0 -33
  123. package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +0 -19
  124. package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +0 -65
  125. package/esm/modern/modern/sdk/types.d.ts +0 -310
  126. package/esm/modern/modern/tools.d.ts +0 -26
  127. package/esm/modern/plugin/applepay/component.d.ts +0 -50
  128. package/esm/modern/plugin/applepay/index.d.ts +0 -17
  129. package/esm/modern/plugin/applepay/interface.d.ts +0 -161
  130. package/esm/modern/plugin/applepay/service.d.ts +0 -54
  131. package/esm/modern/plugin/component/cashierApp.d.ts +0 -38
  132. package/esm/modern/plugin/component/channel.d.ts +0 -73
  133. package/esm/modern/plugin/component/component.inline.style.d.ts +0 -10
  134. package/esm/modern/plugin/component/component.popup.style.d.ts +0 -25
  135. package/esm/modern/plugin/component/index.d.ts +0 -133
  136. package/esm/modern/plugin/component/popupWindow.style.d.ts +0 -11
  137. package/esm/modern/plugin/const.d.ts +0 -2
  138. package/esm/modern/plugin/payment-element/utils.d.ts +0 -2
  139. package/esm/modern/plugin/paypal/index.d.ts +0 -20
  140. package/esm/modern/plugin/type.d.ts +0 -34
  141. package/esm/modern/plugin/utils.d.ts +0 -6
  142. package/esm/modern/preload/antomManifestAdapter.d.ts +0 -11
  143. package/esm/modern/preload/antomManifestAdapter.js +0 -116
  144. package/esm/modern/preload/config.d.ts +0 -10
  145. package/esm/modern/preload/config.js +0 -46
  146. package/esm/modern/preload/gatewayPreconnection.d.ts +0 -53
  147. package/esm/modern/preload/gatewayPreconnection.js +0 -213
  148. package/esm/modern/preload/preloadAntomElements.d.ts +0 -12
  149. package/esm/modern/preload/preloadAntomElements.js +0 -99
  150. package/esm/modern/preload/startAntomPreload.d.ts +0 -2
  151. package/esm/modern/preload/startAntomPreload.js +0 -9
  152. package/esm/modern/request/index.d.ts +0 -9
  153. package/esm/modern/request/utils.d.ts +0 -28
  154. package/esm/modern/service/index.d.ts +0 -13
  155. package/esm/modern/types/index.d.ts +0 -862
  156. package/esm/modern/util/beforeConfirm.d.ts +0 -14
  157. package/esm/modern/util/createIframeNode.d.ts +0 -6
  158. package/esm/modern/util/debug.d.ts +0 -1
  159. package/esm/modern/util/get.d.ts +0 -25
  160. package/esm/modern/util/getBackScheme.d.ts +0 -5
  161. package/esm/modern/util/index.d.ts +0 -61
  162. package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +0 -89
  163. package/esm/modern/util/jshield-apdid/index.d.ts +0 -21
  164. package/esm/modern/util/logger.d.ts +0 -67
  165. package/esm/modern/util/mock.d.ts +0 -1
  166. package/esm/modern/util/redirect.d.ts +0 -6
  167. package/esm/modern/util/security-registry.d.ts +0 -72
  168. package/esm/modern/util/security.d.ts +0 -55
  169. package/esm/modern/util/spm-map.d.ts +0 -217
  170. package/esm/modern/util/storage.d.ts +0 -2
  171. package/esm/modern/util/timezone.d.ts +0 -1
  172. package/esm/modern/util/upgrade.d.ts +0 -39
  173. package/esm/modern/util/versionCompare.d.ts +0 -15
@@ -1,28 +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 { errorEnum } from '../types';
9
- export declare const safeJson: (data: any, obj: any) => any;
10
- export declare const formateGatewayError: (headers: Record<string, any>, traceId: string) => {
11
- success: boolean;
12
- traceId: string;
13
- errorCode: errorEnum;
14
- errorMessage: string;
15
- resultStatus: any;
16
- result?: undefined;
17
- } | {
18
- success: boolean;
19
- traceId: string;
20
- errorCode: errorEnum;
21
- errorMessage: string;
22
- result: {
23
- resultStatus: any;
24
- tips: string;
25
- memo: string;
26
- };
27
- resultStatus: any;
28
- };
@@ -1,13 +0,0 @@
1
- import { ApplePayPaymentSessionRequest, ApplePayPaymentSessionResult, CashierSdkActionQueryRequest, CashierSdkActionQueryResult, CashierSubmitPayRequest, CashierSubmitPayResult, RequestConfig } from '../types';
2
- import type { Logger } from '../util/logger';
3
- export declare function queryPaymentInfo(params: CashierSdkActionQueryRequest, options: RequestConfig, logger: Logger): Promise<CashierSdkActionQueryResult>;
4
- export declare function antomConfig(options: RequestConfig, logger: Logger): Promise<any>;
5
- export declare function submitPayInfo(params: CashierSubmitPayRequest, options: RequestConfig, logger: Logger): Promise<CashierSubmitPayResult>;
6
- /**
7
- * Get merchant session by Apple Pay
8
- * @param paymentSessionData
9
- * @param params
10
- * @param options
11
- * @param logger
12
- */
13
- export declare function getApplePayPaymentSession(paymentSessionData: string, params: ApplePayPaymentSessionRequest, options: RequestConfig, logger: Logger): Promise<ApplePayPaymentSessionResult>;