@adyen/adyen-web 5.9.0 → 5.10.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.
@@ -22,6 +22,14 @@ declare class BancontactElement extends CardElement {
22
22
  countryCode: any;
23
23
  configuration: {
24
24
  socialSecurityNumberMode: import("./types").SocialSecurityMode;
25
+ merchantIdentifier?: string;
26
+ merchantOrigin?: string;
27
+ gatewayMerchantId?: string;
28
+ publicKeyId?: string;
29
+ region?: string;
30
+ merchantName?: string;
31
+ merchantId?: string;
32
+ intent?: string;
25
33
  koreanAuthenticationRequired?: boolean;
26
34
  icon?: string;
27
35
  brandsConfiguration?: import("./types").CardBrandsConfiguration;
@@ -17,6 +17,14 @@ export declare class CardElement extends UIElement<CardElementProps> {
17
17
  countryCode: any;
18
18
  configuration: {
19
19
  socialSecurityNumberMode: import("./types").SocialSecurityMode;
20
+ merchantIdentifier?: string;
21
+ merchantOrigin?: string;
22
+ gatewayMerchantId?: string;
23
+ publicKeyId?: string;
24
+ region?: string;
25
+ merchantName?: string;
26
+ merchantId?: string;
27
+ intent?: string;
20
28
  koreanAuthenticationRequired?: boolean;
21
29
  icon?: string;
22
30
  brandsConfiguration?: import("./types").CardBrandsConfiguration;
@@ -38,7 +46,11 @@ export declare class CardElement extends UIElement<CardElementProps> {
38
46
  onFieldValid?: (event: import("../internal/SecuredFields/lib/types").CbObjOnFieldValid) => void;
39
47
  onBrand?: (event: import("../internal/SecuredFields/lib/types").CbObjOnBrand) => void;
40
48
  onError?: (event: import("../internal/SecuredFields/lib/types").CbObjOnError) => void;
41
- onFocus?: (event: import("../internal/SecuredFields/lib/types").CbObjOnFocus) => void;
49
+ onFocus?: (event: import("../internal/SecuredFields/lib/types").CbObjOnFocus) => void; /**
50
+ * this.props.brand is never set for the generic card only for a 'dedicated' single-branded card e.g. bcmc
51
+ * this.state.selectedBrandValue will be set when /binLookup detects a single brand &/or when /binLookup detects a dual-branded card and
52
+ * the shopper makes a brand selection
53
+ */
42
54
  onBinValue?: (event: import("../internal/SecuredFields/lib/types").CbObjOnBinValue) => void;
43
55
  onBinLookup?: (event: CbObjOnBinLookup) => void;
44
56
  session?: {
@@ -33,6 +33,7 @@ export interface CardElementProps extends UIElementProps {
33
33
  hasHolderName?: boolean;
34
34
  /** Whether the card holder name field will be required */
35
35
  holderNameRequired?: boolean;
36
+ /** An object sent in the /paymentMethods response */
36
37
  configuration?: CardConfiguration;
37
38
  /**
38
39
  * Called once all the card input fields have been created but are not yet ready to use.
@@ -70,7 +71,16 @@ export interface CardElementProps extends UIElementProps {
70
71
  [key: string]: any;
71
72
  }
72
73
  export declare type SocialSecurityMode = 'show' | 'hide' | 'auto';
74
+ /** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
73
75
  export interface CardConfiguration {
76
+ merchantIdentifier?: string;
77
+ merchantOrigin?: string;
78
+ gatewayMerchantId?: string;
79
+ publicKeyId?: string;
80
+ region?: string;
81
+ merchantName?: string;
82
+ merchantId?: string;
83
+ intent?: string;
74
84
  koreanAuthenticationRequired?: boolean;
75
85
  socialSecurityNumberMode?: SocialSecurityMode;
76
86
  icon?: string;
@@ -0,0 +1,6 @@
1
+ import IssuerListContainer from '../helpers/IssuerListContainer';
2
+ declare class OnlineBankingINElement extends IssuerListContainer {
3
+ static type: string;
4
+ formatProps(props: any): any;
5
+ }
6
+ export default OnlineBankingINElement;
@@ -46,6 +46,7 @@ import PersonalDetails from './PersonalDetails';
46
46
  import Klarna from './Klarna';
47
47
  import Twint from './Twint';
48
48
  import MealVoucherFR from './MealVoucherFR';
49
+ import OnlineBankingINElement from './OnlineBankingIN';
49
50
  /**
50
51
  * Maps each component with a Component element.
51
52
  */
@@ -121,6 +122,7 @@ declare const componentsMap: {
121
122
  molpay_ebanking_fpx_MY: typeof MolPayEBankingMY;
122
123
  molpay_ebanking_TH: typeof MolPayEBankingTH;
123
124
  molpay_ebanking_VN: typeof MolPayEBankingVN;
125
+ onlinebanking_IN: typeof OnlineBankingINElement;
124
126
  openbanking_UK: typeof OpenBankingUK;
125
127
  paypal: typeof PayPal;
126
128
  payu_IN_cashcard: typeof PayuCashcard;
@@ -7,8 +7,8 @@ import { BinLookupResponse } from '../../../Card/types';
7
7
  * Initialises & handles the client-side part of SecuredFields
8
8
  */
9
9
  declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
10
- private originKeyErrorTimeout;
11
- private originKeyTimeoutMS;
10
+ private invalidOriginErrorTimeout;
11
+ private invalidOriginTimeoutMS;
12
12
  private numCharsInField;
13
13
  private rootNode;
14
14
  private numDateFields;
@@ -1,6 +1,6 @@
1
1
  import { CbObjOnError, CbObjOnFocus, CbObjOnBrand, CbObjOnAllValid, CbObjOnFieldValid, CbObjOnAutoComplete, CbObjOnConfigSuccess, CbObjOnLoad } from '../lib/types';
2
2
  /**
3
- * Emits the onConfigSuccess (ready) event
3
+ * Emits the onLoad event
4
4
  * Here we can assume CSF is loaded and ready to be used
5
5
  */
6
6
  declare function handleOnLoad(cbObj: CbObjOnLoad): void;
@@ -83,6 +83,7 @@ export interface CbObjOnFieldValid {
83
83
  rootNode: HTMLElement;
84
84
  blob?: string;
85
85
  endDigits?: string;
86
+ issuerBin?: number;
86
87
  }
87
88
  export interface CbObjOnAutoComplete {
88
89
  fieldType: string;
@@ -102,8 +103,8 @@ export interface CbObjOnBinLookup {
102
103
  supportedBrands?: string[];
103
104
  brands?: string[];
104
105
  supportedBrandsRaw?: BrandObject[];
105
- isReset?: boolean;
106
106
  rootNode?: HTMLElement;
107
+ isReset?: boolean;
107
108
  }
108
109
  export interface CbObjOnError {
109
110
  fieldType: string;
@@ -150,6 +151,7 @@ export interface SFFeedbackObj {
150
151
  maxLength?: number;
151
152
  error?: string;
152
153
  endDigits?: string;
154
+ issuerBin?: string;
153
155
  type?: string;
154
156
  binValue?: string;
155
157
  focus?: boolean;
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.9.0",
26
+ "version": "5.10.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",
@@ -84,12 +84,12 @@
84
84
  "gzip-size": "^6.0.0",
85
85
  "jest": "^26.6.3",
86
86
  "node-sass": "^6.0.1",
87
- "postcss": "^8.4.5",
87
+ "postcss": "^8.4.7",
88
88
  "postcss-reporter": "^7.0.2",
89
89
  "prettier": "^1.19.1",
90
90
  "rollup": "^2.61.1",
91
91
  "rollup-plugin-esbuild": "^4.5.0",
92
- "rollup-plugin-postcss": "^4.0.0",
92
+ "rollup-plugin-postcss": "^4.0.2",
93
93
  "rollup-plugin-terser": "^7.0.2",
94
94
  "rollup-plugin-visualizer": "^5.5.1",
95
95
  "stylelint": "^13.13.1",