Skip to content

Commit

Permalink
Renomeia metodo para criar próxima cobrança de uma assinatura
Browse files Browse the repository at this point in the history
  • Loading branch information
rscouto committed Mar 29, 2017
1 parent 885eb95 commit 00e0d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public async Task<PagedApiResponse<CustomerSubscription>> GetAsync(int pageNumbe
/// <param name="customerSubscriptionId">Id da assinatura</param>
/// <returns>A próxima assinatura criada com sucesso</returns>
/// <see cref="http://api.boletosimples.com.br/reference/v1/customer_subscriptions/#gerar-próxima-cobrança"/>
public async Task<ApiResponse<CustomerSubscription>> PostAsync(int customerSubscriptionId)
public async Task<ApiResponse<CustomerSubscription>> NextChargeAsync(int customerSubscriptionId)
{
var request = _requestBuilder.To(_client.Connection.GetBaseUri(), $"{CUSTOMER_SUBSCRIPTION_API}/{customerSubscriptionId}/next_charge")
.WithMethod(HttpMethod.Post)
Expand Down

0 comments on commit 00e0d6b

Please sign in to comment.