@adyen/adyen-web 5.42.0 → 5.42.1

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.
Files changed (69) hide show
  1. package/dist/adyen.css +2 -2
  2. package/dist/adyen.css.map +1 -1
  3. package/dist/adyen.js +1 -1
  4. package/dist/adyen.js.map +1 -1
  5. package/dist/cjs/adyen.css +2 -2
  6. package/dist/cjs/adyen.css.map +1 -1
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/es/adyen.css +2 -2
  9. package/dist/es/adyen.css.map +1 -1
  10. package/dist/es/index.js +1 -1
  11. package/dist/es.modern/adyen.css +2 -2
  12. package/dist/es.modern/adyen.css.map +1 -1
  13. package/dist/es.modern/index.js +1 -1
  14. package/dist/types/components/ApplePay/types.d.ts +1 -1
  15. package/dist/types/components/Card/{ClickToPayWrapper.d.ts → components/ClickToPayWrapper.d.ts} +1 -1
  16. package/dist/types/components/Card/types.d.ts +1 -28
  17. package/dist/types/components/GooglePay/GooglePay.d.ts +1 -0
  18. package/dist/types/components/GooglePay/defaultProps.d.ts +1 -0
  19. package/dist/types/components/GooglePay/types.d.ts +7 -0
  20. package/dist/types/components/internal/ClickToPay/components/CtPLogin/validate.d.ts +2 -0
  21. package/dist/types/components/{Card/components/ClickToPay/components/CtPLogin → internal/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput}/validate.d.ts +1 -1
  22. package/dist/types/components/{Card/components → internal}/ClickToPay/context/ClickToPayContext.d.ts +4 -4
  23. package/dist/types/components/{Card/components → internal}/ClickToPay/context/ClickToPayProvider.d.ts +4 -4
  24. package/dist/types/components/{Card/components → internal}/ClickToPay/models/ShopperCard.d.ts +1 -1
  25. package/dist/types/components/{Card/components → internal}/ClickToPay/services/create-clicktopay-service.d.ts +2 -1
  26. package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +1 -1
  27. package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/SrciError.d.ts +1 -1
  28. package/dist/types/components/{Card/components → internal}/ClickToPay/services/types.d.ts +1 -1
  29. package/dist/types/components/internal/ClickToPay/types.d.ts +28 -0
  30. package/package.json +1 -1
  31. package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/validate.d.ts +0 -2
  32. package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPSectionTitle.d.ts +0 -0
  33. /package/dist/types/components/Card/{ClickToPayHolder.d.ts → components/ClickToPayHolder.d.ts} +0 -0
  34. /package/dist/types/components/{Card/components → internal}/ClickToPay/ClickToPayComponent.d.ts +0 -0
  35. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPBrand/CtPBrand.d.ts +0 -0
  36. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPBrand/index.d.ts +0 -0
  37. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCards.d.ts +0 -0
  38. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +0 -0
  39. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPCardsList/index.d.ts +0 -0
  40. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +0 -0
  41. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/CtPSingleCard/index.d.ts +0 -0
  42. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPCards/index.d.ts +0 -0
  43. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfo.d.ts +0 -0
  44. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfoModal/CtPInfoModal.d.ts +0 -0
  45. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/CtPInfoModal/index.d.ts +0 -0
  46. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPInfo/index.d.ts +0 -0
  47. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLoader/CtPLoader.d.ts +0 -0
  48. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLoader/index.d.ts +0 -0
  49. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/CtPLogin.d.ts +0 -0
  50. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +0 -0
  51. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPLogin/index.d.ts +0 -0
  52. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +0 -0
  53. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +0 -0
  54. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.d.ts +0 -0
  55. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/index.d.ts +0 -0
  56. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPOneTimePassword/index.d.ts +0 -0
  57. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/CtPLogoutLink.d.ts +0 -0
  58. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/CtPSection.d.ts +0 -0
  59. /package/dist/types/components/{Card/components → internal}/ClickToPay/components/CtPSection/index.d.ts +0 -0
  60. /package/dist/types/components/{Card/components → internal}/ClickToPay/context/useClickToPayContext.d.ts +0 -0
  61. /package/dist/types/components/{Card/components → internal}/ClickToPay/index.d.ts +0 -0
  62. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/ClickToPayService.d.ts +0 -0
  63. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/MastercardSdk.d.ts +0 -0
  64. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/SrcSdkLoader.d.ts +0 -0
  65. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/VisaSdk.d.ts +0 -0
  66. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/config.d.ts +0 -0
  67. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/types.d.ts +0 -0
  68. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/sdks/utils.d.ts +0 -0
  69. /package/dist/types/components/{Card/components → internal}/ClickToPay/services/utils.d.ts +0 -0
