No description
Find a file
Cybervitexus 588a6df3e2
Merge pull request #30 from VitexSoftware/dependabot/composer/friendsofphp/php-cs-fixer-tw-3.92
composer: update friendsofphp/php-cs-fixer requirement from ^3.91 to ^3.92
2025-12-15 21:22:39 +01:00
.github Bump actions/cache from 4 to 5 2025-12-15 09:29:52 +00:00
.openapi-generator Rethrows API exceptions after logging error details 2025-11-28 14:32:31 +01:00
.vscode Update dependencies and improve API error handling 2025-10-22 11:59:22 +02:00
debian Rethrows API exceptions after logging error details 2025-11-28 14:32:31 +01:00
docs Update dependencies and improve API error handling 2025-10-22 11:59:22 +02:00
examples sandbox schema added 2025-09-23 18:14:27 +02:00
lib Rethrows API exceptions after logging error details 2025-11-28 14:32:31 +01:00
test Refactors rate-limiting storage and improves type safety 2025-11-14 17:05:02 +01:00
.gitignore OpenAPI Schema updated to 1.1.20240910 2025-03-10 08:11:15 +01:00
.openapi-generator-ignore Initial commit 2023-03-28 23:02:52 +02:00
.php-cs-fixer.dist.php Update dependencies and improve API error handling 2025-10-22 11:59:22 +02:00
.travis.yml Initial commit 2023-03-28 23:02:52 +02:00
01rbczpremiumapi.yaml Update dependencies and improve API error handling 2025-10-22 11:59:22 +02:00
AUTHORS.md Alpha version 2023-03-28 23:45:26 +02:00
composer.json Merge pull request #30 from VitexSoftware/dependabot/composer/friendsofphp/php-cs-fixer-tw-3.92 2025-12-15 21:22:39 +01:00
git_push.sh Repo path fixed 2023-03-30 23:21:25 +02:00
library-logo.svg Logo update 2023-04-02 12:17:50 +02:00
LICENSE Create LICENSE 2025-05-28 18:45:48 +02:00
Makefile Merge branch 'main' of github.com:VitexSoftware/php-vitexsoftware-rbczpremiumapi 2024-12-17 23:35:17 +01:00
openapitools.json Upgrade OpenAPI generator to 7.13.0 and enhance API models 2025-05-27 20:24:51 +02:00
package-lock.json be ready for 204 empty responses 2025-05-28 13:09:41 +02:00
package.json be ready for 204 empty responses 2025-05-28 13:09:41 +02:00
phpunit.xml.dist Upgrade OpenAPI generator to 7.13.0 and enhance API models 2025-05-27 20:24:51 +02:00
README.md Improves rate limit handling and configuration 2025-11-25 06:35:34 +01:00
regenerate.sh backported updates from https://github.com/Spoje-NET/php-csas-webapi 2024-12-14 21:14:44 +01:00
social-logo.png Try to package for Debian 2023-04-11 09:33:45 +02:00
WARP.md Fix rate limiting: use certificate fingerprint instead of X-IBM-Client-Id 2025-11-21 15:00:29 +01:00

Raiffeisenbank Premium API client library

Library Logo

php client library for rbczpremiumapi

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/VitexSoftware/php-vitexsoftware-rbczpremiumapi.git"
    }
  ],
  "require": {
    "vitexsoftware/php-vitexsoftware-rbczpremiumapi": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/Raiffeisenbank Premium API client library/vendor/autoload.php');

Getting Started

Example environment or contents of .env file for basic library configuration

CERT_FILE=examples/test_cert.p12
CERT_PASS=test12345678
XIBMCLIENTID=FbboLD2r1WHDRcuKS4wWUbSRHxlDloWL
API_DEBUG=True

Set the RBAPI_RATE_LIMIT_JSON_FILE to override default /tmp/rbczpremiumapi_rates.json

When the RBAPI_RATE_WAIT_MODE is not set, the RateLimitExceededException is throwed. The 'true' value wait till the next day, to continue.

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');





$apiInstance = new VitexSoftware\Raiffeisenbank\Api\DownloadStatementApi(
    // If you want use custom http client, pass your client which implements 
    // `GuzzleHttp\ClientInterface`.
    // This is optional, Internal `ApiClient` will be used as default.
    // Else you must call setXIBMClientId($lientID) and $this->setSUIPAddress($clientPubIP) 
    // methods to set API call properly      

    new \VitexSoftware\Raiffeisenbank\ApiClient(['clientpubip'=> \VitexSoftware\Raiffeisenbank\ApiClient::getPublicIP() ,'debug'=>true])
);


$xRequestId = 'xRequestId_example'; // string | Unique request id provided by consumer application for reference and auditing.
$acceptLanguage = 'acceptLanguage_example'; // string | The Accept-Language request HTTP header is used to determine document  language. Supported languages are `cs` and `en`.
$requestBody = new \VitexSoftware\Raiffeisenbank\Model\DownloadStatementRequest(); // \VitexSoftware\Raiffeisenbank\Model\DownloadStatementRequest

try {
    $result = $apiInstance->downloadStatement( $xRequestId, $acceptLanguage, $requestBody, $pSUIPAddress);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadStatementApi->downloadStatement: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://api.rb.cz

Class Method HTTP request Description
DownloadStatementApi downloadStatement POST /rbcz/premium/api/accounts/statements/download
GetAccountBalanceApi getBalance GET /rbcz/premium/api/accounts/{accountNumber}/balance
GetAccountsApi getAccounts GET /rbcz/premium/api/accounts
GetBatchDetailApi getBatchDetail GET /rbcz/premium/api/payments/batches/{batchFileId}
GetFxRatesApi getFxRates GET /rbcz/premium/api/fxrates/{currencyCode}
GetFxRatesListApi getFxRatesList GET /rbcz/premium/api/fxrates
GetStatementListApi getStatements POST /rbcz/premium/api/accounts/statements
GetTransactionListApi getTransactionList GET /rbcz/premium/api/accounts/{accountNumber}/{currencyCode}/transactions
UploadPaymentsApi importPayments POST /rbcz/premium/api/payments/batches

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

info@vitexsoftware.cz

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.20240910
    • Package version: 1.3.1
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Library is Used by: