From bdfa47570be6bcb26a9a6fe8c130e626484726b6 Mon Sep 17 00:00:00 2001 From: Emanuel Lima Date: Sat, 10 Feb 2018 10:44:03 -0200 Subject: [PATCH] Busca por clientes --- iugu.net/Lib/Customer.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iugu.net/Lib/Customer.cs b/iugu.net/Lib/Customer.cs index ab66f9b..82b549d 100644 --- a/iugu.net/Lib/Customer.cs +++ b/iugu.net/Lib/Customer.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; +using iugu.net.Response; namespace iugu.net.Lib { @@ -43,6 +44,13 @@ public async Task GetAsync(string id) var retorno = await GetAsync(id).ConfigureAwait(false); return retorno; } + + public async Task> GetAllAsync(string customApiToken, QueryStringFilter filter) + { + var queryStringFilter = filter?.ToQueryStringUrl(); + var retorno = await GetAsync>(null, queryStringFilter, customApiToken).ConfigureAwait(false); + return retorno; + } public async Task GetFromCustomApiTokenAsync(string customApiToken) {