diff --git a/src/CheckoutSdk/Payments/PartialAuthorization.cs b/src/CheckoutSdk/Payments/PartialAuthorization.cs new file mode 100644 index 00000000..dfdc280c --- /dev/null +++ b/src/CheckoutSdk/Payments/PartialAuthorization.cs @@ -0,0 +1,7 @@ +namespace Checkout.Payments +{ + public class PartialAuthorization + { + public bool Enabled { get; set; } + } +} \ No newline at end of file diff --git a/src/CheckoutSdk/Payments/Request/PaymentRequest.cs b/src/CheckoutSdk/Payments/Request/PaymentRequest.cs index 513aa38b..ef87f203 100644 --- a/src/CheckoutSdk/Payments/Request/PaymentRequest.cs +++ b/src/CheckoutSdk/Payments/Request/PaymentRequest.cs @@ -27,6 +27,8 @@ public class PaymentRequest public AuthorizationType? AuthorizationType { get; set; } + public PartialAuthorization PartialAuthorization { get; set; } + public bool? Capture { get; set; } public DateTime? CaptureOn { get; set; } diff --git a/test/CheckoutSdkTest/Payments/PaymentAuthorizationsIntegrationTest.cs b/test/CheckoutSdkTest/Payments/PaymentAuthorizationsIntegrationTest.cs index c039046c..6a7def29 100644 --- a/test/CheckoutSdkTest/Payments/PaymentAuthorizationsIntegrationTest.cs +++ b/test/CheckoutSdkTest/Payments/PaymentAuthorizationsIntegrationTest.cs @@ -94,7 +94,11 @@ private async Task MakeAuthorizationEstimatedPayment() Amount = 10L, Currency = Currency.USD, Sender = paymentIndividualSender, - AuthorizationType = AuthorizationType.Estimated + AuthorizationType = AuthorizationType.Estimated, + PartialAuthorization = new PartialAuthorization + { + Enabled = true + } }; var paymentResponse = await DefaultApi.PaymentsClient().RequestPayment(paymentRequest);