@adyen/adyen-web 5.20.0 → 5.21.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.
@@ -42,6 +42,7 @@ declare class BancontactElement extends CardElement {
42
42
  moveFocus: any;
43
43
  showPanel: any;
44
44
  };
45
+ installmentOptions: any;
45
46
  brand?: string;
46
47
  brands?: string[];
47
48
  showBrandsUnderCardNumber?: boolean;
@@ -37,6 +37,7 @@ export declare class CardElement extends UIElement<CardElementProps> {
37
37
  moveFocus: any;
38
38
  showPanel: any;
39
39
  };
40
+ installmentOptions: any;
40
41
  brand?: string;
41
42
  brands?: string[];
42
43
  showBrandsUnderCardNumber?: boolean;
@@ -24,6 +24,7 @@ export declare class GiftcardElement extends UIElement {
24
24
  private handleBalanceCheck;
25
25
  private onOrderRequest;
26
26
  protected handleOrder: (order: Order) => any;
27
+ balanceCheck(): false | void;
27
28
  onBalanceCheck: () => false | void;
28
29
  payButton: (props: any) => h.JSX.Element;
29
30
  render(): h.JSX.Element;
@@ -11,7 +11,7 @@ export declare const ENCRYPTED_BANK_LOCATION_FIELD = "encryptedBankLocationId";
11
11
  export declare const ENCRYPTED_SECURITY_CODE_3_DIGITS = "encryptedSecurityCode3digits";
12
12
  export declare const ENCRYPTED_SECURITY_CODE_4_DIGITS = "encryptedSecurityCode4digits";
13
13
  export declare const GIFT_CARD = "giftcard";
14
- export declare const SF_VERSION = "4.1.0";
14
+ export declare const SF_VERSION = "4.1.1";
15
15
  export declare const DEFAULT_CARD_GROUP_TYPES: string[];
16
16
  export declare const NON_CREDIT_CARD_TYPE_SECURED_FIELDS: string[];
17
17
  export declare const CREDIT_CARD_SF_FIELDS: string[];
@@ -1,10 +1,11 @@
1
- import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse } from '../../types';
1
+ import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse, SessionConfiguration } from '../../types';
2
2
  import { onOrderCancelData } from "../../components/Dropin/types";
3
3
  declare class Session {
4
4
  private readonly session;
5
5
  private readonly storage;
6
6
  readonly clientKey: string;
7
7
  readonly loadingContext: string;
8
+ configuration: SessionConfiguration;
8
9
  constructor(rawSession: CheckoutSession, clientKey: string, loadingContext: string);
9
10
  get id(): string;
10
11
  get data(): string;
@@ -1,6 +1,7 @@
1
1
  import paymentMethods from '../components';
2
2
  import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
3
3
  import actionTypes from '../core/ProcessResponse/PaymentAction/actionTypes';
4
+ import { InstallmentOptions } from '../components/Card/components/CardInput/components/types';
4
5
  export declare type PaymentActionsType = keyof typeof actionTypes;
5
6
  /**
6
7
  * {@link https://docs.adyen.com/api-explorer/#/PaymentSetupAndVerificationService/v51/payments__resParam_action API Explorer /payments action}
@@ -211,6 +212,9 @@ export declare type CheckoutSession = {
211
212
  id: string;
212
213
  sessionData: string;
213
214
  };
215
+ export declare type SessionConfiguration = {
216
+ installmentOptions: InstallmentOptions;
217
+ };
214
218
  export declare type CheckoutSessionSetupResponse = {
215
219
  id: string;
216
220
  sessionData: string;
@@ -218,6 +222,7 @@ export declare type CheckoutSessionSetupResponse = {
218
222
  expiresAt: string;
219
223
  paymentMethods: any;
220
224
  returnUrl: string;
225
+ configuration: SessionConfiguration;
221
226
  };
222
227
  export declare type CheckoutSessionPaymentResponse = {
223
228
  sessionData: string;
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "./dist/adyen.css": "./dist/adyen.css",
24
24
  "./package.json": "./package.json"
25
25
  },
26
- "version": "5.20.0",
26
+ "version": "5.21.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",