Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix naming of ChangePaymentMethodModel #314

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Svea.WebPay.SDK.CheckoutApi.Recurring
{
public class ChangepaymentMethodModel

public class ChangePaymentMethodModel
{
/// <summary>
/// The URL of your terms that will be present in the snippet footer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task<RecurringOrder> GetRecurringOrderAsync(string recurringToken,
var data = await _sveaHttpClient.HttpGet<RecurringOrder>(url, configureAwait);
return data;
}
public async Task<ChangePaymentMethodResponse> ChangePaymentMethodAsync(ChangepaymentMethodModel changePaymentMethodModel, string recurringToken, bool configureAwait = false)
public async Task<ChangePaymentMethodResponse> ChangePaymentMethodAsync(ChangePaymentMethodModel changePaymentMethodModel, string recurringToken, bool configureAwait = false)
{
var url = new Uri($"/api/tokens/{recurringToken}/payment-methods", UriKind.Relative);
var data = await _sveaHttpClient.HttpPost<ChangePaymentMethodResponse>(url, changePaymentMethodModel, configureAwait);
Expand Down
Loading