From da31a31da92e728a4a0b64fe681cf19c9339e896 Mon Sep 17 00:00:00 2001 From: igrcndd Date: Tue, 26 Sep 2017 11:18:42 +0100 Subject: [PATCH] Removed ignore on tests Added documentation to the models --- JudoPayDotNet/Models/PaymentModel.cs | 3 +++ JudoPayDotNet/Models/PaymentReceiptModel.cs | 3 +++ JudoPayDotNetIntegrationTests/PaymentTest.cs | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/JudoPayDotNet/Models/PaymentModel.cs b/JudoPayDotNet/Models/PaymentModel.cs index 6d694b5..fa07a58 100644 --- a/JudoPayDotNet/Models/PaymentModel.cs +++ b/JudoPayDotNet/Models/PaymentModel.cs @@ -167,6 +167,9 @@ protected PaymentModel() public string AcceptHeaders { get; set; } // ReSharper restore UnusedAutoPropertyAccessor.Global + /// + /// Indicates that the transaction has been given recurring authorization from the consumer + /// [DataMember(EmitDefaultValue = false)] public bool? RecurringPayment { get; set; } diff --git a/JudoPayDotNet/Models/PaymentReceiptModel.cs b/JudoPayDotNet/Models/PaymentReceiptModel.cs index 72eb541..4b19730 100644 --- a/JudoPayDotNet/Models/PaymentReceiptModel.cs +++ b/JudoPayDotNet/Models/PaymentReceiptModel.cs @@ -227,6 +227,9 @@ public class PaymentReceiptModel : ITransactionResult [DataMember(EmitDefaultValue = false)] public ThreeDSecureReceiptModel ThreeDSecure { get; set; } + /// + /// Transaction processed with recurring authorization + /// [DataMember(EmitDefaultValue = false)] public bool? Recurring { get; set; } } diff --git a/JudoPayDotNetIntegrationTests/PaymentTest.cs b/JudoPayDotNetIntegrationTests/PaymentTest.cs index 665bdc5..fe7529e 100644 --- a/JudoPayDotNetIntegrationTests/PaymentTest.cs +++ b/JudoPayDotNetIntegrationTests/PaymentTest.cs @@ -21,7 +21,6 @@ public void ASimplePayment() } [Test] - [Ignore("Till recurring flag is exposed on partnerapi")] public void ARecurringPayment() { var paymentWithCard = GetCardPaymentModel(recurringPayment: true, judoId: Configuration.Cybersource_Judoid); @@ -74,7 +73,6 @@ public void ATokenPayment() } [Test] - [Ignore("Till recurring flag is exposed on partnerapi")] public void ATokenRecurringPayment() { var consumerReference = Guid.NewGuid().ToString();