From 00e0d6b400d9cf716d60f35b12d66190652e5c6b Mon Sep 17 00:00:00 2001 From: Rodrigo Couto Date: Wed, 29 Mar 2017 02:59:54 -0300 Subject: [PATCH] =?UTF-8?q?Renomeia=20metodo=20para=20criar=20pr=C3=B3xima?= =?UTF-8?q?=20cobran=C3=A7a=20de=20uma=20assinatura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerSubscriptionsApiIntegratedTests.cs | 2 +- .../APIs/CustomerSubscriptions/CustomerSubscriptionApi.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)