@duffel/components 3.7.27 → 3.7.29

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.
@@ -33,7 +33,7 @@ interface create3DSSessionPayload {
33
33
  card_id: string;
34
34
  resource_id: string;
35
35
  services?: Array<Service>;
36
- cardholder_present: boolean;
36
+ cardholder_present: boolean | null;
37
37
  exception: string;
38
38
  }
39
39
  export declare const createClient: (duffelUrl: string, clientKey: string) => {
@@ -11,13 +11,13 @@ declare const DEFAULT_ENVIRONMENT_CONFIGURATION: {
11
11
  * @param cardId - The card ID used for the 3DS session.
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
- * @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
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. This can be null if there is an exception.
15
15
  * @param exception - The name of the exception used to opt out of authenticating the payment with the card issuer
16
16
  */
17
17
  type CreateThreeDSecureSessionFn = (clientKey: string, cardId: string, resourceId: string, services: Array<{
18
18
  id: string;
19
19
  quantity: number;
20
- }>, cardholderPresent: boolean, exception?: string, environmentConfiguration?: Partial<typeof DEFAULT_ENVIRONMENT_CONFIGURATION>) => Promise<ThreeDSecureSession>;
20
+ }>, cardholderPresent: boolean | null, exception?: string, environmentConfiguration?: Partial<typeof DEFAULT_ENVIRONMENT_CONFIGURATION>) => Promise<ThreeDSecureSession>;
21
21
  declare global {
22
22
  interface Window {
23
23
  createThreeDSecureSession: CreateThreeDSecureSessionFn;