@duffel/components 3.7.25 → 3.7.27
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.
- package/README.md +1 -1
- package/custom-elements.js +2 -2
- package/custom-elements.js.map +1 -1
- package/functions/createThreeDSecureSession/client.d.ts +1 -0
- package/functions/createThreeDSecureSession/createThreeDSecureSession.d.ts +2 -1
- package/index.js +3 -3
- package/index.js.map +3 -3
- package/package.json +10 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -34,6 +34,7 @@ interface create3DSSessionPayload {
|
|
|
34
34
|
resource_id: string;
|
|
35
35
|
services?: Array<Service>;
|
|
36
36
|
cardholder_present: boolean;
|
|
37
|
+
exception: string;
|
|
37
38
|
}
|
|
38
39
|
export declare const createClient: (duffelUrl: string, clientKey: string) => {
|
|
39
40
|
create3DSSessionInDuffelAPI: (data: create3DSSessionPayload) => Promise<ThreeDSecureSession>;
|
|
@@ -12,11 +12,12 @@ declare const DEFAULT_ENVIRONMENT_CONFIGURATION: {
|
|
|
12
12
|
* @param resourceId - The resource (offer, order, order change) ID that the 3DS session is for.
|
|
13
13
|
* @param services - Include all services that are being added, empty if no services are being added. This is required when services are also being purchased to ensure an accurate total amount to be authorised. If no services, it should be an empty array.
|
|
14
14
|
* @param cardholderPresent - Whether the cardholder was present when the 3DS session was created. If you are collecting card details offline, for example an agent interface for entering card details received from the traveller over the phone, then you must specify the cardholder as not present
|
|
15
|
+
* @param exception - The name of the exception used to opt out of authenticating the payment with the card issuer
|
|
15
16
|
*/
|
|
16
17
|
type CreateThreeDSecureSessionFn = (clientKey: string, cardId: string, resourceId: string, services: Array<{
|
|
17
18
|
id: string;
|
|
18
19
|
quantity: number;
|
|
19
|
-
}>, cardholderPresent: boolean, environmentConfiguration?: Partial<typeof DEFAULT_ENVIRONMENT_CONFIGURATION>) => Promise<ThreeDSecureSession>;
|
|
20
|
+
}>, cardholderPresent: boolean, exception?: string, environmentConfiguration?: Partial<typeof DEFAULT_ENVIRONMENT_CONFIGURATION>) => Promise<ThreeDSecureSession>;
|
|
20
21
|
declare global {
|
|
21
22
|
interface Window {
|
|
22
23
|
createThreeDSecureSession: CreateThreeDSecureSessionFn;
|