/**
 * Adyen Checkout API
 * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort).  This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments).  ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example:  ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://checkout-test.adyen.com/v68/payments ```
 *
 * The version of the OpenAPI document: 68
 * Contact: developer-experience@adyen.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { AcctInfo } from './acctInfo' ; import { DeviceRenderOptions } from './deviceRenderOptions' ; import { Phone } from './phone' ; import { SDKEphemPubKey } from './sDKEphemPubKey' ; import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo' ; import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo' ; export class ThreeDS2RequestData { 'acctInfo' ? : AcctInfo ; /**
    * Indicates the type of account. For example, for a multi-account card product.
    */ 'acctType' ? : string ; /**
    * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform.
    */ 'acquirerBIN' ? : string ; /**
    * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform.
    */ 'acquirerMerchantID' ? : string ; /**
    * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same.
    */ 'addrMatch' ? : string ; /**
    * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
    */ 'authenticationOnly' ? : boolean ; /**
    * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate`
    */ 'challengeIndicator' ? : ThreeDS2RequestData . ChallengeIndicatorEnum ; /**
    * The environment of the shopper. Allowed values: * `app` * `browser`
    */ 'deviceChannel' : string ; 'deviceRenderOptions' ? : DeviceRenderOptions ; 'homePhone' ? : Phone ; /**
    * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme.
    */ 'mcc' ? : string ; /**
    * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account.
    */ 'merchantName' ? : string ; /**
    * The `messageVersion` value indicating the 3D Secure 2 protocol version.
    */ 'messageVersion' ? : string ; 'mobilePhone' ? : Phone ; /**
    * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**.
    */ 'notificationURL' ? : string ; /**
    * A value of True indicates that the transaction was de-tokenised prior to being received by the ACS.
    */ 'payTokenInd' ? : boolean ; /**
    * Indicates the type of payment for which an authentication is requested (message extension)
    */ 'paymentAuthenticationUseCase' ? : string ; /**
    * Indicates the maximum number of authorisations permitted for instalment payments.
    */ 'purchaseInstalData' ? : string ; /**
    * Date after which no further authorisations shall be performed.
    */ 'recurringExpiry' ? : string ; /**
    * Indicates the minimum number of days between authorisations.
    */ 'recurringFrequency' ? : string ; /**
    * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**.
    */ 'sdkAppID' ? : string ; /**
    * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**.
    */ 'sdkEncData' ? : string ; 'sdkEphemPubKey' ? : SDKEphemPubKey ; /**
    * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes.
    */ 'sdkMaxTimeout' ? : number ; /**
    * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**.
    */ 'sdkReferenceNumber' ? : string ; /**
    * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**.
    */ 'sdkTransID' ? : string ; /**
    * Version of the 3D Secure 2 mobile SDK.  Only for `deviceChannel` set to **app**.
    */ 'sdkVersion' ? : string ; /**
    * Completion indicator for the device fingerprinting.
    */ 'threeDSCompInd' ? : string ; /**
    * Indicates the type of Authentication request.
    */ 'threeDSRequestorAuthenticationInd' ? : string ; 'threeDSRequestorAuthenticationInfo' ? : ThreeDSRequestorAuthenticationInfo ; /**
    * Indicates whether a challenge is requested for this transaction.
    */ 'threeDSRequestorChallengeInd' ? : string ; /**
    * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2.
    */ 'threeDSRequestorID' ? : string ; /**
    * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2.
    */ 'threeDSRequestorName' ? : string ; 'threeDSRequestorPriorAuthenticationInfo' ? : ThreeDSRequestorPriorAuthenticationInfo ; /**
    * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process.
    */ 'threeDSRequestorURL' ? : string ; /**
    * Identifies the type of transaction being authenticated.
    */ 'transType' ? : string ; /**
    * Identify the type of the transaction being authenticated.
    */ 'transactionType' ? : ThreeDS2RequestData . TransactionTypeEnum ; /**
    * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0.
    */ 'whiteListStatus' ? : string ; 'workPhone' ? : Phone ; static discriminator : string | undefined = undefined ; static attributeTypeMap : Array < { name : string ; baseName : string ; type : string ; } > = [ { "name" : "acctInfo" , "baseName" : "acctInfo" , "type" : "AcctInfo" } , { "name" : "acctType" , "baseName" : "acctType" , "type" : "string" } , { "name" : "acquirerBIN" , "baseName" : "acquirerBIN" , "type" : "string" } , { "name" : "acquirerMerchantID" , "baseName" : "acquirerMerchantID" , "type" : "string" } , { "name" : "addrMatch" , "baseName" : "addrMatch" , "type" : "string" } , { "name" : "authenticationOnly" , "baseName" : "authenticationOnly" , "type" : "boolean" } , { "name" : "challengeIndicator" , "baseName" : "challengeIndicator" , "type" : "ThreeDS2RequestData.ChallengeIndicatorEnum" } , { "name" : "deviceChannel" , "baseName" : "deviceChannel" , "type" : "string" } , { "name" : "deviceRenderOptions" , "baseName" : "deviceRenderOptions" , "type" : "DeviceRenderOptions" } , { "name" : "homePhone" , "baseName" : "homePhone" , "type" : "Phone" } , { "name" : "mcc" , "baseName" : "mcc" , "type" : "string" } , { "name" : "merchantName" , "baseName" : "merchantName" , "type" : "string" } , { "name" : "messageVersion" , "baseName" : "messageVersion" , "type" : "string" } , { "name" : "mobilePhone" , "baseName" : "mobilePhone" , "type" : "Phone" } , { "name" : "notificationURL" , "baseName" : "notificationURL" , "type" : "string" } , { "name" : "payTokenInd" , "baseName" : "payTokenInd" , "type" : "boolean" } , { "name" : "paymentAuthenticationUseCase" , "baseName" : "paymentAuthenticationUseCase" , "type" : "string" } , { "name" : "purchaseInstalData" , "baseName" : "purchaseInstalData" , "type" : "string" } , { "name" : "recurringExpiry" , "baseName" : "recurringExpiry" , "type" : "string" } , { "name" : "recurringFrequency" , "baseName" : "recurringFrequency" , "type" : "string" } , { "name" : "sdkAppID" , "baseName" : "sdkAppID" , "type" : "string" } , { "name" : "sdkEncData" , "baseName" : "sdkEncData" , "type" : "string" } , { "name" : "sdkEphemPubKey" , "baseName" : "sdkEphemPubKey" , "type" : "SDKEphemPubKey" } , { "name" : "sdkMaxTimeout" , "baseName" : "sdkMaxTimeout" , "type" : "number" } , { "name" : "sdkReferenceNumber" , "baseName" : "sdkReferenceNumber" , "type" : "string" } , { "name" : "sdkTransID" , "baseName" : "sdkTransID" , "type" : "string" } , { "name" : "sdkVersion" , "baseName" : "sdkVersion" , "type" : "string" } , { "name" : "threeDSCompInd" , "baseName" : "threeDSCompInd" , "type" : "string" } , { "name" : "threeDSRequestorAuthenticationInd" , "baseName" : "threeDSRequestorAuthenticationInd" , "type" : "string" } , { "name" : "threeDSRequestorAuthenticationInfo" , "baseName" : "threeDSRequestorAuthenticationInfo" , "type" : "ThreeDSRequestorAuthenticationInfo" } , { "name" : "threeDSRequestorChallengeInd" , "baseName" : "threeDSRequestorChallengeInd" , "type" : "string" } , { "name" : "threeDSRequestorID" , "baseName" : "threeDSRequestorID" , "type" : "string" } , { "name" : "threeDSRequestorName" , "baseName" : "threeDSRequestorName" , "type" : "string" } , { "name" : "threeDSRequestorPriorAuthenticationInfo" , "baseName" : "threeDSRequestorPriorAuthenticationInfo" , "type" : "ThreeDSRequestorPriorAuthenticationInfo" } , { "name" : "threeDSRequestorURL" , "baseName" : "threeDSRequestorURL" , "type" : "string" } , { "name" : "transType" , "baseName" : "transType" , "type" : "string" } , { "name" : "transactionType" , "baseName" : "transactionType" , "type" : "ThreeDS2RequestData.TransactionTypeEnum" } , { "name" : "whiteListStatus" , "baseName" : "whiteListStatus" , "type" : "string" } , { "name" : "workPhone" , "baseName" : "workPhone" , "type" : "Phone" } ] ; static getAttributeTypeMap ( ) { return ThreeDS2RequestData . attributeTypeMap ; } } export namespace ThreeDS2RequestData { export enum ChallengeIndicatorEnum { NoPreference = < any > 'noPreference' , RequestNoChallenge = < any > 'requestNoChallenge' , RequestChallenge = < any > 'requestChallenge' , RequestChallengeAsMandate = < any > 'requestChallengeAsMandate' } export enum TransactionTypeEnum { GoodsOrServicePurchase = < any > 'goodsOrServicePurchase' , CheckAcceptance = < any > 'checkAcceptance' , AccountFunding = < any > 'accountFunding' , QuasiCashTransaction = < any > 'quasiCashTransaction' , PrepaidActivationAndLoad = < any > 'prepaidActivationAndLoad' } }