@adyen/adyen-web 5.17.0 → 5.18.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.
@@ -54,7 +54,6 @@ export interface AmazonPayElementProps {
54
54
  placement?: Placement;
55
55
  productType?: ProductType;
56
56
  recurringMetadata?: RecurringMetadata;
57
- region?: Region;
58
57
  returnUrl?: string;
59
58
  showChangePaymentDetailsButton: boolean;
60
59
  showOrderButton: boolean;
@@ -1,5 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import UIElement from '../UIElement';
3
+ import { Order } from '../../types';
3
4
  export declare class GiftcardElement extends UIElement {
4
5
  static type: string;
5
6
  protected static defaultProps: {
@@ -22,6 +23,7 @@ export declare class GiftcardElement extends UIElement {
22
23
  get displayName(): any;
23
24
  private handleBalanceCheck;
24
25
  private onOrderRequest;
26
+ protected handleOrder: (order: Order) => any;
25
27
  onBalanceCheck: () => false | void;
26
28
  payButton: (props: any) => h.JSX.Element;
27
29
  render(): h.JSX.Element;
@@ -67,7 +67,7 @@ export declare const createFingerprintResolveData: (dataKey: string, resultObj:
67
67
  export declare const createOldFingerprintResolveData: (dataKey: string, resultObj: ResultObject, paymentData: string) => any;
68
68
  export declare const createChallengeResolveData: (dataKey: string, transStatus: string, authorisationToken: string) => ChallengeResolveData;
69
69
  export declare const createOldChallengeResolveData: (dataKey: string, transStatus: string, authorisationToken: string) => any;
70
- export declare const handleErrorCode: (errorCode: string) => ErrorObject;
70
+ export declare const handleErrorCode: (errorCode: string, errorDescription?: string) => ErrorObject;
71
71
  /**
72
72
  *
73
73
  * Takes a string and encodes it as a base64url string
@@ -8,7 +8,7 @@ export interface CoreOptions {
8
8
  /**
9
9
  * Use test. When you're ready to accept live payments, change the value to one of our {@link https://docs.adyen.com/checkout/drop-in-web#testing-your-integration | live environments}.
10
10
  */
11
- environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | string;
11
+ environment?: 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in' | string;
12
12
  /**
13
13
  * A public key linked to your web service user, used for {@link https://docs.adyen.com/user-management/client-side-authentication | client-side authentication}.
14
14
  */
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.17.0",
26
+ "version": "5.18.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",