From 278d5833a6d2ba6e64fbb0a1db8db186b53a4b00 Mon Sep 17 00:00:00 2001 From: Romero Silva Date: Tue, 16 Jul 2024 16:32:29 -0300 Subject: [PATCH] Add fields for 3DS authentication performed by a third party (#177) Co-authored-by: Romero Silva Co-authored-by: meliguilhermefernandes --- .../Payment/PaymentAuthenticationRequest.cs | 50 +++++++++++++++++++ .../Client/Payment/PaymentDataRequest.cs | 5 ++ .../Client/Payment/PaymentMethodRequest.cs | 5 ++ 3 files changed, 60 insertions(+) create mode 100644 src/MercadoPago/Client/Payment/PaymentAuthenticationRequest.cs diff --git a/src/MercadoPago/Client/Payment/PaymentAuthenticationRequest.cs b/src/MercadoPago/Client/Payment/PaymentAuthenticationRequest.cs new file mode 100644 index 0000000..18cc3f6 --- /dev/null +++ b/src/MercadoPago/Client/Payment/PaymentAuthenticationRequest.cs @@ -0,0 +1,50 @@ +using System; +namespace MercadoPago.Client.Payment +{ + /// + /// Data used to exchange 3DS authentication information verified by a third party. + /// + public class PaymentAuthenticationRequest + { + /// + /// Type. + /// + public string Type { get; set; } + + /// + /// Cryptogram. + /// + public string Cryptogram { get; set; } + + /// + /// 3DS Server Trans ID. + /// + public string ThreeDsServerTransId { get; set; } + + /// + /// ECI. + /// + public string Eci { get; set; } + + /// + /// 3DS Trans ID. + /// + public string DsTransId { get; set; } + + /// + /// ACS Trans ID. + /// + public string AcsTransId { get; set; } + + /// + /// 3DS Version. + /// + public string ThreeDsVersion { get; set; } + + /// + /// Authentication Status. + /// + public string AuthenticationStatus { get; set; } + } +} + diff --git a/src/MercadoPago/Client/Payment/PaymentDataRequest.cs b/src/MercadoPago/Client/Payment/PaymentDataRequest.cs index 18e73d6..b503065 100644 --- a/src/MercadoPago/Client/Payment/PaymentDataRequest.cs +++ b/src/MercadoPago/Client/Payment/PaymentDataRequest.cs @@ -12,5 +12,10 @@ public class PaymentDataRequest /// Payment rules. /// public PaymentRulesRequest Rules { get; set; } + + /// + /// Authentication. + /// + public PaymentAuthenticationRequest authentication { get; set; } } } \ No newline at end of file diff --git a/src/MercadoPago/Client/Payment/PaymentMethodRequest.cs b/src/MercadoPago/Client/Payment/PaymentMethodRequest.cs index 3153c53..7ce880e 100644 --- a/src/MercadoPago/Client/Payment/PaymentMethodRequest.cs +++ b/src/MercadoPago/Client/Payment/PaymentMethodRequest.cs @@ -12,5 +12,10 @@ public class PaymentMethodRequest /// Payment data. /// public PaymentDataRequest Data { get; set; } + + /// + /// Type. + /// + public string Type { get; set; } } } \ No newline at end of file