@alipay/ams-checkout 0.0.1783323899-dev.1 → 0.0.1783403875-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.
Files changed (43) hide show
  1. package/ams-checkout.js +3 -4
  2. package/dist/ams-checkout.min.js +1 -2
  3. package/esm/config/index.d.ts +0 -7
  4. package/esm/config/index.js +2 -2
  5. package/esm/constant/element.d.ts +1 -2
  6. package/esm/constant/element.js +0 -1
  7. package/esm/core/component/ckp/index.d.ts +1 -1
  8. package/esm/core/component/ckp/index.js +5 -2
  9. package/esm/core/component/element/elementController/index.d.ts +3 -3
  10. package/esm/core/component/element/elementController/index.js +57 -41
  11. package/esm/core/component/element/elementProcessor/baseElementProcessor.d.ts +1 -0
  12. package/esm/core/component/element/elementProcessor/baseElementProcessor.js +1 -0
  13. package/esm/core/component/element/elementProcessor/convertPaymentMethods.d.ts +22 -0
  14. package/esm/core/component/element/elementProcessor/convertPaymentMethods.js +159 -0
  15. package/esm/core/component/element/elementProcessor/paymentProcessor.d.ts +5 -0
  16. package/esm/core/component/element/elementProcessor/paymentProcessor.js +105 -34
  17. package/esm/core/component/element/index.d.ts +1 -4
  18. package/esm/core/component/element/index.js +4 -19
  19. package/esm/core/component/element/mock.js +1 -1
  20. package/esm/core/component/element/type.d.ts +77 -16
  21. package/esm/core/component/element/util.d.ts +9 -2
  22. package/esm/core/component/element/util.js +3 -2
  23. package/esm/foundation/service/event-center.js +10 -13
  24. package/esm/modern/index.d.ts +1 -5
  25. package/esm/modern/index.js +51 -1
  26. package/esm/modern/stageName.d.ts +3 -0
  27. package/esm/modern/stageName.js +1 -0
  28. package/esm/plugin/component/channel.d.ts +2 -2
  29. package/esm/plugin/component/channel.js +18 -18
  30. package/esm/types/index.d.ts +4 -2
  31. package/esm/util/beforeConfirm.d.ts +4 -2
  32. package/esm/util/beforeConfirm.js +15 -14
  33. package/esm/util/logger.js +2 -1
  34. package/package.json +9 -15
  35. package/types.d.ts +94 -784
  36. package/types.untrimmed.d.ts +108 -931
  37. package/dist/ams-checkout.min.js.map +0 -1
  38. package/esm/core/component/element/modernElementController/adapter.d.ts +0 -19
  39. package/esm/core/component/element/modernElementController/adapter.js +0 -73
  40. package/esm/core/component/element/modernElementController/index.d.ts +0 -149
  41. package/esm/core/component/element/modernElementController/index.js +0 -1673
  42. package/esm/modern/global.d.ts +0 -3
  43. package/esm/modern/tools.js +0 -1
