Sicoob
extends BancoBase
in package
Table of Contents
Properties
- $httpClient : HttpClient
- $access_token : string|null
- $agencia : mixed
- $client_id : string|null
- $conta : mixed
- $debug : bool
- $saldo : string|null
- $scopes : string
- $ssl_crt_blob : string|null
- $ssl_key_blob : string|null
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
- getError() : mixed
- getExtrato() : mixed
- getNumeroDocumento() : string
- getSaldo() : string
- join() : string
- logContext() : void
- obfuscateInformation() : mixed
- parseExceptionMsg() : mixed
- setHttpClient() : void
- shuffleString() : string
- closeFiles() : mixed
- formatarMovimentacao() : array<string|int, mixed>
- getData() : mixed
- getTipoTransacao() : string|null
- prepararRetornoExtrato() : array<string|int, mixed>
- restoreContext() : mixed
Properties
$httpClient
public
HttpClient
$httpClient
$access_token
protected
string|null
$access_token
= null
$agencia
protected
mixed
$agencia
$client_id
protected
string|null
$client_id
= null
$conta
protected
mixed
$conta
$debug
protected
bool
$debug
$saldo
protected
string|null
$saldo
= null
$scopes
protected
string
$scopes
= "cco_extrato cco_saldo openid cco_consulta"
$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
__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
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
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>
Return values
array<string|int, mixed>getData()
protected
getData(mixed $data) : mixed
Parameters
- $data : mixed
getTipoTransacao()
protected
getTipoTransacao(mixed $mov) : string|null
Parameters
- $mov : mixed
Return values
string|nullprepararRetornoExtrato()
protected
prepararRetornoExtrato(mixed $data) : array<string|int, mixed>
Parameters
- $data : mixed
Return values
array<string|int, mixed>restoreContext()
private
restoreContext(array<string|int, mixed> $context) : mixed
Parameters
- $context : array<string|int, mixed>