Skip to content

Commit

Permalink
ajuste boleto api contract
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Dec 4, 2023
1 parent 921e17c commit 89fea93
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Api/AbstractAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Eduardokum\LaravelBoleto\Api;

use Eduardokum\LaravelBoleto\Contracts\Api\Api;
use stdClass;
use Illuminate\Support\Str;
use Eduardokum\LaravelBoleto\Util;
use Eduardokum\LaravelBoleto\Pessoa;
use Eduardokum\LaravelBoleto\Contracts\Api\Api;
use Eduardokum\LaravelBoleto\Api\Exception\CurlException;
use Eduardokum\LaravelBoleto\Api\Exception\HttpException;
use Eduardokum\LaravelBoleto\Exception\ValidationException;
Expand Down
40 changes: 33 additions & 7 deletions src/Contracts/Api/Api.php
Original file line number Diff line number Diff line change
@@ -1,38 +1,64 @@
<?php

namespace Eduardokum\LaravelBoleto\Contracts\Api;

use Carbon\Carbon;
use Eduardokum\LaravelBoleto\Contracts\Boleto\Boleto;
use Eduardokum\LaravelBoleto\Contracts\Pessoa as PessoaContract;
use Eduardokum\LaravelBoleto\Contracts\Boleto\BoletoAPI;

interface Api
{
public function createBoleto(Boleto $boleto);
public function createBoleto(BoletoAPI $boleto);

public function retrieveNossoNumero($nossoNumero);

public function retrieveID($id);

public function cancelNossoNumero($nossoNumero, $motivo);

public function cancelID($id, $motivo);

public function retrieveList($inputedParams = []);

public function getPdfNossoNumero($nossoNumero);

public function getPdfID($id);

public function createWebhook($url, $type = 'all');
public function retrieve(Boleto $boleto);
public function cancel(Boleto $boleto, $motivo);
public function getPdf(Boleto $boleto);

public function retrieve(BoletoAPI $boleto);

public function cancel(BoletoAPI $boleto, $motivo);

public function getPdf(BoletoAPI $boleto);

public function getBaseUrl();

public function getConta();

public function getCertificado();

public function getCertificadoChave();

public function getCertificadoSenha();

public function getIdentificador();

public function getSenha();

public function getCnpj();

public function getClientId();

public function getClientSecret();

public function getAccessToken();

public function getBeneficiario();

public function unsetDebug();

public function isDebug();

public function getLog();

public function clearLog();
}

0 comments on commit 89fea93

Please sign in to comment.