Documentation

BB extends BancoBase
in package

Table of Contents

Properties

$httpClient  : HttpClient
$access_token  : string|null
$agencia  : mixed
$app_key  : string|null
$conta  : mixed
$debug  : bool
$saldo  : string|null
$ssl_crt_blob  : string|null
$ssl_key_blob  : string|null

Methods

__construct()  : mixed
__destruct()  : mixed
autenticar()  : array<string|int, mixed>|false
buildBasicAuthorization()  : 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
fixDataInicioFim()  : mixed
formatDate()  : mixed
getClientId()  : mixed
getClientSecret()  : mixed
getContext()  : mixed
getError()  : mixed
getExtrato()  : mixed
getNumeroDocumento()  : string
getSaldo()  : string
ignoreTransaction()  : bool
join()  : string
logContext()  : void
obfuscateInformation()  : mixed
parseExceptionMsg()  : mixed
prepararRetornoExtrato()  : array<string|int, mixed>
setHttpClient()  : void
shuffleString()  : string
closeFiles()  : mixed
formatarMovimentacao()  : array<string|int, mixed>
parseSaldoAtual()  : mixed
getAuthorization()  : mixed
getExtratoPagina()  : mixed
getTipo()  : mixed
restoreContext()  : mixed

Properties

$access_token

protected string|null $access_token = null

$app_key

protected string|null $app_key

$saldo

protected string|null $saldo = null

$ssl_crt_blob

protected string|null $ssl_crt_blob

$ssl_key_blob

protected string|null $ssl_key_blob

Methods

__construct()

public __construct([array<string|int, mixed> $context = [] ][, mixed $debug = false ]) : mixed
Parameters
$context : array<string|int, mixed> = []
$debug : mixed = false

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>|false

buildBasicAuthorization()

public static buildBasicAuthorization(mixed $clientId, mixed $clientSecret) : mixed
Parameters
$clientId : mixed
$clientSecret : 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|null

createFITID()

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
string

createHttpClient()

public createHttpClient(mixed $pub_key, mixed $pri_key[, mixed $extra_fields = [] ]) : Client
Parameters
$pub_key : mixed
$pri_key : mixed
$extra_fields : mixed = []
Return values
Client

fixDataInicioFim()

public fixDataInicioFim(mixed $dataInicio, mixed $dataFim) : mixed
Parameters
$dataInicio : mixed
$dataFim : mixed

formatDate()

public formatDate(mixed $date[, mixed $output_format = "Ymd" ]) : mixed
Parameters
$date : mixed
$output_format : mixed = "Ymd"

getClientId()

public getClientId(mixed $credentials) : mixed
Parameters
$credentials : mixed

getClientSecret()

public getClientSecret(mixed $credentials) : mixed
Parameters
$credentials : 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
string

getSaldo()

public getSaldo() : string
Return values
string

ignoreTransaction()

public ignoreTransaction(mixed $mov) : bool
Parameters
$mov : mixed
Return values
bool

join()

public join(array<string|int, mixed> $parts, string $separator) : string
Parameters
$parts : array<string|int, mixed>
$separator : string
Return values
string

logContext()

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

prepararRetornoExtrato()

public prepararRetornoExtrato(array<string|int, mixed> $lista_transacoes) : array<string|int, mixed>
Parameters
$lista_transacoes : array<string|int, mixed>
Return values
array<string|int, mixed>

setHttpClient()

public setHttpClient(Client $client) : void
Parameters
$client : Client

shuffleString()

public shuffleString(string $input) : string
Parameters
$input : string
Return values
string

formatarMovimentacao()

protected formatarMovimentacao(array<string|int, mixed> $transacao) : array<string|int, mixed>
Parameters
$transacao : array<string|int, mixed>
Return values
array<string|int, mixed>

parseSaldoAtual()

protected parseSaldoAtual(mixed $mov) : mixed
Parameters
$mov : mixed

getAuthorization()

private getAuthorization(mixed $credentials) : mixed
Parameters
$credentials : mixed

getExtratoPagina()

private getExtratoPagina(mixed $dataInicio, mixed $dataFim[, mixed $numero_pagina = 1 ]) : mixed
Parameters
$dataInicio : mixed
$dataFim : mixed
$numero_pagina : mixed = 1

getTipo()

private getTipo(mixed $indicadorSinalLancamento) : mixed
Parameters
$indicadorSinalLancamento : mixed

restoreContext()

private restoreContext(array<string|int, mixed> $context) : mixed
Parameters
$context : array<string|int, mixed>

        
On this page

Search results