Skip to content

Commit

Permalink
release v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Dec 20, 2024
1 parent d72dbe8 commit f232047
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vgrem/php-spo": "^3",
"vitexsoftware/pohoda-connector": "^0.5",
"vitexsoftware/rbczpremiumapi": "dev-main",
"spojenet/pohoda-sql": "dev-main"
"spojenet/pohoda-sql": "^0.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Homepage: https://github.com/Spoje-NET/pohoda-raiffeisenbank
Package: pohoda-raiffeisenbank
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}, php-vitexsoftware-rbczpremiumapi, php-spojenet-pohoda-sql, php-vitexsoftware-pohoda-connector (>= 0.5.0)
Depends: ${misc:Depends}, ${shlibs:Depends}, php-vitexsoftware-rbczpremiumapi (>=1.2.3), php-spojenet-pohoda-sql (>= 0.2), php-vitexsoftware-pohoda-connector (>= 0.5.0)
Description: Import Raiffeisenbank statements into Pohoda
See your Bank Account Statements in Pohoda

Expand Down
5 changes: 3 additions & 2 deletions src/pohoda-raiffeisenbank-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@

namespace Pohoda\RaiffeisenBank;

use Ease\Shared;

require_once '../vendor/autoload.php';
/**
* Get List of bank accounts and import it into Pohoda.
*/
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD', 'POHODA_ICO', 'CERT_FILE', 'CERT_PASS', 'XIBMCLIENTID'], $argv[1] ?? '../.env');
Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD', 'POHODA_ICO', 'CERT_FILE', 'CERT_PASS', 'XIBMCLIENTID'], $argv[1] ?? '../.env');
$apiInstance = new \VitexSoftware\Raiffeisenbank\PremiumAPI\GetAccountsApi();
$x_request_id = time(); // string | Unique request id provided by consumer application for reference and auditing.

PohodaBankClient::checkCertificate(Shared::cfg('CERT_FILE'), Shared::cfg('CERT_PASS'));
2 changes: 1 addition & 1 deletion src/pohoda-raiffeisenbank-statements.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
require_once '../vendor/autoload.php';

\define('APP_NAME', 'Pohoda RaiffeisenBank Statements');

$exitcode = 0;
/**
* Get today's Statements list.
*/
Expand Down
8 changes: 5 additions & 3 deletions src/pohoda-raiffeisenbank-transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@

namespace Pohoda\RaiffeisenBank;

use Ease\Shared;

\define('APP_NAME', 'PohodaRBTransactions');

require_once '../vendor/autoload.php';
/**
* Get today's transactions list.
*/
\Ease\Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD', 'POHODA_ICO', 'CERT_FILE', 'CERT_PASS', 'XIBMCLIENTID', 'ACCOUNT_NUMBER'], $argv[1] ?? '../.env');
Shared::init(['POHODA_URL', 'POHODA_USERNAME', 'POHODA_PASSWORD', 'POHODA_ICO', 'CERT_FILE', 'CERT_PASS', 'XIBMCLIENTID', 'ACCOUNT_NUMBER'], $argv[1] ?? '../.env');
PohodaBankClient::checkCertificate(Shared::cfg('CERT_FILE'), Shared::cfg('CERT_PASS'));
$engine = new Transactor(\Ease\Shared::cfg('ACCOUNT_NUMBER'));
$engine->setScope(\Ease\Shared::cfg('IMPORT_SCOPE', 'yesterday'));
$engine = new Transactor(Shared::cfg('ACCOUNT_NUMBER'));
$engine->setScope(Shared::cfg('IMPORT_SCOPE', 'yesterday'));
$engine->import();
4 changes: 2 additions & 2 deletions src/pohodaSQL-raiffeisenbank-statements-sharepoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}
}
} else {
if (null === $pdfStatements) {
if (is_null($pdfStatements) ) {
$engine->addStatusMessage(_('Error obtaining PDF statements'), 'error');
$exitcode = 2;
} else {
Expand All @@ -127,7 +127,7 @@
}

if ($xmlStatements) {
$inserted = $engine->import(\Ease\Shared::cfg('POHODA_BANK_IDS', ''));
$inserted = $engine->import(Shared::cfg('POHODA_BANK_IDS', ''));
$report['pohoda'] = $inserted;

if ($inserted) {
Expand Down
3 changes: 2 additions & 1 deletion src/raiffeisenbank-statements-sharepoint-uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@
$engine->setCurrency(Shared::cfg('ACCOUNT_CURRENCY'));
}

if(Shared::cfg('APP_DEBUG', false)){
if (Shared::cfg('APP_DEBUG', false)) {
$engine->logBanner($engine->getAccount().' '.$engine->getCurrencyCode(), 'Scope: '.$engine->scope);
}

$exitcode = 0;
$fileUrls = [];
$report = [
Expand Down

0 comments on commit f232047

Please # to comment.