@alipay/ams-checkout 2.0.18 → 2.0.20

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.
@@ -8,7 +8,7 @@
8
8
  import type { AxiosHeaderValue } from 'axios';
9
9
  import { IApplePayContactField } from '../plugin/applepay/interface';
10
10
  export type onChange = () => onCnageResult;
11
- export { type IElementOptions, ElementType, PaymentElementLayout, ThemeType } from '../core/component/element/type';
11
+ export { ElementType, PaymentElementLayout, ThemeType, type IElementOptions } from '../core/component/element/type';
12
12
  interface onCnageResult {
13
13
  complete: boolean;
14
14
  addressValue: AddressItem[];
@@ -40,6 +40,7 @@ export interface IoptionsParams {
40
40
  networkMode?: string;
41
41
  mode?: string;
42
42
  securityRegion?: 'US' | 'SG' | 'DE';
43
+ preview?: boolean | 'web' | 'mobile';
43
44
  }
44
45
  export interface ValidationResult {
45
46
  isValid: boolean;
@@ -126,6 +127,7 @@ export interface IcreateComponent {
126
127
  isAppWebview?: boolean;
127
128
  merchantAppointParam?: IMerchantAppointParam;
128
129
  isNativeAppWebview?: boolean;
130
+ isDemoMode?: boolean;
129
131
  }
130
132
  export interface IappendIframeNodesParams extends IcreateComponent {
131
133
  paymentSessionMetaData: IPaymentSessionMetaData;
@@ -810,6 +812,7 @@ export interface IPaymentMethod {
810
812
  applePayProps?: {
811
813
  paymentRequest: ApplePayPaymentRequest;
812
814
  };
815
+ googlePayProps?: any;
813
816
  };
814
817
  interActionType?: InterActionTypeEnum;
815
818
  recommend?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "exports": {
package/types.d.ts CHANGED
@@ -605,6 +605,7 @@ declare class AxiosHeaders {
605
605
  rewrite?: boolean | AxiosHeaderMatcher
606
606
  ): AxiosHeaders;
607
607
  set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
608
+ set(headers?: Iterable<[string, AxiosHeaderValue]>, rewrite?: boolean): AxiosHeaders;
608
609
 
609
610
  get(headerName: string, parser: RegExp): RegExpExecArray | null;
610
611
  get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
@@ -665,6 +666,8 @@ declare class AxiosHeaders {
665
666
 
666
667
  getSetCookie(): string[];
667
668
 
669
+ toString(): string;
670
+
668
671
  [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
669
672
  }
670
673
 
@@ -632,6 +632,7 @@ declare class AxiosHeaders {
632
632
  rewrite?: boolean | AxiosHeaderMatcher
633
633
  ): AxiosHeaders;
634
634
  set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
635
+ set(headers?: Iterable<[string, AxiosHeaderValue]>, rewrite?: boolean): AxiosHeaders;
635
636
 
636
637
  get(headerName: string, parser: RegExp): RegExpExecArray | null;
637
638
  get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
@@ -692,6 +693,8 @@ declare class AxiosHeaders {
692
693
 
693
694
  getSetCookie(): string[];
694
695
 
696
+ toString(): string;
697
+
695
698
  [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
696
699
  }
697
700