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);