Itau
extends BancoBase
in package
Table of Contents
Properties
- $httpClient : HttpClient
- $agencia : mixed
- $conta : mixed
- $debug : bool
- $ssl_crt_blob : string|null
- $ssl_key_blob : string|null
- $access_token : mixed
- $mock : mixed
- $saldo : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- assinarCertificadoDinamico() : 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
- getAccountData() : mixed
- getContext() : mixed
- getError() : mixed
- getExtrato() : mixed
- getNumeroDocumento() : string
- getSaldo() : mixed
- O extrato não informa diretamente o saldo atual, apenas a posição do saldo nos dias em que houve movimentação.
- join() : string
- logContext() : void
- obfuscateInformation() : mixed
- parseExceptionMsg() : mixed
- setHttpClient() : void
- shuffleString() : string
- uuid_v4() : mixed
- closeFiles() : mixed
- formatarMovimentacao() : array<string|int, mixed>
- getTipoTransacao() : string|null
- prepararRetornoExtrato() : array<string|int, mixed>
- parseRetornoCertificadoDinamico() : mixed
- restoreContext() : mixed
Properties
$httpClient
public
HttpClient
$httpClient
$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
$access_token
private
mixed
$access_token
= null
$mock
private
mixed
$mock
= false
$saldo
private
mixed
$saldo
= null
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
assinarCertificadoDinamico()
public
assinarCertificadoDinamico(mixed $csrOut, mixed $token) : mixed
Parameters
- $csrOut : mixed
- $token : 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
ClientgetAccountData()
public
getAccountData([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getContext()
public
getContext([mixed $key = null ]) : mixed
Parameters
- $key : mixed = null
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()
O extrato não informa diretamente o saldo atual, apenas a posição do saldo nos dias em que houve movimentação.
public
getSaldo() : mixed
Quando não há movimentações no dia, não existe registro de saldo correspondente, o que dificulta a obtenção do saldo atualizado a partir do extrato padrão.
Para contornar isso, é feita uma consulta separada do extrato usando a data atual como início e fim. Nesse cenário, mesmo sem movimentações, o retorno inclui um registro de "SALDO ANTERIOR" com o type "saldo_disponivel", permitindo identificar corretamente o saldo vigente.
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
stringuuid_v4()
public
uuid_v4() : mixed
closeFiles()
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>getTipoTransacao()
protected
getTipoTransacao(mixed $mov) : string|null
Parameters
- $mov : mixed
Return values
string|nullprepararRetornoExtrato()
protected
prepararRetornoExtrato(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>parseRetornoCertificadoDinamico()
private
parseRetornoCertificadoDinamico(mixed $body) : mixed
Parameters
- $body : mixed
restoreContext()
private
restoreContext(array<string|int, mixed> $context) : mixed
Parameters
- $context : array<string|int, mixed>