package/types.d.ts CHANGED
@@ -143,26 +143,7 @@ declare interface AmountLimitInfo {
143
143
  /**
144
144
  * AntomBridge事件类型,包含了SDK与webapp通信的所有事件类型
145
145
  */
146
- export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends BaseBridgeEventMap<AppConfig, SR, SubmitParams, string, AntomOpenModalConfig> {
147
- }
148
-
149
- /**
150
- * @description 整合了native事件的eventMap,如果你的业务element需要支持native,事件请继承这个类型
151
- */
152
- export declare interface AntomBridgeWithNativeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends AntomBridgeEventMap<AppConfig, SubmitParams, SR> {
153
- /* Excluded from this release type: showPopup */
154
- /* Excluded from this release type: dismissLoading */
155
- /* Excluded from this release type: webAppReady */
156
- /* Excluded from this release type: onLaunch */
157
- /* Excluded from this release type: renderComponent */
158
- /* Excluded from this release type: appHeartBeat */
159
- /* Excluded from this release type: showToast */
160
- /* Excluded from this release type: onEventCallback */
161
- /* Excluded from this release type: onSubmitPayCallback */
162
- /* Excluded from this release type: reset */
163
- /* Excluded from this release type: destroy */
164
- /* Excluded from this release type: onClose */
165
- /* Excluded from this release type: onRedirect */
146
+ export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>> extends BaseBridgeEventMap<AppConfig, SubmitResult, SubmitParams, string, OpenModalParams> {
166
147
  }
167
148
 
168
149
  /**
@@ -197,10 +178,10 @@ declare interface AntomErrorResponse {
197
178
  extendInfo?: Record<string, any>;
198
179
  }
199
180
 
200
- export declare type AntomLayouts = 'tabs' | 'accordion';
201
-
202
181
  /* Excluded from this release type: AntomMiddlePageEventMap */
203
182
 
183
+ /* Excluded from this release type: AntomModalEventMap */
184
+
204
185
  /* Excluded from this release type: AntomOpenModalConfig */
205
186
 
206
187
  /**
@@ -214,14 +195,11 @@ export declare class AntomSDK extends BaseElementsFactory {
214
195
  * @description 更新配置
215
196
  */
216
197
  updateConfig(config: Partial<BaseFactoryConfig>): void;
217
- /* Excluded from this release type: redirect */
218
198
  /* Excluded from this release type: openModal */
219
199
  elements(): Elements;
220
- createElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
221
200
  createElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
222
201
  createElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
223
202
  createElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
224
- getElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
225
203
  getElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
226
204
  getElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
227
205
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
@@ -278,22 +256,6 @@ export declare const AntomSDKErrorCodes: {
278
256
  * @description channelClientId 查询失败(请求异常,如网络错误、服务器错误等)
279
257
  */
280
258
  readonly CHANNEL_CLIENT_ID_QUERY_ERROR: "CHANNEL_CLIENT_ID_QUERY_ERROR";
281
- /**
282
- * @description checkout 页面未加载成功,不允许 updateConfig
283
- */
284
- readonly CHECKOUT_NOT_READY: "CHECKOUT_NOT_READY";
285
- /**
286
- * @description 支付进行中,不允许更新金额
287
- */
288
- readonly PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
289
- /**
290
- * @description 金额不能为空
291
- */
292
- readonly AMOUNT_VALUE_EMPTY: "AMOUNT_VALUE_EMPTY";
293
- /**
294
- * @description 金额格式非法(仅允许整数和小数)
295
- */
296
- readonly AMOUNT_VALUE_INVALID: "AMOUNT_VALUE_INVALID";
297
259
  readonly GENERATE_ELEMENT_KEY_FAILED: "GENERATE_ELEMENT_KEY_FAILED";
298
260
  readonly ELEMENT_INIT_FAILED: "ELEMENT_INIT_FAILED";
299
261
  readonly MOUNT_TIMEOUT: "MOUNT_TIMEOUT";
@@ -310,8 +272,6 @@ export declare const AntomSDKErrorCodes: {
310
272
  readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
311
273
  readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
312
274
  readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
313
- readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
314
- readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
315
275
  readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
316
276
  readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
317
277
  readonly API_MISS_PARAMS: "API_MISS_PARAMS";
@@ -329,8 +289,6 @@ export declare type AntomSDKErrorCodes = (typeof AntomSDKErrorCodes)[keyof typeo
329
289
 
330
290
  export declare type AntomTheme = 'default' | 'agateGreen' | 'night' | 'nostalgicGray' | 'gamingPurple' | 'cherryBlossomPink' | 'light';
331
291
 
332
- export declare type AntomVariables = 'content-primary' | 'content-secondary' | 'content-tertiary' | 'content-quaternary' | 'background-primary' | 'background-secondary' | 'background-disable' | 'background-transparency' | 'border-primary' | 'border-secondary' | 'border-disable' | 'action-normal' | 'action-hover' | 'action-disable' | 'action-secondary' | 'state-failure' | 'state-warning' | 'state-success' | 'state-info' | 'state-marketing' | 'state-conventional' | 'radius-backup' | 'radius-module' | 'radius-component' | 'radius-button' | 'wrapper-padding' | 'stroke-default' | 'stroke-active' | 'fontFamily';
333
-
334
292
  declare interface APICallbackOptions {
335
293
  requestType: 'fetch' | 'xhr';
336
294
  time: number;
@@ -345,21 +303,15 @@ declare interface APICallbackOptions {
345
303
  errorMsg?: string;
346
304
  }
347
305
 
348
- /**
349
- * @description SDK UI组件的外观配置。
350
- * 控制主题、CSS变量、布局规则及显示设置。
351
- * @template Props - 自定义外观属性类型,默认为 DefaultAppearanceProps。
352
- */
353
306
  declare interface Appearance<Props extends Partial<DefaultAppearanceProps> = DefaultAppearanceProps> {
354
307
  theme?: Props['theme'];
355
308
  variables?: PartialSpeKey<Props['variables'], string>;
356
309
  rules?: PartialSpeKey<Props['rules'], CSS_2.Properties<string, number>>;
357
310
  displaySetting?: PartialSpeKey<Props['displaySetting'], boolean>;
358
311
  layout?: Props['layout'];
359
- fonts?: FontSource[];
360
312
  }
361
313
 
362
- export declare type AppearanceSetting = {
314
+ declare type AppearanceSetting = {
363
315
  displaySetting: Record<'showCardBrandIcon', boolean>;
364
316
  theme: 'light' | 'dark';
365
317
  layout: 'accordion' | 'tabs';
@@ -760,16 +712,6 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
760
712
  /* Excluded from this release type: "OPENSDK@HANDSHAKE" */
761
713
  /* Excluded from this release type: "OPENSDK@READY_HANDSHAKE" */
762
714
  /* Excluded from this release type: "OPENSDK@UPDATE_CONFIG" */
763
- /**
764
- * 更新配置时的回复事件,包含可能发生的错误信息。
765
- * 如果 error 为 undefined,则表示没有错误发生。
766
- */
767
- "OPENSDK@UPDATE_CONFIG_REPLY": {
768
- /**
769
- * 更新配置时发生的错误,如果error为undefined,则表示没有错误发生
770
- */
771
- error?: ErrorPayload<string>;
772
- } | undefined;
773
715
  /* Excluded from this release type: "OPENSDK@HANDSHAKE_ACK" */
774
716
  /* Excluded from this release type: "OPENSDK@SUBMIT" */
775
717
  /* Excluded from this release type: "OPENSDK@SUBMIT_REPLY" */
@@ -779,14 +721,12 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
779
721
  /* Excluded from this release type: "OPENSDK@REDIRECT" */
780
722
  /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_PORT" */
781
723
  /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_APPEARANCE" */
782
- /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_INITIALDATA" */
783
724
  /* Excluded from this release type: "OPENSDK@TRANSFER_APP_PORT" */
784
725
  /* Excluded from this release type: "OPENSDK@ERROR" */
785
726
  /* Excluded from this release type: "OPENSDK@TRANSFER_RECEIVE_PORT" */
786
727
  /* Excluded from this release type: "OPENSDK@TRANSFER_SEND_PORT" */
787
728
  /* Excluded from this release type: "OPENSDK@MESSAGE" */
788
729
  /* Excluded from this release type: "OPENSDK@HEIGHT_UPDATE" */
789
- /* Excluded from this release type: "OPENSDK@DESTROY_ELEMENT" */
790
730
  }
791
731
 
792
732
  declare interface BaseConfig {
@@ -807,7 +747,6 @@ declare interface BaseConfig {
807
747
  */
808
748
  locale?: string;
809
749
  /* Excluded from this release type: version */
810
- /* Excluded from this release type: colorScheme */
811
750
  }
812
751
 
813
752
  /**
@@ -828,15 +767,15 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
828
767
  /* Excluded from this release type: submit */
829
768
  /* Excluded from this release type: setup */
830
769
  /**
831
- * @param {HTMLElement} container
770
+ * @param {string | HTMLElement} containerId 如果给字符串id不要带#号
832
771
  */
833
- mount(container: HTMLElement): Promise<void>;
772
+ mount(containerId: HTMLElement): Promise<void>;
834
773
  /* Excluded from this release type: _mount */
835
774
  /**
836
775
  * 更新webapp配置
837
776
  * @param {Partial<BaseElementAppConfig>} newConfig
838
777
  */
839
- updateConfig(newConfig: Partial<Config['appConfig']>): Promise<EventMap["OPENSDK@UPDATE_CONFIG_REPLY"]>;
778
+ updateConfig(newConfig: Partial<Config['appConfig']>): void;
840
779
  /**
841
780
  * 卸载元素
842
781
  */
@@ -869,14 +808,13 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
869
808
  }
870
809
 
871
810
  declare interface BaseElementAppConfig {
872
- /* Excluded from this release type: locale */
811
+ locale?: string;
873
812
  /* Excluded from this release type: env */
874
813
  /* Excluded from this release type: merchantId */
875
814
  [key: string]: any;
876
815
  }
877
816
 
878
- declare interface BaseElementConfig<T extends BaseElementAppConfig = BaseElementAppConfig> extends BaseConfig {
879
- /* Excluded from this release type: trackId */
817
+ declare interface BaseElementConfig<T extends BaseElementAppConfig = Record<string, any>> extends BaseConfig {
880
818
  appConfig: T;
881
819
  elementMode: ElementMode;
882
820
  }
@@ -927,7 +865,6 @@ declare abstract class BaseFactory {
927
865
  */
928
866
  constructor(config: BaseFactoryConfig);
929
867
  protected openModal(payload: BaseBridgeEventMap['OPENSDK@OPEN_MODAL']): Promise<OpenModalHandle>;
930
- protected redirect(payload: BaseBridgeEventMap['OPENSDK@REDIRECT']): void | Promise<void>;
931
868
  /* Excluded from this release type: canUseElements */
932
869
  /**
933
870
  * @description 无需手动调用
@@ -1002,10 +939,6 @@ declare abstract class BaseMainElement<Config extends BaseElementConfig = BaseEl
1002
939
  /* Excluded from this release type: _submit */
1003
940
  }
1004
941
 
1005
- /**
1006
- * @description 打开模态框的配置项。
1007
- * 包含显示选项、关闭行为、外观设置及初始化数据。
1008
- */
1009
942
  declare interface BaseOpenModalConfig {
1010
943
  /**
1011
944
  * 无需手动传递,app的唯一scope
@@ -1029,21 +962,10 @@ declare interface BaseOpenModalConfig {
1029
962
  onClose?: () => void;
1030
963
  url: string;
1031
964
  /**
1032
- * @description 关闭时,是否需要告知webapp页面来进行关闭 链路为 modalApp 告知-> webapp 关闭-> sdk,默认为false,即直接在modal中进行关闭 modalApp 关闭-> sdk,
965
+ * 关闭时,是否需要app页面二次确认,默认为false,即直接关闭
1033
966
  */
1034
967
  closeConfirm?: boolean;
1035
- /**
1036
- * @description 需要同步的外观配置
1037
- */
1038
968
  appearance?: Appearance;
1039
- /**
1040
- * @description 需要传递的初始化数据
1041
- */
1042
- initialData?: Record<string, any>;
1043
- /**
1044
- * @description 无需手动传递, 模态框的唯一标识
1045
- */
1046
- modalId?: string;
1047
969
  }
1048
970
 
1049
971
  declare type BehaviorConfig = {
@@ -1141,12 +1063,6 @@ declare interface C2PProps {
1141
1063
  merchantTransactionId?: string;
1142
1064
  }
1143
1065
 
1144
- /* Excluded from this release type: CallbackErrorInfo */
1145
-
1146
- /* Excluded from this release type: CallbackReturnData */
1147
-
1148
- /* Excluded from this release type: CallbackSessionNextAction */
1149
-
1150
1066
  declare interface CardIssuerAuthentication {
1151
1067
  /**
1152
1068
  * @description 卡售卖单元
@@ -1564,7 +1480,7 @@ declare interface CashierSdkActionQueryResult {
1564
1480
  /**
1565
1481
  * @description 物流信息, 包含物流地址和物流费
1566
1482
  */
1567
- shippingInfo?: ShippingInfo_2;
1483
+ shippingInfo?: ShippingInfo;
1568
1484
  /**
1569
1485
  * @description 用户已绑资产信息
1570
1486
  */
@@ -1597,6 +1513,28 @@ declare interface ChargeInfo {
1597
1513
  chargeActualAmountView?: PaymentView;
1598
1514
  }
1599
1515
 
1516
+ /** click 事件 resolve 参数 */
1517
+ export declare interface ClickResolveOptions {
1518
+ amount?: {
1519
+ currency: string;
1520
+ value: string;
1521
+ };
1522
+ shippingAddressRequired?: boolean;
1523
+ allowedShippingCountries?: string[];
1524
+ shippingRates?: Array<{
1525
+ id: string;
1526
+ displayName: string;
1527
+ amount: string;
1528
+ }>;
1529
+ lineItems?: Array<{
1530
+ name: string;
1531
+ amount: string;
1532
+ }>;
1533
+ business?: {
1534
+ name: string;
1535
+ };
1536
+ }
1537
+
1600
1538
  declare interface CodeFormView {
1601
1539
  /**
1602
1540
  * @description title
@@ -1622,11 +1560,6 @@ declare interface CodeFormView {
1622
1560
  * @description label
1623
1561
  */
1624
1562
  label?: string;
1625
- /**
1626
- * @description Payment guidance information (CKP scenario) The frontend only displays the payment guide button
1627
- * when appLinkUrlForWeb is populated
1628
- */
1629
- paymentGuideInfo?: PaymentGuideInfo;
1630
1563
  /**
1631
1564
  * @description 提醒事项
1632
1565
  */
@@ -1643,10 +1576,6 @@ declare interface CodeFormView {
1643
1576
  * @description 码过期时间
1644
1577
  */
1645
1578
  codeExpireTime?: string;
1646
- /**
1647
- * @description QR code configuration including renderStyle, centerIcon and cornerIcon
1648
- */
1649
- qrcodeConfig?: QrCodeConfig;
1650
1579
  }
1651
1580
 
1652
1581
  /**
@@ -2203,14 +2132,10 @@ export declare interface ConfirmCardSetupOptions {
2203
2132
  export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'> {
2204
2133
  sessionData: string;
2205
2134
  /**
2206
- * @description 传入已挂载的 CVVElement / PaymentElement / Elements 实例,不传则使用无 UI 自动提交模式
2135
+ * @description 传入已挂载的 CVVElement Elements 实例,不传则使用无 UI 自动提交模式
2207
2136
  */
2208
2137
  elements?: BaseMainElement | BaseElements;
2209
2138
  appearance?: CVVAppearance;
2210
- /**
2211
- * @description 集成用户自定义信息(如 cardHolderName)
2212
- */
2213
- params?: Record<string, unknown>;
2214
2139
  }
2215
2140
 
2216
2141
  /**
@@ -2282,13 +2207,6 @@ declare namespace CSS_2 {
2282
2207
  }
2283
2208
  }
2284
2209
 
2285
- /**
2286
- * CSS 字体源 — 通过 <link> 标签加载外部 CSS(如 Google Fonts)
2287
- */
2288
- declare interface CssFontSource {
2289
- cssSrc: string;
2290
- }
2291
-
2292
2210
  declare interface CurrencyInfo {
2293
2211
  /**
2294
2212
  * @description Getter method for property <tt>currencyCode</tt>.
@@ -2333,17 +2251,6 @@ declare interface CustomerFxInfo {
2333
2251
  useMarketPrice?: boolean;
2334
2252
  }
2335
2253
 
2336
- /**
2337
- * 自定义字体源 — 通过 @font-face 加载自托管字体
2338
- */
2339
- declare interface CustomFontSource {
2340
- family: string;
2341
- src: string;
2342
- weight?: string;
2343
- style?: string;
2344
- unicodeRange?: string;
2345
- }
2346
-
2347
2254
  /**
2348
2255
  * CustomizedPerformanceKey 是给业务使用的自定义指标,共 20 个,页面之间互相独立
2349
2256
  */
@@ -2353,7 +2260,7 @@ declare type CustomizedPerformanceKey = 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm6'
2353
2260
  * @public
2354
2261
  * @description CVV element app config type
2355
2262
  */
2356
- export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance>, BaseElementAppConfig {
2263
+ export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance> {
2357
2264
  /**
2358
2265
  * @description sessionData
2359
2266
  */
@@ -2373,8 +2280,7 @@ export declare type CVVAppearance = PickAppearance<CVVAppearanceProps>;
2373
2280
 
2374
2281
  export declare type CVVAppearanceProps = {
2375
2282
  theme: AntomTheme;
2376
- variables: AntomVariables;
2377
- fonts?: FontSource[];
2283
+ variables: 'content-primary' | 'content-tertiary' | 'background-primary' | 'background-disable' | 'background-transparency' | 'border-primary' | 'border-disable' | 'action-normal' | 'action-hover' | 'radius-component' | 'content-secondary' | 'background-secondary';
2378
2284
  };
2379
2285
 
2380
2286
  /**
@@ -2460,10 +2366,6 @@ export declare interface CVVSubmitParams {
2460
2366
  * 重定向策略
2461
2367
  */
2462
2368
  redirect?: 'always' | 'if_required';
2463
- /**
2464
- * 集成用户自定义信息(如 cardHolderName)
2465
- */
2466
- params?: Record<string, unknown>;
2467
2369
  }
2468
2370
 
2469
2371
  declare interface DanaSofCouponInfo {
@@ -3182,7 +3084,7 @@ declare class Elements extends BaseElements {
3182
3084
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
3183
3085
  }
3184
3086
 
3185
- declare type ElementTypeEnum = 'TEXT' | 'DIGIT_6' | 'DIGIT_18' | 'DIGIT_32' | 'DIGIT_11' | 'DIGIT_4' | 'DIGIT_10' | 'CHECKBOX' | 'SELECT' | 'SWITCH' | 'PASSWORD_2' | 'DATE_PICKER' | 'CHECKLIST' | 'ADDRESS' | 'DROPBOX' | 'DIGIT_13' | 'GRIDLIST' | 'TENOR_SELECT_KR' | 'STORELIST' | 'GRIDBANKLIST' | 'SUB_QR_CODE' | 'GRIDBANKTOP' | 'PHONE_TEXT_AREA_CODE' | 'SUPPORTIPPBANKLIST';
3087
+ declare type ElementTypeEnum = 'TEXT' | 'DIGIT_6' | 'DIGIT_18' | 'DIGIT_32' | 'DIGIT_11' | 'DIGIT_4' | 'DIGIT_10' | 'CHECKBOX' | 'SELECT' | 'SWITCH' | 'PASSWORD_2' | 'DATE_PICKER' | 'CHECKLIST' | 'ADDRESS' | 'DROPBOX' | 'DIGIT_13' | 'GRIDLIST' | 'TENOR_SELECT_KR' | 'STORELIST' | 'GRIDBANKLIST' | 'SUB_QR_CODE' | 'GRIDBANKTOP' | 'PHONE_TEXT_AREA_CODE';
3186
3088
 
3187
3089
  declare type Env = 'local' | 'dev' | 'sit' | 'pre' | 'prod';
3188
3090
 
@@ -3273,22 +3175,6 @@ declare interface ExpCardPlan {
3273
3175
  * @description 每个月分期利息
3274
3176
  */
3275
3177
  monthlyInterest?: ComIpayIexpprodServiceFacadeCommonAmount;
3276
- /**
3277
- * @description 分期有效期开始时间
3278
- */
3279
- validStartTime?: string;
3280
- /**
3281
- * @description 分期有效期结束时间
3282
- */
3283
- validEndTime?: string;
3284
- /**
3285
- * @description 支持的银行信息
3286
- *
3287
- * 包含该分期计划支持的银行详细信息,包括银行简称、logo等。
3288
- * 该字段从 installmentBanks 数据中通过 bankShortName 关联而来,
3289
- * 若分期计划无银行限制或未匹配到银行信息,该字段可能为null。@see ExpSupportIppBank
3290
- */
3291
- supportedBank?: ExpSupportIppBank;
3292
3178
  }
3293
3179
 
3294
3180
  declare interface ExpInstallmentInfo {
@@ -3313,18 +3199,12 @@ declare interface ExpPaymentOptionDetail {
3313
3199
  * @public
3314
3200
  * @description Express element app config type
3315
3201
  */
3316
- export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting>, BaseElementAppConfig {
3202
+ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting> {
3317
3203
  /** payment SessionData */
3318
3204
  sessionData?: string;
3319
3205
  /** Business division (country/region) */
3320
3206
  businessDivision?: string;
3321
- /**
3322
- * Amount & Currency
3323
- *
3324
- * Only effective via `updateConfig({ amount })` at runtime.
3325
- * Passing amount at creation time is ignored; the initial amount
3326
- * comes from the server-side sdkQuery result (renderData.paymentAmount).
3327
- */
3207
+ /** Amount & Currency */
3328
3208
  amount?: {
3329
3209
  currency: string;
3330
3210
  value: string;
@@ -3333,20 +3213,20 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3333
3213
  paypal?: PayPalConfig;
3334
3214
  /**
3335
3215
  * Button text type (following Stripe Express Checkout Element design)
3336
- * Each payment method can independently set the button display text.
3216
+ * Each payment method can independently set the button display text
3217
+ * Reserved index signature for future payment method integration
3337
3218
  */
3338
3219
  buttonType?: {
3339
3220
  /** PayPal: paypal | checkout | buynow | pay */
3340
3221
  paypal?: 'paypal' | 'checkout' | 'buynow' | 'pay';
3341
3222
  [method: string]: string | undefined;
3342
3223
  };
3343
- /**
3344
- * Unified height for all buttons (px)
3345
- */
3224
+ /** Unified height for all buttons (px) */
3346
3225
  buttonHeight?: number;
3347
3226
  /**
3348
3227
  * Button color theme (following Stripe Express Checkout Element design)
3349
- * Each payment method can independently set the theme color.
3228
+ * Each payment method can independently set the theme color
3229
+ * Reserved index signature for future payment method integration
3350
3230
  */
3351
3231
  buttonTheme?: {
3352
3232
  /** PayPal: gold | blue | silver | white | black */
@@ -3364,13 +3244,6 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3364
3244
  * Locale for internationalization, passed from entry params (loadAntom), default to en_US
3365
3245
  */
3366
3246
  locale?: string;
3367
- /**
3368
- * 是否运行在 Native App 的 WebView 中。
3369
- * 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
3370
- */
3371
- isNativeAppWebview?: boolean;
3372
- /* Excluded from this release type: merchantDomain */
3373
- /* Excluded from this release type: doMain */
3374
3247
  }
3375
3248
 
3376
3249
  /** cancel 事件负载 */
@@ -3379,54 +3252,24 @@ export declare interface ExpressCancelEvent {
3379
3252
  data?: any;
3380
3253
  }
3381
3254
 
3382
- /** click 事件负载(纯通知,商户可用于埋点,SDK 不等待响应) */
3255
+ /** click 事件负载 */
3383
3256
  export declare interface ExpressClickEvent {
3384
3257
  expressPaymentType: string;
3258
+ resolve: (options: ClickResolveOptions) => void;
3385
3259
  }
3386
3260
 
3387
3261
  /** confirm 事件负载(统一终态,替代 approve) */
3388
3262
  export declare interface ExpressConfirmData {
3389
3263
  expressPaymentType: string;
3390
- billingDetails?: {
3391
- name?: string;
3392
- email?: string;
3393
- phone?: string;
3394
- address?: {
3395
- line1?: string;
3396
- line2?: string;
3397
- city?: string;
3398
- state?: string;
3399
- postalCode?: string;
3400
- country?: string;
3401
- };
3402
- };
3403
- shippingAddress?: {
3404
- name?: string;
3405
- phone?: string;
3406
- address?: {
3407
- line1?: string;
3408
- line2?: string;
3409
- city?: string;
3410
- state?: string;
3411
- postalCode?: string;
3412
- country?: string;
3413
- };
3414
- };
3415
- /** 支付方式返回的原始支付数据(如 alipayCn、applePay 等) */
3416
- paymentData?: unknown;
3417
- /**
3418
- * 商户主动拒绝本次支付(如库存不足、价格变动等)。
3419
- * 调用后 SDK 立即取消支付流程,confirmPayment() 无需调用。
3420
- */
3421
- paymentFailed: () => void;
3264
+ paymentData: any;
3265
+ billingDetails?: any;
3266
+ shippingAddress?: any;
3267
+ sessionData?: string;
3422
3268
  }
3423
3269
 
3424
3270
  /**
3425
3271
  * @public
3426
3272
  * @description Express element - express checkout element, supports PayPal / Apple Pay / Google Pay
3427
- *
3428
- * Host 侧只保留 Element 生命周期、商户事件包装和 bridge 连接。
3429
- * AP/GP/AlipayCN 的 submit、2DS/3DS、polling 结果处理都由 express_element webapp 承接。
3430
3273
  */
3431
3274
  export declare class ExpressElement extends BaseMainElement<ExpressElementConfig, ExpressElementEvents> {
3432
3275
  static elementType: string;
@@ -3434,44 +3277,15 @@ export declare class ExpressElement extends BaseMainElement<ExpressElementConfig
3434
3277
  * Store all function-type callbacks locally, not involved in postMessage serialization
3435
3278
  */
3436
3279
  private _callbacks;
3437
- /** setup 阶段的 renderData,仅供非 Safari PC Apple Pay host-token 路径读取 paymentRequest。 */
3438
- private _renderData;
3439
- private _hostSign;
3440
- /**
3441
- * 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
3442
- * bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
3443
- */
3444
- private _localHandlers;
3445
- /** 支付流程进行中标志(click → confirm/error/cancel 之间) */
3446
- private _paymentInProgress;
3447
- private _paypalOverlay;
3448
3280
  constructor(name: string, config: ExpressElementConfig);
3281
+ setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3449
3282
  /**
3450
- * 重写 on:
3451
- * 1. 对 confirm 事件拦截,在商户回调执行前注入 paymentFailed()
3452
- * 2. 对 onRedirect 事件同步注册到 _localHandlers(SDK host 主动推送时商户能收到)
3453
- */
3454
- on(event: string, handler: (...args: any[]) => void): void;
3455
- /**
3456
- * SDK host 主动推送事件给商户(不走 bridge postMessage,直接调用本地注册的 handler)。
3457
- * 用于 Native WebView 场景下 SDK 需要向商户透传跳转信息等。
3458
- */
3459
- private _emit;
3460
- updateConfig(newConfig: Pick<ExpressAppConfig, 'amount'>): Promise<ExpressElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
3461
- /**
3462
- * 商户在 confirm 回调内调用,触发实际支付提交。
3463
- * iframe 收到 OPENSDK@COMPLETE_PAYMENT 后执行 submitPay / polling 等,
3464
- * 完成后通过 OPENSDK@COMPLETE_PAYMENT_RESULT 回包,Promise resolve。
3283
+ * Register internal event listeners (iframe communication)
3465
3284
  */
3466
- completePayment(redirect?: 'always' | 'if_required'): Promise<{
3467
- success: boolean;
3468
- result?: any;
3469
- error?: {
3470
- code: string;
3471
- message: string;
3472
- };
3473
- }>;
3474
- setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3285
+ /** Overlay DOM node, created on click, removed after payment ends */
3286
+ private _overlay;
3287
+ private _showOverlay;
3288
+ private _hideOverlay;
3475
3289
  private registerInternalListeners;
3476
3290
  protected focus(): void;
3477
3291
  protected blur(): void;
@@ -3489,83 +3303,57 @@ export declare interface ExpressElementConfig extends BaseElementConfig<ExpressA
3489
3303
  * @public
3490
3304
  * @description Express element events type
3491
3305
  */
3492
- export declare interface ExpressElementEvents extends AntomBridgeWithNativeEventMap<ExpressAppConfig> {
3306
+ export declare interface ExpressElementEvents extends AntomBridgeEventMap<ExpressAppConfig> {
3307
+ /**
3308
+ * @description Element ready event — 上报可用支付方式
3309
+ */
3493
3310
  ready: {
3494
3311
  availablePaymentMethods: Record<string, boolean>;
3495
3312
  };
3313
+ /**
3314
+ * @description 用户点击按钮 — 商户必须调用 event.resolve() 后 sheet 才弹出
3315
+ * 对 PayPal: resolve 为 no-op(PayPal 自行弹出 popup)
3316
+ */
3496
3317
  click: ExpressClickEvent;
3318
+ /**
3319
+ * @description 统一支付完成事件(替代 approve)
3320
+ * 用户授权完成后触发,通过 expressPaymentType 区分钱包类型
3321
+ */
3497
3322
  confirm: ExpressConfirmData;
3323
+ /**
3324
+ * @description 支付错误事件(扩展基类 ErrorPayload,新增 expressPaymentType)
3325
+ */
3498
3326
  error: ErrorPayload & {
3499
3327
  expressPaymentType: string;
3500
3328
  };
3329
+ /**
3330
+ * @description 用户取消支付
3331
+ */
3501
3332
  cancel: ExpressCancelEvent;
3333
+ /**
3334
+ * @description 用户在 sheet 内变更收货地址(AP/GP only,PayPal 不触发)
3335
+ */
3502
3336
  shippingaddresschange: {
3503
3337
  expressPaymentType: string;
3504
3338
  address: any;
3505
3339
  resolve: (options: ShippingResolveOptions) => void;
3506
3340
  reject: (reason: string) => void;
3507
3341
  };
3342
+ /**
3343
+ * @description 用户在 sheet 内变更配送方式(AP/GP only,PayPal 不触发)
3344
+ */
3508
3345
  shippingratechange: {
3509
3346
  expressPaymentType: string;
3510
3347
  shippingRate: any;
3511
3348
  resolve: (options: RateResolveOptions) => void;
3512
3349
  };
3513
- contentHeightChanged: {
3514
- height: number;
3515
- };
3516
- 'OPENSDK@CLICK': {
3517
- expressPaymentType: string;
3518
- };
3519
- 'OPENSDK@CLICK_RESOLVE': Record<string, never>;
3520
- 'OPENSDK@PAYPAL_CREATE_ORDER': {
3521
- requestId: string;
3522
- };
3523
- 'OPENSDK@PAYPAL_CREATE_ORDER_REPLY': {
3524
- requestId: string;
3525
- sessionData?: string;
3526
- error?: string;
3527
- };
3528
- 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE': {
3529
- requestId: string;
3530
- shippingData: any;
3531
- };
3532
- 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE_REPLY': {
3533
- requestId: string;
3534
- error?: string;
3535
- };
3536
- 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE': {
3537
- requestId: string;
3538
- shippingData: any;
3539
- };
3540
- 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE_REPLY': {
3541
- requestId: string;
3542
- error?: string;
3543
- };
3544
- 'OPENSDK@GET_APPLE_PAY_TOKEN': {
3545
- requestId: string;
3546
- expressPaymentType: string;
3547
- };
3548
- /** host 完成 Apple Pay token 获取后回包给 iframe,submit/3DS/polling 均由 webapp 完成 */
3549
- 'OPENSDK@GET_APPLE_PAY_TOKEN_REPLY': {
3550
- requestId: string;
3551
- success: boolean;
3552
- result?: any;
3553
- errorCode?: string;
3554
- errorMessage?: string;
3555
- billingDetails?: any;
3556
- shippingAddress?: any;
3557
- };
3558
- 'OPENSDK@UPDATE_CONFIG_REPLY': {
3559
- error?: ErrorPayload<string>;
3560
- };
3561
- 'OPENSDK@COMPLETE_PAYMENT_REJECT': Record<string, never>;
3562
- onRedirect: {
3563
- normalUrl: string;
3564
- applinkUrl?: string;
3565
- schemaUrl?: string;
3566
- isDestroy: boolean;
3567
- needReset: boolean;
3568
- };
3350
+ /* Excluded from this release type: contentHeightChanged */
3351
+ /* Excluded from this release type: "paypal:createOrder" */
3352
+ /* Excluded from this release type: "paypal:createOrder:reply" */
3353
+ /* Excluded from this release type: "paypal:onShippingAddressChange" */
3354
+ /* Excluded from this release type: "paypal:onShippingAddressChange:reply" */
3355
+ /* Excluded from this release type: "paypal:onShippingOptionsChange" */
3356
+ /* Excluded from this release type: "paypal:onShippingOptionsChange:reply" */
3569
3357
  }
3570
3358
 
3571
3359
  declare interface ExpSupportBank {
@@ -3590,24 +3378,6 @@ declare interface ExpSupportCardBrand {
3590
3378
  logo?: Logo;
3591
3379
  }
3592
3380
 
3593
- /**
3594
- * @description 支持的分期银行信息
3595
- */
3596
- declare interface ExpSupportIppBank {
3597
- /**
3598
- * @description bank short name or bank code
3599
- */
3600
- bankShortName?: string;
3601
- /**
3602
- * @description logo
3603
- */
3604
- logo?: Logo;
3605
- /**
3606
- * @description bins
3607
- */
3608
- bins?: string[];
3609
- }
3610
-
3611
3381
  declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
3612
3382
 
3613
3383
  declare interface FirstPhaseSubscriptionDetail {
@@ -3625,27 +3395,6 @@ declare interface FirstPhaseSubscriptionDetail {
3625
3395
  promotionDetails?: PromotionDetail[];
3626
3396
  }
3627
3397
 
3628
- declare type FontSource = CssFontSource | CustomFontSource;
3629
-
3630
- declare interface FrontModulesToBeLoadedInterface {
3631
- acquirerName: string;
3632
- scriptUrl: string;
3633
- }
3634
-
3635
- /**
3636
- * @description 分期银行展示模型
3637
- */
3638
- declare interface FrontSupportIppBank {
3639
- /**
3640
- * @description bank short name or bank code
3641
- */
3642
- bankShortName?: string;
3643
- /**
3644
- * @description logo
3645
- */
3646
- logo?: Logo;
3647
- }
3648
-
3649
3398
  declare type GetI18nQueryParam = string | {
3650
3399
  /**
3651
3400
  * 多语言文案的 key
@@ -4277,14 +4026,6 @@ declare interface HTTPErrorCallbackOptions {
4277
4026
  aborted?: 0 | 1;
4278
4027
  }
4279
4028
 
4280
- declare interface IApplePayContactField {
4281
- email: string;
4282
- name: string;
4283
- phone: string;
4284
- postalAddress: string;
4285
- phoneticName: string;
4286
- }
4287
-
4288
4029
  declare interface iBaseElementClass {
4289
4030
  new (name: string, config: BaseElementConfig): BaseElement;
4290
4031
  elementType: string;
@@ -4452,100 +4193,6 @@ declare interface IOptions {
4452
4193
  stayTime?: number;
4453
4194
  }
4454
4195
 
4455
- declare interface IPaymentSessionMetaData {
4456
- clientId?: string;
4457
- renderDisplayType?: string;
4458
- paymentSessionConfig?: PaymentSessionConfig;
4459
- securityConfig?: SessionSecurityConfig;
4460
- moneyView?: any;
4461
- extendInfo?: string;
4462
- paymentMethodInfoView?: any;
4463
- paymentView?: any;
4464
- modernWeb?: boolean;
4465
- action?: PaymentSessionAction;
4466
- /**
4467
- * @description 是一个string,灰度开关,格式为 flag1,flag2,flag3
4468
- */
4469
- flowSwitchTags?: string;
4470
- authUrlInfo?: {
4471
- appIdentifier?: string;
4472
- applinkUrl?: string;
4473
- normalUrl?: string;
4474
- schemeUrl?: string;
4475
- authUrl?: string;
4476
- };
4477
- paymentSessionFactor?: {
4478
- externalRiskTimeout?: number;
4479
- extendInfo?: {
4480
- merchantCapabilities?: string[];
4481
- supportedNetworks?: string[];
4482
- requiredBillingContactFields: IApplePayContactField[];
4483
- requiredShippingContactFields: IApplePayContactField[];
4484
- };
4485
- merchantInfo?: {
4486
- registeredCountry?: string;
4487
- partnerId?: string;
4488
- merchantName?: string;
4489
- };
4490
- order?: {
4491
- orderDescription: string;
4492
- };
4493
- paymentAmount?: {
4494
- value?: string;
4495
- currency?: string;
4496
- };
4497
- paymentMethodInfo?: {
4498
- paymentMethodType?: string;
4499
- };
4500
- paymentMethodViewMetaData?: any;
4501
- paymentRequestId?: string;
4502
- supportedLanguages?: any;
4503
- /**
4504
- * 当前为苹果分期场景的信息
4505
- */
4506
- recurringInfo?: {
4507
- /**
4508
- * 代扣协议开始日期 不传为当前系统时间
4509
- */
4510
- startDate?: number;
4511
- /**
4512
- * 代扣协议结束日期 不传不限制结束时间
4513
- */
4514
- endDate?: number;
4515
- /**
4516
- * 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
4517
- */
4518
- intervalUnit?: string;
4519
- /**
4520
- * 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
4521
- */
4522
- intervalCount?: number;
4523
- /**
4524
- * 分期标题信息
4525
- */
4526
- title?: string;
4527
- /**
4528
- * 分期管理页面
4529
- */
4530
- managementURL?: string;
4531
- /**
4532
- * 苹果通知ipay MAPN信息变更的地址
4533
- */
4534
- tokenNotificationURL?: string;
4535
- /**
4536
- * 分期协议描述
4537
- */
4538
- agreementDescription?: string;
4539
- };
4540
- frontModulesToBeLoaded?: FrontModulesToBeLoadedInterface[];
4541
- };
4542
- connectFactor?: {
4543
- enableConnect?: boolean;
4544
- };
4545
- skipRenderPaymentMethod?: boolean;
4546
- needAccountConfirmPage?: boolean;
4547
- }
4548
-
4549
4196
  declare interface ISystemInfo {
4550
4197
  readonly pixelRatio: number;
4551
4198
  readonly windowWidth: number;
@@ -7045,68 +6692,6 @@ declare interface OneAccountInfo {
7045
6692
  accountStatus?: string;
7046
6693
  }
7047
6694
 
7048
- /**
7049
- * @description one account 账户信息查询结果
7050
- */
7051
- declare interface OneAccountQueryResult {
7052
- /**
7053
- * @description 是否业务处理成功
7054
- */
7055
- success?: boolean;
7056
- /**
7057
- * @description 错误上下文
7058
- */
7059
- errorContext?: ErrorContext;
7060
- /**
7061
- * @description 返回结果码
7062
- */
7063
- resultCode?: string;
7064
- /**
7065
- * @description 返回结果信息
7066
- */
7067
- resultMessage?: string;
7068
- /**
7069
- * @description error actions
7070
- */
7071
- errorActions?: Record<string, string>;
7072
- /**
7073
- * @description error code
7074
- */
7075
- errorCode?: string;
7076
- /**
7077
- * @description error status
7078
- */
7079
- errorStatus?: string;
7080
- /**
7081
- * @description error message
7082
- */
7083
- errorMessage?: string;
7084
- /**
7085
- * @description extend info
7086
- */
7087
- extendInfo?: Record<string, string>;
7088
- /**
7089
- * @description one account 账户信息
7090
- */
7091
- accountInfo?: OneAccountInfo;
7092
- /**
7093
- * @description action form 下一步动作
7094
- */
7095
- actionForm?: OtpChallengeActionForm;
7096
- /**
7097
- * @description 支付方式列表
7098
- */
7099
- paymentMethods?: PaymentMethodView[];
7100
- /**
7101
- * @description 物流信息
7102
- */
7103
- shippings?: ShippingInfo_2[];
7104
- /**
7105
- * @description 支付金额 (订单金额 + 物流费)
7106
- */
7107
- paymentAmount?: MobileMoneyView;
7108
- }
7109
-
7110
6695
  /**
7111
6696
  * @description OpenModal的返回值类型
7112
6697
  */
@@ -7310,56 +6895,6 @@ declare interface OSInfo {
7310
6895
  osVer?: string;
7311
6896
  }
7312
6897
 
7313
- declare interface OtpChallengeActionForm {
7314
- /**
7315
- * @description action form type
7316
- */
7317
- actionFormType?: string;
7318
- /**
7319
- * @description type of challenge
7320
- */
7321
- challengeType?: string;
7322
- /**
7323
- * @description The actual render value
7324
- */
7325
- challengeRenderValue?: string;
7326
- /**
7327
- * @description Describe the challenge is required by AAC or external party
7328
- */
7329
- triggerSource?: string;
7330
- /**
7331
- * @description is support retry challenge
7332
- * @default true
7333
- */
7334
- isChallengeRetrySupported?: boolean;
7335
- /**
7336
- * @description is fist otp auto triggered
7337
- * @default false
7338
- */
7339
- isChallengeAutoTriggered?: boolean;
7340
- /**
7341
- * @description estimated challenge response duration
7342
- * @default 0
7343
- */
7344
- estimatedDuration?: number;
7345
- /**
7346
- * @description url - like h5 sdk challenge need to call back url
7347
- */
7348
- challengeUrl?: string;
7349
- /**
7350
- * @description extend information
7351
- */
7352
- extendInfo?: string;
7353
- /**
7354
- * @description verify Id
7355
- */
7356
- verifyId?: string;
7357
- /**
7358
- * @description 重发次数
7359
- */
7360
- resendLeftTimes?: number;
7361
- }
7362
-
7363
6898
  declare type PartialSpeKey<T, V> = Partial<T extends infer K extends string ? Record<K, V> : Record<string, V>>;
7364
6899
 
7365
6900
  declare interface PayByLinkInfo {
@@ -7381,61 +6916,6 @@ declare interface PayByLinkInfo {
7381
6916
  linkVersion?: number;
7382
6917
  }
7383
6918
 
7384
- /**
7385
- * @description Payment element app config type
7386
- */
7387
- export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearance>, BaseElementAppConfig {
7388
- /**
7389
- * @description sessionData,无法通过updateConfig更新
7390
- */
7391
- sessionData?: string;
7392
- /* Excluded from this release type: merchantDomain */
7393
- /* Excluded from this release type: renderData */
7394
- /* Excluded from this release type: connectAccount */
7395
- /* Excluded from this release type: sessionMetaData */
7396
- /* Excluded from this release type: renderDataError */
7397
- /* Excluded from this release type: sdkVersion */
7398
- /* Excluded from this release type: _requestConfig */
7399
- /* Excluded from this release type: logMetaData */
7400
- /* Excluded from this release type: heightOfVisible */
7401
- }
7402
-
7403
- /**
7404
- * @description Payment element appearance type
7405
- */
7406
- export declare type PaymentAppearance = PickAppearance<{
7407
- displaySetting: 'showPaymentMethodListWhenSingleOption' | 'showCardBrandIcon' | 'showRadioWhenAccordionLayout' | 'showCardCVV';
7408
- theme: AntomTheme;
7409
- variables: AntomVariables;
7410
- layout: AntomLayouts;
7411
- }>;
7412
-
7413
- /**
7414
- * @description Payment element
7415
- */
7416
- export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
7417
- static elementType: string;
7418
- /* Excluded from this release type: _submitting */
7419
- constructor(name: string, config: PaymentElementConfig);
7420
- /* Excluded from this release type: setup */
7421
- /* Excluded from this release type: submit */
7422
- protected focus(): void;
7423
- protected blur(): void;
7424
- protected clear(): void;
7425
- }
7426
-
7427
- /**
7428
- * @description Payment element config type
7429
- */
7430
- declare interface PaymentElementConfig extends BaseElementConfig<PaymentAppConfig> {
7431
- }
7432
-
7433
- /**
7434
- * @description Payment element events
7435
- */
7436
- export declare interface PaymentElementEvents extends AntomBridgeWithNativeEventMap<PaymentAppConfig, PaymentSubmitParams, PaymentSubmitResult> {
7437
- }
7438
-
7439
6919
  declare interface PaymentElementView {
7440
6920
  /**
7441
6921
  * @description payment element key
@@ -7537,36 +7017,6 @@ declare interface PaymentEvaluationResult {
7537
7017
  paymentBalanceInfo?: DanaSofPayMethodView[];
7538
7018
  }
7539
7019
 
7540
- /**
7541
- * @description Payment guidance information (CKP scenario)
7542
- *
7543
- * <p>Displays payment guide buttons on the checkout page, including: - Deep link: For launching the
7544
- * bank application (required) - Copy configuration: Divider text, button labels, etc. (extensible
7545
- * via Map, dynamically addable)
7546
- */
7547
- declare interface PaymentGuideInfo {
7548
- /**
7549
- * @description The deep link (from iexpprod, used to launch the bank app) The frontend only displays the
7550
- * payment guide button when this field is populated
7551
- */
7552
- appLinkUrlForWeb?: string;
7553
- /**
7554
- * @description Copy configuration (from the config center) Stored in a Map to support dynamic extension of
7555
- * text fields
7556
- *
7557
- * <p>Example configuration:
7558
- *
7559
- * <pre>
7560
- * {
7561
- * "dividerText": "or pay using",
7562
- * "directPayButtonText": "Pay directly with online banking",
7563
- * "ctoPButtonText": "Continue to payment"
7564
- * }
7565
- * </pre>
7566
- */
7567
- copyWriting?: Record<string, any>;
7568
- }
7569
-
7570
7020
  /**
7571
7021
  * @description 支付方式余额检查结果信息
7572
7022
  */
@@ -7629,10 +7079,6 @@ declare interface PaymentMethodView {
7629
7079
  * @description icon
7630
7080
  */
7631
7081
  icon?: string;
7632
- /**
7633
- * @description adaptive icon for PAYME payment method
7634
- */
7635
- adaptiveIcon?: string;
7636
7082
  /**
7637
7083
  * @description icon对应的名称
7638
7084
  */
@@ -7641,10 +7087,6 @@ declare interface PaymentMethodView {
7641
7087
  * @description 支付方式描述
7642
7088
  */
7643
7089
  description?: string;
7644
- /**
7645
- * @description 支付方式点击后的描述
7646
- */
7647
- descriptionAfterClick?: string;
7648
7090
  /**
7649
7091
  * @description category
7650
7092
  */
@@ -7779,10 +7221,6 @@ declare interface PaymentMethodView {
7779
7221
  * @description 账单地址收集模式
7780
7222
  */
7781
7223
  billingAddressCollectionMode?: string;
7782
- /**
7783
- * @description 分期银行信息列表
7784
- */
7785
- supportIppBankList?: FrontSupportIppBank[];
7786
7224
  }
7787
7225
 
7788
7226
  declare interface PaymentOption {
@@ -7850,10 +7288,6 @@ declare interface PaymentOption {
7850
7288
  * @description 支付选项Logo信息
7851
7289
  */
7852
7290
  logo?: Logo;
7853
- /**
7854
- * @description 支付描述多语言列表。如果入参有locale,且入参的locale有对应语言,则这里只返回locale对应的语言。
7855
- */
7856
- description?: Record<string, string>;
7857
7291
  /**
7858
7292
  * @description extendInfo extendInfo information
7859
7293
  */
@@ -7921,13 +7355,6 @@ declare interface PaymentQuoteInfo {
7921
7355
  * @description payment amount view
7922
7356
  */
7923
7357
  paymentAmountView?: PaymentView;
7924
- /**
7925
- * @description Display exchange rate from FX domain Quote, direction-adjusted and formatted to 2 decimal
7926
- * places. - BID direction: value = 1/price, setScale(2, HALF_UP) - OFFER direction: value =
7927
- * price, setScale(2, HALF_UP) Used for direct frontend access to exchange rate. Example: 3.16 for
7928
- * MYR/SGD currency pair
7929
- */
7930
- quotePrice?: any;
7931
7358
  }
7932
7359
 
7933
7360
  /**
@@ -8037,45 +7464,6 @@ declare interface PaymentSessionConfig {
8037
7464
  productSceneVersion?: string;
8038
7465
  }
8039
7466
 
8040
- /**
8041
- * @description The submit params
8042
- */
8043
- export declare interface PaymentSubmitParams extends SubmitParams {
8044
- /**
8045
- * @description 是否由antom sdk自动处理唤端逻辑,默认为true,由sdk自动处理。
8046
- * 如果antom sdk唤起客户端失败,建议设置为false,商家自行唤端
8047
- */
8048
- handleActions?: boolean;
8049
- /**
8050
- * @description 收件地址信息
8051
- */
8052
- shippingInfo?: ShippingInfo;
8053
- /**
8054
- * @description 集成用户自定义信息(如 cardHolderName)
8055
- */
8056
- params?: Record<string, unknown>;
8057
- }
8058
-
8059
- /**
8060
- * @description Payment element submit result
8061
- */
8062
- export declare interface PaymentSubmitResult extends SubmitResult {
8063
- paymentSession?: {
8064
- /**
8065
- * @description 回调页面的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
8066
- */
8067
- returnUrl: string;
8068
- /**
8069
- * @description 回调页面唤起app的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
8070
- */
8071
- returnAppUrl?: string;
8072
- /**
8073
- * @description 回调页面唤起app的scheme链接,比如 alipay://xxx
8074
- */
8075
- returnAppScheme?: string;
8076
- };
8077
- }
8078
-
8079
7467
  declare interface PaymentView {
8080
7468
  /**
8081
7469
  * @description 金额,以元为单位的金额
@@ -8194,11 +7582,6 @@ declare interface PeriodRule {
8194
7582
  periodCount?: number;
8195
7583
  }
8196
7584
 
8197
- /**
8198
- * @description 工具类型,仅从 Appearance 中拾取与 Props 类型匹配的属性。
8199
- * 返回受 Props 中存在的键约束的部分外观对象。
8200
- * @template Props - 要从 Appearance 中拾取的自定义外观属性类型。
8201
- */
8202
7585
  declare type PickAppearance<Props extends Partial<DefaultAppearanceProps>> = Partial<Pick<Appearance<Props>, keyof Props extends infer k extends keyof Partial<Appearance> ? k : keyof Partial<Appearance>>>;
8203
7586
 
8204
7587
  declare interface PluginContext {
@@ -10171,24 +9554,6 @@ TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ?
10171
9554
 
10172
9555
  declare type Pseudos = AdvancedPseudos | SimplePseudos;
10173
9556
 
10174
- /**
10175
- * @description QR code configuration for code form view
10176
- */
10177
- declare interface QrCodeConfig {
10178
- /**
10179
- * @description QR code render style, e.g. "rounded"
10180
- */
10181
- renderStyle?: string;
10182
- /**
10183
- * @description QR code center icon, can be URL or Base64 format
10184
- */
10185
- centerIcon?: string;
10186
- /**
10187
- * @description QR code corner icon, can be URL or Base64 format
10188
- */
10189
- cornerIcon?: string;
10190
- }
10191
-
10192
9557
  declare interface Rate {
10193
9558
  /**
10194
9559
  * @description rate label value
@@ -10258,31 +9623,13 @@ declare class ReceivePort {
10258
9623
  }): Promise<Record<string, any> | undefined>;
10259
9624
  }
10260
9625
 
10261
- /**
10262
- * @description 从webapp重定向到新URL的配置项。
10263
- * 支持浏览器重定向、app link唤端及schema唤端。
10264
- */
10265
9626
  declare interface RedirectOption {
10266
- /**
10267
- * @description 浏览器重定向到兜底的url,通常在唤端失败时会走这个,或者你不需要唤端,只需要跳转到某个url
10268
- */
10269
9627
  url: string;
10270
- /**
10271
- * @description 唤端到url地址,http或https的地址
10272
- */
10273
- appLinkUrl?: string;
10274
- /**
10275
- * @description 唤端到schema地址, schema://的地址
10276
- */
10277
- schemaUrl?: string;
10278
- /**
10279
- * @description 重定向模式,默认为redirect
10280
- */
10281
9628
  mode?: 'redirect' | 'replace';
10282
9629
  /**
10283
9630
  * @description 是否重定向后销毁实例,默认为true
10284
9631
  */
10285
- destroy?: boolean;
9632
+ destory?: boolean;
10286
9633
  }
10287
9634
 
10288
9635
  declare type ReportData = {
@@ -10513,25 +9860,7 @@ declare interface SharePayInfo {
10513
9860
  securityText?: string;
10514
9861
  }
10515
9862
 
10516
- export declare interface ShippingInfo {
10517
- shippingName: {
10518
- firstName: string;
10519
- lastName: string;
10520
- middleName?: string;
10521
- fullName?: string;
10522
- };
10523
- shippingPhoneNo: string;
10524
- shippingAddress: {
10525
- region: string;
10526
- address1: string;
10527
- address2: string;
10528
- city?: string;
10529
- state?: string;
10530
- zipCode: string;
10531
- };
10532
- }
10533
-
10534
- declare interface ShippingInfo_2 {
9863
+ declare interface ShippingInfo {
10535
9864
  /**
10536
9865
  * @description The unique ID to identify the shipping info
10537
9866
  */
@@ -24449,20 +23778,16 @@ declare interface StandardShorthandPropertiesHyphen<TLength = (string & {}) | 0,
24449
23778
 
24450
23779
  declare type StandardShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<StandardShorthandPropertiesHyphen<TLength, TTime>>;
24451
23780
 
24452
- export declare type SubmitParams = {
24453
- redirect?: 'always' | 'if_required';
24454
- };
24455
-
24456
23781
  /**
24457
- * @description 成功时的数据类型
23782
+ * @description 成功时的data数据类型
24458
23783
  */
24459
23784
  export declare type SubmitResult = {
24460
- /* Excluded from this release type: code */
24461
- /* Excluded from this release type: message */
24462
23785
  /**
24463
23786
  * 查询到的状态
24464
23787
  */
24465
23788
  status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
23789
+ /* Excluded from this release type: code */
23790
+ /* Excluded from this release type: message */
24466
23791
  /**
24467
23792
  * @description 对结果的详细结果码和结果信息,在status为SUCCESS时无该字段
24468
23793
  */
@@ -24475,10 +23800,6 @@ export declare type SubmitResult = {
24475
23800
  * 查询到的结果消息
24476
23801
  */
24477
23802
  message?: string;
24478
- /**
24479
- * @description 是否需要更换 session 重试
24480
- */
24481
- needChangeSessionForRetry?: boolean;
24482
23803
  };
24483
23804
  /**
24484
23805
  * 是否是用户手动取消3D
@@ -24937,16 +24258,6 @@ declare interface TerminalTypeAction {
24937
24258
  interactionType?: string;
24938
24259
  }
24939
24260
 
24940
- /**
24941
- * 主题色映射表 — 将 AntomTheme 映射到 loading 阶段的明暗模式和背景色。
24942
- * 被 antom.ts(老架构入口)和 modernElementController(新架构入口)共用,
24943
- * 确保两条路径的弹窗 loading 表现一致。
24944
- */
24945
- export declare const themeColorMap: Record<AntomTheme, {
24946
- theme: 'dark' | 'light';
24947
- backgroundColor: string;
24948
- }>;
24949
-
24950
24261
  declare class Tracker {
24951
24262
  protected requesterCacheWrapper?: RequesterCacheWrapper;
24952
24263
  private initPromise;
@@ -25276,8 +24587,7 @@ export declare type VaultingAppearance = PickAppearance<VaultingAppearanceProps>
25276
24587
  export declare type VaultingAppearanceProps = {
25277
24588
  displaySetting: 'showCardBrandIcon';
25278
24589
  theme: AntomTheme;
25279
- variables: AntomVariables;
25280
- fonts?: FontSource[];
24590
+ variables: 'background-secondary' | 'radius-module' | 'wrapper-padding' | 'content-primary' | 'border-primary' | 'action-hover' | 'border-disable' | 'content-tertiary' | 'background-primary' | 'background-disable' | 'radius-component' | 'state-failure' | 'action-normal' | 'content-secondary';
25281
24591
  };
25282
24592
 
25283
24593
  /**
@@ -25300,7 +24610,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
25300
24610
  declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
25301
24611
  }
25302
24612
 
25303
- export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
24613
+ export declare interface VaultingElementEvents extends AntomBridgeEventMap<VaultingAppConfig, VaultingSubmitParams> {
25304
24614
  }
25305
24615
 
25306
24616
  /**