@@ -23,7 +23,7 @@ export interface ApplePayElementProps extends UIElementProps {
23
23
  * Part of the 'ApplePayLineItem' object, which sets the label of the payment request
24
24
  * @see {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem ApplePayLineItem docs}
25
25
  */
26
- totalPriceLabel: string;
26
+ totalPriceLabel?: string;
27
27
  /**
28
28
  * @default 'final'
29
29
  */
@@ -1,4 +1,4 @@
1
- import { ClickToPayProviderProps } from './components/ClickToPay/context/ClickToPayProvider';
1
+ import { ClickToPayProviderProps } from '../../internal/ClickToPay/context/ClickToPayProvider';
2
2
  import { h } from 'preact';
3
3
  declare const ClickToPayWrapper: ({ amount, configuration, clickToPayService, setClickToPayRef, onSetStatus, onSubmit, onError, ...props }: ClickToPayProviderProps) => h.JSX.Element;
4
4
  export default ClickToPayWrapper;
@@ -2,6 +2,7 @@ import { UIElementProps } from '../types';
2
2
  import { AddressData, BrowserInfo } from '../../types';
3
3
  import { CbObjOnBinValue, CbObjOnBrand, CbObjOnConfigSuccess, CbObjOnError, CbObjOnFieldValid, CbObjOnFocus, CbObjOnLoad, CbObjOnBinLookup } from '../internal/SecuredFields/lib/types';
4
4
  import { CVCPolicyType, DatePolicyType } from '../internal/SecuredFields/lib/types';
5
+ import { ClickToPayConfiguration } from '../internal/ClickToPay/types';
5
6
  export interface CardElementProps extends UIElementProps {
6
7
  /**
7
8
  * Only set for a stored card,
@@ -84,34 +85,6 @@ export interface CardElementProps extends UIElementProps {
84
85
  onBinLookup?: (event: CbObjOnBinLookup) => void;
85
86
  [key: string]: any;
86
87
  }
87
- export type ClickToPayScheme = 'mc' | 'visa';
88
- export type ClickToPayConfiguration = {
89
- /**
90
- * Shopper email used to be recognized with the Network schemes
91
- */
92
- shopperEmail?: string;
93
- /**
94
- * Shopper telephone number used to be recognized with the Network schemes
95
- */
96
- telephoneNumber?: string;
97
- /**
98
- * Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
99
- */
100
- merchantDisplayName: string;
101
- /**
102
- * Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
103
- * defined during the creation of the Checkout.
104
- * Format: ISO language_country pair (e.g., en_US )
105
- *
106
- * @defaultValue en_US
107
- */
108
- locale?: string;
109
- /**
110
- * Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
111
- * @defaultValue false
112
- */
113
- disableOtpAutoFocus?: boolean;
114
- };
115
88
  export type SocialSecurityMode = 'show' | 'hide' | 'auto';
116
89
  /** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
117
90
  export interface CardConfiguration {
@@ -31,6 +31,7 @@ declare class GooglePay extends UIElement<GooglePayProps> {
31
31
  allowPrepaidCards: boolean;
32
32
  billingAddressRequired: boolean;
33
33
  billingAddressParameters: any;
34
+ assuranceDetailsRequired: boolean;
34
35
  emailRequired: boolean;
35
36
  shippingAddressRequired: boolean;
36
37
  shippingAddressParameters: any;
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  allowPrepaidCards: boolean;
26
26
  billingAddressRequired: boolean;
27
27
  billingAddressParameters: any;
28
+ assuranceDetailsRequired: boolean;
28
29
  emailRequired: boolean;
29
30
  shippingAddressRequired: boolean;
30
31
  shippingAddressParameters: any;
@@ -47,6 +47,13 @@ export interface GooglePayProps extends UIElementProps {
47
47
  countryCode?: string;
48
48
  allowedAuthMethods?: google.payments.api.CardAuthMethod[];
49
49
  allowedCardNetworks?: google.payments.api.CardNetwork[];
50
+ /**
51
+ * Set to true to request assuranceDetails. This object provides information
52
+ * about the validation performed on the returned payment data.
53
+ *
54
+ * @defaultValue false
55
+ */
56
+ assuranceDetailsRequired?: boolean;
50
57
  /**
51
58
  * Set to false if you don't support credit cards.
52
59
  * @defaultValue true
@@ -0,0 +1,2 @@
1
+ import { ValidatorRules } from '../../../../../utils/Validator/types';
2
+ export declare const loginValidationRules: ValidatorRules;
@@ -1,2 +1,2 @@
1
1
  import { ValidatorRules } from '../../../../../../utils/Validator/types';
2
- export declare const loginValidationRules: ValidatorRules;
2
+ export declare const otpValidationRules: ValidatorRules;
@@ -1,10 +1,10 @@
1
1
  import { CtpState } from '../services/ClickToPayService';
2
2
  import { ClickToPayCheckoutPayload, IClickToPayService } from '../services/types';
3
- import { PaymentAmount } from '../../../../../types';
4
3
  import ShopperCard from '../models/ShopperCard';
5
- import { UIElementStatus } from '../../../../types';
6
- import AdyenCheckoutError from '../../../../../core/Errors/AdyenCheckoutError';
7
- import { ClickToPayConfiguration } from '../../../types';
4
+ import { ClickToPayConfiguration } from '../types';
5
+ import { UIElementStatus } from '../../../types';
6
+ import { PaymentAmount } from '../../../../types';
7
+ import AdyenCheckoutError from '../../../../core/Errors/AdyenCheckoutError';
8
8
  export interface IClickToPayContext extends Pick<IClickToPayService, 'checkout' | 'startIdentityValidation' | 'finishIdentityValidation' | 'verifyIfShopperIsEnrolled'> {
9
9
  isCtpPrimaryPaymentMethod: boolean;
10
10
  setIsCtpPrimaryPaymentMethod(isPrimary: boolean): void;
@@ -1,9 +1,9 @@
1
1
  import { h } from 'preact';
2
2
  import { ClickToPayCheckoutPayload, IClickToPayService } from '../services/types';
3
- import { PaymentAmount } from '../../../../../types';
4
- import { UIElementStatus } from '../../../../types';
5
- import AdyenCheckoutError from '../../../../../core/Errors/AdyenCheckoutError';
6
- import { ClickToPayConfiguration } from '../../../types';
3
+ import { ClickToPayConfiguration } from '../types';
4
+ import AdyenCheckoutError from '../../../../core/Errors/AdyenCheckoutError';
5
+ import { UIElementStatus } from '../../../types';
6
+ import { PaymentAmount } from '../../../../types';
7
7
  export type ClickToPayProviderProps = {
8
8
  clickToPayService: IClickToPayService | null;
9
9
  configuration: ClickToPayConfiguration;
@@ -1,5 +1,5 @@
1
1
  import { SrcCard } from '../services/sdks/types';
2
- import { ClickToPayScheme } from '../../../types';
2
+ import { ClickToPayScheme } from '../types';
3
3
  declare class ShopperCard {
4
4
  dateOfCardLastUsed: string;
5
5
  panLastFour: string;
@@ -1,5 +1,6 @@
1
1
  import { IClickToPayService } from './types';
2
- import { CardConfiguration, ClickToPayConfiguration } from '../../../types';
2
+ import { CardConfiguration } from '../../../Card/types';
3
+ import { ClickToPayConfiguration } from '../types';
3
4
  /**
4
5
  * Creates the Click to Pay service in case the required configuration is provided
5
6
  */
@@ -1,5 +1,5 @@
1
1
  import { CustomSdkConfiguration, SrcCheckoutParams, SrciCheckoutResponse, SrciCompleteIdentityValidationResponse, SrcIdentityLookupParams, SrciIdentityLookupResponse, SrciInitiateIdentityValidationResponse, SrciIsRecognizedResponse, SrcInitParams, SrcProfile } from './types';
2
- import { ClickToPayScheme } from '../../../../types';
2
+ import { ClickToPayScheme } from '../../types';
3
3
  export interface ISrcInitiator {
4
4
  schemeName: ClickToPayScheme;
5
5
  loadSdkScript(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { ClickToPayScheme } from '../../../../types';
1
+ import { ClickToPayScheme } from '../../types';
2
2
  type MastercardError = {
3
3
  message: string;
4
4
  reason: string;
@@ -1,7 +1,7 @@
1
1
  import { CtpState } from './ClickToPayService';
2
2
  import { SrcInitParams, SrcProfile } from './sdks/types';
3
- import { ClickToPayScheme } from '../../../types';
4
3
  import ShopperCard from '../models/ShopperCard';
4
+ import { ClickToPayScheme } from '../types';
5
5
  export interface IClickToPayService {
6
6
  state: CtpState;
7
7
  shopperCards: ShopperCard[];
@@ -0,0 +1,28 @@
1
+ export type ClickToPayConfiguration = {
2
+ /**
3
+ * Shopper email used to be recognized with the Network schemes
4
+ */
5
+ shopperEmail?: string;
6
+ /**
7
+ * Shopper telephone number used to be recognized with the Network schemes
8
+ */
9
+ telephoneNumber?: string;
10
+ /**
11
+ * Used to display the merchant name in case the DCF appears (ex: first time doing transaction in the device),
12
+ */
13
+ merchantDisplayName: string;
14
+ /**
15
+ * Used to ensure the correct language and user experience if DCF screen is displayed. As a fallback, it uses the main locale
16
+ * defined during the creation of the Checkout.
17
+ * Format: ISO language_country pair (e.g., en_US )
18
+ *
19
+ * @defaultValue en_US
20
+ */
21
+ locale?: string;
22
+ /**
23
+ * Disable autofocus on the One Time Password input field when it is either displayed or when the OTP is resent
24
+ * @defaultValue false
25
+ */
26
+ disableOtpAutoFocus?: boolean;
27
+ };
28
+ export type ClickToPayScheme = 'mc' | 'visa';
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "./dist/es/adyen.css": "./dist/es/adyen.css",
25
25
  "./package.json": "./package.json"
26
26
  },
27
- "version": "5.42.0",
27
+ "version": "5.42.1",
28
28
  "license": "MIT",
29
29
  "homepage": "https://docs.adyen.com/checkout",
30
30
  "repository": "github:Adyen/adyen-web",
@@ -1,2 +0,0 @@
1
- import { ValidatorRules } from '../../../../../../../utils/Validator/types';
2
- export declare const otpValidationRules: ValidatorRules;