Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(api_models): add api_models for external 3ds authentication flow (#3858)
Sai Harsha Vardhan0a43ceb14e27
diff --git a/.typos.toml b/.typos.tomlindex 2d2e165544..58e48220bd 100644--- a/.typos.toml+++ b/.typos.toml@@ -23,9 +23,6 @@ bottm = "bottm" # name of a css class for nexinets ui testklick = "klick" # Swedish word for clicksoptin = "optin" # Boku preflow nameoptin_id = "optin_id" # Boku's id for optin flow-deriver = "deriver"-Deriver = "Deriver"-requestor_card_reference = "requestor_card_reference"[default.extend-words]aci = "aci" # Name of a connector@@ -38,6 +35,8 @@ ede = "ede" # ignore minor commit conversionsdaa = "daa" # Commit idafe = "afe" # Commit idHashi = "Hashi" # HashiCorp+requestor = "requestor" #Used in external 3ds flows+deriver = "deriver"[files]extend-exclude = [diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rsindex 9f1008f3d4..bf88eca0a0 100644--- a/crates/api_models/src/admin.rs+++ b/crates/api_models/src/admin.rs@@ -96,6 +96,15 @@ pub struct MerchantAccountCreate {pub organization_id: Option<String>,}+#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]+pub struct AuthenticationConnectorDetails {+ /// List of authentication connectors+ #[schema(value_type = Vec<AuthenticationConnectors>)]+ pub authentication_connectors: Vec<enums::AuthenticationConnectors>,+ /// URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process.+ pub three_ds_requestor_url: String,+}+#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]pub struct MerchantAccountMetadata {pub compatible_connector: Option<api_enums::Connector>,@@ -897,6 +906,9 @@ pub struct BusinessProfileCreate {/// Default Payment Link config for all payment links created under this business profilepub payment_link_config: Option<BusinessPaymentLinkConfig>,++ /// External 3DS authentication details+ pub authentication_connector_details: Option<AuthenticationConnectorDetails>,}#[derive(Clone, Debug, ToSchema, Serialize)]@@ -963,6 +975,9 @@ pub struct BusinessProfileResponse {/// Default Payment Link config for all payment links created under this business profilepub payment_link_config: Option<serde_json::Value>,++ /// External 3DS authentication details+ pub authentication_connector_details: Option<AuthenticationConnectorDetails>,}#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]@@ -1021,6 +1036,9 @@ pub struct BusinessProfileUpdate {/// Default Payment Link config for all payment links created under this business profilepub payment_link_config: Option<BusinessPaymentLinkConfig>,++ /// External 3DS authentication details+ pub authentication_connector_details: Option<AuthenticationConnectorDetails>,}#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rsindex 60c48f3d03..529482441c 100644--- a/crates/api_models/src/enums.rs+++ b/crates/api_models/src/enums.rs@@ -150,6 +150,25 @@ impl Connector {}}+#[derive(+ Clone,+ Copy,+ Debug,+ Eq,+ Hash,+ PartialEq,+ serde::Serialize,+ serde::Deserialize,+ strum::Display,+ strum::EnumString,+ ToSchema,+)]+#[serde(rename_all = "snake_case")]+#[strum(serialize_all = "snake_case")]+pub enum AuthenticationConnectors {+ Threedsecureio,+}+#[cfg(feature = "payouts")]#[derive(Clone,@@ -552,3 +571,7 @@ pub enum PmAuthConnectors {pub fn convert_pm_auth_connector(connector_name: &str) -> Option<PmAuthConnectors> {PmAuthConnectors::from_str(connector_name).ok()}++pub fn convert_authentication_connector(connector_name: &str) -> Option<AuthenticationConnectors> {+ AuthenticationConnectors::from_str(connector_name).ok()+}diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rsindex 92f6993390..346ee34b2c 100644--- a/crates/api_models/src/events/payment.rs+++ b/crates/api_models/src/events/payment.rs@@ -9,9 +9,10 @@ use crate::{payments::{PaymentIdType, PaymentListConstraints, PaymentListFilterConstraints, PaymentListFilters,PaymentListResponse, PaymentListResponseV2, PaymentsApproveRequest, PaymentsCancelRequest,- PaymentsCaptureRequest, PaymentsIncrementalAuthorizationRequest, PaymentsRejectRequest,- PaymentsRequest, PaymentsResponse, PaymentsRetrieveRequest, PaymentsStartRequest,- RedirectionResponse,+ PaymentsCaptureRequest, PaymentsExternalAuthenticationRequest,+ PaymentsExternalAuthenticationResponse, PaymentsIncrementalAuthorizationRequest,+ PaymentsRejectRequest, PaymentsRequest, PaymentsResponse, PaymentsRetrieveRequest,+ PaymentsStartRequest, RedirectionResponse,},};impl ApiEventMetric for PaymentsRetrieveRequest {@@ -181,3 +182,13 @@ impl ApiEventMetric for PaymentsIncrementalAuthorizationRequest {})}}++impl ApiEventMetric for PaymentsExternalAuthenticationResponse {}++impl ApiEventMetric for PaymentsExternalAuthenticationRequest {+ fn get_api_event_type(&self) -> Option<ApiEventsType> {+ Some(ApiEventsType::Payment {+ payment_id: self.payment_id.clone(),+ })+ }+}diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex 9a3afd2f0f..ba0d963b8c 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -1,4 +1,4 @@-use std::{fmt, num::NonZeroI64};+use std::{collections::HashMap, fmt, num::NonZeroI64};use cards::CardNumber;use common_utils::{@@ -448,6 +448,10 @@ pub struct PaymentsRequest {/// additional data related to some frm connectorspub frm_metadata: Option<serde_json::Value>,++ /// Whether to perform external authentication (if applicable)+ #[schema(example = true)]+ pub request_external_three_ds_authentication: Option<bool>,}impl PaymentsRequest {@@ -2142,6 +2146,32 @@ pub enum NextActionData {display_from_timestamp: i128,display_to_timestamp: Option<i128>,},+ /// Contains the information regarding three_ds_method_data submission, three_ds authentication, and authorization flows+ ThreeDsInvoke { three_ds_data: ThreeDsData },+}++#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]+pub struct ThreeDsData {+ /// ThreeDS authentication url - to initiate authentication+ pub three_ds_authentication_url: String,+ /// ThreeDS authorize url - to complete the payment authorization after authentication+ pub three_ds_authorize_url: String,+ /// ThreeDS method details+ pub three_ds_method_details: ThreeDsMethodData,+}++#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]+#[serde(tag = "three_ds_method_key")]+pub enum ThreeDsMethodData {+ #[serde(rename = "threeDSMethodData")]+ AcsThreeDsMethodData {+ /// Whether ThreeDS method data submission is required+ three_ds_method_data_submission: bool,+ /// ThreeDS method data+ three_ds_method_data: String,+ /// ThreeDS method url+ three_ds_method_url: Option<String>,+ },}#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]@@ -2535,6 +2565,12 @@ pub struct PaymentsResponse {/// List of incremental authorizations happened to the paymentpub incremental_authorizations: Option<Vec<IncrementalAuthorizationResponse>>,+ /// Details of external authentication+ pub external_authentication_details: Option<ExternalAuthenticationDetailsResponse>,++ /// Flag indicating if external 3ds authentication is made or not+ pub request_external_3ds_authentication: Option<bool>,+/// Date Time expiry of the payment#[schema(example = "2022-09-10T10:11:12Z")]#[serde(default, with = "common_utils::custom_serde::iso8601::option")]@@ -2544,6 +2580,26 @@ pub struct PaymentsResponse {pub fingerprint: Option<String>,}+#[derive(Setter, Clone, Default, Debug, PartialEq, serde::Serialize, ToSchema)]+pub struct ExternalAuthenticationDetailsResponse {+ /// Authentication Type - Challenge / Frictionless+ #[schema(value_type = Option<DecoupledAuthenticationType>)]+ pub authentication_flow: Option<enums::DecoupledAuthenticationType>,+ /// Electronic Commerce Indicator (eci)+ pub electronic_commerce_indicator: Option<String>,+ /// Authentication Status+ #[schema(value_type = AuthenticationStatus)]+ pub status: enums::AuthenticationStatus,+ /// DS Transaction ID+ pub ds_transaction_id: Option<String>,+ /// Message Version+ pub version: Option<String>,+ /// Error Code+ pub error_code: Option<String>,+ /// Error Message+ pub error_message: Option<String>,+}+#[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)]#[serde(deny_unknown_fields)]pub struct PaymentListConstraints {@@ -3381,6 +3437,107 @@ pub struct PaymentsIncrementalAuthorizationRequest {pub reason: Option<String>,}+#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, ToSchema)]+pub struct PaymentsExternalAuthenticationRequest {+ /// The identifier for the payment+ #[serde(skip)]+ pub payment_id: String,+ /// Client Secret+ #[schema(value_type = String)]+ pub client_secret: Secret<String>,+ /// SDK Information if request is from SDK+ pub sdk_information: Option<SdkInformation>,+ /// Device Channel indicating whether request is coming from App or Browser+ pub device_channel: DeviceChannel,+ /// Indicates if 3DS method data was successfully completed or not+ pub threeds_method_comp_ind: ThreeDsCompletionIndicator,+}++#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, ToSchema)]+pub enum ThreeDsCompletionIndicator {+ /// 3DS method successfully completed+ #[serde(rename = "Y")]+ Success,+ /// 3DS method was not successful+ #[serde(rename = "N")]+ Failure,+ /// 3DS method URL was unavailable+ #[serde(rename = "U")]+ NotAvailable,+}++#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, ToSchema, Eq, PartialEq)]+pub enum DeviceChannel {+ #[serde(rename = "APP")]+ App,+ #[serde(rename = "BRW")]+ Browser,+}++#[derive(Default, Debug, serde::Serialize, serde::Deserialize, Clone, ToSchema)]+pub struct SdkInformation {+ /// Unique ID created on installations of the 3DS Requestor App on a Consumer Device+ pub sdk_app_id: String,+ /// JWE Object containing data encrypted by the SDK for the DS to decrypt+ pub sdk_enc_data: String,+ /// Public key component of the ephemeral key pair generated by the 3DS SDK+ pub sdk_ephem_pub_key: HashMap<String, String>,+ /// Unique transaction identifier assigned by the 3DS SDK+ pub sdk_trans_id: String,+ /// Identifies the vendor and version for the 3DS SDK that is integrated in a 3DS Requestor App+ pub sdk_reference_number: String,+ /// Indicates maximum amount of time in minutes+ pub sdk_max_timeout: u8,+}++#[derive(Clone, Default, Debug, serde::Serialize, serde::Deserialize, Eq, PartialEq, ToSchema)]+pub enum TransactionStatus {+ /// Authentication/ Account Verification Successful+ #[serde(rename = "Y")]+ Success,+ /// Not Authenticated /Account Not Verified; Transaction denied+ #[default]+ #[serde(rename = "N")]+ Failure,+ /// Authentication/ Account Verification Could Not Be Performed; Technical or other problem, as indicated in Authentication Response(ARes) or Result Request (RReq)+ #[serde(rename = "U")]+ VerificationNotPerformed,+ /// Attempts Processing Performed; Not Authenticated/Verified , but a proof of attempted authentication/verification is provided+ #[serde(rename = "A")]+ NotVerified,+ /// Authentication/ Account Verification Rejected; Issuer is rejecting authentication/verification and request that authorisation not be attempted.+ #[serde(rename = "R")]+ Rejected,+ /// Challenge Required; Additional authentication is required using the Challenge Request (CReq) / Challenge Response (CRes)+ #[serde(rename = "C")]+ ChallengeRequired,+ /// Challenge Required; Decoupled Authentication confirmed.+ #[serde(rename = "D")]+ ChallengeRequiredDecoupledAuthentication,+ /// Informational Only; 3DS Requestor challenge preference acknowledged.+ #[serde(rename = "I")]+ InformationOnly,+}++#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, ToSchema)]+pub struct PaymentsExternalAuthenticationResponse {+ /// Indicates the trans status+ #[serde(rename = "trans_status")]+ pub transaction_status: TransactionStatus,+ /// Access Server URL to be used for challenge submission+ pub acs_url: Option<String>,+ /// Challenge request which should be sent to acs_url+ pub challenge_request: Option<String>,+ /// Unique identifier assigned by the EMVCo+ pub acs_reference_number: Option<String>,+ /// Unique identifier assigned by the ACS to identify a single transaction+ pub acs_trans_id: Option<String>,+ /// Unique identifier assigned by the 3DS Server to identify a single transaction+ pub three_dsserver_trans_id: Option<String>,+ /// Contains the JWS object created by the ACS for the ARes message+ pub acs_signed_content: Option<String>,+}+#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]pub struct PaymentsApproveRequest {/// The identifier for the paymentdiff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rsindex 6b25b692c1..169b3fab12 100644--- a/crates/common_enums/src/enums.rs+++ b/crates/common_enums/src/enums.rs@@ -365,6 +365,8 @@ pub enum ConnectorType {PayoutProcessor,/// PaymentMethods Auth ServicesPaymentMethodAuth,+ /// 3DS Authentication Service Providers+ AuthenticationProcessor,}/// The three letter ISO currency code in uppercase. Eg: 'USD' for the United States Dollar.diff --git a/crates/openapi/src/openapi.rs b/crates/openapi/src/openapi.rsindex 7c97fba353..bd2451291d 100644--- a/crates/openapi/src/openapi.rs+++ b/crates/openapi/src/openapi.rs@@ -179,6 +179,7 @@ Never share your secret api keys. Keep them guarded and secure.api_models::admin::MerchantAccountDeleteResponse,api_models::admin::MerchantConnectorDeleteResponse,api_models::admin::MerchantConnectorResponse,+ api_models::admin::AuthenticationConnectorDetails,api_models::customers::CustomerRequest,api_models::customers::CustomerDeleteResponse,api_models::payment_methods::PaymentMethodCreate,@@ -201,6 +202,7 @@ Never share your secret api keys. Keep them guarded and secure.api_models::enums::PaymentMethodType,api_models::enums::ConnectorType,api_models::enums::PayoutConnectors,+ api_models::enums::AuthenticationConnectors,api_models::enums::Currency,api_models::enums::IntentStatus,api_models::enums::CaptureMethod,@@ -374,8 +376,17 @@ Never share your secret api keys. Keep them guarded and secure.api_models::payments::CaptureResponse,api_models::payments::PaymentsIncrementalAuthorizationRequest,api_models::payments::IncrementalAuthorizationResponse,+ api_models::payments::PaymentsExternalAuthenticationRequest,+ api_models::payments::PaymentsExternalAuthenticationResponse,+ api_models::payments::SdkInformation,+ api_models::payments::DeviceChannel,+ api_models::payments::ThreeDsCompletionIndicator,+ api_models::payments::TransactionStatus,api_models::payments::BrowserInformation,api_models::payments::PaymentCreatePaymentLinkConfig,+ api_models::payments::ThreeDsData,+ api_models::payments::ThreeDsMethodData,+ api_models::payments::ExternalAuthenticationDetailsResponse,api_models::payment_methods::RequiredFieldInfo,api_models::payment_methods::DefaultPaymentMethod,api_models::payment_methods::MaskedBankDetails,@@ -415,6 +426,8 @@ Never share your secret api keys. Keep them guarded and secure.api_models::webhooks::OutgoingWebhook,api_models::webhooks::OutgoingWebhookContent,api_models::enums::EventType,+ api_models::enums::DecoupledAuthenticationType,+ api_models::enums::AuthenticationStatus,api_models::admin::MerchantAccountResponse,api_models::admin::MerchantConnectorId,api_models::admin::MerchantDetails,diff --git a/crates/router/src/compatibility/stripe/payment_intents/types.rs b/crates/router/src/compatibility/stripe/payment_intents/types.rsindex 7d876b954b..a74f16cee7 100644--- a/crates/router/src/compatibility/stripe/payment_intents/types.rs+++ b/crates/router/src/compatibility/stripe/payment_intents/types.rs@@ -869,6 +869,12 @@ pub(crate) fn into_stripe_next_action(display_from_timestamp,display_to_timestamp,},+ payments::NextActionData::ThreeDsInvoke { .. } => StripeNextAction::RedirectToUrl {+ redirect_to_url: RedirectUrl {+ return_url: None,+ url: None,+ },+ },})}diff --git a/crates/router/src/compatibility/stripe/setup_intents/types.rs b/crates/router/src/compatibility/stripe/setup_intents/types.rsindex 25bb5a35b8..a05a8c241d 100644--- a/crates/router/src/compatibility/stripe/setup_intents/types.rs+++ b/crates/router/src/compatibility/stripe/setup_intents/types.rs@@ -442,6 +442,12 @@ pub(crate) fn into_stripe_next_action(display_from_timestamp,display_to_timestamp,},+ payments::NextActionData::ThreeDsInvoke { .. } => StripeNextAction::RedirectToUrl {+ redirect_to_url: RedirectUrl {+ return_url: None,+ url: None,+ },+ },})}diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rsindex 14c8844812..218877afb7 100644--- a/crates/router/src/core/admin.rs+++ b/crates/router/src/core/admin.rs@@ -436,6 +436,7 @@ pub async fn update_business_profile_cascade(applepay_verified_domains: None,payment_link_config: None,session_expiry: None,+ authentication_connector_details: None,};let update_futures = business_profiles.iter().map(|business_profile| async {diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rsindex 7e8fa2ae44..aa44e5db22 100644--- a/crates/router/src/core/payments.rs+++ b/crates/router/src/core/payments.rs@@ -910,6 +910,7 @@ impl<Ctx: PaymentMethodRetrieve> PaymentRedirectFlow<Ctx> for PaymentRedirectComapi_models::payments::NextActionData::QrCodeInformation{..} => None,api_models::payments::NextActionData::DisplayVoucherInformation{ .. } => None,api_models::payments::NextActionData::WaitScreenInformation{..} => None,+ api_models::payments::NextActionData::ThreeDsInvoke{..} => None,}).ok_or(errors::ApiErrorResponse::InternalServerError).into_report()diff --git a/crates/router/src/types/api/admin.rs b/crates/router/src/types/api/admin.rsindex 6e0f9ab861..595f08c18b 100644--- a/crates/router/src/types/api/admin.rs+++ b/crates/router/src/types/api/admin.rs@@ -72,6 +72,7 @@ impl ForeignTryFrom<storage::business_profile::BusinessProfile> for BusinessProfapplepay_verified_domains: item.applepay_verified_domains,payment_link_config: item.payment_link_config,session_expiry: item.session_expiry,+ authentication_connector_details: None,})}}diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex 293bfc85a7..6b58b8e286 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -4708,6 +4708,41 @@"device_data_collection_pending"]},+ "AuthenticationConnectorDetails": {+ "type": "object",+ "required": [+ "authentication_connectors",+ "three_ds_requestor_url"+ ],+ "properties": {+ "authentication_connectors": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/AuthenticationConnectors"+ },+ "description": "List of authentication connectors"+ },+ "three_ds_requestor_url": {+ "type": "string",+ "description": "URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process."+ }+ }+ },+ "AuthenticationConnectors": {+ "type": "string",+ "enum": [+ "threedsecureio"+ ]+ },+ "AuthenticationStatus": {+ "type": "string",+ "enum": [+ "started",+ "pending",+ "success",+ "failed"+ ]+ },"AuthenticationType": {"type": "string","enum": [@@ -6171,6 +6206,14 @@}],"nullable": true+ },+ "authentication_connector_details": {+ "allOf": [+ {+ "$ref": "#/components/schemas/AuthenticationConnectorDetails"+ }+ ],+ "nullable": true}}},@@ -6281,6 +6324,14 @@"payment_link_config": {"description": "Default Payment Link config for all payment links created under this business profile","nullable": true+ },+ "authentication_connector_details": {+ "allOf": [+ {+ "$ref": "#/components/schemas/AuthenticationConnectorDetails"+ }+ ],+ "nullable": true}}},@@ -6816,7 +6867,8 @@"banking_entities","non_banking_finance","payout_processor",- "payment_method_auth"+ "payment_method_auth",+ "authentication_processor"]},"ConnectorVolumeSplit": {@@ -7751,6 +7803,13 @@}}},+ "DecoupledAuthenticationType": {+ "type": "string",+ "enum": [+ "challenge",+ "frictionless"+ ]+ },"DefaultPaymentMethod": {"type": "object","required": [@@ -7766,6 +7825,13 @@}}},+ "DeviceChannel": {+ "type": "string",+ "enum": [+ "APP",+ "BRW"+ ]+ },"DisputeResponse": {"type": "object","required": [@@ -8047,6 +8113,50 @@"mandate_revoked"]},+ "ExternalAuthenticationDetailsResponse": {+ "type": "object",+ "required": [+ "status"+ ],+ "properties": {+ "authentication_flow": {+ "allOf": [+ {+ "$ref": "#/components/schemas/DecoupledAuthenticationType"+ }+ ],+ "nullable": true+ },+ "electronic_commerce_indicator": {+ "type": "string",+ "description": "Electronic Commerce Indicator (eci)",+ "nullable": true+ },+ "status": {+ "$ref": "#/components/schemas/AuthenticationStatus"+ },+ "ds_transaction_id": {+ "type": "string",+ "description": "DS Transaction ID",+ "nullable": true+ },+ "version": {+ "type": "string",+ "description": "Message Version",+ "nullable": true+ },+ "error_code": {+ "type": "string",+ "description": "Error Code",+ "nullable": true+ },+ "error_message": {+ "type": "string",+ "description": "Error Message",+ "nullable": true+ }+ }+ },"FeatureMetadata": {"type": "object","properties": {@@ -10663,6 +10773,25 @@]}}+ },+ {+ "type": "object",+ "description": "Contains the information regarding three_ds_method_data submission, three_ds authentication, and authorization flows",+ "required": [+ "three_ds_data",+ "type"+ ],+ "properties": {+ "three_ds_data": {+ "$ref": "#/components/schemas/ThreeDsData"+ },+ "type": {+ "type": "string",+ "enum": [+ "three_ds_invoke"+ ]+ }+ }}],"discriminator": {@@ -12644,6 +12773,12 @@"frm_metadata": {"description": "additional data related to some frm connectors","nullable": true+ },+ "request_external_three_ds_authentication": {+ "type": "boolean",+ "description": "Whether to perform external authentication (if applicable)",+ "example": true,+ "nullable": true}}},@@ -13022,6 +13157,81 @@"frm_metadata": {"description": "additional data related to some frm connectors","nullable": true+ },+ "request_external_three_ds_authentication": {+ "type": "boolean",+ "description": "Whether to perform external authentication (if applicable)",+ "example": true,+ "nullable": true+ }+ }+ },+ "PaymentsExternalAuthenticationRequest": {+ "type": "object",+ "required": [+ "client_secret",+ "device_channel",+ "threeds_method_comp_ind"+ ],+ "properties": {+ "client_secret": {+ "type": "string",+ "description": "Client Secret"+ },+ "sdk_information": {+ "allOf": [+ {+ "$ref": "#/components/schemas/SdkInformation"+ }+ ],+ "nullable": true+ },+ "device_channel": {+ "$ref": "#/components/schemas/DeviceChannel"+ },+ "threeds_method_comp_ind": {+ "$ref": "#/components/schemas/ThreeDsCompletionIndicator"+ }+ }+ },+ "PaymentsExternalAuthenticationResponse": {+ "type": "object",+ "required": [+ "trans_status"+ ],+ "properties": {+ "trans_status": {+ "$ref": "#/components/schemas/TransactionStatus"+ },+ "acs_url": {+ "type": "string",+ "description": "Access Server URL to be used for challenge submission",+ "nullable": true+ },+ "challenge_request": {+ "type": "string",+ "description": "Challenge request which should be sent to acs_url",+ "nullable": true+ },+ "acs_reference_number": {+ "type": "string",+ "description": "Unique identifier assigned by the EMVCo",+ "nullable": true+ },+ "acs_trans_id": {+ "type": "string",+ "description": "Unique identifier assigned by the ACS to identify a single transaction",+ "nullable": true+ },+ "three_dsserver_trans_id": {+ "type": "string",+ "description": "Unique identifier assigned by the 3DS Server to identify a single transaction",+ "nullable": true+ },+ "acs_signed_content": {+ "type": "string",+ "description": "Contains the JWS object created by the ACS for the ARes message",+ "nullable": true}}},@@ -13433,6 +13643,12 @@"frm_metadata": {"description": "additional data related to some frm connectors","nullable": true+ },+ "request_external_three_ds_authentication": {+ "type": "boolean",+ "description": "Whether to perform external authentication (if applicable)",+ "example": true,+ "nullable": true}}},@@ -13893,6 +14109,19 @@"description": "List of incremental authorizations happened to the payment","nullable": true},+ "external_authentication_details": {+ "allOf": [+ {+ "$ref": "#/components/schemas/ExternalAuthenticationDetailsResponse"+ }+ ],+ "nullable": true+ },+ "request_external_3ds_authentication": {+ "type": "boolean",+ "description": "Flag indicating if external 3ds authentication is made or not",+ "nullable": true+ },"expires_on": {"type": "string","format": "date-time",@@ -14393,6 +14622,12 @@"frm_metadata": {"description": "additional data related to some frm connectors","nullable": true+ },+ "request_external_three_ds_authentication": {+ "type": "boolean",+ "description": "Whether to perform external authentication (if applicable)",+ "example": true,+ "nullable": true}}},@@ -15934,6 +16169,48 @@}}},+ "SdkInformation": {+ "type": "object",+ "required": [+ "sdk_app_id",+ "sdk_enc_data",+ "sdk_ephem_pub_key",+ "sdk_trans_id",+ "sdk_reference_number",+ "sdk_max_timeout"+ ],+ "properties": {+ "sdk_app_id": {+ "type": "string",+ "description": "Unique ID created on installations of the 3DS Requestor App on a Consumer Device"+ },+ "sdk_enc_data": {+ "type": "string",+ "description": "JWE Object containing data encrypted by the SDK for the DS to decrypt"+ },+ "sdk_ephem_pub_key": {+ "type": "object",+ "description": "Public key component of the ephemeral key pair generated by the 3DS SDK",+ "additionalProperties": {+ "type": "string"+ }+ },+ "sdk_trans_id": {+ "type": "string",+ "description": "Unique transaction identifier assigned by the 3DS SDK"+ },+ "sdk_reference_number": {+ "type": "string",+ "description": "Identifies the vendor and version for the 3DS SDK that is integrated in a 3DS Requestor App"+ },+ "sdk_max_timeout": {+ "type": "integer",+ "format": "int32",+ "description": "Indicates maximum amount of time in minutes",+ "minimum": 0+ }+ }+ },"SdkNextAction": {"type": "object","required": [@@ -16364,6 +16641,71 @@}}},+ "ThreeDsCompletionIndicator": {+ "type": "string",+ "enum": [+ "Y",+ "N",+ "U"+ ]+ },+ "ThreeDsData": {+ "type": "object",+ "required": [+ "three_ds_authentication_url",+ "three_ds_authorize_url",+ "three_ds_method_details"+ ],+ "properties": {+ "three_ds_authentication_url": {+ "type": "string",+ "description": "ThreeDS authentication url - to initiate authentication"+ },+ "three_ds_authorize_url": {+ "type": "string",+ "description": "ThreeDS authorize url - to complete the payment authorization after authentication"+ },+ "three_ds_method_details": {+ "$ref": "#/components/schemas/ThreeDsMethodData"+ }+ }+ },+ "ThreeDsMethodData": {+ "oneOf": [+ {+ "type": "object",+ "required": [+ "three_ds_method_data_submission",+ "three_ds_method_data",+ "three_ds_method_key"+ ],+ "properties": {+ "three_ds_method_data_submission": {+ "type": "boolean",+ "description": "Whether ThreeDS method data submission is required"+ },+ "three_ds_method_data": {+ "type": "string",+ "description": "ThreeDS method data"+ },+ "three_ds_method_url": {+ "type": "string",+ "description": "ThreeDS method url",+ "nullable": true+ },+ "three_ds_method_key": {+ "type": "string",+ "enum": [+ "threeDSMethodData"+ ]+ }+ }+ }+ ],+ "discriminator": {+ "propertyName": "three_ds_method_key"+ }+ },"TimeRange": {"type": "object","required": [@@ -16397,6 +16739,19 @@"TouchNGoRedirection": {"type": "object"},+ "TransactionStatus": {+ "type": "string",+ "enum": [+ "Y",+ "N",+ "U",+ "A",+ "R",+ "C",+ "D",+ "I"+ ]+ },"TransactionType": {"type": "string","enum": [