Skip to content

Commit 2001731

Browse files
author
Vítězslav Dvořák
committed
Adds account mapping utilities and updates dependencies
Introduces utility methods to map IBANs to account IDs and retrieve accounts by IBAN for better account management. Updates PHPStan and PHP CS Fixer dependencies to newer versions. Enhances Makefile with a token refresh command. Removes redundant code in various classes for improved readability.
1 parent 55d1e69 commit 2001731

File tree

152 files changed

+319
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+319
-10
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
php-spojenet-csas-accountsapi (0.7.2) UNRELEASED; urgency=medium
2+
3+
* Adds account mapping utilities and updates dependencies
4+
5+
-- Vitex <[email protected]> Fri, 11 Jul 2025 21:32:40 +0200
6+
17
php-spojenet-csas-accountsapi (0.7.1) noble; urgency=medium
28

39
[ vitex ]

lib/Accounts/DefaultApi.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
* @author OpenAPI Generator team
5454
*
5555
* @see https://openapi-generator.tech
56+
*
57+
* @no-named-arguments
5658
*/
5759
class DefaultApi
5860
{

lib/ApiClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Description of ApiClient.
3131
*
3232
* @author vitex
33+
*
34+
* @no-named-arguments
3335
*/
3436
class ApiClient extends \GuzzleHttp\Client
3537
{

lib/ApiException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* @author OpenAPI Generator team
4141
*
4242
* @see https://openapi-generator.tech
43+
*
44+
* @no-named-arguments
4345
*/
4446
class ApiException extends \Exception
4547
{

lib/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
* @author OpenAPI Generator team
4242
*
4343
* @see https://openapi-generator.tech
44+
*
45+
* @no-named-arguments
4446
*/
4547
class Configuration
4648
{

lib/HeaderSelector.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* @author OpenAPI Generator team
4141
*
4242
* @see https://openapi-generator.tech
43+
*
44+
* @no-named-arguments
4345
*/
4446
class HeaderSelector
4547
{
@@ -176,7 +178,7 @@ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headers
176178
];
177179

178180
foreach ($accept as $header) {
179-
$headerData = $this->getHeaderAndWeight($header);
181+
$headerData = self::getHeaderAndWeight($header);
180182

181183
if (str_starts_with(strtolower($headerData['header']), strtolower('application/json'))) {
182184
$processedHeaders['withApplicationJson'][] = $headerData;
@@ -210,7 +212,7 @@ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headers
210212
*
211213
* @return array with the header and its weight
212214
*/
213-
private function getHeaderAndWeight(string $header): array
215+
private static function getHeaderAndWeight(string $header): array
214216
{
215217
// matches headers with weight, splitting the header and the weight in $outputArray
216218
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
@@ -249,15 +251,15 @@ private function adjustWeight(array $headers, int &$currentWeight, bool $hasMore
249251

250252
$weight = $currentWeight;
251253

252-
$acceptHeaders[] = $this->buildAcceptHeader($header['header'], $weight);
254+
$acceptHeaders[] = self::buildAcceptHeader($header['header'], $weight);
253255
}
254256

255257
$currentWeight = $this->getNextWeight($currentWeight, $hasMoreThan28Headers);
256258

257259
return $acceptHeaders;
258260
}
259261

260-
private function buildAcceptHeader(string $header, int $weight): string
262+
private static function buildAcceptHeader(string $header, int $weight): string
261263
{
262264
if ($weight === 1000) {
263265
return $header;

lib/Model/Account.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* @see https://openapi-generator.tech
4545
*
4646
* @implements \ArrayAccess<string, mixed>
47+
*
48+
* @no-named-arguments
4749
*/
4850
class Account implements \ArrayAccess, \JsonSerializable, ModelInterface
4951
{

lib/Model/AccountBalance.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* @see https://openapi-generator.tech
4545
*
4646
* @implements \ArrayAccess<string, mixed>
47+
*
48+
* @no-named-arguments
4749
*/
4850
class AccountBalance implements \ArrayAccess, \JsonSerializable, ModelInterface
4951
{

lib/Model/AccountCurrencyExchange.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* @see https://openapi-generator.tech
4545
*
4646
* @implements \ArrayAccess<string, mixed>
47+
*
48+
* @no-named-arguments
4749
*/
4850
class AccountCurrencyExchange implements \ArrayAccess, \JsonSerializable, ModelInterface
4951
{

lib/Model/AccountIdentification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* @see https://openapi-generator.tech
4545
*
4646
* @implements \ArrayAccess<string, mixed>
47+
*
48+
* @no-named-arguments
4749
*/
4850
class AccountIdentification implements \ArrayAccess, \JsonSerializable, ModelInterface
4951
{

0 commit comments

Comments
 (0)