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
- $fitid_hash_ctrl : mixed
- $temp_files : mixed
Methods
- __construct() : mixed
- __destruct() : mixed
- 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
- getError() : mixed
- getNumeroDocumento() : string
- join() : string
- logContext() : void
- obfuscateInformation() : mixed
- parseExceptionMsg() : mixed
- setHttpClient() : void
- shuffleString() : string
- closeFiles() : mixed
- formatarMovimentacao() : array<string|int, 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
$fitid_hash_ctrl
private
mixed
$fitid_hash_ctrl
= []
$temp_files
private
mixed
$temp_files
= []
Methods
__construct()
public
__construct([bool $debug = false ]) : mixed
Parameters
- $debug : bool = false
__destruct()
public
__destruct() : mixed
createExceptionMsg()
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
getError()
public
getError(mixed $exception_message) : mixed
Parameters
- $exception_message : mixed
getNumeroDocumento()
public
getNumeroDocumento(string $numero_documento) : string
Parameters
- $numero_documento : string
Return values
stringjoin()
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>