Skip to content

Commit

Permalink
Merge pull request #8 from totalvoice/dev
Browse files Browse the repository at this point in the history
Constante da Rota na classe de Fila está errado
  • Loading branch information
dilowagner committed Dec 14, 2019
2 parents 193c6c7 + 26c959d commit c7dcb2a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/Api/Conta.php
Expand Up @@ -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
);
}
}
4 changes: 2 additions & 2 deletions src/Api/Fila.php
Expand Up @@ -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 ]));
}

/**
Expand All @@ -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 ]));
}


Expand Down

0 comments on commit c7dcb2a

Please sign in to comment.