From a16a36d651a9ed6513bbaaacf491e9e463096eab Mon Sep 17 00:00:00 2001 From: ariarantes <45433713+ariarantes@users.noreply.github.com> Date: Mon, 2 Aug 2021 10:15:12 -0300 Subject: [PATCH] Update BancoInter.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eu acrescentei o atributo filtrarDataPor, pois é útil quando deseja buscar pelos boletos PAGOS, basta alterar o filroData para SITUACAO, assim a data inicial e final terá real utilidade, senão as datas serão pelo vencimento e não pela data de pagamento, o que interessa nesse caso. --- src/BancoInter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BancoInter.php b/src/BancoInter.php index dd4121a..f789c9c 100644 --- a/src/BancoInter.php +++ b/src/BancoInter.php @@ -282,6 +282,7 @@ public function baixaBoleto(string $nossoNumero, string $motivo = "ACERTOS") * 0) * @param number $linhas Linhas de resultado (default = 20) * @param string $filtro Filtro de resultado (default = "TODOS") + * @param string $filtroData Filtro de resultado (default = "VENCIMENTO") * @param string $ordem Ordem do resultado (default = "NOSSONUMERO") * @return \stdClass */ @@ -291,11 +292,13 @@ public function listaBoletos( $pagina = 0, $linhas = 20, $filtro = "TODOS", + $filtroData = "VENCIMENTO", $ordem = "NOSSONUMERO" ) : \stdClass { $url = "/openbanking/v1/certificado/boletos"; $url .= "?filtrarPor=".$filtro; + $url .= "&filtrarDataPor=".$filtroData; $url .= "&dataInicial=".$dataInicial; $url .= "&dataFinal=".$dataFinal; $url .= "&ordenarPor=".$ordem;