@alipay/ams-checkout 0.0.1745390310-dev.0 → 0.0.1745390310-dev.2

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.
@@ -1,24 +1,14 @@
1
- import { IcreateComponent, IoptionsParams, PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../../../types';
1
+ import { IcreateComponent, IoptionsParams } from '../../../types';
2
2
  import CoreInstance from '../../instance/index';
3
3
  type LOCAL_URL = string;
4
4
  export type CKPEmbeddedAppEnv = 'dev' | 'sit' | 'pre' | 'prod';
5
5
  export type CKPEmbeddedEventType = 'SDK_PAYMENT_SUCCESSFUL' | 'SDK_PAYMENT_FAIL' | 'SDK_PAYMENT_CANCEL' | 'SDK_PAYMENT_CLICK_BACK_TO_MERCHANT';
6
6
  export declare const getCKPPageAddress: (env: IoptionsParams['environment'] | LOCAL_URL) => string;
7
7
  export declare class AMSCheckoutPage extends CoreInstance {
8
+ private app;
8
9
  private readonly APP_IFRAME_ID;
9
10
  private eventListener?;
10
11
  constructor(options: Pick<IoptionsParams, 'environment' | 'locale' | 'onEventCallback'>);
11
- /**
12
- * 初始化 Bus总线的能力
13
- */
14
- /**
15
- * To determine whether the corresponding payment method is available,
16
- * only the channel described in the document will be called, and it will be returned as available by default
17
- * @param paymentMethod - described in the document
18
- * @param subPaymentMethod - described in the document
19
- * @returns
20
- */
21
- canMakePayments(paymentMethod: PaymentMethodTypeEnum, subPaymentMethod?: SubPaymentMethodTypeEnum): Promise<boolean>;
22
12
  private generateIframeSrc;
23
13
  private eventListenerWrapper;
24
14
  private addListener;
@@ -42,6 +32,6 @@ export declare class AMSCheckoutPage extends CoreInstance {
42
32
  paymentMethod: any;
43
33
  version: any;
44
34
  request: any;
45
- }, paymentEndFn: any, doSubmit: any): void;
35
+ }): Promise<void>;
46
36
  }
47
37
  export {};