From 18b6be6bcafdc58d62b58c04192263ad2b3ec411 Mon Sep 17 00:00:00 2001 From: Raphael Santos Date: Mon, 30 Sep 2019 09:24:30 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Inserido=20m=C3=A9todo=20recargaBonus=20na?= =?UTF-8?q?=20classe=20Conta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/Conta.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Api/Conta.php b/src/Api/Conta.php index ab032d1..0f948e5 100644 --- a/src/Api/Conta.php +++ b/src/Api/Conta.php @@ -79,4 +79,18 @@ public function relatorio() { return $this->client->get(new Route([self::ROTA_CONTA, 'relatorio'])); } + + /** + * Credita valor de bĂ´nus em uma conta filha + * @param int $id + * @param array $data + * @return mixed + */ + public function recargaBonus($id, $data) + { + return $this->client->post( + new Route([self::ROTA_CONTA, $id, '/bonus']), + $data + ); + } } \ No newline at end of file From 26c959d2d9f90a1194db747034a9f35c85750661 Mon Sep 17 00:00:00 2001 From: Dilo Wagner Date: Sat, 14 Dec 2019 09:09:24 -0300 Subject: [PATCH 2/2] Ajuste na constante sendo referenciada errada na classe de Fila --- src/Api/Fila.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Fila.php b/src/Api/Fila.php index d8355d5..7cf99ea 100644 --- a/src/Api/Fila.php +++ b/src/Api/Fila.php @@ -88,7 +88,7 @@ public function atualizarFila($id, $data) */ public function excluirRamalFila($id, $ramal_id) { - return $this->client->delete(new Route([self::ROTA_RAMAL, $id.'/', $ramal_id ])); + return $this->client->delete(new Route([self::ROTA_FILA, $id.'/', $ramal_id ])); } /** @@ -98,7 +98,7 @@ public function excluirRamalFila($id, $ramal_id) */ public function buscarFilaRamal($id, $ramal_id) { - return $this->client->get(new Route([self::ROTA_RAMAL, $id.'/', $ramal_id ])); + return $this->client->get(new Route([self::ROTA_FILA, $id.'/', $ramal_id ])); }