@alipay/ams-checkout 0.0.1690858103-dev.1 → 0.0.1690894389-dev.0

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.
@@ -55,13 +55,12 @@ export interface IcreateComponent {
55
55
  export interface IappendIframeNodesParams extends IcreateComponent {
56
56
  paymentSessionMetaData?: IpaymentSessionMetaData;
57
57
  }
58
- interface IpaymentSessionConfig {
59
- productScene: productSceneEnum;
60
- paymentMethodCategoryType: paymentMethodCategoryTypeEnum;
61
- productSceneVersion: string;
62
- }
63
58
  export interface IpaymentSessionMetaData {
64
- paymentSessionConfig?: IpaymentSessionConfig;
59
+ paymentSessionConfig?: {
60
+ productScene: productSceneEnum;
61
+ paymentMethodCategoryType: paymentMethodCategoryTypeEnum;
62
+ productSceneVersion?: string;
63
+ };
65
64
  moneyView?: any;
66
65
  extendInfo?: string;
67
66
  paymentMethodInfoView?: any;
@@ -143,7 +142,7 @@ export interface AMSCheckoutOptions {
143
142
  mode: string;
144
143
  analytics?: Ianalytics;
145
144
  }
146
- export interface Ianalytics {
145
+ interface Ianalytics {
147
146
  enabled: boolean;
148
147
  }
149
148
  export declare enum ERROR {
@@ -176,12 +175,6 @@ export interface RequestConfig {
176
175
  locale?: string;
177
176
  hostSign?: string;
178
177
  }
179
- export interface CashierSdkActionQueryRequest {
180
- paymentSessionData: string;
181
- paymentSessionConfig?: IpaymentSessionConfig;
182
- paymentMethodType?: string;
183
- extParams?: any;
184
- }
185
178
  declare global {
186
179
  interface Window {
187
180
  [key: string]: any;
@@ -230,6 +230,6 @@ var queryParse = function queryParse(url) {
230
230
  var getDesignFontSize = function getDesignFontSize() {
231
231
  var screenWidth = document.documentElement.clientWidth;
232
232
  var currentFontSize = isPC() ? 100 : screenWidth * 100 / 390;
233
- return Math.min(currentFontSize, 100);
233
+ return currentFontSize;
234
234
  };
235
235
  export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, device, fomatGetwayError, safeJson, isPC, queryParse, getDesignFontSize };