Bradesco
extends BancoBase
in package
Table of Contents
Constants
- CODIGO_LANCAMENTO = ["00000" => null, "00030" => null, "00036" => null, "00311" => 'PAGTO ELETRON COBRANCA', "00318" => 'TED-TRANSF ELET DISPON', "00412" => 'TRANSF AUTORIZ ENTRE AGS', "00777" => 'TARIFA BANCARIA', "00907" => 'PAGTO ELETRONICO TRIBUTO', "00912" => 'GASTOS CARTAO DE CREDITO', "00982" => 'CONTA DE TELEFONE', "00983" => 'CONTA DE LUZ', "03133" => 'APLICACAO CDB', "03205" => 'TRANSFERENCIA PIX', "03212" => 'TRANSFERENCIA PIX', "03330" => 'PIX QR CODE ESTATICO', "03331" => 'PIX QR CODE DINAMICO']
Properties
- $httpClient : HttpClient
- $access_token : string|null
- $agencia : mixed
- $conta : mixed
- $debug : bool
- $ssl_crt_blob : string|null
- $ssl_key_blob : string|null
- $tipo : string
Methods
- __construct() : mixed
- __destruct() : mixed
- autenticar() : array<string|int, mixed>|false
- createExceptionMsg() : mixed
- createFiles() : string|null
- createFITID() : string
- FITID is supposed to be unique to each transaction and should remain consistent over time. Such that if I download a transaction today and it has the FITID 12345 if download that same transaction next month it must have the same FITID. 'data' contains all values to create the hash.
- createHttpClient() : Client
- getContext() : mixed
- getData() : mixed
- getDescricao() : mixed
- getError() : mixed
- getExtrato() : mixed
- getNumeroDocumento() : string
- getSaldo() : string
- getTipo() : mixed
- join() : string
- logContext() : void
- obfuscateInformation() : mixed
- parseExceptionMsg() : mixed
- setHttpClient() : void
- shuffleString() : string
- closeFiles() : mixed
- formatarMovimentacao() : array<string|int, mixed>
- prepararRetornoExtrato() : array<string|int, mixed>
- restoreContext() : mixed
Constants
CODIGO_LANCAMENTO
protected
mixed
CODIGO_LANCAMENTO
= ["00000" => null, "00030" => null, "00036" => null, "00311" => 'PAGTO ELETRON COBRANCA', "00318" => 'TED-TRANSF ELET DISPON', "00412" => 'TRANSF AUTORIZ ENTRE AGS', "00777" => 'TARIFA BANCARIA', "00907" => 'PAGTO ELETRONICO TRIBUTO', "00912" => 'GASTOS CARTAO DE CREDITO', "00982" => 'CONTA DE TELEFONE', "00983" => 'CONTA DE LUZ', "03133" => 'APLICACAO CDB', "03205" => 'TRANSFERENCIA PIX', "03212" => 'TRANSFERENCIA PIX', "03330" => 'PIX QR CODE ESTATICO', "03331" => 'PIX QR CODE DINAMICO']
Properties
$httpClient
public
HttpClient
$httpClient
$access_token
protected
string|null
$access_token
= null
$agencia
protected
mixed
$agencia
$conta
protected
mixed
$conta
$debug
protected
bool
$debug
$ssl_crt_blob
protected
string|null
$ssl_crt_blob
$ssl_key_blob
protected
string|null
$ssl_key_blob
$tipo
protected
string
$tipo
Methods
__construct()
public
__construct([array<string|int, mixed> $context = [] ][, mixed $debug = false ]) : mixed
Parameters
- $context : array<string|int, mixed> = []
- $debug : mixed = false
__destruct()
public
__destruct() : mixed
autenticar()
public
autenticar(array<string|int, mixed> $credentials) : array<string|int, mixed>|false
Parameters
- $credentials : array<string|int, mixed>
Return values
array<string|int, mixed>|falsecreateExceptionMsg()
public
createExceptionMsg(mixed $e[, string $operacao = "" ][, array<string|int, mixed> $generic_data = [] ]) : mixed
Parameters
- $e : mixed
- $operacao : string = ""
- $generic_data : array<string|int, mixed> = []
createFiles()
public
createFiles(string|null $blob) : string|null
Parameters
- $blob : string|null
Return values
string|nullcreateFITID()
FITID is supposed to be unique to each transaction and should remain consistent over time. Such that if I download a transaction today and it has the FITID 12345 if download that same transaction next month it must have the same FITID. 'data' contains all values to create the hash.
public
createFITID(array<string|int, mixed> $data, string $prefix) : string
Parameters
- $data : array<string|int, mixed>
- $prefix : string
Return values
stringcreateHttpClient()
public
createHttpClient(mixed $pub_key, mixed $pri_key[, mixed $extra_fields = [] ]) : Client
Parameters
- $pub_key : mixed
- $pri_key : mixed
- $extra_fields : mixed = []
Return values
ClientgetContext()
public
getContext([mixed $key = null ]) : mixed
Parameters
- $key : mixed = null
getData()
public
getData(mixed $date) : mixed
Parameters
- $date : mixed
getDescricao()
public
getDescricao(mixed $codigo_lancamento, mixed $descritivo_lancamento_completo, mixed $segunda_linha_lancamento) : mixed
Parameters
- $codigo_lancamento : mixed
- $descritivo_lancamento_completo : mixed
- $segunda_linha_lancamento : mixed
getError()
public
getError(mixed $exception_message) : mixed
Parameters
- $exception_message : mixed
getExtrato()
public
getExtrato([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getNumeroDocumento()
public
getNumeroDocumento(string $numero_documento) : string
Parameters
- $numero_documento : string
Return values
stringgetSaldo()
public
getSaldo() : string
Return values
stringgetTipo()
public
getTipo(mixed $sinal_lancamento) : mixed
Parameters
- $sinal_lancamento : mixed
join()
public
join(array<string|int, mixed> $parts, string $separator) : string
Parameters
- $parts : array<string|int, mixed>
- $separator : string
Return values
stringlogContext()
public
logContext(string $operacao) : void
Parameters
- $operacao : string
obfuscateInformation()
public
obfuscateInformation(array<string|int, mixed> &$movimentacoes) : mixed
Parameters
- $movimentacoes : array<string|int, mixed>
parseExceptionMsg()
public
parseExceptionMsg(mixed $exception_message) : mixed
Parameters
- $exception_message : mixed
setHttpClient()
public
setHttpClient(Client $client) : void
Parameters
- $client : Client
shuffleString()
public
shuffleString(string $input) : string
Parameters
- $input : string
Return values
stringcloseFiles()
protected
closeFiles() : mixed
formatarMovimentacao()
protected
formatarMovimentacao(array<string|int, mixed> $transacao) : array<string|int, mixed>
Parameters
- $transacao : array<string|int, mixed>
Return values
array<string|int, mixed>prepararRetornoExtrato()
protected
prepararRetornoExtrato(array<string|int, mixed> $lista_transacoes) : array<string|int, mixed>
Parameters
- $lista_transacoes : array<string|int, mixed>
Return values
array<string|int, mixed>restoreContext()
private
restoreContext(array<string|int, mixed> $context) : mixed
Parameters
- $context : array<string|int, mixed>