feat(core): 3ds decision manager for v2 (#7089)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2025-02-12 18:11:29 +05:30
committed by GitHub
parent fa09db1534
commit 52ae92bc5d
14 changed files with 244 additions and 26 deletions

View File

@ -438,8 +438,9 @@ pub struct PaymentsIntentResponse {
#[schema(value_type = CaptureMethod, example = "automatic")]
pub capture_method: api_enums::CaptureMethod,
#[schema(value_type = AuthenticationType, example = "no_three_ds", default = "no_three_ds")]
pub authentication_type: api_enums::AuthenticationType,
/// The authentication type for the payment
#[schema(value_type = Option<AuthenticationType>, example = "no_three_ds")]
pub authentication_type: Option<api_enums::AuthenticationType>,
/// The billing details of the payment. This address will be used for invoicing.
#[schema(value_type = Option<Address>)]
@ -5270,6 +5271,14 @@ pub struct PaymentsConfirmIntentResponse {
/// Error details for the payment if any
pub error: Option<ErrorDetails>,
/// The transaction authentication can be set to undergo payer authentication. By default, the authentication will be marked as NO_THREE_DS
#[schema(value_type = Option<AuthenticationType>, example = "no_three_ds")]
pub authentication_type: Option<api_enums::AuthenticationType>,
/// The authentication type applied for the payment
#[schema(value_type = AuthenticationType, example = "no_three_ds")]
pub applied_authentication_type: api_enums::AuthenticationType,
}
/// Token information that can be used to initiate transactions by the merchant.