Skip to content

Commit

Permalink
Busca por clientes
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaEmanuel authored Feb 10, 2018
1 parent 6a2256d commit bdfa475
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions iugu.net/Lib/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using iugu.net.Response;

namespace iugu.net.Lib
{
Expand Down Expand Up @@ -43,6 +44,13 @@ public async Task<CustomerModel> GetAsync(string id)
var retorno = await GetAsync<CustomerModel>(id).ConfigureAwait(false);
return retorno;
}

public async Task<PaggedResponseMessage<CustomerModel>> GetAllAsync(string customApiToken, QueryStringFilter filter)
{
var queryStringFilter = filter?.ToQueryStringUrl();
var retorno = await GetAsync<PaggedResponseMessage<CustomerModel>>(null, queryStringFilter, customApiToken).ConfigureAwait(false);
return retorno;
}

public async Task<CustomerModel> GetFromCustomApiTokenAsync(string customApiToken)
{
Expand Down

0 comments on commit bdfa475

Please sign in to comment.