Skip to content

Commit 4544a36

Browse files
committed
v1.1.1 release
certificate update composer update
1 parent cc11a13 commit 4544a36

11 files changed

Lines changed: 21 additions & 19 deletions

File tree

.openapi-generator/templates/ApiClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ class ApiClient extends \GuzzleHttp\Client
5757
public function __construct(array $config = [])
5858
{
5959
if (array_key_exists('clientid', $config) === false) {
60-
$this->xIBMClientId = \Ease\Functions::cfg('XIBMCLIENTID');
60+
$this->xIBMClientId = \Ease\Shared::cfg('XIBMCLIENTID');
6161
} else {
6262
$this->xIBMClientId = $config['clientid'];
6363
}
6464

6565
if (array_key_exists('cert', $config) === false) {
66-
$config['cert'] = [\Ease\Functions::cfg('CERT_FILE'), \Ease\Functions::cfg('CERT_PASS')];
66+
$config['cert'] = [\Ease\Shared::cfg('CERT_FILE'), \Ease\Shared::cfg('CERT_PASS')];
6767
if (empty($config['cert'][0])) {
6868
throw new \Exception('Certificate (CERT_FILE) not specified');
6969
}
@@ -73,7 +73,7 @@ public function __construct(array $config = [])
7373
}
7474

7575
if (array_key_exists('debug', $config) === false) {
76-
$config['debug'] = \Ease\Functions::cfg('API_DEBUG', false);
76+
$config['debug'] = \Ease\Shared::cfg('API_DEBUG', false);
7777
}
7878

7979
if(array_key_exists('clientpubip', $config)){

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ext-mbstring": "*",
2626
"guzzlehttp/guzzle": "^7.3",
2727
"guzzlehttp/psr7": "^1.7 || ^2.0",
28-
"vitexsoftware/ease-core": "dev-main"
28+
"vitexsoftware/ease-core": ">=1.41"
2929
},
3030
"require-dev": {
3131
"phpunit/phpunit": "^8.0 || ^9.0",

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ php-vitexsoftware-rbczpremiumapi (1.1.1) UNRELEASED; urgency=medium
77
* Production Endoint Used
88
* mocking ability added
99
* Better tests
10+
* Update
1011

11-
-- vitex <info@vitexsoftware.cz> Tue, 02 May 2023 22:48:38 +0200
12+
-- vitex <info@vitexsoftware.cz> Fri, 13 Oct 2023 14:15:25 +0200

debian/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "deb/rbczpremiumapi",
33
"description": "An Core of PHP Framework for Ease of writing Applications (debianized)",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"authors": [
66
{
77
"name": "Vítězslav Dvořák",

debian/files

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
php-vitexsoftware-rbczpremiumapi-dev_1.1.0_all.deb devel optional
2-
php-vitexsoftware-rbczpremiumapi-doc_1.1.0_all.deb doc optional
3-
php-vitexsoftware-rbczpremiumapi_1.1.0_all.deb office optional
4-
php-vitexsoftware-rbczpremiumapi_1.1.0_amd64.buildinfo web optional
1+
php-vitexsoftware-rbczpremiumapi-dev_1.1.1_all.deb devel optional
2+
php-vitexsoftware-rbczpremiumapi-doc_1.1.1_all.deb doc optional
3+
php-vitexsoftware-rbczpremiumapi_1.1.1_all.deb office optional
4+
php-vitexsoftware-rbczpremiumapi_1.1.1_amd64.buildinfo web optional

debian/php-vitexsoftware-rbczpremiumapi-dev.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
test/Api/* usr/share/php/Raiffeisenbank/Test/Api
22
test/Model/* usr/share/php/Raiffeisenbank/Test/Model
3-
test/test.env var/lib/composer/php-vitexsoftware-rbczpremiumapi-dev/
3+
examples/example.env var/lib/composer/php-vitexsoftware-rbczpremiumapi-dev/
44

55
debian/test/phpunit.xml usr/share/php/Raiffeisenbank/Test
66

debian/test/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require_once( '/var/lib/composer/php-vitexsoftware-rbczpremiumapi-dev/autoload.php');
55
\Ease\Shared::init(['CERT_FILE', 'CERT_PASS', 'XIBMCLIENTID'], '/var/lib/composer/php-vitexsoftware-rbczpremiumapi-dev/test.env');
66

7-
$certFile = \Ease\Functions::cfg('CERT_FILE');
7+
$certFile = \Ease\Shared::cfg('CERT_FILE');
88
if ((file_exists($certFile) === false) || (is_readable($certFile) === false)) {
99
fwrite(STDERR, 'Cannot read specified certificate file: ' . $certFile . PHP_EOL);
1010
exit;

examples/example.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CERT_FILE=test_cert.p12
1+
CERT_FILE=test_cert_ssl3.p12
22
CERT_PASS=test12345678
33
XIBMCLIENTID=FbboLD2r1WHDRcuKS4wWUbSRHxlDloWL
44
API_DEBUG=True

examples/getstatements.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
namespace VitexSoftware\Raiffeisenbank;
44

55
require_once('../vendor/autoload.php');
6-
\Ease\Shared::init([], 'example.env');
7-
$x_ibm_client_id = 'FbboLD2r1WHDRcuKS4wWUbSRHxlDloWL'; // string | ClientID obtained from Developer Portal - when you registered your app with us.
6+
\Ease\Shared::init(['XIBMCLIENTID' // string | ClientID obtained from Developer Portal - when you registered your app with us.
7+
], 'example.env');
8+
89
$x_request_id = time(); // string | Unique request id provided by consumer application for reference and auditing.
910
$accept_language = 'cs'; // string | The Accept-Language request HTTP header is used to determine document language. Supported languages are `cs` and `en`.
1011
$psu_ip_address = ApiClient::getPublicIP(); // string | IP address of a client - the end IP address of the client application (no server) in IPv4 or IPv6 format.
@@ -17,7 +18,7 @@
1718

1819
$apiInstance = new PremiumAPI\GetStatementListApi(new ApiClient([
1920
'clientpubip' => $psu_ip_address,
20-
'clientid' => $x_ibm_client_id,
21+
'clientid' => \Ease\Shared::cfg('XIBMCLIENTID'),
2122
'mocking' => true
2223
]));
2324
try {

examples/test_cert_ssl3.p12

2.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)