diff --git a/BoletoSimplesApiClient.IntegratedTests/CustomerSubscriptionsApiIntegratedTests.cs b/BoletoSimplesApiClient.IntegratedTests/CustomerSubscriptionsApiIntegratedTests.cs index b0e2b50..b8549bc 100644 --- a/BoletoSimplesApiClient.IntegratedTests/CustomerSubscriptionsApiIntegratedTests.cs +++ b/BoletoSimplesApiClient.IntegratedTests/CustomerSubscriptionsApiIntegratedTests.cs @@ -89,7 +89,7 @@ public async Task Create_next_charge_for_CustomerSubscription_with_sucess() var allChargesResponse = await response.GetSuccessResponseAsync().ConfigureAwait(false); // Act - var nextSubscription = await Client.CustomerSubscriptions.PostAsync(allChargesResponse.Items.First().Id).ConfigureAwait(false); + var nextSubscription = await Client.CustomerSubscriptions.NextChargeAsync(allChargesResponse.Items.First().Id).ConfigureAwait(false); var sucessResponse = await nextSubscription.GetSuccessResponseAsync().ConfigureAwait(false); // Assert diff --git a/BoletoSimplesApiClient/APIs/CustomerSubscriptions/CustomerSubscriptionApi.cs b/BoletoSimplesApiClient/APIs/CustomerSubscriptions/CustomerSubscriptionApi.cs index db0a487..14ef8da 100644 --- a/BoletoSimplesApiClient/APIs/CustomerSubscriptions/CustomerSubscriptionApi.cs +++ b/BoletoSimplesApiClient/APIs/CustomerSubscriptions/CustomerSubscriptionApi.cs @@ -99,7 +99,7 @@ public async Task> GetAsync(int pageNumbe /// Id da assinatura /// A próxima assinatura criada com sucesso /// - public async Task> PostAsync(int customerSubscriptionId) + public async Task> NextChargeAsync(int customerSubscriptionId) { var request = _requestBuilder.To(_client.Connection.GetBaseUri(), $"{CUSTOMER_SUBSCRIPTION_API}/{customerSubscriptionId}/next_charge") .WithMethod(HttpMethod.Post)