From 49c9f766556dd1e20c2944470ba7e616a45938f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Bobi=C4=8Di=C4=87?= Date: Tue, 1 Oct 2024 12:12:51 +0200 Subject: [PATCH] Fix naming of ChangePaymentMethodModel --- .../Checkout/Recurring/RecurringOrderTests.cs | 2 +- .../CheckoutApi/Recurring/ChangepaymentMethodModel.cs | 3 +-- src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Svea.WebPay.SDK.Tests/Checkout/Recurring/RecurringOrderTests.cs b/src/Svea.WebPay.SDK.Tests/Checkout/Recurring/RecurringOrderTests.cs index 6f308df..4688c5e 100644 --- a/src/Svea.WebPay.SDK.Tests/Checkout/Recurring/RecurringOrderTests.cs +++ b/src/Svea.WebPay.SDK.Tests/Checkout/Recurring/RecurringOrderTests.cs @@ -79,7 +79,7 @@ public async Task ChangePaymentMethod_ShouldReturnChangePaymentMethodResponse() var mockHandler = CreateHandlerMock(mockResponse); var recurringToken = "some-recurring-token"; - var changePaymentMethodModel = new ChangepaymentMethodModel(); // Assuming a valid model instance + var changePaymentMethodModel = new ChangePaymentMethodModel(); // Assuming a valid model instance var sveaClient = SveaClient(mockHandler); // Act diff --git a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/ChangepaymentMethodModel.cs b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/ChangepaymentMethodModel.cs index fea5238..b4543c5 100644 --- a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/ChangepaymentMethodModel.cs +++ b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/ChangepaymentMethodModel.cs @@ -1,7 +1,6 @@ namespace Svea.WebPay.SDK.CheckoutApi.Recurring { - public class ChangepaymentMethodModel - + public class ChangePaymentMethodModel { /// /// The URL of your terms that will be present in the snippet footer diff --git a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs index 927ce21..e67f77c 100644 --- a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs +++ b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs @@ -31,7 +31,7 @@ public async Task GetRecurringOrderAsync(string recurringToken, var data = await _sveaHttpClient.HttpGet(url, configureAwait); return data; } - public async Task ChangePaymentMethodAsync(ChangepaymentMethodModel changePaymentMethodModel, string recurringToken, bool configureAwait = false) + public async Task ChangePaymentMethodAsync(ChangePaymentMethodModel changePaymentMethodModel, string recurringToken, bool configureAwait = false) { var url = new Uri($"/api/tokens/{recurringToken}/payment-methods", UriKind.Relative); var data = await _sveaHttpClient.HttpPost(url, changePaymentMethodModel, configureAwait);