diff --git a/src/Api/BankAccountApi.php b/src/Api/BankAccountApi.php index 7a4fabc..2577d73 100644 --- a/src/Api/BankAccountApi.php +++ b/src/Api/BankAccountApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * BankAccountApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -230,7 +228,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\BankAccount', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -257,7 +255,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -284,7 +282,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -311,7 +309,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -338,7 +336,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -365,7 +363,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -392,7 +390,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -419,7 +417,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -448,7 +446,7 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -575,7 +573,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -635,7 +633,7 @@ public function createBankAccountRequest($bankAccount, string $contentType = sel // for model (json/xml) if (isset($bankAccount)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($bankAccount)); } else { $httpBody = $bankAccount; @@ -648,7 +646,7 @@ public function createBankAccountRequest($bankAccount, string $contentType = sel foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -656,7 +654,7 @@ public function createBankAccountRequest($bankAccount, string $contentType = sel $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -938,7 +936,7 @@ public function deleteBankAccountRequest($id, string $contentType = self::conten foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -946,7 +944,7 @@ public function deleteBankAccountRequest($id, string $contentType = self::conten $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1076,7 +1074,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\BankAccount', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1103,7 +1101,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1130,7 +1128,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1157,7 +1155,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1184,7 +1182,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1211,7 +1209,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1238,7 +1236,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1265,7 +1263,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1294,7 +1292,7 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1421,7 +1419,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1495,7 +1493,7 @@ public function getBankAccountRequest($id, string $contentType = self::contentTy foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1503,7 +1501,7 @@ public function getBankAccountRequest($id, string $contentType = self::contentTy $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1635,7 +1633,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\BankAccountList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1662,7 +1660,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1689,7 +1687,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1716,7 +1714,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1743,7 +1741,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1770,7 +1768,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1797,7 +1795,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1826,7 +1824,7 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1947,7 +1945,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1987,7 +1985,7 @@ public function listBankAccountRequest($page = null, $perPage = 25, string $cont if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling BankAccountApi.listBankAccount, must be bigger than or equal to 1.'); } - + $resourcePath = '/bank-accounts'; $formParams = []; @@ -2033,7 +2031,7 @@ public function listBankAccountRequest($page = null, $perPage = 25, string $cont foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2041,7 +2039,7 @@ public function listBankAccountRequest($page = null, $perPage = 25, string $cont $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2173,7 +2171,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\BankAccount', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2200,7 +2198,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2227,7 +2225,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -2254,7 +2252,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2281,7 +2279,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -2308,7 +2306,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -2335,7 +2333,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -2362,7 +2360,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2389,7 +2387,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -2418,7 +2416,7 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2555,7 +2553,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2631,7 +2629,7 @@ public function updateBankAccountRequest($id, $bankAccount, string $contentType // for model (json/xml) if (isset($bankAccount)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($bankAccount)); } else { $httpBody = $bankAccount; @@ -2644,7 +2642,7 @@ public function updateBankAccountRequest($id, $bankAccount, string $contentType foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2652,7 +2650,7 @@ public function updateBankAccountRequest($id, $bankAccount, string $contentType $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/CurrencyApi.php b/src/Api/CurrencyApi.php index b7d7d18..978ef15 100644 --- a/src/Api/CurrencyApi.php +++ b/src/Api/CurrencyApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * CurrencyApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -222,7 +220,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ConversationRate', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -249,7 +247,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -276,7 +274,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -303,7 +301,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -330,7 +328,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -357,7 +355,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -384,7 +382,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -413,7 +411,7 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -536,7 +534,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -639,7 +637,7 @@ public function getConversionRateRequest($from, $to, $date = null, string $conte foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -647,7 +645,7 @@ public function getConversionRateRequest($from, $to, $date = null, string $conte $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/DocumentApi.php b/src/Api/DocumentApi.php index fc02030..0d4ab7c 100644 --- a/src/Api/DocumentApi.php +++ b/src/Api/DocumentApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * DocumentApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -438,7 +436,7 @@ public function archiveDocumentRequest($id, string $contentType = self::contentT foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -446,7 +444,7 @@ public function archiveDocumentRequest($id, string $contentType = self::contentT $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -578,7 +576,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -605,7 +603,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -632,7 +630,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -659,7 +657,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -686,7 +684,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -713,7 +711,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -740,7 +738,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -767,7 +765,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -794,7 +792,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -823,7 +821,7 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -960,7 +958,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1030,7 +1028,7 @@ public function cancelDocumentRequest($id, $documentCancellation = null, string // for model (json/xml) if (isset($documentCancellation)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentCancellation)); } else { $httpBody = $documentCancellation; @@ -1043,7 +1041,7 @@ public function cancelDocumentRequest($id, $documentCancellation = null, string foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1051,7 +1049,7 @@ public function cancelDocumentRequest($id, $documentCancellation = null, string $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1181,7 +1179,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1208,7 +1206,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1235,7 +1233,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1262,7 +1260,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1289,7 +1287,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1316,7 +1314,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1343,7 +1341,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1370,7 +1368,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1399,7 +1397,7 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1526,7 +1524,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1586,7 +1584,7 @@ public function createDocumentRequest($documentInsert, string $contentType = sel // for model (json/xml) if (isset($documentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentInsert)); } else { $httpBody = $documentInsert; @@ -1599,7 +1597,7 @@ public function createDocumentRequest($documentInsert, string $contentType = sel foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1607,7 +1605,7 @@ public function createDocumentRequest($documentInsert, string $contentType = sel $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1739,7 +1737,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1766,7 +1764,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1793,7 +1791,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1820,7 +1818,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1847,7 +1845,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1874,7 +1872,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1901,7 +1899,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1928,7 +1926,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1955,7 +1953,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1984,7 +1982,7 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2121,7 +2119,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2197,7 +2195,7 @@ public function createDocumentFromDraftRequest($id, $documentInsert, string $con // for model (json/xml) if (isset($documentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($documentInsert)); } else { $httpBody = $documentInsert; @@ -2210,7 +2208,7 @@ public function createDocumentFromDraftRequest($id, $documentInsert, string $con foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2218,7 +2216,7 @@ public function createDocumentFromDraftRequest($id, $documentInsert, string $con $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2350,7 +2348,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2377,7 +2375,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2404,7 +2402,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -2431,7 +2429,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2458,7 +2456,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -2485,7 +2483,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -2512,7 +2510,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -2539,7 +2537,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2566,7 +2564,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -2595,7 +2593,7 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2732,7 +2730,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2802,7 +2800,7 @@ public function createDocumentFromProformaRequest($id, $invoiceSettings = null, // for model (json/xml) if (isset($invoiceSettings)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($invoiceSettings)); } else { $httpBody = $invoiceSettings; @@ -2815,7 +2813,7 @@ public function createDocumentFromProformaRequest($id, $invoiceSettings = null, foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2823,7 +2821,7 @@ public function createDocumentFromProformaRequest($id, $invoiceSettings = null, $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2955,7 +2953,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2982,7 +2980,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3009,7 +3007,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -3036,7 +3034,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3063,7 +3061,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -3090,7 +3088,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -3117,7 +3115,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -3144,7 +3142,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3171,7 +3169,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -3200,7 +3198,7 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -3337,7 +3335,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -3413,7 +3411,7 @@ public function createModificationDocumentRequest($id, $modificationDocumentInse // for model (json/xml) if (isset($modificationDocumentInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modificationDocumentInsert)); } else { $httpBody = $modificationDocumentInsert; @@ -3426,7 +3424,7 @@ public function createModificationDocumentRequest($id, $modificationDocumentInse foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -3434,7 +3432,7 @@ public function createModificationDocumentRequest($id, $modificationDocumentInse $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -3564,7 +3562,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3591,7 +3589,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3618,7 +3616,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -3645,7 +3643,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -3672,7 +3670,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -3699,7 +3697,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -3726,7 +3724,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -3753,7 +3751,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -3782,7 +3780,7 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -3909,7 +3907,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -3969,7 +3967,7 @@ public function createReceiptRequest($receiptInsert, string $contentType = self: // for model (json/xml) if (isset($receiptInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($receiptInsert)); } else { $httpBody = $receiptInsert; @@ -3982,7 +3980,7 @@ public function createReceiptRequest($receiptInsert, string $contentType = self: foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -3990,7 +3988,7 @@ public function createReceiptRequest($receiptInsert, string $contentType = self: $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -4122,7 +4120,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -4149,7 +4147,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -4176,7 +4174,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -4203,7 +4201,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -4230,7 +4228,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -4257,7 +4255,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -4284,7 +4282,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -4311,7 +4309,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -4338,7 +4336,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -4367,7 +4365,7 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -4504,7 +4502,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -4580,7 +4578,7 @@ public function createReceiptFromDraftRequest($id, $receiptInsert, string $conte // for model (json/xml) if (isset($receiptInsert)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($receiptInsert)); } else { $httpBody = $receiptInsert; @@ -4593,7 +4591,7 @@ public function createReceiptFromDraftRequest($id, $receiptInsert, string $conte foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -4601,7 +4599,7 @@ public function createReceiptFromDraftRequest($id, $receiptInsert, string $conte $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -4883,7 +4881,7 @@ public function deleteDocumentRequest($id, string $contentType = self::contentTy foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -4891,7 +4889,7 @@ public function deleteDocumentRequest($id, string $contentType = self::contentTy $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -5021,7 +5019,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\PaymentHistory[]', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5048,7 +5046,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5075,7 +5073,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -5102,7 +5100,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5129,7 +5127,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -5156,7 +5154,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -5183,7 +5181,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5210,7 +5208,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -5239,7 +5237,7 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -5366,7 +5364,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -5440,7 +5438,7 @@ public function deletePaymentRequest($id, string $contentType = self::contentTyp foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -5448,7 +5446,7 @@ public function deletePaymentRequest($id, string $contentType = self::contentTyp $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -5578,7 +5576,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5605,7 +5603,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5632,7 +5630,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -5659,7 +5657,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5686,7 +5684,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -5713,7 +5711,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -5740,7 +5738,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -5767,7 +5765,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -5794,7 +5792,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -5823,7 +5821,7 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -5958,7 +5956,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -6032,7 +6030,7 @@ public function documentCopyRequest($id, string $contentType = self::contentType foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -6040,7 +6038,7 @@ public function documentCopyRequest($id, string $contentType = self::contentType $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -6170,7 +6168,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\SplFileObject', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 202: if ('\Cone\Billingo\Model\ClientError' === '\SplFileObject') { @@ -6197,7 +6195,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientError', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6224,7 +6222,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6251,7 +6249,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -6278,7 +6276,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -6305,7 +6303,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -6332,7 +6330,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -6359,7 +6357,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6386,7 +6384,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -6415,7 +6413,7 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -6550,7 +6548,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -6624,7 +6622,7 @@ public function downloadDocumentRequest($id, string $contentType = self::content foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -6632,7 +6630,7 @@ public function downloadDocumentRequest($id, string $contentType = self::content $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -6762,7 +6760,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6789,7 +6787,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6816,7 +6814,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -6843,7 +6841,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -6870,7 +6868,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -6897,7 +6895,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -6924,7 +6922,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -6951,7 +6949,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -6980,7 +6978,7 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -7107,7 +7105,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -7181,7 +7179,7 @@ public function getDocumentRequest($id, string $contentType = self::contentTypes foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -7189,7 +7187,7 @@ public function getDocumentRequest($id, string $contentType = self::contentTypes $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -7319,7 +7317,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Document', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -7346,7 +7344,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -7373,7 +7371,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -7400,7 +7398,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -7427,7 +7425,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -7454,7 +7452,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -7481,7 +7479,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -7510,7 +7508,7 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -7629,7 +7627,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -7703,7 +7701,7 @@ public function getDocumentByVendorIdRequest($vendorId, string $contentType = se foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -7711,7 +7709,7 @@ public function getDocumentByVendorIdRequest($vendorId, string $contentType = se $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -7841,7 +7839,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\OnlineSzamlaStatus', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -7868,7 +7866,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -7895,7 +7893,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -7922,7 +7920,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -7949,7 +7947,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -7976,7 +7974,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -8003,7 +8001,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -8030,7 +8028,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -8059,7 +8057,7 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -8186,7 +8184,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -8260,7 +8258,7 @@ public function getOnlineSzamlaStatusRequest($id, string $contentType = self::co foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -8268,7 +8266,7 @@ public function getOnlineSzamlaStatusRequest($id, string $contentType = self::co $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -8398,7 +8396,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\PaymentHistory[]', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -8425,7 +8423,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -8452,7 +8450,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -8479,7 +8477,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -8506,7 +8504,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -8533,7 +8531,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -8560,7 +8558,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -8587,7 +8585,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -8616,7 +8614,7 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -8743,7 +8741,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -8817,7 +8815,7 @@ public function getPaymentRequest($id, string $contentType = self::contentTypes[ foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -8825,7 +8823,7 @@ public function getPaymentRequest($id, string $contentType = self::contentTypes[ $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -8955,7 +8953,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\DocumentPublicUrl', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -8982,7 +8980,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -9009,7 +9007,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -9036,7 +9034,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -9063,7 +9061,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -9090,7 +9088,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -9117,7 +9115,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -9144,7 +9142,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -9173,7 +9171,7 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -9300,7 +9298,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -9374,7 +9372,7 @@ public function getPublicUrlRequest($id, string $contentType = self::contentType foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -9382,7 +9380,7 @@ public function getPublicUrlRequest($id, string $contentType = self::contentType $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -9548,7 +9546,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\DocumentList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -9575,7 +9573,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -9602,7 +9600,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -9629,7 +9627,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -9656,7 +9654,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -9683,7 +9681,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -9710,7 +9708,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -9739,7 +9737,7 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -9894,7 +9892,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -9951,7 +9949,7 @@ public function listDocumentRequest($page = null, $perPage = 25, $blockId = null if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling DocumentApi.listDocument, must be bigger than or equal to 1.'); } - + @@ -10167,7 +10165,7 @@ public function listDocumentRequest($page = null, $perPage = 25, $blockId = null foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -10175,7 +10173,7 @@ public function listDocumentRequest($page = null, $perPage = 25, $blockId = null $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -10307,7 +10305,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\SplFileObject', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10334,7 +10332,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10361,7 +10359,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -10388,7 +10386,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -10415,7 +10413,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -10442,7 +10440,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -10469,7 +10467,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10496,7 +10494,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -10525,7 +10523,7 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -10654,7 +10652,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -10745,7 +10743,7 @@ public function posPrintRequest($id, $size, string $contentType = self::contentT foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -10753,7 +10751,7 @@ public function posPrintRequest($id, $size, string $contentType = self::contentT $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -10885,7 +10883,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SendDocument', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10912,7 +10910,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10939,7 +10937,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -10966,7 +10964,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -10993,7 +10991,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -11020,7 +11018,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -11047,7 +11045,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -11074,7 +11072,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -11101,7 +11099,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -11130,7 +11128,7 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -11267,7 +11265,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -11337,7 +11335,7 @@ public function sendDocumentRequest($id, $sendDocument = null, string $contentTy // for model (json/xml) if (isset($sendDocument)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($sendDocument)); } else { $httpBody = $sendDocument; @@ -11350,7 +11348,7 @@ public function sendDocumentRequest($id, $sendDocument = null, string $contentTy foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -11358,7 +11356,7 @@ public function sendDocumentRequest($id, $sendDocument = null, string $contentTy $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -11490,7 +11488,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\PaymentHistory[]', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -11517,7 +11515,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -11544,7 +11542,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -11571,7 +11569,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -11598,7 +11596,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -11625,7 +11623,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -11652,7 +11650,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -11679,7 +11677,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -11706,7 +11704,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -11735,7 +11733,7 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -11872,7 +11870,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -11948,7 +11946,7 @@ public function updatePaymentRequest($id, $paymentHistory, string $contentType = // for model (json/xml) if (isset($paymentHistory)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($paymentHistory)); } else { $httpBody = $paymentHistory; @@ -11961,7 +11959,7 @@ public function updatePaymentRequest($id, $paymentHistory, string $contentType = foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -11969,7 +11967,7 @@ public function updatePaymentRequest($id, $paymentHistory, string $contentType = $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/DocumentBlockApi.php b/src/Api/DocumentBlockApi.php index 353277f..90fd15f 100644 --- a/src/Api/DocumentBlockApi.php +++ b/src/Api/DocumentBlockApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * DocumentBlockApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -222,7 +220,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\DocumentBlockList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -249,7 +247,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -276,7 +274,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -303,7 +301,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -330,7 +328,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -357,7 +355,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -384,7 +382,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -413,7 +411,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -536,7 +534,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -577,7 +575,7 @@ public function listDocumentBlockRequest($page = null, $perPage = 25, $type = nu if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling DocumentBlockApi.listDocumentBlock, must be bigger than or equal to 1.'); } - + $resourcePath = '/document-blocks'; @@ -633,7 +631,7 @@ public function listDocumentBlockRequest($page = null, $perPage = 25, $type = nu foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -641,7 +639,7 @@ public function listDocumentBlockRequest($page = null, $perPage = 25, $type = nu $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/DocumentExportApi.php b/src/Api/DocumentExportApi.php index 3acaaef..1002271 100644 --- a/src/Api/DocumentExportApi.php +++ b/src/Api/DocumentExportApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * DocumentExportApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -224,7 +222,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\DocumentExportId', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -251,7 +249,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -278,7 +276,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -305,7 +303,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -332,7 +330,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -359,7 +357,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -386,7 +384,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -413,7 +411,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -442,7 +440,7 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -569,7 +567,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -629,7 +627,7 @@ public function createRequest($createDocumentExport, string $contentType = self: // for model (json/xml) if (isset($createDocumentExport)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($createDocumentExport)); } else { $httpBody = $createDocumentExport; @@ -642,7 +640,7 @@ public function createRequest($createDocumentExport, string $contentType = self: foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -650,7 +648,7 @@ public function createRequest($createDocumentExport, string $contentType = self: $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -780,7 +778,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\SplFileObject', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -807,7 +805,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -834,7 +832,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -861,7 +859,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -888,7 +886,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -915,7 +913,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -942,7 +940,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -969,7 +967,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -998,7 +996,7 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1125,7 +1123,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1199,7 +1197,7 @@ public function downloadRequest($id, string $contentType = self::contentTypes['d foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1207,7 +1205,7 @@ public function downloadRequest($id, string $contentType = self::contentTypes['d $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1337,7 +1335,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\DocumentExportStatus', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1364,7 +1362,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1391,7 +1389,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1418,7 +1416,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1445,7 +1443,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1472,7 +1470,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1499,7 +1497,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1526,7 +1524,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1555,7 +1553,7 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1682,7 +1680,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1756,7 +1754,7 @@ public function pollRequest($id, string $contentType = self::contentTypes['poll' foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1764,7 +1762,7 @@ public function pollRequest($id, string $contentType = self::contentTypes['poll' $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/OrganizationApi.php b/src/Api/OrganizationApi.php index a8d4a44..86f6f7f 100644 --- a/src/Api/OrganizationApi.php +++ b/src/Api/OrganizationApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * OrganizationApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -216,7 +214,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\OrganizationData', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -243,7 +241,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -270,7 +268,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -297,7 +295,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -324,7 +322,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -351,7 +349,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -378,7 +376,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -407,7 +405,7 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -524,7 +522,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -582,7 +580,7 @@ public function getOrganizationDataRequest(string $contentType = self::contentTy foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -590,7 +588,7 @@ public function getOrganizationDataRequest(string $contentType = self::contentTy $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/PartnerApi.php b/src/Api/PartnerApi.php index b4869f0..c4512de 100644 --- a/src/Api/PartnerApi.php +++ b/src/Api/PartnerApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * PartnerApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -230,7 +228,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Partner', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -257,7 +255,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -284,7 +282,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -311,7 +309,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -338,7 +336,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -365,7 +363,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -392,7 +390,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -419,7 +417,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -448,7 +446,7 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -575,7 +573,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -635,7 +633,7 @@ public function createPartnerRequest($partner, string $contentType = self::conte // for model (json/xml) if (isset($partner)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($partner)); } else { $httpBody = $partner; @@ -648,7 +646,7 @@ public function createPartnerRequest($partner, string $contentType = self::conte foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -656,7 +654,7 @@ public function createPartnerRequest($partner, string $contentType = self::conte $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -938,7 +936,7 @@ public function deletePartnerRequest($id, string $contentType = self::contentTyp foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -946,7 +944,7 @@ public function deletePartnerRequest($id, string $contentType = self::contentTyp $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1076,7 +1074,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Partner', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1103,7 +1101,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1130,7 +1128,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1157,7 +1155,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1184,7 +1182,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1211,7 +1209,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1238,7 +1236,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1265,7 +1263,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1294,7 +1292,7 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1421,7 +1419,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1495,7 +1493,7 @@ public function getPartnerRequest($id, string $contentType = self::contentTypes[ foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1503,7 +1501,7 @@ public function getPartnerRequest($id, string $contentType = self::contentTypes[ $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1637,7 +1635,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\PartnerList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1664,7 +1662,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1691,7 +1689,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1718,7 +1716,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1745,7 +1743,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1772,7 +1770,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1799,7 +1797,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1828,7 +1826,7 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1951,7 +1949,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1992,7 +1990,7 @@ public function listPartnerRequest($page = null, $perPage = 25, $query = null, s if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling PartnerApi.listPartner, must be bigger than or equal to 1.'); } - + $resourcePath = '/partners'; @@ -2048,7 +2046,7 @@ public function listPartnerRequest($page = null, $perPage = 25, $query = null, s foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2056,7 +2054,7 @@ public function listPartnerRequest($page = null, $perPage = 25, $query = null, s $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2188,7 +2186,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Partner', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2215,7 +2213,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2242,7 +2240,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -2269,7 +2267,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2296,7 +2294,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -2323,7 +2321,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -2350,7 +2348,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -2377,7 +2375,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2404,7 +2402,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -2433,7 +2431,7 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2570,7 +2568,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2646,7 +2644,7 @@ public function updatePartnerRequest($id, $partner, string $contentType = self:: // for model (json/xml) if (isset($partner)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($partner)); } else { $httpBody = $partner; @@ -2659,7 +2657,7 @@ public function updatePartnerRequest($id, $partner, string $contentType = self:: foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2667,7 +2665,7 @@ public function updatePartnerRequest($id, $partner, string $contentType = self:: $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/ProductApi.php b/src/Api/ProductApi.php index 0015dfa..9ce6f31 100644 --- a/src/Api/ProductApi.php +++ b/src/Api/ProductApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * ProductApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -230,7 +228,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Product', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -257,7 +255,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -284,7 +282,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -311,7 +309,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -338,7 +336,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -365,7 +363,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -392,7 +390,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -419,7 +417,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -448,7 +446,7 @@ public function createProductWithHttpInfo($product, string $contentType = self:: return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -575,7 +573,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -635,7 +633,7 @@ public function createProductRequest($product, string $contentType = self::conte // for model (json/xml) if (isset($product)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($product)); } else { $httpBody = $product; @@ -648,7 +646,7 @@ public function createProductRequest($product, string $contentType = self::conte foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -656,7 +654,7 @@ public function createProductRequest($product, string $contentType = self::conte $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -938,7 +936,7 @@ public function deleteProductRequest($id, string $contentType = self::contentTyp foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -946,7 +944,7 @@ public function deleteProductRequest($id, string $contentType = self::contentTyp $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1076,7 +1074,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Product', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1103,7 +1101,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1130,7 +1128,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1157,7 +1155,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1184,7 +1182,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1211,7 +1209,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1238,7 +1236,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1265,7 +1263,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1294,7 +1292,7 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1421,7 +1419,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1495,7 +1493,7 @@ public function getProductRequest($id, string $contentType = self::contentTypes[ foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1503,7 +1501,7 @@ public function getProductRequest($id, string $contentType = self::contentTypes[ $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1637,7 +1635,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ProductList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1664,7 +1662,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1691,7 +1689,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1718,7 +1716,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1745,7 +1743,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1772,7 +1770,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1799,7 +1797,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1828,7 +1826,7 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1951,7 +1949,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1992,7 +1990,7 @@ public function listProductRequest($page = null, $perPage = 25, $query = null, s if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling ProductApi.listProduct, must be bigger than or equal to 1.'); } - + $resourcePath = '/products'; @@ -2048,7 +2046,7 @@ public function listProductRequest($page = null, $perPage = 25, $query = null, s foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2056,7 +2054,7 @@ public function listProductRequest($page = null, $perPage = 25, $query = null, s $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2188,7 +2186,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Product', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2215,7 +2213,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2242,7 +2240,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -2269,7 +2267,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2296,7 +2294,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -2323,7 +2321,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -2350,7 +2348,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -2377,7 +2375,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2404,7 +2402,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -2433,7 +2431,7 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2570,7 +2568,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2646,7 +2644,7 @@ public function updateProductRequest($id, $product, string $contentType = self:: // for model (json/xml) if (isset($product)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($product)); } else { $httpBody = $product; @@ -2659,7 +2657,7 @@ public function updateProductRequest($id, $product, string $contentType = self:: foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2667,7 +2665,7 @@ public function updateProductRequest($id, $product, string $contentType = self:: $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/SpendingApi.php b/src/Api/SpendingApi.php index 4d90c08..eebfcfc 100644 --- a/src/Api/SpendingApi.php +++ b/src/Api/SpendingApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * SpendingApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -382,7 +380,7 @@ public function spendingDeleteRequest($id, string $contentType = self::contentTy foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -390,7 +388,7 @@ public function spendingDeleteRequest($id, string $contentType = self::contentTy $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -540,7 +538,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SpendingList', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -567,7 +565,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -594,7 +592,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -621,7 +619,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -648,7 +646,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -675,7 +673,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -702,7 +700,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -731,7 +729,7 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -870,7 +868,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -920,7 +918,7 @@ public function spendingListRequest($q = '', $page = 1, $perPage = 25, $spending if ($perPage !== null && $perPage < 1) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling SpendingApi.spendingList, must be bigger than or equal to 1.'); } - + @@ -1055,7 +1053,7 @@ public function spendingListRequest($q = '', $page = 1, $perPage = 25, $spending foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1063,7 +1061,7 @@ public function spendingListRequest($q = '', $page = 1, $perPage = 25, $spending $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1193,7 +1191,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Spending', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1220,7 +1218,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1247,7 +1245,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1274,7 +1272,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1301,7 +1299,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1328,7 +1326,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1355,7 +1353,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1382,7 +1380,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1411,7 +1409,7 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1538,7 +1536,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1592,7 +1590,7 @@ public function spendingSaveRequest($spendingSave = null, string $contentType = // for model (json/xml) if (isset($spendingSave)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($spendingSave)); } else { $httpBody = $spendingSave; @@ -1605,7 +1603,7 @@ public function spendingSaveRequest($spendingSave = null, string $contentType = foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1613,7 +1611,7 @@ public function spendingSaveRequest($spendingSave = null, string $contentType = $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1743,7 +1741,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Spending', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1770,7 +1768,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1797,7 +1795,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1824,7 +1822,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1851,7 +1849,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1878,7 +1876,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1905,7 +1903,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1932,7 +1930,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1961,7 +1959,7 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2088,7 +2086,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2162,7 +2160,7 @@ public function spendingShowRequest($id, string $contentType = self::contentType foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2170,7 +2168,7 @@ public function spendingShowRequest($id, string $contentType = self::contentType $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -2302,7 +2300,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Spending', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2329,7 +2327,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2356,7 +2354,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -2383,7 +2381,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 403: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2410,7 +2408,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -2437,7 +2435,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -2464,7 +2462,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -2491,7 +2489,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -2518,7 +2516,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -2547,7 +2545,7 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -2684,7 +2682,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -2754,7 +2752,7 @@ public function spendingUpdateRequest($id, $spendingSave = null, string $content // for model (json/xml) if (isset($spendingSave)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body + // if Content-Type contains "application/json", json_encode the body $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($spendingSave)); } else { $httpBody = $spendingSave; @@ -2767,7 +2765,7 @@ public function spendingUpdateRequest($id, $spendingSave = null, string $content foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -2775,7 +2773,7 @@ public function spendingUpdateRequest($id, $spendingSave = null, string $content $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/Api/UtilApi.php b/src/Api/UtilApi.php index 3d39c85..53d4b41 100644 --- a/src/Api/UtilApi.php +++ b/src/Api/UtilApi.php @@ -4,7 +4,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -44,7 +43,6 @@ * UtilApi Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -224,7 +222,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TaxNumber', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -251,7 +249,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -278,7 +276,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -305,7 +303,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -332,7 +330,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -359,7 +357,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -386,7 +384,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -415,7 +413,7 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -534,7 +532,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -575,7 +573,7 @@ public function checkTaxNumberRequest($taxNumber, string $contentType = self::co if (!preg_match("/^([0-9]{8})-([12345])-([0-9]{2})$/", $taxNumber)) { throw new \InvalidArgumentException("invalid value for \"taxNumber\" when calling UtilApi.checkTaxNumber, must conform to the pattern /^([0-9]{8})-([12345])-([0-9]{2})$/."); } - + $resourcePath = '/utils/check-tax-number/{tax_number}'; $formParams = []; @@ -611,7 +609,7 @@ public function checkTaxNumberRequest($taxNumber, string $contentType = self::co foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -619,7 +617,7 @@ public function checkTaxNumberRequest($taxNumber, string $contentType = self::co $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -749,7 +747,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\Id', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -776,7 +774,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -803,7 +801,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -830,7 +828,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -857,7 +855,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -884,7 +882,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -911,7 +909,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 404: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -938,7 +936,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -967,7 +965,7 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1094,7 +1092,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1168,7 +1166,7 @@ public function getIdRequest($id, string $contentType = self::contentTypes['getI foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1176,7 +1174,7 @@ public function getIdRequest($id, string $contentType = self::contentTypes['getI $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) @@ -1304,7 +1302,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerTime', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 400: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1331,7 +1329,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 401: if ('\Cone\Billingo\Model\ClientErrorResponse' === '\SplFileObject') { @@ -1358,7 +1356,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ClientErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 402: if ('\Cone\Billingo\Model\SubscriptionErrorResponse' === '\SplFileObject') { @@ -1385,7 +1383,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\SubscriptionErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 422: if ('\Cone\Billingo\Model\ValidationErrorResponse' === '\SplFileObject') { @@ -1412,7 +1410,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ValidationErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 429: if ('\Cone\Billingo\Model\TooManyRequestsResponse' === '\SplFileObject') { @@ -1439,7 +1437,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\TooManyRequestsResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; case 500: if ('\Cone\Billingo\Model\ServerErrorResponse' === '\SplFileObject') { @@ -1466,7 +1464,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, '\Cone\Billingo\Model\ServerErrorResponse', []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } @@ -1495,7 +1493,7 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; } catch (ApiException $e) { @@ -1612,7 +1610,7 @@ function ($response) use ($returnType) { return [ ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), - $response->getHeaders() + $response->getHeaders(), ]; }, function ($exception) { @@ -1670,7 +1668,7 @@ public function getServerTimeRequest(string $contentType = self::contentTypes['g foreach ($formParamValueItems as $formParamValueItem) { $multipartContents[] = [ 'name' => $formParamName, - 'contents' => $formParamValueItem + 'contents' => $formParamValueItem, ]; } } @@ -1678,7 +1676,7 @@ public function getServerTimeRequest(string $contentType = self::contentTypes['g $httpBody = new MultipartStream($multipartContents); } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the form parameters + // if Content-Type contains "application/json", json_encode the form parameters $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { // for HTTP post (form) diff --git a/src/ApiException.php b/src/ApiException.php index fdebed9..aecaaf0 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -4,9 +4,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -35,9 +33,7 @@ * ApiException Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class ApiException extends Exception @@ -66,12 +62,12 @@ class ApiException extends Exception /** * Constructor * - * @param string $message Error message - * @param int $code HTTP status code - * @param string[]|null $responseHeaders HTTP response header - * @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string + * @param string $message Error message + * @param int $code HTTP status code + * @param string[]|null $responseHeaders HTTP response header + * @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string */ - public function __construct($message = '', $code = 0, $responseHeaders = [], $responseBody = null) + public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null) { parent::__construct($message, $code); $this->responseHeaders = $responseHeaders; @@ -101,7 +97,8 @@ public function getResponseBody() /** * Sets the deserialized response object (during deserialization) * - * @param mixed $obj Deserialized response object + * @param mixed $obj Deserialized response object + * * @return void */ public function setResponseObject($obj) diff --git a/src/Configuration.php b/src/Configuration.php index 86a1c61..883061e 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -4,9 +4,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -34,15 +32,12 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Configuration { public const BOOLEAN_FORMAT_INT = 'int'; - public const BOOLEAN_FORMAT_STRING = 'string'; /** @@ -138,21 +133,22 @@ public function __construct() /** * Sets API key * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $key API key or token + * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * @param string $key API key or token + * * @return $this */ public function setApiKey($apiKeyIdentifier, $key) { $this->apiKeys[$apiKeyIdentifier] = $key; - return $this; } /** * Gets API key * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * * @return null|string API key or token */ public function getApiKey($apiKeyIdentifier) @@ -163,21 +159,22 @@ public function getApiKey($apiKeyIdentifier) /** * Sets the prefix for API key (e.g. Bearer) * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) - * @param string $prefix API key prefix, e.g. Bearer + * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * @param string $prefix API key prefix, e.g. Bearer + * * @return $this */ public function setApiKeyPrefix($apiKeyIdentifier, $prefix) { $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; - return $this; } /** * Gets API key prefix * - * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * @param string $apiKeyIdentifier API key identifier (authentication scheme) + * * @return null|string */ public function getApiKeyPrefix($apiKeyIdentifier) @@ -188,13 +185,13 @@ public function getApiKeyPrefix($apiKeyIdentifier) /** * Sets the access token for OAuth * - * @param string $accessToken Token for OAuth + * @param string $accessToken Token for OAuth + * * @return $this */ public function setAccessToken($accessToken) { $this->accessToken = $accessToken; - return $this; } @@ -211,7 +208,8 @@ public function getAccessToken() /** * Sets boolean format for query string. * - * @param string $booleanFormatForQueryString Boolean format for query string + * @param string $booleanFormat Boolean format for query string + * * @return $this */ public function setBooleanFormatForQueryString(string $booleanFormat) @@ -234,13 +232,13 @@ public function getBooleanFormatForQueryString(): string /** * Sets the username for HTTP basic authentication * - * @param string $username Username for HTTP basic authentication + * @param string $username Username for HTTP basic authentication + * * @return $this */ public function setUsername($username) { $this->username = $username; - return $this; } @@ -257,13 +255,13 @@ public function getUsername() /** * Sets the password for HTTP basic authentication * - * @param string $password Password for HTTP basic authentication + * @param string $password Password for HTTP basic authentication + * * @return $this */ public function setPassword($password) { $this->password = $password; - return $this; } @@ -280,13 +278,13 @@ public function getPassword() /** * Sets the host * - * @param string $host Host + * @param string $host Host + * * @return $this */ public function setHost($host) { $this->host = $host; - return $this; } @@ -303,19 +301,18 @@ public function getHost() /** * Sets the user agent of the api client * - * @param string $userAgent the user agent of the api client - * @return $this + * @param string $userAgent the user agent of the api client * * @throws \InvalidArgumentException + * @return $this */ public function setUserAgent($userAgent) { - if (! is_string($userAgent)) { + if (!is_string($userAgent)) { throw new \InvalidArgumentException('User-agent must be a string.'); } $this->userAgent = $userAgent; - return $this; } @@ -332,13 +329,13 @@ public function getUserAgent() /** * Sets debug flag * - * @param bool $debug Debug flag + * @param bool $debug Debug flag + * * @return $this */ public function setDebug($debug) { $this->debug = $debug; - return $this; } @@ -355,13 +352,13 @@ public function getDebug() /** * Sets the debug file * - * @param string $debugFile Debug file + * @param string $debugFile Debug file + * * @return $this */ public function setDebugFile($debugFile) { $this->debugFile = $debugFile; - return $this; } @@ -378,13 +375,13 @@ public function getDebugFile() /** * Sets the temp folder path * - * @param string $tempFolderPath Temp folder path + * @param string $tempFolderPath Temp folder path + * * @return $this */ public function setTempFolderPath($tempFolderPath) { $this->tempFolderPath = $tempFolderPath; - return $this; } @@ -415,7 +412,8 @@ public static function getDefaultConfiguration() /** * Sets the default configuration instance * - * @param Configuration $config An instance of the Configuration Object + * @param Configuration $config An instance of the Configuration Object + * * @return void */ public static function setDefaultConfiguration(Configuration $config) @@ -430,11 +428,11 @@ public static function setDefaultConfiguration(Configuration $config) */ public static function toDebugReport() { - $report = 'PHP SDK (Cone\Billingo) Debug Report:'.PHP_EOL; - $report .= ' OS: '.php_uname().PHP_EOL; - $report .= ' PHP Version: '.PHP_VERSION.PHP_EOL; - $report .= ' The version of the OpenAPI document: 3.0.14'.PHP_EOL; - $report .= ' Temp Folder Path: '.self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL; + $report = 'PHP SDK (Cone\Billingo) Debug Report:' . PHP_EOL; + $report .= ' OS: ' . php_uname() . PHP_EOL; + $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; + $report .= ' The version of the OpenAPI document: 3.0.14' . PHP_EOL; + $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; } @@ -442,7 +440,8 @@ public static function toDebugReport() /** * Get API key (with prefix if set) * - * @param string $apiKeyIdentifier name of apikey + * @param string $apiKeyIdentifier name of apikey + * * @return null|string API key with the prefix */ public function getApiKeyWithPrefix($apiKeyIdentifier) @@ -457,7 +456,7 @@ public function getApiKeyWithPrefix($apiKeyIdentifier) if ($prefix === null) { $keyWithPrefix = $apiKey; } else { - $keyWithPrefix = $prefix.' '.$apiKey; + $keyWithPrefix = $prefix . ' ' . $apiKey; } return $keyWithPrefix; @@ -472,8 +471,8 @@ public function getHostSettings() { return [ [ - 'url' => 'https://api.billingo.hu/v3', - 'description' => 'Billingo API', + "url" => "https://api.billingo.hu/v3", + "description" => "Billingo API", ], ]; } @@ -481,14 +480,14 @@ public function getHostSettings() /** * Returns URL based on host settings, index and variables * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) + * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients + * @param int $hostIndex index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) * @return string URL based on host settings */ - public static function getHostString(array $hostsSettings, $hostIndex, ?array $variables = null) + public static function getHostString(array $hostSettings, $hostIndex, array $variables = null) { - if ($variables === null) { + if (null === $variables) { $variables = []; } @@ -498,19 +497,19 @@ public static function getHostString(array $hostsSettings, $hostIndex, ?array $v } $host = $hostsSettings[$hostIndex]; - $url = $host['url']; + $url = $host["url"]; // go through variable and assign a value - foreach ($host['variables'] ?? [] as $name => $variable) { + foreach ($host["variables"] ?? [] as $name => $variable) { if (array_key_exists($name, $variables)) { // check to see if it's in the variables provided by the user - if (! isset($variable['enum_values']) || in_array($variables[$name], $variable['enum_values'], true)) { // check to see if the value is in the enum - $url = str_replace('{'.$name.'}', $variables[$name], $url); + if (!isset($variable['enum_values']) || in_array($variables[$name], $variable["enum_values"], true)) { // check to see if the value is in the enum + $url = str_replace("{".$name."}", $variables[$name], $url); } else { - throw new \InvalidArgumentException("The variable `$name` in the host URL has invalid value ".$variables[$name].'. Must be '.implode(',', $variable['enum_values']).'.'); + throw new \InvalidArgumentException("The variable `$name` in the host URL has invalid value ".$variables[$name].". Must be ".join(',', $variable["enum_values"])."."); } } else { // use default value - $url = str_replace('{'.$name.'}', $variable['default_value'], $url); + $url = str_replace("{".$name."}", $variable["default_value"], $url); } } @@ -520,8 +519,8 @@ public static function getHostString(array $hostsSettings, $hostIndex, ?array $v /** * Returns URL based on the index and variables * - * @param int $index index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) + * @param int $index index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) * @return string URL based on host settings */ public function getHostFromSettings($index, $variables = null) diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index baa4dc1..acf24ab 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -4,9 +4,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -33,15 +31,15 @@ * HeaderSelector Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class HeaderSelector { /** - * @param string[] $accept + * @param string[] $accept + * @param string $contentType + * @param bool $isMultipart * @return string[] */ public function selectHeaders(array $accept, string $contentType, bool $isMultipart): array @@ -53,8 +51,8 @@ public function selectHeaders(array $accept, string $contentType, bool $isMultip $headers['Accept'] = $accept; } - if (! $isMultipart) { - if ($contentType === '') { + if (!$isMultipart) { + if($contentType === '') { $contentType = 'application/json'; } @@ -67,7 +65,8 @@ public function selectHeaders(array $accept, string $contentType, bool $isMultip /** * Return the header 'Accept' based on an array of Accept provided. * - * @param string[] $accept Array of header + * @param string[] $accept Array of header + * * @return null|string Accept (e.g. application/json) */ private function selectAcceptHeader(array $accept): ?string @@ -98,8 +97,9 @@ private function selectAcceptHeader(array $accept): ?string /** * Create an Accept header string from the given "Accept" headers array, recalculating all weights * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" + * @param string[] $accept Array of Accept Headers + * @param string[] $headersWithJson Array of Accept Headers of type "json" + * * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") */ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string @@ -128,7 +128,7 @@ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headers $hasMoreThan28Headers = count($accept) > 28; - foreach ($processedHeaders as $headers) { + foreach($processedHeaders as $headers) { if (count($headers) > 0) { $acceptHeaders[] = $this->adjustWeight($headers, $currentWeight, $hasMoreThan28Headers); } @@ -142,7 +142,8 @@ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headers /** * Given an Accept header, returns an associative array splitting the header and its weight * - * @param string $header "Accept" Header + * @param string $header "Accept" Header + * * @return array with the header and its weight */ private function getHeaderAndWeight(string $header): array @@ -151,7 +152,7 @@ private function getHeaderAndWeight(string $header): array if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) { $headerData = [ 'header' => $outputArray[1], - 'weight' => (int) ($outputArray[2] * 1000), + 'weight' => (int)($outputArray[2] * 1000), ]; } else { $headerData = [ @@ -164,7 +165,9 @@ private function getHeaderAndWeight(string $header): array } /** - * @param array[] $headers + * @param array[] $headers + * @param float $currentWeight + * @param bool $hasMoreThan28Headers * @return string[] array of adjusted "Accept" headers */ private function adjustWeight(array $headers, float &$currentWeight, bool $hasMoreThan28Headers): array @@ -175,7 +178,7 @@ private function adjustWeight(array $headers, float &$currentWeight, bool $hasMo $acceptHeaders = []; foreach ($headers as $index => $header) { - if ($index > 0 && $headers[$index - 1]['weight'] > $header['weight']) { + if($index > 0 && $headers[$index - 1]['weight'] > $header['weight']) { $currentWeight = $this->getNextWeight($currentWeight, $hasMoreThan28Headers); } @@ -189,13 +192,18 @@ private function adjustWeight(array $headers, float &$currentWeight, bool $hasMo return $acceptHeaders; } + /** + * @param string $header + * @param int $weight + * @return string + */ private function buildAcceptHeader(string $header, int $weight): string { - if ($weight === 1000) { + if($weight === 1000) { return $header; } - return trim($header, '; ').';q='.rtrim(sprintf('%0.3f', $weight / 1000), '0'); + return trim($header, '; ') . ';q=' . rtrim(sprintf('%0.3f', $weight / 1000), '0'); } /** @@ -216,7 +224,9 @@ private function buildAcceptHeader(string $header, int $weight): string * if there is a maximum of 28 "Accept" headers. If we have more than that (which is extremely unlikely), then we fall back to a 1-by-1 * decrement rule, which will result in quality codes like "q=0.999", "q=0.998" etc. * - * @param int $currentWeight varying from 1 to 1000 (will be divided by 1000 to build the quality value) + * @param int $currentWeight varying from 1 to 1000 (will be divided by 1000 to build the quality value) + * @param bool $hasMoreThan28Headers + * @return int */ public function getNextWeight(int $currentWeight, bool $hasMoreThan28Headers): int { diff --git a/src/Model/Address.php b/src/Model/Address.php index 6607641..449ab34 100644 --- a/src/Model/Address.php +++ b/src/Model/Address.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Address Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Address implements \JsonSerializable, ArrayAccess, ModelInterface +class Address implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -71,9 +66,7 @@ class Address implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -124,6 +117,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -143,7 +138,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -152,6 +147,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -160,6 +158,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -244,6 +245,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -254,10 +256,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('countryCode', $data ?? [], null); $this->setIfExists('postCode', $data ?? [], null); @@ -270,7 +272,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -302,7 +306,6 @@ public function listInvalidProperties() if ($this->container['address'] === null) { $invalidProperties[] = "'address' can't be null"; } - return $invalidProperties; } @@ -317,6 +320,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets countryCode * @@ -330,7 +334,8 @@ public function getCountryCode() /** * Sets countryCode * - * @param \Cone\Billingo\Model\Country $countryCode countryCode + * @param \Cone\Billingo\Model\Country $countryCode countryCode + * * @return self */ public function setCountryCode($countryCode) @@ -356,7 +361,8 @@ public function getPostCode() /** * Sets postCode * - * @param string $postCode postCode + * @param string $postCode postCode + * * @return self */ public function setPostCode($postCode) @@ -382,7 +388,8 @@ public function getCity() /** * Sets city * - * @param string $city city + * @param string $city city + * * @return self */ public function setCity($city) @@ -408,7 +415,8 @@ public function getAddress() /** * Sets address * - * @param string $address address + * @param string $address address + * * @return self */ public function setAddress($address) @@ -420,11 +428,12 @@ public function setAddress($address) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -434,7 +443,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -446,8 +456,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -461,7 +473,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -470,7 +484,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/BankAccount.php b/src/Model/BankAccount.php index 9e1b759..bee13b9 100644 --- a/src/Model/BankAccount.php +++ b/src/Model/BankAccount.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * BankAccount Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,17 +44,17 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'BankAccount'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'name' => 'string', @@ -64,16 +62,16 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable 'accountNumberIban' => 'string', 'swift' => 'string', 'currency' => '\Cone\Billingo\Model\Currency', - 'needQr' => 'bool' + 'needQr' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => null, 'name' => null, @@ -81,14 +79,14 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable 'accountNumberIban' => null, 'swift' => null, 'currency' => null, - 'needQr' => null + 'needQr' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false, @@ -96,14 +94,14 @@ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable 'accountNumberIban' => false, 'swift' => false, 'currency' => false, - 'needQr' => false + 'needQr' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -139,7 +137,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -149,7 +147,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool 'accountNumberIban' => 'account_number_iban', 'swift' => 'swift', 'currency' => 'currency', - 'needQr' => 'need_qr' + 'needQr' => 'need_qr', ]; /** @@ -206,7 +204,7 @@ public function isNullableSetToNull(string $property): bool 'accountNumberIban' => 'setAccountNumberIban', 'swift' => 'setSwift', 'currency' => 'setCurrency', - 'needQr' => 'setNeedQr' + 'needQr' => 'setNeedQr', ]; /** @@ -221,7 +219,7 @@ public function isNullableSetToNull(string $property): bool 'accountNumberIban' => 'getAccountNumberIban', 'swift' => 'getSwift', 'currency' => 'getCurrency', - 'needQr' => 'getNeedQr' + 'needQr' => 'getNeedQr', ]; /** @@ -291,14 +289,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -534,9 +532,9 @@ public function setNeedQr($needQr) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -546,7 +544,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -576,7 +574,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -595,7 +593,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -621,5 +619,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/BankAccountList.php b/src/Model/BankAccountList.php index 549596a..0052b55 100644 --- a/src/Model/BankAccountList.php +++ b/src/Model/BankAccountList.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,16 +35,12 @@ * BankAccountList Class Doc Comment * * @category Class - * * @description A object with a data property that contains an array of up to limit bank accounts. Each entry in the array is a separate bank account object. If no more bank accounts are available, the resulting array will be empty. - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class BankAccountList implements \JsonSerializable, ArrayAccess, ModelInterface +class BankAccountList implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -76,9 +70,7 @@ class BankAccountList implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -135,6 +127,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -154,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -163,6 +157,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -171,6 +168,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -264,6 +264,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -274,10 +275,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('data', $data ?? [], null); $this->setIfExists('total', $data ?? [], null); @@ -293,7 +294,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -327,6 +330,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets data * @@ -340,7 +344,8 @@ public function getData() /** * Sets data * - * @param \Cone\Billingo\Model\BankAccount[]|null $data data + * @param \Cone\Billingo\Model\BankAccount[]|null $data data + * * @return self */ public function setData($data) @@ -366,7 +371,8 @@ public function getTotal() /** * Sets total * - * @param int|null $total total + * @param int|null $total total + * * @return self */ public function setTotal($total) @@ -392,7 +398,8 @@ public function getPerPage() /** * Sets perPage * - * @param int|null $perPage perPage + * @param int|null $perPage perPage + * * @return self */ public function setPerPage($perPage) @@ -418,7 +425,8 @@ public function getCurrentPage() /** * Sets currentPage * - * @param int|null $currentPage currentPage + * @param int|null $currentPage currentPage + * * @return self */ public function setCurrentPage($currentPage) @@ -444,7 +452,8 @@ public function getLastPage() /** * Sets lastPage * - * @param int|null $lastPage lastPage + * @param int|null $lastPage lastPage + * * @return self */ public function setLastPage($lastPage) @@ -470,7 +479,8 @@ public function getPrevPageUrl() /** * Sets prevPageUrl * - * @param string|null $prevPageUrl prevPageUrl + * @param string|null $prevPageUrl prevPageUrl + * * @return self */ public function setPrevPageUrl($prevPageUrl) @@ -496,7 +506,8 @@ public function getNextPageUrl() /** * Sets nextPageUrl * - * @param string|null $nextPageUrl nextPageUrl + * @param string|null $nextPageUrl nextPageUrl + * * @return self */ public function setNextPageUrl($nextPageUrl) @@ -508,11 +519,12 @@ public function setNextPageUrl($nextPageUrl) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -522,7 +534,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -534,8 +547,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -549,7 +564,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -558,7 +575,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/Category.php b/src/Model/Category.php index 3221bf3..d5ac7a5 100644 --- a/src/Model/Category.php +++ b/src/Model/Category.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * Category Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Category @@ -60,7 +58,6 @@ class Category /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/CheckTaxNumberMessage.php b/src/Model/CheckTaxNumberMessage.php index 3e211bd..219b517 100644 --- a/src/Model/CheckTaxNumberMessage.php +++ b/src/Model/CheckTaxNumberMessage.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * CheckTaxNumberMessage Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -64,9 +63,7 @@ public static function getAllowableEnumValues() self::INVALID_TAX_NUMBER, self::NO_ONLINE_SZAMLA_SETTINGS, self::NON_EXIST_TAX_NUMBER, - self::VALIDATION_OK + self::VALIDATION_OK, ]; } } - - diff --git a/src/Model/ClientError.php b/src/Model/ClientError.php index 6bb7fca..703469f 100644 --- a/src/Model/ClientError.php +++ b/src/Model/ClientError.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * ClientError Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ClientError implements \JsonSerializable, ArrayAccess, ModelInterface +class ClientError implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -68,9 +63,7 @@ class ClientError implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -115,6 +108,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -134,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -143,6 +138,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -151,6 +149,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -226,6 +227,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -236,10 +238,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('message', $data ?? [], null); } @@ -249,7 +251,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -283,6 +287,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets message * @@ -296,7 +301,8 @@ public function getMessage() /** * Sets message * - * @param string|null $message message + * @param string|null $message message + * * @return self */ public function setMessage($message) @@ -308,11 +314,12 @@ public function setMessage($message) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -322,7 +329,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -334,8 +342,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -349,7 +359,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -358,7 +370,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ClientErrorResponse.php b/src/Model/ClientErrorResponse.php index f335eae..6751464 100644 --- a/src/Model/ClientErrorResponse.php +++ b/src/Model/ClientErrorResponse.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * ClientErrorResponse Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ClientErrorResponse implements \JsonSerializable, ArrayAccess, ModelInterface +class ClientErrorResponse implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -68,9 +63,7 @@ class ClientErrorResponse implements \JsonSerializable, ArrayAccess, ModelInterf * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -115,6 +108,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -134,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -143,6 +138,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -151,6 +149,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -226,6 +227,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -236,10 +238,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('error', $data ?? [], null); } @@ -249,7 +251,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -283,6 +287,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets error * @@ -296,7 +301,8 @@ public function getError() /** * Sets error * - * @param \Cone\Billingo\Model\ClientError|null $error error + * @param \Cone\Billingo\Model\ClientError|null $error error + * * @return self */ public function setError($error) @@ -308,11 +314,12 @@ public function setError($error) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -322,7 +329,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -334,8 +342,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -349,7 +359,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -358,7 +370,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ConversationRate.php b/src/Model/ConversationRate.php index 5c1e764..a7aca7b 100644 --- a/src/Model/ConversationRate.php +++ b/src/Model/ConversationRate.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ConversationRate Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,55 +44,55 @@ class ConversationRate implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ConversationRate'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'fromCurrency' => '\Cone\Billingo\Model\Currency', 'toCurrency' => '\Cone\Billingo\Model\Currency', 'conversationRate' => 'float', - 'date' => '\DateTime' + 'date' => '\DateTime', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'fromCurrency' => null, 'toCurrency' => null, 'conversationRate' => 'float', - 'date' => 'date' + 'date' => 'date', ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'fromCurrency' => false, 'toCurrency' => false, 'conversationRate' => false, - 'date' => false + 'date' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -130,7 +128,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -140,7 +138,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -179,7 +177,7 @@ public function isNullableSetToNull(string $property): bool 'fromCurrency' => 'from_currency', 'toCurrency' => 'to_currency', 'conversationRate' => 'conversation_rate', - 'date' => 'date' + 'date' => 'date', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool 'fromCurrency' => 'setFromCurrency', 'toCurrency' => 'setToCurrency', 'conversationRate' => 'setConversationRate', - 'date' => 'setDate' + 'date' => 'setDate', ]; /** @@ -203,7 +201,7 @@ public function isNullableSetToNull(string $property): bool 'fromCurrency' => 'getFromCurrency', 'toCurrency' => 'getToCurrency', 'conversationRate' => 'getConversationRate', - 'date' => 'getDate' + 'date' => 'getDate', ]; /** @@ -270,14 +268,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -421,9 +419,9 @@ public function setDate($date) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -433,7 +431,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -463,7 +461,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -482,7 +480,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -508,5 +506,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/CorrectionType.php b/src/Model/CorrectionType.php index 3538008..45665b7 100644 --- a/src/Model/CorrectionType.php +++ b/src/Model/CorrectionType.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * CorrectionType Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class CorrectionType @@ -84,7 +82,6 @@ class CorrectionType /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/Country.php b/src/Model/Country.php index 9b85ab4..c0e79a6 100644 --- a/src/Model/Country.php +++ b/src/Model/Country.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * Country Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Country @@ -558,7 +556,6 @@ class Country /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/CreateDocumentExport.php b/src/Model/CreateDocumentExport.php index 19cffe7..089ea91 100644 --- a/src/Model/CreateDocumentExport.php +++ b/src/Model/CreateDocumentExport.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * CreateDocumentExport Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class CreateDocumentExport implements \JsonSerializable, ArrayAccess, ModelInterface +class CreateDocumentExport implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -80,9 +75,7 @@ class CreateDocumentExport implements \JsonSerializable, ArrayAccess, ModelInter * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -151,6 +144,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -170,7 +165,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -179,6 +174,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -187,6 +185,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -298,6 +299,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -308,10 +310,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('queryType', $data ?? [], null); $this->setIfExists('startDate', $data ?? [], null); @@ -333,7 +335,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -365,7 +369,6 @@ public function listInvalidProperties() if ($this->container['exportType'] === null) { $invalidProperties[] = "'exportType' can't be null"; } - return $invalidProperties; } @@ -380,6 +383,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets queryType * @@ -393,7 +397,8 @@ public function getQueryType() /** * Sets queryType * - * @param \Cone\Billingo\Model\DocumentExportQueryType $queryType queryType + * @param \Cone\Billingo\Model\DocumentExportQueryType $queryType queryType + * * @return self */ public function setQueryType($queryType) @@ -419,7 +424,8 @@ public function getStartDate() /** * Sets startDate * - * @param \DateTime $startDate startDate + * @param \DateTime $startDate startDate + * * @return self */ public function setStartDate($startDate) @@ -445,7 +451,8 @@ public function getEndDate() /** * Sets endDate * - * @param \DateTime $endDate endDate + * @param \DateTime $endDate endDate + * * @return self */ public function setEndDate($endDate) @@ -471,7 +478,8 @@ public function getDocumentBlockId() /** * Sets documentBlockId * - * @param int|null $documentBlockId documentBlockId + * @param int|null $documentBlockId documentBlockId + * * @return self */ public function setDocumentBlockId($documentBlockId) @@ -497,7 +505,8 @@ public function getExportType() /** * Sets exportType * - * @param \Cone\Billingo\Model\DocumentExportType $exportType exportType + * @param \Cone\Billingo\Model\DocumentExportType $exportType exportType + * * @return self */ public function setExportType($exportType) @@ -523,7 +532,8 @@ public function getNumberStartYear() /** * Sets numberStartYear * - * @param int|null $numberStartYear numberStartYear + * @param int|null $numberStartYear numberStartYear + * * @return self */ public function setNumberStartYear($numberStartYear) @@ -549,7 +559,8 @@ public function getNumberStartSequence() /** * Sets numberStartSequence * - * @param int|null $numberStartSequence numberStartSequence + * @param int|null $numberStartSequence numberStartSequence + * * @return self */ public function setNumberStartSequence($numberStartSequence) @@ -575,7 +586,8 @@ public function getNumberEndYear() /** * Sets numberEndYear * - * @param int|null $numberEndYear numberEndYear + * @param int|null $numberEndYear numberEndYear + * * @return self */ public function setNumberEndYear($numberEndYear) @@ -601,7 +613,8 @@ public function getNumberEndSequence() /** * Sets numberEndSequence * - * @param int|null $numberEndSequence numberEndSequence + * @param int|null $numberEndSequence numberEndSequence + * * @return self */ public function setNumberEndSequence($numberEndSequence) @@ -627,7 +640,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -653,7 +667,8 @@ public function getSortBy() /** * Sets sortBy * - * @param \Cone\Billingo\Model\DocumentExportSortBy|null $sortBy sortBy + * @param \Cone\Billingo\Model\DocumentExportSortBy|null $sortBy sortBy + * * @return self */ public function setSortBy($sortBy) @@ -679,7 +694,8 @@ public function getOtherOptions() /** * Sets otherOptions * - * @param \Cone\Billingo\Model\DocumentExportOtherOptions|null $otherOptions otherOptions + * @param \Cone\Billingo\Model\DocumentExportOtherOptions|null $otherOptions otherOptions + * * @return self */ public function setOtherOptions($otherOptions) @@ -705,7 +721,8 @@ public function getFilterExtra() /** * Sets filterExtra * - * @param \Cone\Billingo\Model\DocumentExportFilterExtra|null $filterExtra filterExtra + * @param \Cone\Billingo\Model\DocumentExportFilterExtra|null $filterExtra filterExtra + * * @return self */ public function setFilterExtra($filterExtra) @@ -717,11 +734,12 @@ public function setFilterExtra($filterExtra) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -731,7 +749,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -743,8 +762,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -758,7 +779,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -767,7 +790,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/Currency.php b/src/Model/Currency.php index d5135dc..b9f0e36 100644 --- a/src/Model/Currency.php +++ b/src/Model/Currency.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * Currency Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -157,9 +156,7 @@ public static function getAllowableEnumValues() self::_TRY, self::UAH, self::USD, - self::ZAR + self::ZAR, ]; } } - - diff --git a/src/Model/DateType.php b/src/Model/DateType.php index 4123dfa..6efd46a 100644 --- a/src/Model/DateType.php +++ b/src/Model/DateType.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DateType Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DateType @@ -52,7 +50,6 @@ class DateType /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/Discount.php b/src/Model/Discount.php index 580cab7..fd5d4e3 100644 --- a/src/Model/Discount.php +++ b/src/Model/Discount.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Discount Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Discount implements \JsonSerializable, ArrayAccess, ModelInterface +class Discount implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -69,9 +64,7 @@ class Discount implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -118,6 +111,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -137,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -146,6 +141,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -154,6 +152,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -232,6 +233,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -242,10 +244,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('type', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); @@ -256,7 +258,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -290,6 +294,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets type * @@ -303,7 +308,8 @@ public function getType() /** * Sets type * - * @param \Cone\Billingo\Model\DiscountType|null $type type + * @param \Cone\Billingo\Model\DiscountType|null $type type + * * @return self */ public function setType($type) @@ -329,7 +335,8 @@ public function getValue() /** * Sets value * - * @param int|null $value value + * @param int|null $value value + * * @return self */ public function setValue($value) @@ -341,11 +348,12 @@ public function setValue($value) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -355,7 +363,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -367,8 +376,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -382,7 +393,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -391,7 +404,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DiscountType.php b/src/Model/DiscountType.php index a60cd68..254c106 100644 --- a/src/Model/DiscountType.php +++ b/src/Model/DiscountType.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DiscountType Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DiscountType @@ -48,7 +46,6 @@ class DiscountType /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/Document.php b/src/Model/Document.php index 1699f03..18d13ea 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,16 +35,12 @@ * Document Class Doc Comment * * @category Class - * * @description Document object representing your invoice. NOTE: partner property is deprecated. Please use document_partner instead. - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Document implements \JsonSerializable, ArrayAccess, ModelInterface +class Document implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -98,9 +92,7 @@ class Document implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -201,6 +193,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -220,7 +214,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -229,6 +223,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -237,6 +234,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -396,6 +396,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -406,10 +407,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('invoiceNumber', $data ?? [], null); @@ -447,7 +448,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -481,6 +484,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -494,7 +498,8 @@ public function getId() /** * Sets id * - * @param int|null $id The document's unique identifier. + * @param int|null $id The document's unique identifier. + * * @return self */ public function setId($id) @@ -520,7 +525,8 @@ public function getInvoiceNumber() /** * Sets invoiceNumber * - * @param string|null $invoiceNumber The document's invoice number. + * @param string|null $invoiceNumber The document's invoice number. + * * @return self */ public function setInvoiceNumber($invoiceNumber) @@ -546,7 +552,8 @@ public function getType() /** * Sets type * - * @param \Cone\Billingo\Model\DocumentType|null $type type + * @param \Cone\Billingo\Model\DocumentType|null $type type + * * @return self */ public function setType($type) @@ -572,7 +579,8 @@ public function getCancelled() /** * Sets cancelled * - * @param bool|null $cancelled cancelled + * @param bool|null $cancelled cancelled + * * @return self */ public function setCancelled($cancelled) @@ -598,7 +606,8 @@ public function getBlockId() /** * Sets blockId * - * @param int|null $blockId DocumentBlock's identifier. + * @param int|null $blockId DocumentBlock's identifier. + * * @return self */ public function setBlockId($blockId) @@ -624,7 +633,8 @@ public function getPaymentStatus() /** * Sets paymentStatus * - * @param \Cone\Billingo\Model\PaymentStatus|null $paymentStatus paymentStatus + * @param \Cone\Billingo\Model\PaymentStatus|null $paymentStatus paymentStatus + * * @return self */ public function setPaymentStatus($paymentStatus) @@ -650,7 +660,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -676,7 +687,8 @@ public function getGrossTotal() /** * Sets grossTotal * - * @param float|null $grossTotal The document's gross total price. + * @param float|null $grossTotal The document's gross total price. + * * @return self */ public function setGrossTotal($grossTotal) @@ -702,7 +714,8 @@ public function getCurrency() /** * Sets currency * - * @param \Cone\Billingo\Model\Currency|null $currency currency + * @param \Cone\Billingo\Model\Currency|null $currency currency + * * @return self */ public function setCurrency($currency) @@ -728,7 +741,8 @@ public function getConversionRate() /** * Sets conversionRate * - * @param float|null $conversionRate conversionRate + * @param float|null $conversionRate conversionRate + * * @return self */ public function setConversionRate($conversionRate) @@ -754,7 +768,8 @@ public function getInvoiceDate() /** * Sets invoiceDate * - * @param \DateTime|null $invoiceDate invoiceDate + * @param \DateTime|null $invoiceDate invoiceDate + * * @return self */ public function setInvoiceDate($invoiceDate) @@ -780,7 +795,8 @@ public function getFulfillmentDate() /** * Sets fulfillmentDate * - * @param \DateTime|null $fulfillmentDate fulfillmentDate + * @param \DateTime|null $fulfillmentDate fulfillmentDate + * * @return self */ public function setFulfillmentDate($fulfillmentDate) @@ -806,7 +822,8 @@ public function getDueDate() /** * Sets dueDate * - * @param \DateTime|null $dueDate dueDate + * @param \DateTime|null $dueDate dueDate + * * @return self */ public function setDueDate($dueDate) @@ -832,7 +849,8 @@ public function getPaidDate() /** * Sets paidDate * - * @param \DateTime|null $paidDate paidDate + * @param \DateTime|null $paidDate paidDate + * * @return self */ public function setPaidDate($paidDate) @@ -858,7 +876,8 @@ public function getOrganization() /** * Sets organization * - * @param \Cone\Billingo\Model\DocumentOrganization|null $organization organization + * @param \Cone\Billingo\Model\DocumentOrganization|null $organization organization + * * @return self */ public function setOrganization($organization) @@ -884,7 +903,8 @@ public function getPartner() /** * Sets partner * - * @param \Cone\Billingo\Model\Partner|null $partner partner + * @param \Cone\Billingo\Model\Partner|null $partner partner + * * @return self */ public function setPartner($partner) @@ -910,7 +930,8 @@ public function getDocumentPartner() /** * Sets documentPartner * - * @param \Cone\Billingo\Model\DocumentPartner|null $documentPartner documentPartner + * @param \Cone\Billingo\Model\DocumentPartner|null $documentPartner documentPartner + * * @return self */ public function setDocumentPartner($documentPartner) @@ -936,7 +957,8 @@ public function getElectronic() /** * Sets electronic * - * @param bool|null $electronic electronic + * @param bool|null $electronic electronic + * * @return self */ public function setElectronic($electronic) @@ -962,7 +984,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -988,7 +1011,8 @@ public function getTags() /** * Sets tags * - * @param string[]|null $tags tags + * @param string[]|null $tags tags + * * @return self */ public function setTags($tags) @@ -1014,7 +1038,8 @@ public function getNotificationStatus() /** * Sets notificationStatus * - * @param \Cone\Billingo\Model\DocumentNotificationStatus|null $notificationStatus notificationStatus + * @param \Cone\Billingo\Model\DocumentNotificationStatus|null $notificationStatus notificationStatus + * * @return self */ public function setNotificationStatus($notificationStatus) @@ -1040,7 +1065,8 @@ public function getLanguage() /** * Sets language * - * @param \Cone\Billingo\Model\DocumentLanguage|null $language language + * @param \Cone\Billingo\Model\DocumentLanguage|null $language language + * * @return self */ public function setLanguage($language) @@ -1066,7 +1092,8 @@ public function getItems() /** * Sets items * - * @param \Cone\Billingo\Model\DocumentItem[]|null $items items + * @param \Cone\Billingo\Model\DocumentItem[]|null $items items + * * @return self */ public function setItems($items) @@ -1092,7 +1119,8 @@ public function getSummary() /** * Sets summary * - * @param \Cone\Billingo\Model\DocumentSummary|null $summary summary + * @param \Cone\Billingo\Model\DocumentSummary|null $summary summary + * * @return self */ public function setSummary($summary) @@ -1118,7 +1146,8 @@ public function getSettings() /** * Sets settings * - * @param \Cone\Billingo\Model\DocumentSettings|null $settings settings + * @param \Cone\Billingo\Model\DocumentSettings|null $settings settings + * * @return self */ public function setSettings($settings) @@ -1144,7 +1173,8 @@ public function getOnlineSzamlaStatus() /** * Sets onlineSzamlaStatus * - * @param \Cone\Billingo\Model\OnlineSzamlaStatusEnum|null $onlineSzamlaStatus onlineSzamlaStatus + * @param \Cone\Billingo\Model\OnlineSzamlaStatusEnum|null $onlineSzamlaStatus onlineSzamlaStatus + * * @return self */ public function setOnlineSzamlaStatus($onlineSzamlaStatus) @@ -1170,7 +1200,8 @@ public function getRelatedDocuments() /** * Sets relatedDocuments * - * @param \Cone\Billingo\Model\DocumentAncestor[]|null $relatedDocuments relatedDocuments + * @param \Cone\Billingo\Model\DocumentAncestor[]|null $relatedDocuments relatedDocuments + * * @return self */ public function setRelatedDocuments($relatedDocuments) @@ -1196,7 +1227,8 @@ public function getDiscount() /** * Sets discount * - * @param \Cone\Billingo\Model\Discount|null $discount discount + * @param \Cone\Billingo\Model\Discount|null $discount discount + * * @return self */ public function setDiscount($discount) @@ -1222,7 +1254,8 @@ public function getCorrectionType() /** * Sets correctionType * - * @param \Cone\Billingo\Model\CorrectionType|null $correctionType correctionType + * @param \Cone\Billingo\Model\CorrectionType|null $correctionType correctionType + * * @return self */ public function setCorrectionType($correctionType) @@ -1234,11 +1267,12 @@ public function setCorrectionType($correctionType) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -1248,7 +1282,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -1260,8 +1295,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -1275,7 +1312,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -1284,7 +1323,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentAncestor.php b/src/Model/DocumentAncestor.php index 51bde1d..3f73a82 100644 --- a/src/Model/DocumentAncestor.php +++ b/src/Model/DocumentAncestor.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,16 +35,12 @@ * DocumentAncestor Class Doc Comment * * @category Class - * * @description An object representing related documents to another document. - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentAncestor implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentAncestor implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -71,9 +65,7 @@ class DocumentAncestor implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -120,6 +112,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -139,7 +133,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -148,6 +142,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -156,6 +153,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -234,6 +234,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -244,10 +245,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('invoiceNumber', $data ?? [], null); @@ -258,7 +259,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -292,6 +295,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -305,7 +309,8 @@ public function getId() /** * Sets id * - * @param int|null $id Unique identifier of the related document. + * @param int|null $id Unique identifier of the related document. + * * @return self */ public function setId($id) @@ -331,7 +336,8 @@ public function getInvoiceNumber() /** * Sets invoiceNumber * - * @param string|null $invoiceNumber Invoice number of the related document. + * @param string|null $invoiceNumber Invoice number of the related document. + * * @return self */ public function setInvoiceNumber($invoiceNumber) @@ -343,11 +349,12 @@ public function setInvoiceNumber($invoiceNumber) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -357,7 +364,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -369,8 +377,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -384,7 +394,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -393,7 +405,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentBankAccount.php b/src/Model/DocumentBankAccount.php index 5382593..c5e33da 100644 --- a/src/Model/DocumentBankAccount.php +++ b/src/Model/DocumentBankAccount.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentBankAccount Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentBankAccount implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentBankAccount implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -72,9 +67,7 @@ class DocumentBankAccount implements \JsonSerializable, ArrayAccess, ModelInterf * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -127,6 +120,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -146,7 +141,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -155,6 +150,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -163,6 +161,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -250,6 +251,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -260,10 +262,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -277,7 +279,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -303,7 +307,6 @@ public function listInvalidProperties() if ($this->container['accountNumber'] === null) { $invalidProperties[] = "'accountNumber' can't be null"; } - return $invalidProperties; } @@ -318,6 +321,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -331,7 +335,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -340,7 +345,7 @@ public function setId($id) array_push($this->openAPINullablesSetToNull, 'id'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('id', $nullablesSetToNull); + $index = array_search('id', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); @@ -364,7 +369,8 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name name + * * @return self */ public function setName($name) @@ -390,7 +396,8 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string $accountNumber accountNumber + * @param string $accountNumber accountNumber + * * @return self */ public function setAccountNumber($accountNumber) @@ -416,7 +423,8 @@ public function getAccountNumberIban() /** * Sets accountNumberIban * - * @param string|null $accountNumberIban accountNumberIban + * @param string|null $accountNumberIban accountNumberIban + * * @return self */ public function setAccountNumberIban($accountNumberIban) @@ -442,7 +450,8 @@ public function getSwift() /** * Sets swift * - * @param string|null $swift swift + * @param string|null $swift swift + * * @return self */ public function setSwift($swift) @@ -454,11 +463,12 @@ public function setSwift($swift) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -468,7 +478,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -480,8 +491,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -495,7 +508,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -504,7 +519,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentBlock.php b/src/Model/DocumentBlock.php index 7cabdcf..f771cdb 100644 --- a/src/Model/DocumentBlock.php +++ b/src/Model/DocumentBlock.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentBlock Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentBlock implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentBlock implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -73,9 +68,7 @@ class DocumentBlock implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -130,6 +123,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -149,7 +144,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -158,6 +153,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -166,6 +164,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -256,6 +257,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -266,10 +268,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -284,7 +286,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -318,6 +322,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -331,7 +336,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -357,7 +363,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -383,7 +390,8 @@ public function getPrefix() /** * Sets prefix * - * @param string|null $prefix prefix + * @param string|null $prefix prefix + * * @return self */ public function setPrefix($prefix) @@ -409,7 +417,8 @@ public function getCustomField1() /** * Sets customField1 * - * @param string|null $customField1 customField1 + * @param string|null $customField1 customField1 + * * @return self */ public function setCustomField1($customField1) @@ -435,7 +444,8 @@ public function getCustomField2() /** * Sets customField2 * - * @param string|null $customField2 customField2 + * @param string|null $customField2 customField2 + * * @return self */ public function setCustomField2($customField2) @@ -461,7 +471,8 @@ public function getType() /** * Sets type * - * @param \Cone\Billingo\Model\DocumentBlockType|null $type type + * @param \Cone\Billingo\Model\DocumentBlockType|null $type type + * * @return self */ public function setType($type) @@ -473,11 +484,12 @@ public function setType($type) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -487,7 +499,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -499,8 +512,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -514,7 +529,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -523,7 +540,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentBlockList.php b/src/Model/DocumentBlockList.php index 4829065..9c748eb 100644 --- a/src/Model/DocumentBlockList.php +++ b/src/Model/DocumentBlockList.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,15 +28,14 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentBlockList Class Doc Comment * * @category Class * @description A object with a data property that contains an array of up to limit document blocks. Each entry in the array is a separate document block object. If no more document block are available, the resulting array will be empty. - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -47,17 +45,17 @@ class DocumentBlockList implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentBlockList'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'data' => '\Cone\Billingo\Model\DocumentBlock[]', 'total' => 'int', @@ -65,16 +63,16 @@ class DocumentBlockList implements ModelInterface, ArrayAccess, \JsonSerializabl 'currentPage' => 'int', 'lastPage' => 'int', 'prevPageUrl' => 'string', - 'nextPageUrl' => 'string' + 'nextPageUrl' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'data' => null, 'total' => null, @@ -82,14 +80,14 @@ class DocumentBlockList implements ModelInterface, ArrayAccess, \JsonSerializabl 'currentPage' => null, 'lastPage' => null, 'prevPageUrl' => null, - 'nextPageUrl' => null + 'nextPageUrl' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'data' => false, 'total' => false, @@ -97,14 +95,14 @@ class DocumentBlockList implements ModelInterface, ArrayAccess, \JsonSerializabl 'currentPage' => false, 'lastPage' => false, 'prevPageUrl' => false, - 'nextPageUrl' => false + 'nextPageUrl' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -140,7 +138,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -150,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -192,7 +190,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'current_page', 'lastPage' => 'last_page', 'prevPageUrl' => 'prev_page_url', - 'nextPageUrl' => 'next_page_url' + 'nextPageUrl' => 'next_page_url', ]; /** @@ -207,7 +205,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'setCurrentPage', 'lastPage' => 'setLastPage', 'prevPageUrl' => 'setPrevPageUrl', - 'nextPageUrl' => 'setNextPageUrl' + 'nextPageUrl' => 'setNextPageUrl', ]; /** @@ -222,7 +220,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'getCurrentPage', 'lastPage' => 'getLastPage', 'prevPageUrl' => 'getPrevPageUrl', - 'nextPageUrl' => 'getNextPageUrl' + 'nextPageUrl' => 'getNextPageUrl', ]; /** @@ -292,14 +290,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -524,9 +522,9 @@ public function setNextPageUrl($nextPageUrl) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -536,7 +534,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -566,7 +564,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -585,7 +583,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -611,5 +609,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentBlockType.php b/src/Model/DocumentBlockType.php index d4fe294..b9c24d8 100644 --- a/src/Model/DocumentBlockType.php +++ b/src/Model/DocumentBlockType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentBlockType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -70,9 +69,7 @@ public static function getAllowableEnumValues() self::OFFER, self::ORDER_FORM, self::RECEIPT, - self::WAYBILL + self::WAYBILL, ]; } } - - diff --git a/src/Model/DocumentCancellation.php b/src/Model/DocumentCancellation.php index 09729bf..7bd81b6 100644 --- a/src/Model/DocumentCancellation.php +++ b/src/Model/DocumentCancellation.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentCancellation Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentCancellation implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentCancellation implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -69,9 +64,7 @@ class DocumentCancellation implements \JsonSerializable, ArrayAccess, ModelInter * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -118,6 +111,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -137,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -146,6 +141,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -154,6 +152,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -232,6 +233,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -242,10 +244,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('cancellationReason', $data ?? [], null); $this->setIfExists('cancellationRecipients', $data ?? [], null); @@ -256,7 +258,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -290,6 +294,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets cancellationReason * @@ -303,7 +308,8 @@ public function getCancellationReason() /** * Sets cancellationReason * - * @param string|null $cancellationReason cancellationReason + * @param string|null $cancellationReason cancellationReason + * * @return self */ public function setCancellationReason($cancellationReason) @@ -329,7 +335,8 @@ public function getCancellationRecipients() /** * Sets cancellationRecipients * - * @param string|null $cancellationRecipients cancellationRecipients + * @param string|null $cancellationRecipients cancellationRecipients + * * @return self */ public function setCancellationRecipients($cancellationRecipients) @@ -341,11 +348,12 @@ public function setCancellationRecipients($cancellationRecipients) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -355,7 +363,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -367,8 +376,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -382,7 +393,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -391,7 +404,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentExportFilterExtra.php b/src/Model/DocumentExportFilterExtra.php index d935806..a1da761 100644 --- a/src/Model/DocumentExportFilterExtra.php +++ b/src/Model/DocumentExportFilterExtra.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentExportFilterExtra Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,17 +44,17 @@ class DocumentExportFilterExtra implements ModelInterface, ArrayAccess, \JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentExportFilterExtra'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'tensoftVkod' => 'string', 'ledgerNumber' => '\Cone\Billingo\Model\LedgerNumberInformation', @@ -66,16 +64,16 @@ class DocumentExportFilterExtra implements ModelInterface, ArrayAccess, \JsonSer 'rlbKata' => 'bool', 'rlbNote' => 'string', 'novitaxNaplokod' => 'string', - 'useGrossValues' => 'bool' + 'useGrossValues' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'tensoftVkod' => null, 'ledgerNumber' => null, @@ -85,14 +83,14 @@ class DocumentExportFilterExtra implements ModelInterface, ArrayAccess, \JsonSer 'rlbKata' => null, 'rlbNote' => null, 'novitaxNaplokod' => null, - 'useGrossValues' => null + 'useGrossValues' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'tensoftVkod' => false, 'ledgerNumber' => false, @@ -102,14 +100,14 @@ class DocumentExportFilterExtra implements ModelInterface, ArrayAccess, \JsonSer 'rlbKata' => false, 'rlbNote' => false, 'novitaxNaplokod' => false, - 'useGrossValues' => false + 'useGrossValues' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -145,7 +143,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -155,7 +153,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -199,7 +197,7 @@ public function isNullableSetToNull(string $property): bool 'rlbKata' => 'rlb_kata', 'rlbNote' => 'rlb_note', 'novitaxNaplokod' => 'novitax_naplokod', - 'useGrossValues' => 'use_gross_values' + 'useGrossValues' => 'use_gross_values', ]; /** @@ -216,7 +214,7 @@ public function isNullableSetToNull(string $property): bool 'rlbKata' => 'setRlbKata', 'rlbNote' => 'setRlbNote', 'novitaxNaplokod' => 'setNovitaxNaplokod', - 'useGrossValues' => 'setUseGrossValues' + 'useGrossValues' => 'setUseGrossValues', ]; /** @@ -233,7 +231,7 @@ public function isNullableSetToNull(string $property): bool 'rlbKata' => 'getRlbKata', 'rlbNote' => 'getRlbNote', 'novitaxNaplokod' => 'getNovitaxNaplokod', - 'useGrossValues' => 'getUseGrossValues' + 'useGrossValues' => 'getUseGrossValues', ]; /** @@ -305,14 +303,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -591,9 +589,9 @@ public function setUseGrossValues($useGrossValues) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -603,7 +601,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -633,7 +631,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -652,7 +650,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -678,5 +676,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentExportId.php b/src/Model/DocumentExportId.php index cf9a3cf..cb5683a 100644 --- a/src/Model/DocumentExportId.php +++ b/src/Model/DocumentExportId.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentExportId Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class DocumentExportId implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentExportId'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'id' => 'string' + 'id' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'id' => null + 'id' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'id' => false + 'id' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'id' => 'id' + 'id' => 'id', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'id' => 'setId' + 'id' => 'setId', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'id' => 'getId' + 'id' => 'getId', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -319,9 +317,9 @@ public function setId($id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -331,7 +329,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -361,7 +359,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -380,7 +378,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -406,5 +404,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentExportOtherOptions.php b/src/Model/DocumentExportOtherOptions.php index 99e9b0a..6faad41 100644 --- a/src/Model/DocumentExportOtherOptions.php +++ b/src/Model/DocumentExportOtherOptions.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentExportOtherOptions Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -58,9 +57,7 @@ public static function getAllowableEnumValues() return [ self::ALL, self::EXPIRED, - self::OUTSTANDING + self::OUTSTANDING, ]; } } - - diff --git a/src/Model/DocumentExportQueryType.php b/src/Model/DocumentExportQueryType.php index 61d7be7..2f5392b 100644 --- a/src/Model/DocumentExportQueryType.php +++ b/src/Model/DocumentExportQueryType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentExportQueryType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -55,9 +54,7 @@ public static function getAllowableEnumValues() { return [ self::FULFILLMENT_DATE, - self::INVOICE_DATE + self::INVOICE_DATE, ]; } } - - diff --git a/src/Model/DocumentExportSortBy.php b/src/Model/DocumentExportSortBy.php index 79100d6..ae38e0f 100644 --- a/src/Model/DocumentExportSortBy.php +++ b/src/Model/DocumentExportSortBy.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentExportSortBy Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -58,9 +57,7 @@ public static function getAllowableEnumValues() return [ self::FULFILLMENT_DATE, self::INVOICE_DATE, - self::INVOICE_RAW_NUMBER + self::INVOICE_RAW_NUMBER, ]; } } - - diff --git a/src/Model/DocumentExportStatus.php b/src/Model/DocumentExportStatus.php index b1ced9b..86e58d4 100644 --- a/src/Model/DocumentExportStatus.php +++ b/src/Model/DocumentExportStatus.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentExportStatus Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,52 +44,52 @@ class DocumentExportStatus implements ModelInterface, ArrayAccess, \JsonSerializ public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentExportStatus'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'string', 'state' => '\Cone\Billingo\Model\DocumentExportStatusState', - 'message' => 'string' + 'message' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => null, 'state' => null, - 'message' => null + 'message' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'id' => false, 'state' => false, - 'message' => false + 'message' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -127,7 +125,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -137,7 +135,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -175,7 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'id' => 'id', 'state' => 'state', - 'message' => 'message' + 'message' => 'message', ]; /** @@ -186,7 +184,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'id' => 'setId', 'state' => 'setState', - 'message' => 'setMessage' + 'message' => 'setMessage', ]; /** @@ -197,7 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'id' => 'getId', 'state' => 'getState', - 'message' => 'getMessage' + 'message' => 'getMessage', ]; /** @@ -263,14 +261,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -387,9 +385,9 @@ public function setMessage($message) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -399,7 +397,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -429,7 +427,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -448,7 +446,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -474,5 +472,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentExportStatusState.php b/src/Model/DocumentExportStatusState.php index dc7fc23..89ff38d 100644 --- a/src/Model/DocumentExportStatusState.php +++ b/src/Model/DocumentExportStatusState.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentExportStatusState Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -64,9 +63,7 @@ public static function getAllowableEnumValues() self::PENDING, self::PROCESSING, self::SUCCESS, - self::WARNING + self::WARNING, ]; } } - - diff --git a/src/Model/DocumentExportType.php b/src/Model/DocumentExportType.php index 6a28996..4b25e90 100644 --- a/src/Model/DocumentExportType.php +++ b/src/Model/DocumentExportType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentExportType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -124,9 +123,7 @@ public static function getAllowableEnumValues() self::SIMPLE_EXCEL, self::SIMPLE_EXCEL_ITEMS, self::TENSOFT, - self::TENSOFT_29_DOT_65 + self::TENSOFT_29_DOT_65, ]; } } - - diff --git a/src/Model/DocumentForm.php b/src/Model/DocumentForm.php index 8f3fd1c..ebd7376 100644 --- a/src/Model/DocumentForm.php +++ b/src/Model/DocumentForm.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DocumentForm Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DocumentForm @@ -50,7 +48,6 @@ class DocumentForm /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/DocumentFormat.php b/src/Model/DocumentFormat.php index c4f70cf..b727164 100644 --- a/src/Model/DocumentFormat.php +++ b/src/Model/DocumentFormat.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DocumentFormat Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DocumentFormat @@ -52,7 +50,6 @@ class DocumentFormat /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/DocumentInsert.php b/src/Model/DocumentInsert.php index f0f7ca4..1bd405f 100644 --- a/src/Model/DocumentInsert.php +++ b/src/Model/DocumentInsert.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentInsert Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,17 +44,17 @@ class DocumentInsert implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentInsert'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'vendorId' => 'string', 'partnerId' => 'int', @@ -76,16 +74,16 @@ class DocumentInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'settings' => '\Cone\Billingo\Model\DocumentSettings', 'advanceInvoice' => 'int[]', 'discount' => '\Cone\Billingo\Model\Discount', - 'instantPayment' => 'bool' + 'instantPayment' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'vendorId' => null, 'partnerId' => null, @@ -105,14 +103,14 @@ class DocumentInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'settings' => null, 'advanceInvoice' => null, 'discount' => null, - 'instantPayment' => null + 'instantPayment' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'vendorId' => false, 'partnerId' => false, @@ -132,14 +130,14 @@ class DocumentInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'settings' => false, 'advanceInvoice' => false, 'discount' => false, - 'instantPayment' => false + 'instantPayment' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -175,7 +173,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -185,7 +183,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -239,7 +237,7 @@ public function isNullableSetToNull(string $property): bool 'settings' => 'settings', 'advanceInvoice' => 'advance_invoice', 'discount' => 'discount', - 'instantPayment' => 'instant_payment' + 'instantPayment' => 'instant_payment', ]; /** @@ -266,7 +264,7 @@ public function isNullableSetToNull(string $property): bool 'settings' => 'setSettings', 'advanceInvoice' => 'setAdvanceInvoice', 'discount' => 'setDiscount', - 'instantPayment' => 'setInstantPayment' + 'instantPayment' => 'setInstantPayment', ]; /** @@ -293,7 +291,7 @@ public function isNullableSetToNull(string $property): bool 'settings' => 'getSettings', 'advanceInvoice' => 'getAdvanceInvoice', 'discount' => 'getDiscount', - 'instantPayment' => 'getInstantPayment' + 'instantPayment' => 'getInstantPayment', ]; /** @@ -375,14 +373,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -955,9 +953,9 @@ public function setInstantPayment($instantPayment) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -967,7 +965,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -997,7 +995,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -1016,7 +1014,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -1042,5 +1040,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentInsertItemsInner.php b/src/Model/DocumentInsertItemsInner.php index f17f562..50f6721 100644 --- a/src/Model/DocumentInsertItemsInner.php +++ b/src/Model/DocumentInsertItemsInner.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentInsertItemsInner Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentInsertItemsInner implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentInsertItemsInner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -76,9 +71,7 @@ class DocumentInsertItemsInner implements \JsonSerializable, ArrayAccess, ModelI * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -139,6 +132,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -158,7 +153,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,6 +162,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -175,6 +173,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -274,6 +275,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -284,10 +286,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('productId', $data ?? [], null); $this->setIfExists('quantity', $data ?? [], null); @@ -305,7 +307,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -346,7 +350,6 @@ public function listInvalidProperties() if ($this->container['vat'] === null) { $invalidProperties[] = "'vat' can't be null"; } - return $invalidProperties; } @@ -361,6 +364,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets productId * @@ -374,7 +378,8 @@ public function getProductId() /** * Sets productId * - * @param int $productId productId + * @param int $productId productId + * * @return self */ public function setProductId($productId) @@ -400,7 +405,8 @@ public function getQuantity() /** * Sets quantity * - * @param float $quantity quantity + * @param float $quantity quantity + * * @return self */ public function setQuantity($quantity) @@ -426,7 +432,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -452,7 +459,8 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name name + * * @return self */ public function setName($name) @@ -478,7 +486,8 @@ public function getUnitPrice() /** * Sets unitPrice * - * @param float $unitPrice unitPrice + * @param float $unitPrice unitPrice + * * @return self */ public function setUnitPrice($unitPrice) @@ -504,7 +513,8 @@ public function getUnitPriceType() /** * Sets unitPriceType * - * @param \Cone\Billingo\Model\UnitPriceType $unitPriceType unitPriceType + * @param \Cone\Billingo\Model\UnitPriceType $unitPriceType unitPriceType + * * @return self */ public function setUnitPriceType($unitPriceType) @@ -530,7 +540,8 @@ public function getUnit() /** * Sets unit * - * @param string $unit unit + * @param string $unit unit + * * @return self */ public function setUnit($unit) @@ -556,7 +567,8 @@ public function getVat() /** * Sets vat * - * @param \Cone\Billingo\Model\Vat $vat vat + * @param \Cone\Billingo\Model\Vat $vat vat + * * @return self */ public function setVat($vat) @@ -582,7 +594,8 @@ public function getEntitlement() /** * Sets entitlement * - * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * * @return self */ public function setEntitlement($entitlement) @@ -594,11 +607,12 @@ public function setEntitlement($entitlement) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -608,7 +622,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -620,8 +635,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -635,7 +652,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -644,7 +663,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentInsertType.php b/src/Model/DocumentInsertType.php index 75a9551..e17ef23 100644 --- a/src/Model/DocumentInsertType.php +++ b/src/Model/DocumentInsertType.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DocumentInsertType Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DocumentInsertType @@ -54,7 +52,6 @@ class DocumentInsertType /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/DocumentItem.php b/src/Model/DocumentItem.php index 94d8af2..a5c0f48 100644 --- a/src/Model/DocumentItem.php +++ b/src/Model/DocumentItem.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentItem Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentItem implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentItem implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -78,9 +73,7 @@ class DocumentItem implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -145,6 +138,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -164,7 +159,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -173,6 +168,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -181,6 +179,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -286,6 +287,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -296,10 +298,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('productId', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -319,7 +321,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -353,6 +357,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets productId * @@ -366,7 +371,8 @@ public function getProductId() /** * Sets productId * - * @param int|null $productId productId + * @param int|null $productId productId + * * @return self */ public function setProductId($productId) @@ -375,7 +381,7 @@ public function setProductId($productId) array_push($this->openAPINullablesSetToNull, 'productId'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('productId', $nullablesSetToNull); + $index = array_search('productId', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); @@ -399,7 +405,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -425,7 +432,8 @@ public function getNetUnitAmount() /** * Sets netUnitAmount * - * @param float|null $netUnitAmount netUnitAmount + * @param float|null $netUnitAmount netUnitAmount + * * @return self */ public function setNetUnitAmount($netUnitAmount) @@ -451,7 +459,8 @@ public function getQuantity() /** * Sets quantity * - * @param float|null $quantity quantity + * @param float|null $quantity quantity + * * @return self */ public function setQuantity($quantity) @@ -477,7 +486,8 @@ public function getUnit() /** * Sets unit * - * @param string|null $unit unit + * @param string|null $unit unit + * * @return self */ public function setUnit($unit) @@ -503,7 +513,8 @@ public function getNetAmount() /** * Sets netAmount * - * @param float|null $netAmount netAmount + * @param float|null $netAmount netAmount + * * @return self */ public function setNetAmount($netAmount) @@ -529,7 +540,8 @@ public function getGrossAmount() /** * Sets grossAmount * - * @param float|null $grossAmount grossAmount + * @param float|null $grossAmount grossAmount + * * @return self */ public function setGrossAmount($grossAmount) @@ -555,7 +567,8 @@ public function getVat() /** * Sets vat * - * @param \Cone\Billingo\Model\Vat|null $vat vat + * @param \Cone\Billingo\Model\Vat|null $vat vat + * * @return self */ public function setVat($vat) @@ -581,7 +594,8 @@ public function getVatAmount() /** * Sets vatAmount * - * @param float|null $vatAmount vatAmount + * @param float|null $vatAmount vatAmount + * * @return self */ public function setVatAmount($vatAmount) @@ -607,7 +621,8 @@ public function getEntitlement() /** * Sets entitlement * - * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * * @return self */ public function setEntitlement($entitlement) @@ -633,7 +648,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -645,11 +661,12 @@ public function setComment($comment) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -659,7 +676,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -671,8 +689,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -686,7 +706,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -695,7 +717,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentItemData.php b/src/Model/DocumentItemData.php index 8985a2c..c5d8a64 100644 --- a/src/Model/DocumentItemData.php +++ b/src/Model/DocumentItemData.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentItemData Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentItemData implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentItemData implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -70,9 +65,7 @@ class DocumentItemData implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -121,6 +114,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -140,7 +135,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -149,6 +144,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -157,6 +155,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -238,6 +239,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -248,10 +250,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('productId', $data ?? [], null); $this->setIfExists('quantity', $data ?? [], null); @@ -263,7 +265,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -289,7 +293,6 @@ public function listInvalidProperties() if ($this->container['quantity'] === null) { $invalidProperties[] = "'quantity' can't be null"; } - return $invalidProperties; } @@ -304,6 +307,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets productId * @@ -317,7 +321,8 @@ public function getProductId() /** * Sets productId * - * @param int $productId productId + * @param int $productId productId + * * @return self */ public function setProductId($productId) @@ -343,7 +348,8 @@ public function getQuantity() /** * Sets quantity * - * @param float $quantity quantity + * @param float $quantity quantity + * * @return self */ public function setQuantity($quantity) @@ -369,7 +375,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -381,11 +388,12 @@ public function setComment($comment) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -395,7 +403,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -407,8 +416,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -422,7 +433,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -431,7 +444,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentLanguage.php b/src/Model/DocumentLanguage.php index dcb450f..4f27839 100644 --- a/src/Model/DocumentLanguage.php +++ b/src/Model/DocumentLanguage.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentLanguage Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -76,9 +75,7 @@ public static function getAllowableEnumValues() self::IT, self::RO, self::SK, - self::US + self::US, ]; } } - - diff --git a/src/Model/DocumentList.php b/src/Model/DocumentList.php index 997a42f..ced1a4a 100644 --- a/src/Model/DocumentList.php +++ b/src/Model/DocumentList.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,15 +28,14 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentList Class Doc Comment * * @category Class * @description A object with a data property that contains an array of up to limit documents. Each entry in the array is a separate document object. If no more documents are available, the resulting array will be empty. - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -47,17 +45,17 @@ class DocumentList implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentList'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'data' => '\Cone\Billingo\Model\Document[]', 'total' => 'int', @@ -65,16 +63,16 @@ class DocumentList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => 'int', 'lastPage' => 'int', 'prevPageUrl' => 'string', - 'nextPageUrl' => 'string' + 'nextPageUrl' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'data' => null, 'total' => null, @@ -82,14 +80,14 @@ class DocumentList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => null, 'lastPage' => null, 'prevPageUrl' => null, - 'nextPageUrl' => null + 'nextPageUrl' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'data' => false, 'total' => false, @@ -97,14 +95,14 @@ class DocumentList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => false, 'lastPage' => false, 'prevPageUrl' => false, - 'nextPageUrl' => false + 'nextPageUrl' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -140,7 +138,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -150,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -192,7 +190,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'current_page', 'lastPage' => 'last_page', 'prevPageUrl' => 'prev_page_url', - 'nextPageUrl' => 'next_page_url' + 'nextPageUrl' => 'next_page_url', ]; /** @@ -207,7 +205,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'setCurrentPage', 'lastPage' => 'setLastPage', 'prevPageUrl' => 'setPrevPageUrl', - 'nextPageUrl' => 'setNextPageUrl' + 'nextPageUrl' => 'setNextPageUrl', ]; /** @@ -222,7 +220,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'getCurrentPage', 'lastPage' => 'getLastPage', 'prevPageUrl' => 'getPrevPageUrl', - 'nextPageUrl' => 'getNextPageUrl' + 'nextPageUrl' => 'getNextPageUrl', ]; /** @@ -292,14 +290,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -524,9 +522,9 @@ public function setNextPageUrl($nextPageUrl) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -536,7 +534,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -566,7 +564,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -585,7 +583,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -611,5 +609,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentNotificationStatus.php b/src/Model/DocumentNotificationStatus.php index 81acdb7..ee54b4b 100644 --- a/src/Model/DocumentNotificationStatus.php +++ b/src/Model/DocumentNotificationStatus.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * DocumentNotificationStatus Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class DocumentNotificationStatus @@ -58,7 +56,6 @@ class DocumentNotificationStatus /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/DocumentOrganization.php b/src/Model/DocumentOrganization.php index 88473b5..c2ca273 100644 --- a/src/Model/DocumentOrganization.php +++ b/src/Model/DocumentOrganization.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentOrganization Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentOrganization implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentOrganization implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -75,9 +70,7 @@ class DocumentOrganization implements \JsonSerializable, ArrayAccess, ModelInter * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -136,6 +129,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -155,7 +150,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -164,6 +159,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -172,6 +170,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -268,6 +269,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -278,10 +280,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('name', $data ?? [], null); $this->setIfExists('taxNumber', $data ?? [], null); @@ -298,7 +300,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -332,6 +336,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets name * @@ -345,7 +350,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -371,7 +377,8 @@ public function getTaxNumber() /** * Sets taxNumber * - * @param string|null $taxNumber taxNumber + * @param string|null $taxNumber taxNumber + * * @return self */ public function setTaxNumber($taxNumber) @@ -397,7 +404,8 @@ public function getBankAccount() /** * Sets bankAccount * - * @param \Cone\Billingo\Model\DocumentBankAccount|null $bankAccount bankAccount + * @param \Cone\Billingo\Model\DocumentBankAccount|null $bankAccount bankAccount + * * @return self */ public function setBankAccount($bankAccount) @@ -423,7 +431,8 @@ public function getAddress() /** * Sets address * - * @param \Cone\Billingo\Model\Address|null $address address + * @param \Cone\Billingo\Model\Address|null $address address + * * @return self */ public function setAddress($address) @@ -449,7 +458,8 @@ public function getSmallTaxpayer() /** * Sets smallTaxpayer * - * @param bool|null $smallTaxpayer smallTaxpayer + * @param bool|null $smallTaxpayer smallTaxpayer + * * @return self */ public function setSmallTaxpayer($smallTaxpayer) @@ -475,7 +485,8 @@ public function getEvNumber() /** * Sets evNumber * - * @param string|null $evNumber evNumber + * @param string|null $evNumber evNumber + * * @return self */ public function setEvNumber($evNumber) @@ -501,7 +512,8 @@ public function getEuTaxNumber() /** * Sets euTaxNumber * - * @param string|null $euTaxNumber euTaxNumber + * @param string|null $euTaxNumber euTaxNumber + * * @return self */ public function setEuTaxNumber($euTaxNumber) @@ -527,7 +539,8 @@ public function getCashSettled() /** * Sets cashSettled * - * @param bool|null $cashSettled cashSettled + * @param bool|null $cashSettled cashSettled + * * @return self */ public function setCashSettled($cashSettled) @@ -539,11 +552,12 @@ public function setCashSettled($cashSettled) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -553,7 +567,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -565,8 +580,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -580,7 +597,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -589,7 +608,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentPartner.php b/src/Model/DocumentPartner.php index 3fea62f..504f646 100644 --- a/src/Model/DocumentPartner.php +++ b/src/Model/DocumentPartner.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentPartner Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentPartner implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentPartner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -77,9 +72,7 @@ class DocumentPartner implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -142,6 +135,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -161,7 +156,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -170,6 +165,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -178,6 +176,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -280,6 +281,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -290,10 +292,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -312,7 +314,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -346,6 +350,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -359,7 +364,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -385,7 +391,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -411,7 +418,8 @@ public function getAddress() /** * Sets address * - * @param \Cone\Billingo\Model\Address|null $address address + * @param \Cone\Billingo\Model\Address|null $address address + * * @return self */ public function setAddress($address) @@ -437,7 +445,8 @@ public function getEmails() /** * Sets emails * - * @param string[]|null $emails emails + * @param string[]|null $emails emails + * * @return self */ public function setEmails($emails) @@ -463,7 +472,8 @@ public function getTaxcode() /** * Sets taxcode * - * @param string|null $taxcode taxcode + * @param string|null $taxcode taxcode + * * @return self */ public function setTaxcode($taxcode) @@ -489,7 +499,8 @@ public function getIban() /** * Sets iban * - * @param string|null $iban iban + * @param string|null $iban iban + * * @return self */ public function setIban($iban) @@ -515,7 +526,8 @@ public function getSwift() /** * Sets swift * - * @param string|null $swift swift + * @param string|null $swift swift + * * @return self */ public function setSwift($swift) @@ -541,7 +553,8 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string|null $accountNumber accountNumber + * @param string|null $accountNumber accountNumber + * * @return self */ public function setAccountNumber($accountNumber) @@ -567,7 +580,8 @@ public function getPhone() /** * Sets phone * - * @param string|null $phone phone + * @param string|null $phone phone + * * @return self */ public function setPhone($phone) @@ -593,7 +607,8 @@ public function getTaxType() /** * Sets taxType * - * @param \Cone\Billingo\Model\PartnerTaxType|null $taxType taxType + * @param \Cone\Billingo\Model\PartnerTaxType|null $taxType taxType + * * @return self */ public function setTaxType($taxType) @@ -605,11 +620,12 @@ public function setTaxType($taxType) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -619,7 +635,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -631,8 +648,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -646,7 +665,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -655,7 +676,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentProductData.php b/src/Model/DocumentProductData.php index 6772e4d..f046877 100644 --- a/src/Model/DocumentProductData.php +++ b/src/Model/DocumentProductData.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentProductData Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentProductData implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentProductData implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -75,9 +70,7 @@ class DocumentProductData implements \JsonSerializable, ArrayAccess, ModelInterf * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -136,6 +129,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -155,7 +150,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -164,6 +159,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -172,6 +170,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -268,6 +269,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -278,10 +280,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('name', $data ?? [], null); $this->setIfExists('unitPrice', $data ?? [], null); @@ -298,7 +300,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -336,7 +340,6 @@ public function listInvalidProperties() if ($this->container['vat'] === null) { $invalidProperties[] = "'vat' can't be null"; } - return $invalidProperties; } @@ -351,6 +354,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets name * @@ -364,7 +368,8 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name name + * * @return self */ public function setName($name) @@ -390,7 +395,8 @@ public function getUnitPrice() /** * Sets unitPrice * - * @param float $unitPrice unitPrice + * @param float $unitPrice unitPrice + * * @return self */ public function setUnitPrice($unitPrice) @@ -416,7 +422,8 @@ public function getUnitPriceType() /** * Sets unitPriceType * - * @param \Cone\Billingo\Model\UnitPriceType $unitPriceType unitPriceType + * @param \Cone\Billingo\Model\UnitPriceType $unitPriceType unitPriceType + * * @return self */ public function setUnitPriceType($unitPriceType) @@ -442,7 +449,8 @@ public function getQuantity() /** * Sets quantity * - * @param float $quantity quantity + * @param float $quantity quantity + * * @return self */ public function setQuantity($quantity) @@ -468,7 +476,8 @@ public function getUnit() /** * Sets unit * - * @param string $unit unit + * @param string $unit unit + * * @return self */ public function setUnit($unit) @@ -494,7 +503,8 @@ public function getVat() /** * Sets vat * - * @param \Cone\Billingo\Model\Vat $vat vat + * @param \Cone\Billingo\Model\Vat $vat vat + * * @return self */ public function setVat($vat) @@ -520,7 +530,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -546,7 +557,8 @@ public function getEntitlement() /** * Sets entitlement * - * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * * @return self */ public function setEntitlement($entitlement) @@ -558,11 +570,12 @@ public function setEntitlement($entitlement) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -572,7 +585,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -584,8 +598,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -599,7 +615,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -608,7 +626,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentPublicUrl.php b/src/Model/DocumentPublicUrl.php index 93f1bf4..0b789f3 100644 --- a/src/Model/DocumentPublicUrl.php +++ b/src/Model/DocumentPublicUrl.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentPublicUrl Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class DocumentPublicUrl implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentPublicUrl'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'publicUrl' => 'string' + 'publicUrl' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'publicUrl' => null + 'publicUrl' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'publicUrl' => false + 'publicUrl' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'publicUrl' => 'public_url' + 'publicUrl' => 'public_url', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'publicUrl' => 'setPublicUrl' + 'publicUrl' => 'setPublicUrl', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'publicUrl' => 'getPublicUrl' + 'publicUrl' => 'getPublicUrl', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -319,9 +317,9 @@ public function setPublicUrl($publicUrl) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -331,7 +329,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -361,7 +359,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -380,7 +378,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -406,5 +404,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentSettings.php b/src/Model/DocumentSettings.php index 38e5b1e..31ccf54 100644 --- a/src/Model/DocumentSettings.php +++ b/src/Model/DocumentSettings.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * DocumentSettings Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class DocumentSettings implements \JsonSerializable, ArrayAccess, ModelInterface +class DocumentSettings implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -76,9 +71,7 @@ class DocumentSettings implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -139,6 +132,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -158,7 +153,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,6 +162,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -175,6 +173,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -274,6 +275,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -284,10 +286,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('mediatedService', $data ?? [], false); $this->setIfExists('withoutFinancialFulfillment', $data ?? [], false); @@ -305,7 +307,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -339,6 +343,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets mediatedService * @@ -352,7 +357,8 @@ public function getMediatedService() /** * Sets mediatedService * - * @param bool|null $mediatedService mediatedService + * @param bool|null $mediatedService mediatedService + * * @return self */ public function setMediatedService($mediatedService) @@ -378,7 +384,8 @@ public function getWithoutFinancialFulfillment() /** * Sets withoutFinancialFulfillment * - * @param bool|null $withoutFinancialFulfillment withoutFinancialFulfillment + * @param bool|null $withoutFinancialFulfillment withoutFinancialFulfillment + * * @return self */ public function setWithoutFinancialFulfillment($withoutFinancialFulfillment) @@ -404,7 +411,8 @@ public function getOnlinePayment() /** * Sets onlinePayment * - * @param \Cone\Billingo\Model\OnlinePayment|null $onlinePayment onlinePayment + * @param \Cone\Billingo\Model\OnlinePayment|null $onlinePayment onlinePayment + * * @return self */ public function setOnlinePayment($onlinePayment) @@ -430,7 +438,8 @@ public function getRound() /** * Sets round * - * @param \Cone\Billingo\Model\Round|null $round round + * @param \Cone\Billingo\Model\Round|null $round round + * * @return self */ public function setRound($round) @@ -456,7 +465,8 @@ public function getNoSendOnlineszamlaByUser() /** * Sets noSendOnlineszamlaByUser * - * @param bool|null $noSendOnlineszamlaByUser noSendOnlineszamlaByUser + * @param bool|null $noSendOnlineszamlaByUser noSendOnlineszamlaByUser + * * @return self */ public function setNoSendOnlineszamlaByUser($noSendOnlineszamlaByUser) @@ -482,7 +492,8 @@ public function getOrderNumber() /** * Sets orderNumber * - * @param string|null $orderNumber orderNumber + * @param string|null $orderNumber orderNumber + * * @return self */ public function setOrderNumber($orderNumber) @@ -508,7 +519,8 @@ public function getPlaceId() /** * Sets placeId * - * @param int|null $placeId placeId + * @param int|null $placeId placeId + * * @return self */ public function setPlaceId($placeId) @@ -517,7 +529,7 @@ public function setPlaceId($placeId) array_push($this->openAPINullablesSetToNull, 'placeId'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('placeId', $nullablesSetToNull); + $index = array_search('placeId', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); @@ -541,7 +553,8 @@ public function getInstantPayment() /** * Sets instantPayment * - * @param bool|null $instantPayment instantPayment + * @param bool|null $instantPayment instantPayment + * * @return self */ public function setInstantPayment($instantPayment) @@ -567,7 +580,8 @@ public function getSelectedType() /** * Sets selectedType * - * @param \Cone\Billingo\Model\DocumentType|null $selectedType selectedType + * @param \Cone\Billingo\Model\DocumentType|null $selectedType selectedType + * * @return self */ public function setSelectedType($selectedType) @@ -579,11 +593,12 @@ public function setSelectedType($selectedType) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -593,7 +608,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -605,8 +621,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -620,7 +638,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -629,7 +649,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/DocumentSummary.php b/src/Model/DocumentSummary.php index a464e89..c57ee72 100644 --- a/src/Model/DocumentSummary.php +++ b/src/Model/DocumentSummary.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentSummary Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,61 +44,61 @@ class DocumentSummary implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentSummary'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'netAmount' => 'float', 'netAmountLocal' => 'float', 'grossAmountLocal' => 'float', 'vatAmount' => 'float', 'vatAmountLocal' => 'float', - 'vatRateSummary' => '\Cone\Billingo\Model\DocumentVatRateSummary[]' + 'vatRateSummary' => '\Cone\Billingo\Model\DocumentVatRateSummary[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'netAmount' => 'float', 'netAmountLocal' => 'float', 'grossAmountLocal' => 'float', 'vatAmount' => 'float', 'vatAmountLocal' => 'float', - 'vatRateSummary' => null + 'vatRateSummary' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'netAmount' => false, 'netAmountLocal' => false, 'grossAmountLocal' => false, 'vatAmount' => false, 'vatAmountLocal' => false, - 'vatRateSummary' => false + 'vatRateSummary' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -136,7 +134,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -146,7 +144,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -187,7 +185,7 @@ public function isNullableSetToNull(string $property): bool 'grossAmountLocal' => 'gross_amount_local', 'vatAmount' => 'vat_amount', 'vatAmountLocal' => 'vat_amount_local', - 'vatRateSummary' => 'vat_rate_summary' + 'vatRateSummary' => 'vat_rate_summary', ]; /** @@ -201,7 +199,7 @@ public function isNullableSetToNull(string $property): bool 'grossAmountLocal' => 'setGrossAmountLocal', 'vatAmount' => 'setVatAmount', 'vatAmountLocal' => 'setVatAmountLocal', - 'vatRateSummary' => 'setVatRateSummary' + 'vatRateSummary' => 'setVatRateSummary', ]; /** @@ -215,7 +213,7 @@ public function isNullableSetToNull(string $property): bool 'grossAmountLocal' => 'getGrossAmountLocal', 'vatAmount' => 'getVatAmount', 'vatAmountLocal' => 'getVatAmountLocal', - 'vatRateSummary' => 'getVatRateSummary' + 'vatRateSummary' => 'getVatRateSummary', ]; /** @@ -284,14 +282,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -489,9 +487,9 @@ public function setVatRateSummary($vatRateSummary) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -501,7 +499,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -531,7 +529,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -550,7 +548,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -576,5 +574,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/DocumentType.php b/src/Model/DocumentType.php index 0cafd7a..61467eb 100644 --- a/src/Model/DocumentType.php +++ b/src/Model/DocumentType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * DocumentType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -100,9 +99,7 @@ public static function getAllowableEnumValues() self::PROFORMA, self::RECEIPT, self::RECEIPT_CANCELLATION, - self::WAYBILL + self::WAYBILL, ]; } } - - diff --git a/src/Model/DocumentVatRateSummary.php b/src/Model/DocumentVatRateSummary.php index 2112998..9ec9390 100644 --- a/src/Model/DocumentVatRateSummary.php +++ b/src/Model/DocumentVatRateSummary.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * DocumentVatRateSummary Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,61 +44,61 @@ class DocumentVatRateSummary implements ModelInterface, ArrayAccess, \JsonSerial public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DocumentVatRateSummary'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'vatName' => 'string', 'vatPercentage' => 'float', 'vatRateNetAmount' => 'float', 'vatRateVatAmount' => 'float', 'vatRateVatAmountLocal' => 'float', - 'vatRateGrossAmount' => 'float' + 'vatRateGrossAmount' => 'float', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'vatName' => null, 'vatPercentage' => 'float', 'vatRateNetAmount' => 'float', 'vatRateVatAmount' => 'float', 'vatRateVatAmountLocal' => 'float', - 'vatRateGrossAmount' => 'float' + 'vatRateGrossAmount' => 'float', ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'vatName' => false, 'vatPercentage' => false, 'vatRateNetAmount' => false, 'vatRateVatAmount' => false, 'vatRateVatAmountLocal' => false, - 'vatRateGrossAmount' => false + 'vatRateGrossAmount' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -136,7 +134,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -146,7 +144,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -187,7 +185,7 @@ public function isNullableSetToNull(string $property): bool 'vatRateNetAmount' => 'vat_rate_net_amount', 'vatRateVatAmount' => 'vat_rate_vat_amount', 'vatRateVatAmountLocal' => 'vat_rate_vat_amount_local', - 'vatRateGrossAmount' => 'vat_rate_gross_amount' + 'vatRateGrossAmount' => 'vat_rate_gross_amount', ]; /** @@ -201,7 +199,7 @@ public function isNullableSetToNull(string $property): bool 'vatRateNetAmount' => 'setVatRateNetAmount', 'vatRateVatAmount' => 'setVatRateVatAmount', 'vatRateVatAmountLocal' => 'setVatRateVatAmountLocal', - 'vatRateGrossAmount' => 'setVatRateGrossAmount' + 'vatRateGrossAmount' => 'setVatRateGrossAmount', ]; /** @@ -215,7 +213,7 @@ public function isNullableSetToNull(string $property): bool 'vatRateNetAmount' => 'getVatRateNetAmount', 'vatRateVatAmount' => 'getVatRateVatAmount', 'vatRateVatAmountLocal' => 'getVatRateVatAmountLocal', - 'vatRateGrossAmount' => 'getVatRateGrossAmount' + 'vatRateGrossAmount' => 'getVatRateGrossAmount', ]; /** @@ -284,14 +282,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -489,9 +487,9 @@ public function setVatRateGrossAmount($vatRateGrossAmount) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -501,7 +499,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -531,7 +529,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -550,7 +548,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -576,5 +574,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/Entitlement.php b/src/Model/Entitlement.php index a1c91c6..ebbbb06 100644 --- a/src/Model/Entitlement.php +++ b/src/Model/Entitlement.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,14 +27,14 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * Entitlement Class Doc Comment * * @category Class * @description * `AAM` - Alanyi adómentesség * `ANTIQUES` - Különbözet szerinti szabályozás - gyűjteménydarabok és régiségek - * `ARTWORK` - Különbözet szerinti szabályozás - műalkotások - * `ATK` - Áfa tv. tárgyi hatályán kívüli ügylet * `EAM` - Áfamentes termékexport, azzal egy tekintet alá eső értékesítések, nemzetközi közlekedéshez kapcsolódó áfamentes ügyletek (Áfa tv. 98-109. §) * `EUE` - EU más tagállamában áfaköteles (áfa fizetésére az értékesítő köteles) * `EUFAD37` - Áfa tv. 37. § (1) bekezdése alapján a szolgáltatás teljesítése helye az EU más tagállama (áfa fizetésére a vevő köteles) * `EUFADE` - Áfa tv. egyéb rendelkezése szerint a teljesítés helye EU más tagállama (áfa fizetésére a vevő kötelezett) * `HO` - Áfa tv. szerint EU-n kívül teljesített ügylet * `KBAET` - Más tagállamba irányuló áfamentes termékértékesítés (Áfa tv. 89. §) * `NAM_1` - Áfamentes közvetítői tevékenység (Áfa tv. 110. §) * `NAM_2` - Termékek nemzetközi forgalmához kapcsolódó áfamentes ügylet (Áfa tv. 111-118. §) * `SECOND_HAND` - Különbözet szerinti szabályozás - használt cikkek - * `TAM` - Tevékenység közérdekű jellegére vagy egyéb sajátos jellegére tekintettel áfamentes (Áfa tv. 85-87.§) * `TRAVEL_AGENCY` - Különbözet szerinti szabályozás - utazási irodák - - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -95,9 +94,7 @@ public static function getAllowableEnumValues() self::NAM_2, self::SECOND_HAND, self::TAM, - self::TRAVEL_AGENCY + self::TRAVEL_AGENCY, ]; } } - - diff --git a/src/Model/Feature.php b/src/Model/Feature.php index 0b78e09..b5001d6 100644 --- a/src/Model/Feature.php +++ b/src/Model/Feature.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * Feature Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Feature @@ -90,7 +88,6 @@ class Feature /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/Id.php b/src/Model/Id.php index 0d684df..5aee64f 100644 --- a/src/Model/Id.php +++ b/src/Model/Id.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * Id Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class Id implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Id'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', - 'legacyId' => 'int' + 'legacyId' => 'int', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => null, - 'legacyId' => null + 'legacyId' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'id' => false, - 'legacyId' => false + 'legacyId' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'id' => 'id', - 'legacyId' => 'legacy_id' + 'legacyId' => 'legacy_id', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'id' => 'setId', - 'legacyId' => 'setLegacyId' + 'legacyId' => 'setLegacyId', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'id' => 'getId', - 'legacyId' => 'getLegacyId' + 'legacyId' => 'getLegacyId', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setLegacyId($legacyId) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/InvoiceSettings.php b/src/Model/InvoiceSettings.php index 3647ff9..fc077aa 100644 --- a/src/Model/InvoiceSettings.php +++ b/src/Model/InvoiceSettings.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * InvoiceSettings Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class InvoiceSettings implements \JsonSerializable, ArrayAccess, ModelInterface +class InvoiceSettings implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -72,9 +67,7 @@ class InvoiceSettings implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -127,6 +120,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -146,7 +141,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -155,6 +150,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -163,6 +161,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -250,6 +251,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -260,10 +262,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('documentType', $data ?? [], null); $this->setIfExists('fulfillmentDate', $data ?? [], null); @@ -277,7 +279,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -311,6 +315,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets documentType * @@ -324,7 +329,8 @@ public function getDocumentType() /** * Sets documentType * - * @param \Cone\Billingo\Model\DocumentType|null $documentType documentType + * @param \Cone\Billingo\Model\DocumentType|null $documentType documentType + * * @return self */ public function setDocumentType($documentType) @@ -350,7 +356,8 @@ public function getFulfillmentDate() /** * Sets fulfillmentDate * - * @param \DateTime|null $fulfillmentDate fulfillmentDate + * @param \DateTime|null $fulfillmentDate fulfillmentDate + * * @return self */ public function setFulfillmentDate($fulfillmentDate) @@ -376,7 +383,8 @@ public function getDueDate() /** * Sets dueDate * - * @param \DateTime|null $dueDate dueDate + * @param \DateTime|null $dueDate dueDate + * * @return self */ public function setDueDate($dueDate) @@ -402,7 +410,8 @@ public function getDocumentFormat() /** * Sets documentFormat * - * @param \Cone\Billingo\Model\DocumentFormat|null $documentFormat documentFormat + * @param \Cone\Billingo\Model\DocumentFormat|null $documentFormat documentFormat + * * @return self */ public function setDocumentFormat($documentFormat) @@ -428,7 +437,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -440,11 +450,12 @@ public function setComment($comment) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -454,7 +465,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -466,8 +478,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -481,7 +495,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -490,7 +506,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/LedgerNumberInformation.php b/src/Model/LedgerNumberInformation.php index a293a65..2312cd4 100644 --- a/src/Model/LedgerNumberInformation.php +++ b/src/Model/LedgerNumberInformation.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * LedgerNumberInformation Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class LedgerNumberInformation implements \JsonSerializable, ArrayAccess, ModelInterface +class LedgerNumberInformation implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -71,9 +66,7 @@ class LedgerNumberInformation implements \JsonSerializable, ArrayAccess, ModelIn * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -124,6 +117,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -143,7 +138,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -152,6 +147,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -160,6 +158,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -244,6 +245,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -254,10 +256,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('bevetel', $data ?? [], null); $this->setIfExists('vevo', $data ?? [], null); @@ -270,7 +272,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -304,6 +308,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets bevetel * @@ -317,7 +322,8 @@ public function getBevetel() /** * Sets bevetel * - * @param string|null $bevetel bevetel + * @param string|null $bevetel bevetel + * * @return self */ public function setBevetel($bevetel) @@ -343,7 +349,8 @@ public function getVevo() /** * Sets vevo * - * @param string|null $vevo vevo + * @param string|null $vevo vevo + * * @return self */ public function setVevo($vevo) @@ -369,7 +376,8 @@ public function getPenztar() /** * Sets penztar * - * @param string|null $penztar penztar + * @param string|null $penztar penztar + * * @return self */ public function setPenztar($penztar) @@ -395,7 +403,8 @@ public function getAfa() /** * Sets afa * - * @param string|null $afa afa + * @param string|null $afa afa + * * @return self */ public function setAfa($afa) @@ -407,11 +416,12 @@ public function setAfa($afa) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -421,7 +431,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -433,8 +444,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -448,7 +461,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -457,7 +472,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 5ebba9f..01ee13b 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo\Model * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -32,7 +31,6 @@ /** * Interface abstracting model access. * - * @package Cone\Billingo\Model * @author OpenAPI Generator team */ interface ModelInterface diff --git a/src/Model/ModificationDocumentInsert.php b/src/Model/ModificationDocumentInsert.php index 8f94eb1..dcdc2d4 100644 --- a/src/Model/ModificationDocumentInsert.php +++ b/src/Model/ModificationDocumentInsert.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * ModificationDocumentInsert Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ModificationDocumentInsert implements \JsonSerializable, ArrayAccess, ModelInterface +class ModificationDocumentInsert implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -72,9 +67,7 @@ class ModificationDocumentInsert implements \JsonSerializable, ArrayAccess, Mode * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -127,6 +120,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -146,7 +141,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -155,6 +150,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -163,6 +161,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -250,6 +251,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -260,10 +262,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('dueDate', $data ?? [], null); $this->setIfExists('comment', $data ?? [], null); @@ -277,7 +279,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -311,6 +315,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets dueDate * @@ -324,7 +329,8 @@ public function getDueDate() /** * Sets dueDate * - * @param \DateTime|null $dueDate dueDate + * @param \DateTime|null $dueDate dueDate + * * @return self */ public function setDueDate($dueDate) @@ -350,7 +356,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -376,7 +383,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -402,7 +410,8 @@ public function getWithoutFinancialFulfillment() /** * Sets withoutFinancialFulfillment * - * @param bool|null $withoutFinancialFulfillment withoutFinancialFulfillment + * @param bool|null $withoutFinancialFulfillment withoutFinancialFulfillment + * * @return self */ public function setWithoutFinancialFulfillment($withoutFinancialFulfillment) @@ -428,7 +437,8 @@ public function getItems() /** * Sets items * - * @param \Cone\Billingo\Model\DocumentInsertItemsInner[]|null $items items + * @param \Cone\Billingo\Model\DocumentInsertItemsInner[]|null $items items + * * @return self */ public function setItems($items) @@ -440,11 +450,12 @@ public function setItems($items) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -454,7 +465,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -466,8 +478,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -481,7 +495,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -490,7 +506,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/OnlinePayment.php b/src/Model/OnlinePayment.php index d509567..9ab6266 100644 --- a/src/Model/OnlinePayment.php +++ b/src/Model/OnlinePayment.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * OnlinePayment Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -61,9 +60,7 @@ public static function getAllowableEnumValues() self::EMPTY, self::BARION, self::SIMPLE_PAY, - self::NO + self::NO, ]; } } - - diff --git a/src/Model/OnlineSzamlaStatus.php b/src/Model/OnlineSzamlaStatus.php index 52805f4..a7e9945 100644 --- a/src/Model/OnlineSzamlaStatus.php +++ b/src/Model/OnlineSzamlaStatus.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * OnlineSzamlaStatus Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,52 +44,52 @@ class OnlineSzamlaStatus implements ModelInterface, ArrayAccess, \JsonSerializab public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OnlineSzamlaStatus'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'transactionId' => 'string', 'status' => 'string', - 'messages' => '\Cone\Billingo\Model\OnlineSzamlaStatusMessage[]' + 'messages' => '\Cone\Billingo\Model\OnlineSzamlaStatusMessage[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'transactionId' => null, 'status' => null, - 'messages' => null + 'messages' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'transactionId' => false, 'status' => false, - 'messages' => false + 'messages' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -127,7 +125,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -137,7 +135,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -175,7 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'transactionId' => 'transaction_id', 'status' => 'status', - 'messages' => 'messages' + 'messages' => 'messages', ]; /** @@ -186,7 +184,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'transactionId' => 'setTransactionId', 'status' => 'setStatus', - 'messages' => 'setMessages' + 'messages' => 'setMessages', ]; /** @@ -197,7 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'transactionId' => 'getTransactionId', 'status' => 'getStatus', - 'messages' => 'getMessages' + 'messages' => 'getMessages', ]; /** @@ -263,14 +261,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -387,9 +385,9 @@ public function setMessages($messages) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -399,7 +397,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -429,7 +427,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -448,7 +446,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -474,5 +472,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/OnlineSzamlaStatusEnum.php b/src/Model/OnlineSzamlaStatusEnum.php index 8437d39..77d27e0 100644 --- a/src/Model/OnlineSzamlaStatusEnum.php +++ b/src/Model/OnlineSzamlaStatusEnum.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * OnlineSzamlaStatusEnum Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -163,9 +162,7 @@ public static function getAllowableEnumValues() self::UNDER_TAX_LIMIT, self::USER_HAS_INVALID_KOBAK, self::USER_HASNOT_KOBAK, - self::VALIDATION_OK + self::VALIDATION_OK, ]; } } - - diff --git a/src/Model/OnlineSzamlaStatusMessage.php b/src/Model/OnlineSzamlaStatusMessage.php index c02f487..ea29f71 100644 --- a/src/Model/OnlineSzamlaStatusMessage.php +++ b/src/Model/OnlineSzamlaStatusMessage.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * OnlineSzamlaStatusMessage Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,52 +44,52 @@ class OnlineSzamlaStatusMessage implements ModelInterface, ArrayAccess, \JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OnlineSzamlaStatusMessage'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'validationResultCode' => 'string', 'validationErrorCode' => 'string', - 'humanReadableMessage' => 'string' + 'humanReadableMessage' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'validationResultCode' => null, 'validationErrorCode' => null, - 'humanReadableMessage' => null + 'humanReadableMessage' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'validationResultCode' => false, 'validationErrorCode' => false, - 'humanReadableMessage' => false + 'humanReadableMessage' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -127,7 +125,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -137,7 +135,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -175,7 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'validationResultCode' => 'validation_result_code', 'validationErrorCode' => 'validation_error_code', - 'humanReadableMessage' => 'human_readable_message' + 'humanReadableMessage' => 'human_readable_message', ]; /** @@ -186,7 +184,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'validationResultCode' => 'setValidationResultCode', 'validationErrorCode' => 'setValidationErrorCode', - 'humanReadableMessage' => 'setHumanReadableMessage' + 'humanReadableMessage' => 'setHumanReadableMessage', ]; /** @@ -197,7 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'validationResultCode' => 'getValidationResultCode', 'validationErrorCode' => 'getValidationErrorCode', - 'humanReadableMessage' => 'getHumanReadableMessage' + 'humanReadableMessage' => 'getHumanReadableMessage', ]; /** @@ -263,14 +261,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -387,9 +385,9 @@ public function setHumanReadableMessage($humanReadableMessage) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -399,7 +397,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -429,7 +427,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -448,7 +446,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -474,5 +472,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/OrganizationData.php b/src/Model/OrganizationData.php index bb7cc9b..e998557 100644 --- a/src/Model/OrganizationData.php +++ b/src/Model/OrganizationData.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * OrganizationData Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class OrganizationData implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OrganizationData'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'taxCode' => 'string', - 'subscription' => '\Cone\Billingo\Model\Subscription' + 'subscription' => '\Cone\Billingo\Model\Subscription', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'taxCode' => null, - 'subscription' => null + 'subscription' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'taxCode' => false, - 'subscription' => false + 'subscription' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'taxCode' => 'tax_code', - 'subscription' => 'subscription' + 'subscription' => 'subscription', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'taxCode' => 'setTaxCode', - 'subscription' => 'setSubscription' + 'subscription' => 'setSubscription', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'taxCode' => 'getTaxCode', - 'subscription' => 'getSubscription' + 'subscription' => 'getSubscription', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setSubscription($subscription) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/Partner.php b/src/Model/Partner.php index 3903a8b..abd8373 100644 --- a/src/Model/Partner.php +++ b/src/Model/Partner.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Partner Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Partner implements \JsonSerializable, ArrayAccess, ModelInterface +class Partner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -80,9 +75,7 @@ class Partner implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -151,6 +144,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -170,7 +165,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -179,6 +174,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -187,6 +185,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -298,6 +299,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -308,10 +310,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -333,7 +335,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -367,6 +371,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -380,7 +385,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -406,7 +412,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -432,7 +439,8 @@ public function getAddress() /** * Sets address * - * @param \Cone\Billingo\Model\Address|null $address address + * @param \Cone\Billingo\Model\Address|null $address address + * * @return self */ public function setAddress($address) @@ -458,7 +466,8 @@ public function getEmails() /** * Sets emails * - * @param string[]|null $emails emails + * @param string[]|null $emails emails + * * @return self */ public function setEmails($emails) @@ -484,7 +493,8 @@ public function getTaxcode() /** * Sets taxcode * - * @param string|null $taxcode taxcode + * @param string|null $taxcode taxcode + * * @return self */ public function setTaxcode($taxcode) @@ -510,7 +520,8 @@ public function getIban() /** * Sets iban * - * @param string|null $iban iban + * @param string|null $iban iban + * * @return self */ public function setIban($iban) @@ -536,7 +547,8 @@ public function getSwift() /** * Sets swift * - * @param string|null $swift swift + * @param string|null $swift swift + * * @return self */ public function setSwift($swift) @@ -562,7 +574,8 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string|null $accountNumber accountNumber + * @param string|null $accountNumber accountNumber + * * @return self */ public function setAccountNumber($accountNumber) @@ -588,7 +601,8 @@ public function getPhone() /** * Sets phone * - * @param string|null $phone phone + * @param string|null $phone phone + * * @return self */ public function setPhone($phone) @@ -614,7 +628,8 @@ public function getGeneralLedgerNumber() /** * Sets generalLedgerNumber * - * @param string|null $generalLedgerNumber generalLedgerNumber + * @param string|null $generalLedgerNumber generalLedgerNumber + * * @return self */ public function setGeneralLedgerNumber($generalLedgerNumber) @@ -640,7 +655,8 @@ public function getTaxType() /** * Sets taxType * - * @param \Cone\Billingo\Model\PartnerTaxType|null $taxType taxType + * @param \Cone\Billingo\Model\PartnerTaxType|null $taxType taxType + * * @return self */ public function setTaxType($taxType) @@ -666,7 +682,8 @@ public function getCustomBillingSettings() /** * Sets customBillingSettings * - * @param \Cone\Billingo\Model\PartnerCustomBillingSettings|null $customBillingSettings customBillingSettings + * @param \Cone\Billingo\Model\PartnerCustomBillingSettings|null $customBillingSettings customBillingSettings + * * @return self */ public function setCustomBillingSettings($customBillingSettings) @@ -692,7 +709,8 @@ public function getGroupMemberTaxNumber() /** * Sets groupMemberTaxNumber * - * @param string|null $groupMemberTaxNumber The tax number of group member. Send tax number for update. Send empty string for delete. Ignored if omitted. + * @param string|null $groupMemberTaxNumber The tax number of group member. Send tax number for update. Send empty string for delete. Ignored if omitted. + * * @return self */ public function setGroupMemberTaxNumber($groupMemberTaxNumber) @@ -704,11 +722,12 @@ public function setGroupMemberTaxNumber($groupMemberTaxNumber) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -718,7 +737,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -730,8 +750,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -745,7 +767,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -754,7 +778,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/PartnerCustomBillingSettings.php b/src/Model/PartnerCustomBillingSettings.php index 4c030cc..b3e5ee5 100644 --- a/src/Model/PartnerCustomBillingSettings.php +++ b/src/Model/PartnerCustomBillingSettings.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * PartnerCustomBillingSettings Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class PartnerCustomBillingSettings implements \JsonSerializable, ArrayAccess, ModelInterface +class PartnerCustomBillingSettings implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -73,9 +68,7 @@ class PartnerCustomBillingSettings implements \JsonSerializable, ArrayAccess, Mo * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -130,6 +123,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -149,7 +144,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -158,6 +153,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -166,6 +164,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -256,6 +257,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -266,10 +268,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('paymentMethod', $data ?? [], null); $this->setIfExists('documentForm', $data ?? [], null); @@ -284,7 +286,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -318,6 +322,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets paymentMethod * @@ -331,7 +336,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\PaymentMethod|null $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -357,7 +363,8 @@ public function getDocumentForm() /** * Sets documentForm * - * @param \Cone\Billingo\Model\DocumentForm|null $documentForm documentForm + * @param \Cone\Billingo\Model\DocumentForm|null $documentForm documentForm + * * @return self */ public function setDocumentForm($documentForm) @@ -383,7 +390,8 @@ public function getDueDays() /** * Sets dueDays * - * @param int|null $dueDays dueDays + * @param int|null $dueDays dueDays + * * @return self */ public function setDueDays($dueDays) @@ -409,7 +417,8 @@ public function getDocumentCurrency() /** * Sets documentCurrency * - * @param \Cone\Billingo\Model\Currency|null $documentCurrency documentCurrency + * @param \Cone\Billingo\Model\Currency|null $documentCurrency documentCurrency + * * @return self */ public function setDocumentCurrency($documentCurrency) @@ -435,7 +444,8 @@ public function getTemplateLanguageCode() /** * Sets templateLanguageCode * - * @param \Cone\Billingo\Model\DocumentLanguage|null $templateLanguageCode templateLanguageCode + * @param \Cone\Billingo\Model\DocumentLanguage|null $templateLanguageCode templateLanguageCode + * * @return self */ public function setTemplateLanguageCode($templateLanguageCode) @@ -461,7 +471,8 @@ public function getDiscount() /** * Sets discount * - * @param \Cone\Billingo\Model\Discount|null $discount discount + * @param \Cone\Billingo\Model\Discount|null $discount discount + * * @return self */ public function setDiscount($discount) @@ -473,11 +484,12 @@ public function setDiscount($discount) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -487,7 +499,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -499,8 +512,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -514,7 +529,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -523,7 +540,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/PartnerList.php b/src/Model/PartnerList.php index 4f54462..4af2f95 100644 --- a/src/Model/PartnerList.php +++ b/src/Model/PartnerList.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,16 +35,12 @@ * PartnerList Class Doc Comment * * @category Class - * * @description A object with a data property that contains an array of up to limit partners. Each entry in the array is a separate partner object. If no more partners are available, the resulting array will be empty. - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class PartnerList implements \JsonSerializable, ArrayAccess, ModelInterface +class PartnerList implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -76,9 +70,7 @@ class PartnerList implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -135,6 +127,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -154,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -163,6 +157,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -171,6 +168,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -264,6 +264,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -274,10 +275,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('data', $data ?? [], null); $this->setIfExists('total', $data ?? [], null); @@ -293,7 +294,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -327,6 +330,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets data * @@ -340,7 +344,8 @@ public function getData() /** * Sets data * - * @param \Cone\Billingo\Model\Partner[]|null $data data + * @param \Cone\Billingo\Model\Partner[]|null $data data + * * @return self */ public function setData($data) @@ -366,7 +371,8 @@ public function getTotal() /** * Sets total * - * @param int|null $total total + * @param int|null $total total + * * @return self */ public function setTotal($total) @@ -392,7 +398,8 @@ public function getPerPage() /** * Sets perPage * - * @param int|null $perPage perPage + * @param int|null $perPage perPage + * * @return self */ public function setPerPage($perPage) @@ -418,7 +425,8 @@ public function getCurrentPage() /** * Sets currentPage * - * @param int|null $currentPage currentPage + * @param int|null $currentPage currentPage + * * @return self */ public function setCurrentPage($currentPage) @@ -444,7 +452,8 @@ public function getLastPage() /** * Sets lastPage * - * @param int|null $lastPage lastPage + * @param int|null $lastPage lastPage + * * @return self */ public function setLastPage($lastPage) @@ -470,7 +479,8 @@ public function getPrevPageUrl() /** * Sets prevPageUrl * - * @param string|null $prevPageUrl prevPageUrl + * @param string|null $prevPageUrl prevPageUrl + * * @return self */ public function setPrevPageUrl($prevPageUrl) @@ -496,7 +506,8 @@ public function getNextPageUrl() /** * Sets nextPageUrl * - * @param string|null $nextPageUrl nextPageUrl + * @param string|null $nextPageUrl nextPageUrl + * * @return self */ public function setNextPageUrl($nextPageUrl) @@ -508,11 +519,12 @@ public function setNextPageUrl($nextPageUrl) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -522,7 +534,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -534,8 +547,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -549,7 +564,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -558,7 +575,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/PartnerTaxType.php b/src/Model/PartnerTaxType.php index 019a8dc..8061e4a 100644 --- a/src/Model/PartnerTaxType.php +++ b/src/Model/PartnerTaxType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * PartnerTaxType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -61,9 +60,7 @@ public static function getAllowableEnumValues() self::EMPTY, self::FOREIGN, self::HAS_TAX_NUMBER, - self::NO_TAX_NUMBER + self::NO_TAX_NUMBER, ]; } } - - diff --git a/src/Model/PaymentHistory.php b/src/Model/PaymentHistory.php index 4af83e3..d15220f 100644 --- a/src/Model/PaymentHistory.php +++ b/src/Model/PaymentHistory.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * PaymentHistory Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,58 +44,58 @@ class PaymentHistory implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'PaymentHistory'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'date' => '\DateTime', 'price' => 'float', 'paymentMethod' => '\Cone\Billingo\Model\PaymentMethod', 'voucherNumber' => 'string', - 'conversionRate' => 'float' + 'conversionRate' => 'float', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'date' => 'date', 'price' => 'float', 'paymentMethod' => null, 'voucherNumber' => null, - 'conversionRate' => 'float' + 'conversionRate' => 'float', ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'date' => false, 'price' => false, 'paymentMethod' => false, 'voucherNumber' => true, - 'conversionRate' => true + 'conversionRate' => true, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -133,7 +131,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -143,7 +141,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -183,7 +181,7 @@ public function isNullableSetToNull(string $property): bool 'price' => 'price', 'paymentMethod' => 'payment_method', 'voucherNumber' => 'voucher_number', - 'conversionRate' => 'conversion_rate' + 'conversionRate' => 'conversion_rate', ]; /** @@ -196,7 +194,7 @@ public function isNullableSetToNull(string $property): bool 'price' => 'setPrice', 'paymentMethod' => 'setPaymentMethod', 'voucherNumber' => 'setVoucherNumber', - 'conversionRate' => 'setConversionRate' + 'conversionRate' => 'setConversionRate', ]; /** @@ -209,7 +207,7 @@ public function isNullableSetToNull(string $property): bool 'price' => 'getPrice', 'paymentMethod' => 'getPaymentMethod', 'voucherNumber' => 'getVoucherNumber', - 'conversionRate' => 'getConversionRate' + 'conversionRate' => 'getConversionRate', ]; /** @@ -277,14 +275,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -431,8 +429,8 @@ public function setVoucherNumber($voucherNumber) array_push($this->openAPINullablesSetToNull, 'voucherNumber'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('voucherNumber', $nullablesSetToNull); - if ($index !== FALSE) { + $index = array_search('voucherNumber', $nullablesSetToNull, true); + if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } @@ -465,8 +463,8 @@ public function setConversionRate($conversionRate) array_push($this->openAPINullablesSetToNull, 'conversionRate'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('conversionRate', $nullablesSetToNull); - if ($index !== FALSE) { + $index = array_search('conversionRate', $nullablesSetToNull, true); + if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } @@ -478,9 +476,9 @@ public function setConversionRate($conversionRate) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -490,7 +488,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -520,7 +518,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -539,7 +537,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -565,5 +563,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/PaymentMethod.php b/src/Model/PaymentMethod.php index 444b8c8..c8a1982 100644 --- a/src/Model/PaymentMethod.php +++ b/src/Model/PaymentMethod.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * PaymentMethod Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class PaymentMethod @@ -102,7 +100,6 @@ class PaymentMethod /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/PaymentStatus.php b/src/Model/PaymentStatus.php index b6fb092..e36cd57 100644 --- a/src/Model/PaymentStatus.php +++ b/src/Model/PaymentStatus.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * PaymentStatus Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -64,9 +63,7 @@ public static function getAllowableEnumValues() self::NONE, self::OUTSTANDING, self::PAID, - self::PARTIALLY_PAID + self::PARTIALLY_PAID, ]; } } - - diff --git a/src/Model/PaymentStatusSpending.php b/src/Model/PaymentStatusSpending.php index 870abcd..6b08030 100644 --- a/src/Model/PaymentStatusSpending.php +++ b/src/Model/PaymentStatusSpending.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * PaymentStatusSpending Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class PaymentStatusSpending @@ -52,7 +50,6 @@ class PaymentStatusSpending /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/Product.php b/src/Model/Product.php index 7e8340d..3ed0b8e 100644 --- a/src/Model/Product.php +++ b/src/Model/Product.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Product Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Product implements \JsonSerializable, ArrayAccess, ModelInterface +class Product implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -77,9 +72,7 @@ class Product implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -142,6 +135,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -161,7 +156,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -170,6 +165,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -178,6 +176,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -280,6 +281,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -290,10 +292,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -312,7 +314,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -344,7 +348,6 @@ public function listInvalidProperties() if ($this->container['unit'] === null) { $invalidProperties[] = "'unit' can't be null"; } - return $invalidProperties; } @@ -359,6 +362,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -372,7 +376,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -398,7 +403,8 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name name + * * @return self */ public function setName($name) @@ -424,7 +430,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -450,7 +457,8 @@ public function getCurrency() /** * Sets currency * - * @param \Cone\Billingo\Model\Currency $currency currency + * @param \Cone\Billingo\Model\Currency $currency currency + * * @return self */ public function setCurrency($currency) @@ -476,7 +484,8 @@ public function getVat() /** * Sets vat * - * @param \Cone\Billingo\Model\Vat $vat vat + * @param \Cone\Billingo\Model\Vat $vat vat + * * @return self */ public function setVat($vat) @@ -502,7 +511,8 @@ public function getNetUnitPrice() /** * Sets netUnitPrice * - * @param float|null $netUnitPrice netUnitPrice + * @param float|null $netUnitPrice netUnitPrice + * * @return self */ public function setNetUnitPrice($netUnitPrice) @@ -528,7 +538,8 @@ public function getUnit() /** * Sets unit * - * @param string $unit unit + * @param string $unit unit + * * @return self */ public function setUnit($unit) @@ -554,7 +565,8 @@ public function getGeneralLedgerNumber() /** * Sets generalLedgerNumber * - * @param string|null $generalLedgerNumber generalLedgerNumber + * @param string|null $generalLedgerNumber generalLedgerNumber + * * @return self */ public function setGeneralLedgerNumber($generalLedgerNumber) @@ -580,7 +592,8 @@ public function getGeneralLedgerTaxcode() /** * Sets generalLedgerTaxcode * - * @param string|null $generalLedgerTaxcode generalLedgerTaxcode + * @param string|null $generalLedgerTaxcode generalLedgerTaxcode + * * @return self */ public function setGeneralLedgerTaxcode($generalLedgerTaxcode) @@ -606,7 +619,8 @@ public function getEntitlement() /** * Sets entitlement * - * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * @param \Cone\Billingo\Model\Entitlement|null $entitlement entitlement + * * @return self */ public function setEntitlement($entitlement) @@ -618,11 +632,12 @@ public function setEntitlement($entitlement) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -632,7 +647,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -644,8 +660,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -659,7 +677,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -668,7 +688,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ProductList.php b/src/Model/ProductList.php index 70a6fe3..5cc4aae 100644 --- a/src/Model/ProductList.php +++ b/src/Model/ProductList.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,16 +35,12 @@ * ProductList Class Doc Comment * * @category Class - * * @description A object with a data property that contains an array of up to limit products. Each entry in the array is a separate product object. If no more products are available, the resulting array will be empty. - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ProductList implements \JsonSerializable, ArrayAccess, ModelInterface +class ProductList implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -76,9 +70,7 @@ class ProductList implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -135,6 +127,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -154,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -163,6 +157,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -171,6 +168,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -264,6 +264,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -274,10 +275,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('data', $data ?? [], null); $this->setIfExists('total', $data ?? [], null); @@ -293,7 +294,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -327,6 +330,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets data * @@ -340,7 +344,8 @@ public function getData() /** * Sets data * - * @param \Cone\Billingo\Model\Product[]|null $data data + * @param \Cone\Billingo\Model\Product[]|null $data data + * * @return self */ public function setData($data) @@ -366,7 +371,8 @@ public function getTotal() /** * Sets total * - * @param int|null $total total + * @param int|null $total total + * * @return self */ public function setTotal($total) @@ -392,7 +398,8 @@ public function getPerPage() /** * Sets perPage * - * @param int|null $perPage perPage + * @param int|null $perPage perPage + * * @return self */ public function setPerPage($perPage) @@ -418,7 +425,8 @@ public function getCurrentPage() /** * Sets currentPage * - * @param int|null $currentPage currentPage + * @param int|null $currentPage currentPage + * * @return self */ public function setCurrentPage($currentPage) @@ -444,7 +452,8 @@ public function getLastPage() /** * Sets lastPage * - * @param int|null $lastPage lastPage + * @param int|null $lastPage lastPage + * * @return self */ public function setLastPage($lastPage) @@ -470,7 +479,8 @@ public function getPrevPageUrl() /** * Sets prevPageUrl * - * @param string|null $prevPageUrl prevPageUrl + * @param string|null $prevPageUrl prevPageUrl + * * @return self */ public function setPrevPageUrl($prevPageUrl) @@ -496,7 +506,8 @@ public function getNextPageUrl() /** * Sets nextPageUrl * - * @param string|null $nextPageUrl nextPageUrl + * @param string|null $nextPageUrl nextPageUrl + * * @return self */ public function setNextPageUrl($nextPageUrl) @@ -508,11 +519,12 @@ public function setNextPageUrl($nextPageUrl) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -522,7 +534,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -534,8 +547,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -549,7 +564,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -558,7 +575,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ReceiptInsert.php b/src/Model/ReceiptInsert.php index c436fd3..a508191 100644 --- a/src/Model/ReceiptInsert.php +++ b/src/Model/ReceiptInsert.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ReceiptInsert Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,17 +44,17 @@ class ReceiptInsert implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ReceiptInsert'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'vendorId' => 'string', 'partnerId' => 'int', @@ -68,16 +66,16 @@ class ReceiptInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'currency' => '\Cone\Billingo\Model\Currency', 'conversionRate' => 'float', 'electronic' => 'bool', - 'items' => '\Cone\Billingo\Model\ReceiptInsertItemsInner[]' + 'items' => '\Cone\Billingo\Model\ReceiptInsertItemsInner[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'vendorId' => null, 'partnerId' => null, @@ -89,14 +87,14 @@ class ReceiptInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'currency' => null, 'conversionRate' => 'float', 'electronic' => null, - 'items' => null + 'items' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'vendorId' => false, 'partnerId' => false, @@ -108,14 +106,14 @@ class ReceiptInsert implements ModelInterface, ArrayAccess, \JsonSerializable 'currency' => false, 'conversionRate' => false, 'electronic' => false, - 'items' => false + 'items' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -151,7 +149,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -161,7 +159,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -207,7 +205,7 @@ public function isNullableSetToNull(string $property): bool 'currency' => 'currency', 'conversionRate' => 'conversion_rate', 'electronic' => 'electronic', - 'items' => 'items' + 'items' => 'items', ]; /** @@ -226,7 +224,7 @@ public function isNullableSetToNull(string $property): bool 'currency' => 'setCurrency', 'conversionRate' => 'setConversionRate', 'electronic' => 'setElectronic', - 'items' => 'setItems' + 'items' => 'setItems', ]; /** @@ -245,7 +243,7 @@ public function isNullableSetToNull(string $property): bool 'currency' => 'getCurrency', 'conversionRate' => 'getConversionRate', 'electronic' => 'getElectronic', - 'items' => 'getItems' + 'items' => 'getItems', ]; /** @@ -319,14 +317,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -671,9 +669,9 @@ public function setItems($items) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -683,7 +681,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -713,7 +711,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -732,7 +730,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -758,5 +756,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ReceiptInsertItemsInner.php b/src/Model/ReceiptInsertItemsInner.php index d50bb98..743eb7e 100644 --- a/src/Model/ReceiptInsertItemsInner.php +++ b/src/Model/ReceiptInsertItemsInner.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * ReceiptInsertItemsInner Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ReceiptInsertItemsInner implements \JsonSerializable, ArrayAccess, ModelInterface +class ReceiptInsertItemsInner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -71,9 +66,7 @@ class ReceiptInsertItemsInner implements \JsonSerializable, ArrayAccess, ModelIn * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -124,6 +117,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -143,7 +138,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -152,6 +147,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -160,6 +158,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -244,6 +245,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -254,10 +256,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('productId', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -270,7 +272,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -299,7 +303,6 @@ public function listInvalidProperties() if ($this->container['vat'] === null) { $invalidProperties[] = "'vat' can't be null"; } - return $invalidProperties; } @@ -314,6 +317,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets productId * @@ -327,7 +331,8 @@ public function getProductId() /** * Sets productId * - * @param int $productId productId + * @param int $productId productId + * * @return self */ public function setProductId($productId) @@ -353,7 +358,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -379,7 +385,8 @@ public function getUnitPrice() /** * Sets unitPrice * - * @param float $unitPrice unitPrice + * @param float $unitPrice unitPrice + * * @return self */ public function setUnitPrice($unitPrice) @@ -405,7 +412,8 @@ public function getVat() /** * Sets vat * - * @param \Cone\Billingo\Model\Vat $vat vat + * @param \Cone\Billingo\Model\Vat $vat vat + * * @return self */ public function setVat($vat) @@ -417,11 +425,12 @@ public function setVat($vat) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -431,7 +440,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -443,8 +453,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -458,7 +470,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -467,7 +481,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/ReceiptItemData.php b/src/Model/ReceiptItemData.php index 50c1c07..2d2bead 100644 --- a/src/Model/ReceiptItemData.php +++ b/src/Model/ReceiptItemData.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ReceiptItemData Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class ReceiptItemData implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ReceiptItemData'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'productId' => 'int' + 'productId' => 'int', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'productId' => null + 'productId' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'productId' => false + 'productId' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'productId' => 'product_id' + 'productId' => 'product_id', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'productId' => 'setProductId' + 'productId' => 'setProductId', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'productId' => 'getProductId' + 'productId' => 'getProductId', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -322,9 +320,9 @@ public function setProductId($productId) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -334,7 +332,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -364,7 +362,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -383,7 +381,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -409,5 +407,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ReceiptProductData.php b/src/Model/ReceiptProductData.php index f0ce129..05863c0 100644 --- a/src/Model/ReceiptProductData.php +++ b/src/Model/ReceiptProductData.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ReceiptProductData Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,52 +44,52 @@ class ReceiptProductData implements ModelInterface, ArrayAccess, \JsonSerializab public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ReceiptProductData'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'name' => 'string', 'unitPrice' => 'float', - 'vat' => '\Cone\Billingo\Model\Vat' + 'vat' => '\Cone\Billingo\Model\Vat', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => null, 'unitPrice' => 'float', - 'vat' => null + 'vat' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'name' => false, 'unitPrice' => false, - 'vat' => false + 'vat' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -127,7 +125,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -137,7 +135,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -175,7 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'name' => 'name', 'unitPrice' => 'unit_price', - 'vat' => 'vat' + 'vat' => 'vat', ]; /** @@ -186,7 +184,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'name' => 'setName', 'unitPrice' => 'setUnitPrice', - 'vat' => 'setVat' + 'vat' => 'setVat', ]; /** @@ -197,7 +195,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'name' => 'getName', 'unitPrice' => 'getUnitPrice', - 'vat' => 'getVat' + 'vat' => 'getVat', ]; /** @@ -263,14 +261,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -393,9 +391,9 @@ public function setVat($vat) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -405,7 +403,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -435,7 +433,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -454,7 +452,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -480,5 +478,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/Round.php b/src/Model/Round.php index dd183e5..e07b54f 100644 --- a/src/Model/Round.php +++ b/src/Model/Round.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * Round Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Round @@ -54,7 +52,6 @@ class Round /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/SendDocument.php b/src/Model/SendDocument.php index 9459e20..c1bef2e 100644 --- a/src/Model/SendDocument.php +++ b/src/Model/SendDocument.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * SendDocument Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class SendDocument implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'SendDocument'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'emails' => 'string[]' + 'emails' => 'string[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'emails' => null + 'emails' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'emails' => false + 'emails' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'emails' => 'emails' + 'emails' => 'emails', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'emails' => 'setEmails' + 'emails' => 'setEmails', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'emails' => 'getEmails' + 'emails' => 'getEmails', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -319,9 +317,9 @@ public function setEmails($emails) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -331,7 +329,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -361,7 +359,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -380,7 +378,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -406,5 +404,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ServerError.php b/src/Model/ServerError.php index ab7e193..f86128c 100644 --- a/src/Model/ServerError.php +++ b/src/Model/ServerError.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ServerError Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class ServerError implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ServerError'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'message' => 'string', - 'traceId' => 'string' + 'traceId' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'message' => null, - 'traceId' => null + 'traceId' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'message' => false, - 'traceId' => false + 'traceId' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'message' => 'message', - 'traceId' => 'trace_id' + 'traceId' => 'trace_id', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'message' => 'setMessage', - 'traceId' => 'setTraceId' + 'traceId' => 'setTraceId', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'message' => 'getMessage', - 'traceId' => 'getTraceId' + 'traceId' => 'getTraceId', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setTraceId($traceId) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ServerErrorResponse.php b/src/Model/ServerErrorResponse.php index 9e7f0bd..fbcc0ba 100644 --- a/src/Model/ServerErrorResponse.php +++ b/src/Model/ServerErrorResponse.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ServerErrorResponse Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class ServerErrorResponse implements ModelInterface, ArrayAccess, \JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ServerErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'error' => '\Cone\Billingo\Model\ServerError' + 'error' => '\Cone\Billingo\Model\ServerError', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'error' => null + 'error' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'error' => false + 'error' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'error' => 'error' + 'error' => 'error', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'error' => 'setError' + 'error' => 'setError', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'error' => 'getError' + 'error' => 'getError', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -319,9 +317,9 @@ public function setError($error) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -331,7 +329,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -361,7 +359,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -380,7 +378,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -406,5 +404,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ServerTime.php b/src/Model/ServerTime.php index b1b9f90..20165ce 100644 --- a/src/Model/ServerTime.php +++ b/src/Model/ServerTime.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * ServerTime Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class ServerTime implements \JsonSerializable, ArrayAccess, ModelInterface +class ServerTime implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -71,9 +66,7 @@ class ServerTime implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -124,6 +117,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -143,7 +138,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -152,6 +147,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -160,6 +158,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -244,6 +245,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -254,10 +256,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('epoch', $data ?? [], null); $this->setIfExists('formatted', $data ?? [], null); @@ -270,7 +272,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -304,6 +308,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets epoch * @@ -317,7 +322,8 @@ public function getEpoch() /** * Sets epoch * - * @param int|null $epoch epoch + * @param int|null $epoch epoch + * * @return self */ public function setEpoch($epoch) @@ -343,7 +349,8 @@ public function getFormatted() /** * Sets formatted * - * @param string|null $formatted formatted + * @param string|null $formatted formatted + * * @return self */ public function setFormatted($formatted) @@ -369,7 +376,8 @@ public function getW3c() /** * Sets w3c * - * @param string|null $w3c w3c + * @param string|null $w3c w3c + * * @return self */ public function setW3c($w3c) @@ -395,7 +403,8 @@ public function getTimezone() /** * Sets timezone * - * @param string|null $timezone timezone + * @param string|null $timezone timezone + * * @return self */ public function setTimezone($timezone) @@ -407,11 +416,12 @@ public function setTimezone($timezone) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -421,7 +431,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -433,8 +444,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -448,7 +461,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -457,7 +472,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/Source.php b/src/Model/Source.php index 95d0527..f90525b 100644 --- a/src/Model/Source.php +++ b/src/Model/Source.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * Source Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -58,9 +57,7 @@ public static function getAllowableEnumValues() return [ self::ALL, self::MANUAL, - self::NAV + self::NAV, ]; } } - - diff --git a/src/Model/Spending.php b/src/Model/Spending.php index 5bba714..eb663ce 100644 --- a/src/Model/Spending.php +++ b/src/Model/Spending.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Spending Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Spending implements \JsonSerializable, ArrayAccess, ModelInterface +class Spending implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -84,9 +79,7 @@ class Spending implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -163,6 +156,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -182,7 +177,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -191,6 +186,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -199,6 +197,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -322,6 +323,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -332,10 +334,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('organizationId', $data ?? [], null); @@ -361,7 +363,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -395,6 +399,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -408,7 +413,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -434,7 +440,8 @@ public function getOrganizationId() /** * Sets organizationId * - * @param int|null $organizationId organizationId + * @param int|null $organizationId organizationId + * * @return self */ public function setOrganizationId($organizationId) @@ -460,7 +467,8 @@ public function getCategory() /** * Sets category * - * @param \Cone\Billingo\Model\Category|null $category category + * @param \Cone\Billingo\Model\Category|null $category category + * * @return self */ public function setCategory($category) @@ -486,7 +494,8 @@ public function getPaidAt() /** * Sets paidAt * - * @param \DateTime|null $paidAt paidAt + * @param \DateTime|null $paidAt paidAt + * * @return self */ public function setPaidAt($paidAt) @@ -495,7 +504,7 @@ public function setPaidAt($paidAt) array_push($this->openAPINullablesSetToNull, 'paidAt'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('paidAt', $nullablesSetToNull); + $index = array_search('paidAt', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); @@ -519,7 +528,8 @@ public function getFulfillmentDate() /** * Sets fulfillmentDate * - * @param \DateTime|null $fulfillmentDate fulfillmentDate + * @param \DateTime|null $fulfillmentDate fulfillmentDate + * * @return self */ public function setFulfillmentDate($fulfillmentDate) @@ -545,7 +555,8 @@ public function getPartner() /** * Sets partner * - * @param \Cone\Billingo\Model\SpendingPartner|null $partner partner + * @param \Cone\Billingo\Model\SpendingPartner|null $partner partner + * * @return self */ public function setPartner($partner) @@ -571,7 +582,8 @@ public function getInvoiceNumber() /** * Sets invoiceNumber * - * @param string|null $invoiceNumber invoiceNumber + * @param string|null $invoiceNumber invoiceNumber + * * @return self */ public function setInvoiceNumber($invoiceNumber) @@ -597,7 +609,8 @@ public function getCurrency() /** * Sets currency * - * @param \Cone\Billingo\Model\Currency|null $currency currency + * @param \Cone\Billingo\Model\Currency|null $currency currency + * * @return self */ public function setCurrency($currency) @@ -623,7 +636,8 @@ public function getConversionRate() /** * Sets conversionRate * - * @param float|null $conversionRate conversionRate + * @param float|null $conversionRate conversionRate + * * @return self */ public function setConversionRate($conversionRate) @@ -649,7 +663,8 @@ public function getTotalGross() /** * Sets totalGross * - * @param float|null $totalGross totalGross + * @param float|null $totalGross totalGross + * * @return self */ public function setTotalGross($totalGross) @@ -675,7 +690,8 @@ public function getTotalGrossLocal() /** * Sets totalGrossLocal * - * @param float|null $totalGrossLocal totalGrossLocal + * @param float|null $totalGrossLocal totalGrossLocal + * * @return self */ public function setTotalGrossLocal($totalGrossLocal) @@ -701,7 +717,8 @@ public function getTotalVatAmount() /** * Sets totalVatAmount * - * @param float|null $totalVatAmount totalVatAmount + * @param float|null $totalVatAmount totalVatAmount + * * @return self */ public function setTotalVatAmount($totalVatAmount) @@ -727,7 +744,8 @@ public function getTotalVatAmountLocal() /** * Sets totalVatAmountLocal * - * @param float|null $totalVatAmountLocal totalVatAmountLocal + * @param float|null $totalVatAmountLocal totalVatAmountLocal + * * @return self */ public function setTotalVatAmountLocal($totalVatAmountLocal) @@ -753,7 +771,8 @@ public function getInvoiceDate() /** * Sets invoiceDate * - * @param \DateTime|null $invoiceDate invoiceDate + * @param \DateTime|null $invoiceDate invoiceDate + * * @return self */ public function setInvoiceDate($invoiceDate) @@ -779,7 +798,8 @@ public function getDueDate() /** * Sets dueDate * - * @param \DateTime|null $dueDate dueDate + * @param \DateTime|null $dueDate dueDate + * * @return self */ public function setDueDate($dueDate) @@ -805,7 +825,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\SpendingPaymentMethod|null $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\SpendingPaymentMethod|null $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -831,7 +852,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -840,7 +862,7 @@ public function setComment($comment) array_push($this->openAPINullablesSetToNull, 'comment'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('comment', $nullablesSetToNull); + $index = array_search('comment', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); @@ -850,11 +872,12 @@ public function setComment($comment) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -864,7 +887,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -876,8 +900,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -891,7 +917,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -900,7 +928,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/SpendingList.php b/src/Model/SpendingList.php index 4c6b00b..d04d913 100644 --- a/src/Model/SpendingList.php +++ b/src/Model/SpendingList.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,15 +28,14 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * SpendingList Class Doc Comment * * @category Class * @description An object with a data property that contains an array of up to limit spending. Each entry in the array is a separate spending object. If no more spending are available, the resulting array will be empty. - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -47,17 +45,17 @@ class SpendingList implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'SpendingList'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'data' => '\Cone\Billingo\Model\SpendingListItem[]', 'total' => 'int', @@ -65,16 +63,16 @@ class SpendingList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => 'int', 'lastPage' => 'int', 'prevPageUrl' => 'string', - 'nextPageUrl' => 'string' + 'nextPageUrl' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'data' => null, 'total' => null, @@ -82,14 +80,14 @@ class SpendingList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => null, 'lastPage' => null, 'prevPageUrl' => null, - 'nextPageUrl' => null + 'nextPageUrl' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'data' => false, 'total' => false, @@ -97,14 +95,14 @@ class SpendingList implements ModelInterface, ArrayAccess, \JsonSerializable 'currentPage' => false, 'lastPage' => false, 'prevPageUrl' => false, - 'nextPageUrl' => false + 'nextPageUrl' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -140,7 +138,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -150,7 +148,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -192,7 +190,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'current_page', 'lastPage' => 'last_page', 'prevPageUrl' => 'prev_page_url', - 'nextPageUrl' => 'next_page_url' + 'nextPageUrl' => 'next_page_url', ]; /** @@ -207,7 +205,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'setCurrentPage', 'lastPage' => 'setLastPage', 'prevPageUrl' => 'setPrevPageUrl', - 'nextPageUrl' => 'setNextPageUrl' + 'nextPageUrl' => 'setNextPageUrl', ]; /** @@ -222,7 +220,7 @@ public function isNullableSetToNull(string $property): bool 'currentPage' => 'getCurrentPage', 'lastPage' => 'getLastPage', 'prevPageUrl' => 'getPrevPageUrl', - 'nextPageUrl' => 'getNextPageUrl' + 'nextPageUrl' => 'getNextPageUrl', ]; /** @@ -292,14 +290,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -524,9 +522,9 @@ public function setNextPageUrl($nextPageUrl) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -536,7 +534,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -566,7 +564,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -585,7 +583,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -611,5 +609,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/SpendingListItem.php b/src/Model/SpendingListItem.php index 3fde063..942bda2 100644 --- a/src/Model/SpendingListItem.php +++ b/src/Model/SpendingListItem.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * SpendingListItem Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,17 +44,17 @@ class SpendingListItem implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'SpendingListItem'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'organizationId' => 'int', @@ -75,16 +73,16 @@ class SpendingListItem implements ModelInterface, ArrayAccess, \JsonSerializable 'dueDate' => '\DateTime', 'paymentMethod' => '\Cone\Billingo\Model\SpendingPaymentMethod', 'comment' => 'string', - 'isCreatedByNav' => 'bool' + 'isCreatedByNav' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => null, 'organizationId' => null, @@ -103,14 +101,14 @@ class SpendingListItem implements ModelInterface, ArrayAccess, \JsonSerializable 'dueDate' => 'date', 'paymentMethod' => null, 'comment' => null, - 'isCreatedByNav' => null + 'isCreatedByNav' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'id' => false, 'organizationId' => false, @@ -129,14 +127,14 @@ class SpendingListItem implements ModelInterface, ArrayAccess, \JsonSerializable 'dueDate' => false, 'paymentMethod' => false, 'comment' => true, - 'isCreatedByNav' => false + 'isCreatedByNav' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -172,7 +170,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -182,7 +180,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -235,7 +233,7 @@ public function isNullableSetToNull(string $property): bool 'dueDate' => 'due_date', 'paymentMethod' => 'payment_method', 'comment' => 'comment', - 'isCreatedByNav' => 'is_created_by_nav' + 'isCreatedByNav' => 'is_created_by_nav', ]; /** @@ -261,7 +259,7 @@ public function isNullableSetToNull(string $property): bool 'dueDate' => 'setDueDate', 'paymentMethod' => 'setPaymentMethod', 'comment' => 'setComment', - 'isCreatedByNav' => 'setIsCreatedByNav' + 'isCreatedByNav' => 'setIsCreatedByNav', ]; /** @@ -287,7 +285,7 @@ public function isNullableSetToNull(string $property): bool 'dueDate' => 'getDueDate', 'paymentMethod' => 'getPaymentMethod', 'comment' => 'getComment', - 'isCreatedByNav' => 'getIsCreatedByNav' + 'isCreatedByNav' => 'getIsCreatedByNav', ]; /** @@ -368,14 +366,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -513,8 +511,8 @@ public function setPaidAt($paidAt) array_push($this->openAPINullablesSetToNull, 'paidAt'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('paidAt', $nullablesSetToNull); - if ($index !== FALSE) { + $index = array_search('paidAt', $nullablesSetToNull, true); + if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } @@ -871,8 +869,8 @@ public function setComment($comment) array_push($this->openAPINullablesSetToNull, 'comment'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('comment', $nullablesSetToNull); - if ($index !== FALSE) { + $index = array_search('comment', $nullablesSetToNull, true); + if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } @@ -911,9 +909,9 @@ public function setIsCreatedByNav($isCreatedByNav) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -923,7 +921,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -953,7 +951,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -972,7 +970,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -998,5 +996,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/SpendingPartner.php b/src/Model/SpendingPartner.php index 2f45b3e..9d647f2 100644 --- a/src/Model/SpendingPartner.php +++ b/src/Model/SpendingPartner.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * SpendingPartner Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class SpendingPartner implements \JsonSerializable, ArrayAccess, ModelInterface +class SpendingPartner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -77,9 +72,7 @@ class SpendingPartner implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -142,6 +135,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -161,7 +156,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -170,6 +165,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -178,6 +176,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -280,6 +281,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -290,10 +292,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -312,7 +314,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -346,6 +350,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets id * @@ -359,7 +364,8 @@ public function getId() /** * Sets id * - * @param int|null $id id + * @param int|null $id id + * * @return self */ public function setId($id) @@ -385,7 +391,8 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string|null $name name + * * @return self */ public function setName($name) @@ -411,7 +418,8 @@ public function getTaxCode() /** * Sets taxCode * - * @param string|null $taxCode taxCode + * @param string|null $taxCode taxCode + * * @return self */ public function setTaxCode($taxCode) @@ -437,7 +445,8 @@ public function getAddress() /** * Sets address * - * @param \Cone\Billingo\Model\Address|null $address address + * @param \Cone\Billingo\Model\Address|null $address address + * * @return self */ public function setAddress($address) @@ -463,7 +472,8 @@ public function getIban() /** * Sets iban * - * @param string|null $iban iban + * @param string|null $iban iban + * * @return self */ public function setIban($iban) @@ -489,7 +499,8 @@ public function getSwift() /** * Sets swift * - * @param string|null $swift swift + * @param string|null $swift swift + * * @return self */ public function setSwift($swift) @@ -515,7 +526,8 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string|null $accountNumber accountNumber + * @param string|null $accountNumber accountNumber + * * @return self */ public function setAccountNumber($accountNumber) @@ -541,7 +553,8 @@ public function getPhone() /** * Sets phone * - * @param string|null $phone phone + * @param string|null $phone phone + * * @return self */ public function setPhone($phone) @@ -567,7 +580,8 @@ public function getInternalComment() /** * Sets internalComment * - * @param string|null $internalComment internalComment + * @param string|null $internalComment internalComment + * * @return self */ public function setInternalComment($internalComment) @@ -593,7 +607,8 @@ public function getGroupMemberTaxNumber() /** * Sets groupMemberTaxNumber * - * @param string|null $groupMemberTaxNumber groupMemberTaxNumber + * @param string|null $groupMemberTaxNumber groupMemberTaxNumber + * * @return self */ public function setGroupMemberTaxNumber($groupMemberTaxNumber) @@ -605,11 +620,12 @@ public function setGroupMemberTaxNumber($groupMemberTaxNumber) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -619,7 +635,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -631,8 +648,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -646,7 +665,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -655,7 +676,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/SpendingPaymentMethod.php b/src/Model/SpendingPaymentMethod.php index fe32240..435d2e5 100644 --- a/src/Model/SpendingPaymentMethod.php +++ b/src/Model/SpendingPaymentMethod.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * SpendingPaymentMethod Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class SpendingPaymentMethod @@ -102,7 +100,6 @@ class SpendingPaymentMethod /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/Model/SpendingSave.php b/src/Model/SpendingSave.php index ae28ec6..848eb95 100644 --- a/src/Model/SpendingSave.php +++ b/src/Model/SpendingSave.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * SpendingSave Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class SpendingSave implements \JsonSerializable, ArrayAccess, ModelInterface +class SpendingSave implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -82,9 +77,7 @@ class SpendingSave implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -157,6 +150,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -176,7 +171,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -185,6 +180,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -193,6 +191,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -310,6 +311,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -320,10 +322,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('currency', $data ?? [], null); $this->setIfExists('conversionRate', $data ?? [], null); @@ -347,7 +349,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -391,7 +395,6 @@ public function listInvalidProperties() if ($this->container['paymentMethod'] === null) { $invalidProperties[] = "'paymentMethod' can't be null"; } - return $invalidProperties; } @@ -406,6 +409,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets currency * @@ -419,7 +423,8 @@ public function getCurrency() /** * Sets currency * - * @param \Cone\Billingo\Model\Currency $currency currency + * @param \Cone\Billingo\Model\Currency $currency currency + * * @return self */ public function setCurrency($currency) @@ -445,7 +450,8 @@ public function getConversionRate() /** * Sets conversionRate * - * @param float|null $conversionRate conversionRate + * @param float|null $conversionRate conversionRate + * * @return self */ public function setConversionRate($conversionRate) @@ -471,7 +477,8 @@ public function getTotalGross() /** * Sets totalGross * - * @param float $totalGross totalGross + * @param float $totalGross totalGross + * * @return self */ public function setTotalGross($totalGross) @@ -497,7 +504,8 @@ public function getTotalGrossHuf() /** * Sets totalGrossHuf * - * @param float $totalGrossHuf totalGrossHuf + * @param float $totalGrossHuf totalGrossHuf + * * @return self */ public function setTotalGrossHuf($totalGrossHuf) @@ -523,7 +531,8 @@ public function getTotalVatAmount() /** * Sets totalVatAmount * - * @param float $totalVatAmount totalVatAmount + * @param float $totalVatAmount totalVatAmount + * * @return self */ public function setTotalVatAmount($totalVatAmount) @@ -549,7 +558,8 @@ public function getTotalVatAmountHuf() /** * Sets totalVatAmountHuf * - * @param float $totalVatAmountHuf totalVatAmountHuf + * @param float $totalVatAmountHuf totalVatAmountHuf + * * @return self */ public function setTotalVatAmountHuf($totalVatAmountHuf) @@ -575,7 +585,8 @@ public function getFulfillmentDate() /** * Sets fulfillmentDate * - * @param \DateTime $fulfillmentDate fulfillmentDate + * @param \DateTime $fulfillmentDate fulfillmentDate + * * @return self */ public function setFulfillmentDate($fulfillmentDate) @@ -601,7 +612,8 @@ public function getPaidAt() /** * Sets paidAt * - * @param \DateTime|null $paidAt paidAt + * @param \DateTime|null $paidAt paidAt + * * @return self */ public function setPaidAt($paidAt) @@ -627,7 +639,8 @@ public function getCategory() /** * Sets category * - * @param \Cone\Billingo\Model\Category $category category + * @param \Cone\Billingo\Model\Category $category category + * * @return self */ public function setCategory($category) @@ -653,7 +666,8 @@ public function getComment() /** * Sets comment * - * @param string|null $comment comment + * @param string|null $comment comment + * * @return self */ public function setComment($comment) @@ -679,7 +693,8 @@ public function getInvoiceNumber() /** * Sets invoiceNumber * - * @param string|null $invoiceNumber invoiceNumber + * @param string|null $invoiceNumber invoiceNumber + * * @return self */ public function setInvoiceNumber($invoiceNumber) @@ -705,7 +720,8 @@ public function getInvoiceDate() /** * Sets invoiceDate * - * @param \DateTime|null $invoiceDate invoiceDate + * @param \DateTime|null $invoiceDate invoiceDate + * * @return self */ public function setInvoiceDate($invoiceDate) @@ -731,7 +747,8 @@ public function getDueDate() /** * Sets dueDate * - * @param \DateTime|null $dueDate dueDate + * @param \DateTime|null $dueDate dueDate + * * @return self */ public function setDueDate($dueDate) @@ -757,7 +774,8 @@ public function getPaymentMethod() /** * Sets paymentMethod * - * @param \Cone\Billingo\Model\SpendingPaymentMethod $paymentMethod paymentMethod + * @param \Cone\Billingo\Model\SpendingPaymentMethod $paymentMethod paymentMethod + * * @return self */ public function setPaymentMethod($paymentMethod) @@ -783,7 +801,8 @@ public function getPartnerId() /** * Sets partnerId * - * @param int|null $partnerId partnerId + * @param int|null $partnerId partnerId + * * @return self */ public function setPartnerId($partnerId) @@ -795,11 +814,12 @@ public function setPartnerId($partnerId) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -809,7 +829,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -821,8 +842,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -836,7 +859,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -845,7 +870,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index dc07db1..85de4d2 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * Subscription Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class Subscription implements \JsonSerializable, ArrayAccess, ModelInterface +class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -69,9 +64,7 @@ class Subscription implements \JsonSerializable, ArrayAccess, ModelInterface * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -118,6 +111,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -137,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -146,6 +141,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -154,6 +152,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -232,6 +233,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -242,10 +244,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('expirationDate', $data ?? [], null); $this->setIfExists('features', $data ?? [], null); @@ -256,7 +258,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -290,6 +294,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets expirationDate * @@ -303,7 +308,8 @@ public function getExpirationDate() /** * Sets expirationDate * - * @param \DateTime|null $expirationDate expirationDate + * @param \DateTime|null $expirationDate expirationDate + * * @return self */ public function setExpirationDate($expirationDate) @@ -329,7 +335,8 @@ public function getFeatures() /** * Sets features * - * @param \Cone\Billingo\Model\Feature[]|null $features features + * @param \Cone\Billingo\Model\Feature[]|null $features features + * * @return self */ public function setFeatures($features) @@ -341,11 +348,12 @@ public function setFeatures($features) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -355,7 +363,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -367,8 +376,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -382,7 +393,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -391,7 +404,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/SubscriptionErrorResponse.php b/src/Model/SubscriptionErrorResponse.php index 3b83b44..dc61e44 100644 --- a/src/Model/SubscriptionErrorResponse.php +++ b/src/Model/SubscriptionErrorResponse.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * SubscriptionErrorResponse Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,46 +44,46 @@ class SubscriptionErrorResponse implements ModelInterface, ArrayAccess, \JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'SubscriptionErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ - 'error' => '\Cone\Billingo\Model\ClientError' + 'error' => '\Cone\Billingo\Model\ClientError', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ - 'error' => null + 'error' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ - 'error' => false + 'error' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -121,7 +119,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -131,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -167,7 +165,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'error' => 'error' + 'error' => 'error', ]; /** @@ -176,7 +174,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'error' => 'setError' + 'error' => 'setError', ]; /** @@ -185,7 +183,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'error' => 'getError' + 'error' => 'getError', ]; /** @@ -249,14 +247,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -319,9 +317,9 @@ public function setError($error) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -331,7 +329,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -361,7 +359,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -380,7 +378,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -406,5 +404,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/TaxNumber.php b/src/Model/TaxNumber.php index 4f67001..3362cf3 100644 --- a/src/Model/TaxNumber.php +++ b/src/Model/TaxNumber.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * TaxNumber Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class TaxNumber implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'TaxNumber'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'taxNumber' => 'string', - 'result' => '\Cone\Billingo\Model\CheckTaxNumberMessage' + 'result' => '\Cone\Billingo\Model\CheckTaxNumberMessage', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'taxNumber' => null, - 'result' => null + 'result' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'taxNumber' => false, - 'result' => false + 'result' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'taxNumber' => 'tax_number', - 'result' => 'result' + 'result' => 'result', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'taxNumber' => 'setTaxNumber', - 'result' => 'setResult' + 'result' => 'setResult', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'taxNumber' => 'getTaxNumber', - 'result' => 'getResult' + 'result' => 'getResult', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setResult($result) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index bc628d9..7e39006 100644 --- a/src/Model/TooManyRequestsResponse.php +++ b/src/Model/TooManyRequestsResponse.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -37,14 +35,11 @@ * TooManyRequestsResponse Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech - * * @implements \ArrayAccess */ -class TooManyRequestsResponse implements \JsonSerializable, ArrayAccess, ModelInterface +class TooManyRequestsResponse implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -68,9 +63,7 @@ class TooManyRequestsResponse implements \JsonSerializable, ArrayAccess, ModelIn * Array of property to format mappings. Used for (de)serialization * * @var string[] - * * @phpstan-var array - * * @psalm-var array */ protected static $openAPIFormats = [ @@ -115,6 +108,8 @@ public static function openAPIFormats() /** * Array of nullable properties + * + * @return array */ protected static function openAPINullables(): array { @@ -134,7 +129,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param bool[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -143,6 +138,9 @@ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): /** * Checks if a property is nullable + * + * @param string $property + * @return bool */ public static function isNullable(string $property): bool { @@ -151,6 +149,9 @@ public static function isNullable(string $property): bool /** * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool */ public function isNullableSetToNull(string $property): bool { @@ -226,6 +227,7 @@ public function getModelName() return self::$openAPIModelName; } + /** * Associative array for storing property values * @@ -236,10 +238,10 @@ public function getModelName() /** * Constructor * - * @param mixed[] $data Associated array of property values + * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(?array $data = null) + public function __construct(array $data = null) { $this->setIfExists('error', $data ?? [], null); } @@ -249,7 +251,9 @@ public function __construct(?array $data = null) * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the * $this->openAPINullablesSetToNull array * - * @param mixed $defaultValue + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { @@ -283,6 +287,7 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + /** * Gets error * @@ -296,7 +301,8 @@ public function getError() /** * Sets error * - * @param \Cone\Billingo\Model\ClientError|null $error error + * @param \Cone\Billingo\Model\ClientError|null $error error + * * @return self */ public function setError($error) @@ -308,11 +314,12 @@ public function setError($error) return $this; } - /** * Returns true if offset exists. False otherwise. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return bool */ public function offsetExists($offset): bool { @@ -322,7 +329,8 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param int $offset Offset + * @param int $offset Offset + * * @return mixed|null */ #[\ReturnTypeWillChange] @@ -334,8 +342,10 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param int|null $offset Offset - * @param mixed $value Value to be set + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void */ public function offsetSet($offset, $value): void { @@ -349,7 +359,9 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param int $offset Offset + * @param int $offset Offset + * + * @return void */ public function offsetUnset($offset): void { @@ -358,7 +370,6 @@ public function offsetUnset($offset): void /** * Serializes the object to a value that can be serialized natively by json_encode(). - * * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php * * @return mixed Returns data which can be serialized by json_encode(), which is a value diff --git a/src/Model/UnitPriceType.php b/src/Model/UnitPriceType.php index cf86c6e..8b2ff7f 100644 --- a/src/Model/UnitPriceType.php +++ b/src/Model/UnitPriceType.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -28,13 +27,13 @@ */ namespace Cone\Billingo\Model; -use \Cone\Billingo\ObjectSerializer; + +use Cone\Billingo\ObjectSerializer; /** * UnitPriceType Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -55,9 +54,7 @@ public static function getAllowableEnumValues() { return [ self::GROSS, - self::NET + self::NET, ]; } } - - diff --git a/src/Model/ValidationError.php b/src/Model/ValidationError.php index 133afd6..67af6bb 100644 --- a/src/Model/ValidationError.php +++ b/src/Model/ValidationError.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ValidationError Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class ValidationError implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ValidationError'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'field' => 'string', - 'message' => 'string' + 'message' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'field' => null, - 'message' => null + 'message' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'field' => false, - 'message' => false + 'message' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'field' => 'field', - 'message' => 'message' + 'message' => 'message', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'field' => 'setField', - 'message' => 'setMessage' + 'message' => 'setMessage', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'field' => 'getField', - 'message' => 'getMessage' + 'message' => 'getMessage', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setMessage($message) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/ValidationErrorResponse.php b/src/Model/ValidationErrorResponse.php index 556feb5..2bc2e8b 100644 --- a/src/Model/ValidationErrorResponse.php +++ b/src/Model/ValidationErrorResponse.php @@ -5,7 +5,6 @@ * PHP version 7.4 * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech */ @@ -29,14 +28,13 @@ namespace Cone\Billingo\Model; -use \ArrayAccess; -use \Cone\Billingo\ObjectSerializer; +use ArrayAccess; +use Cone\Billingo\ObjectSerializer; /** * ValidationErrorResponse Class Doc Comment * * @category Class - * @package Cone\Billingo * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess @@ -46,49 +44,49 @@ class ValidationErrorResponse implements ModelInterface, ArrayAccess, \JsonSeria public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ValidationErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'message' => 'string', - 'errors' => '\Cone\Billingo\Model\ValidationError[]' + 'errors' => '\Cone\Billingo\Model\ValidationError[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'message' => null, - 'errors' => null + 'errors' => null, ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var bool[] + */ protected static array $openAPINullables = [ 'message' => false, - 'errors' => false + 'errors' => false, ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var bool[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -124,7 +122,7 @@ protected static function openAPINullables(): array /** * Array of nullable field names deliberately set to null * - * @return boolean[] + * @return bool[] */ private function getOpenAPINullablesSetToNull(): array { @@ -134,7 +132,7 @@ private function getOpenAPINullablesSetToNull(): array /** * Setter - Array of nullable field names deliberately set to null * - * @param boolean[] $openAPINullablesSetToNull + * @param bool[] $openAPINullablesSetToNull */ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void { @@ -171,7 +169,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'message' => 'message', - 'errors' => 'errors' + 'errors' => 'errors', ]; /** @@ -181,7 +179,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'message' => 'setMessage', - 'errors' => 'setErrors' + 'errors' => 'setErrors', ]; /** @@ -191,7 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'message' => 'getMessage', - 'errors' => 'getErrors' + 'errors' => 'getErrors', ]; /** @@ -256,14 +254,14 @@ public function __construct(array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { @@ -353,9 +351,9 @@ public function setErrors($errors) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset): bool { @@ -365,7 +363,7 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed|null */ @@ -395,7 +393,7 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -414,7 +412,7 @@ public function offsetUnset($offset): void #[\ReturnTypeWillChange] public function jsonSerialize() { - return ObjectSerializer::sanitizeForSerialization($this); + return ObjectSerializer::sanitizeForSerialization($this); } /** @@ -440,5 +438,3 @@ public function toHeaderValue() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/src/Model/Vat.php b/src/Model/Vat.php index 3318561..0b6a501 100644 --- a/src/Model/Vat.php +++ b/src/Model/Vat.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,13 +28,13 @@ namespace Cone\Billingo\Model; +use Cone\Billingo\ObjectSerializer; + /** * Vat Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class Vat @@ -130,7 +128,6 @@ class Vat /** * Gets allowable values of the enum - * * @return string[] */ public static function getAllowableEnumValues() diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index b61854d..258348e 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -5,9 +5,7 @@ * PHP version 7.4 * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ @@ -30,16 +28,14 @@ namespace Cone\Billingo; -use Cone\Billingo\Model\ModelInterface; use GuzzleHttp\Psr7\Utils; +use Cone\Billingo\Model\ModelInterface; /** * ObjectSerializer Class Doc Comment * * @category Class - * * @author OpenAPI Generator team - * * @link https://openapi-generator.tech */ class ObjectSerializer @@ -50,7 +46,7 @@ class ObjectSerializer /** * Change the date format * - * @param string $format the new date format to use + * @param string $format the new date format to use */ public static function setDateTimeFormat($format) { @@ -60,14 +56,15 @@ public static function setDateTimeFormat($format) /** * Serialize data * - * @param mixed $data the data to serialize - * @param string $type the OpenAPIToolsType of the data - * @param string $format the format of the OpenAPITools type of the data + * @param mixed $data the data to serialize + * @param string $type the OpenAPIToolsType of the data + * @param string $format the format of the OpenAPITools type of the data + * * @return scalar|object|array|null serialized form of $data */ public static function sanitizeForSerialization($data, $type = null, $format = null) { - if (is_scalar($data) || $data === null) { + if (is_scalar($data) || null === $data) { return $data; } @@ -79,7 +76,6 @@ public static function sanitizeForSerialization($data, $type = null, $format = n foreach ($data as $property => $value) { $data[$property] = self::sanitizeForSerialization($value); } - return $data; } @@ -90,12 +86,12 @@ public static function sanitizeForSerialization($data, $type = null, $format = n foreach ($data::openAPITypes() as $property => $openAPIType) { $getter = $data::getters()[$property]; $value = $data->$getter(); - if ($value !== null && ! in_array($openAPIType, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { + if ($value !== null && !in_array($openAPIType, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { $callable = [$openAPIType, 'getAllowableEnumValues']; if (is_callable($callable)) { /** array $callable */ $allowedEnumTypes = $callable(); - if (! in_array($value, $allowedEnumTypes, true)) { + if (!in_array($value, $allowedEnumTypes, true)) { $imploded = implode("', '", $allowedEnumTypes); throw new \InvalidArgumentException("Invalid value for enum '$openAPIType', must be one of: '$imploded'"); } @@ -106,14 +102,13 @@ public static function sanitizeForSerialization($data, $type = null, $format = n } } } else { - foreach ($data as $property => $value) { + foreach($data as $property => $value) { $values[$property] = self::sanitizeForSerialization($value); } } - - return (object) $values; + return (object)$values; } else { - return (string) $data; + return (string)$data; } } @@ -121,7 +116,8 @@ public static function sanitizeForSerialization($data, $type = null, $format = n * Sanitize filename by removing path. * e.g. ../../sun.gif becomes sun.gif * - * @param string $filename filename to be sanitized + * @param string $filename filename to be sanitized + * * @return string the sanitized filename */ public static function sanitizeFilename($filename) @@ -136,12 +132,13 @@ public static function sanitizeFilename($filename) /** * Shorter timestamp microseconds to 6 digits length. * - * @param string $timestamp Original timestamp + * @param string $timestamp Original timestamp + * * @return string the shorten timestamp */ public static function sanitizeTimestamp($timestamp) { - if (! is_string($timestamp)) { + if (!is_string($timestamp)) { return $timestamp; } @@ -152,7 +149,8 @@ public static function sanitizeTimestamp($timestamp) * Take value and turn it into a string suitable for inclusion in * the path, by url-encoding. * - * @param string $value a string which will be part of the path + * @param string $value a string which will be part of the path + * * @return string the serialized object */ public static function toPathValue($value) @@ -163,13 +161,15 @@ public static function toPathValue($value) /** * Checks if a value is empty, based on its OpenAPI type. * - * @param mixed $value + * @param mixed $value + * @param string $openApiType + * * @return bool true if $value is empty */ private static function isEmptyValue($value, string $openApiType): bool { // If empty() returns false, it is not empty regardless of its type. - if (! empty($value)) { + if (!empty($value)) { return false; } @@ -193,7 +193,7 @@ private static function isEmptyValue($value, string $openApiType): bool // For boolean values, '' is considered empty case 'bool': case 'boolean': - return ! in_array($value, [false, 0], true); + return !in_array($value, [false, 0], true); // For all the other types, any value at this point can be considered empty. default: @@ -205,12 +205,14 @@ private static function isEmptyValue($value, string $openApiType): bool * Take query parameter properties and turn it into an array suitable for * native http_build_query or GuzzleHttp\Psr7\Query::build. * - * @param mixed $value Parameter value - * @param string $paramName Parameter name - * @param string $openApiType OpenAPIType eg. array or object - * @param string $style Parameter serialization style - * @param bool $explode Parameter explode option - * @param bool $required Whether query param is required or not + * @param mixed $value Parameter value + * @param string $paramName Parameter name + * @param string $openApiType OpenAPIType eg. array or object + * @param string $style Parameter serialization style + * @param bool $explode Parameter explode option + * @param bool $required Whether query param is required or not + * + * @return array */ public static function toQueryValue( $value, @@ -234,17 +236,17 @@ public static function toQueryValue( } // Handle DateTime objects in query - if ($openApiType === '\\DateTime' && $value instanceof \DateTime) { + if($openApiType === "\\DateTime" && $value instanceof \DateTime) { return ["{$paramName}" => $value->format(self::$dateTimeFormat)]; } $query = []; - $value = (in_array($openApiType, ['object', 'array'], true)) ? (array) $value : $value; + $value = (in_array($openApiType, ['object', 'array'], true)) ? (array)$value : $value; // since \GuzzleHttp\Psr7\Query::build fails with nested arrays // need to flatten array first $flattenArray = function ($arr, $name, &$result = []) use (&$flattenArray, $style, $explode) { - if (! is_array($arr)) { + if (!is_array($arr)) { return $arr; } @@ -254,14 +256,13 @@ public static function toQueryValue( if (is_array($v)) { $flattenArray($v, $prop, $result); } else { - if ($style !== 'deepObject' && ! $explode) { + if ($style !== 'deepObject' && !$explode) { // push key itself $result[] = $prop; } $result[$prop] = $v; } } - return $result; }; @@ -271,12 +272,12 @@ public static function toQueryValue( return $value; } - if ($openApiType === 'boolean' && is_bool($value)) { + if ('boolean' === $openApiType && is_bool($value)) { $value = self::convertBoolToQueryStringFormat($value); } // handle style in serializeCollection - $query[$paramName] = ($explode) ? $value : self::serializeCollection((array) $value, $style); + $query[$paramName] = ($explode) ? $value : self::serializeCollection((array)$value, $style); return $query; } @@ -284,12 +285,13 @@ public static function toQueryValue( /** * Convert boolean value to format for query string. * - * @param bool $value Boolean value + * @param bool $value Boolean value + * * @return int|string Boolean value in format */ public static function convertBoolToQueryStringFormat(bool $value) { - if (Configuration::getDefaultConfiguration()->getBooleanFormatForQueryString() == Configuration::BOOLEAN_FORMAT_STRING) { + if (Configuration::BOOLEAN_FORMAT_STRING === Configuration::getDefaultConfiguration()->getBooleanFormatForQueryString()) { return $value ? 'true' : 'false'; } @@ -301,7 +303,8 @@ public static function convertBoolToQueryStringFormat(bool $value) * the header. If it's a string, pass through unchanged * If it's a datetime object, format it in ISO8601 * - * @param string $value a string which will be part of the header + * @param string $value a string which will be part of the header + * * @return string the header string */ public static function toHeaderValue($value) @@ -319,7 +322,8 @@ public static function toHeaderValue($value) * the http body (form parameter). If it's a string, pass through unchanged * If it's a datetime object, format it in ISO8601 * - * @param string|\SplFileObject $value the value of the form parameter + * @param string|\SplFileObject $value the value of the form parameter + * * @return string the form string */ public static function toFormValue($value) @@ -337,7 +341,8 @@ public static function toFormValue($value) * If it's a datetime object, format it in ISO8601 * If it's a boolean, convert it to "true" or "false". * - * @param string|bool|\DateTime $value the value of the parameter + * @param string|bool|\DateTime $value the value of the parameter + * * @return string the header string */ public static function toString($value) @@ -354,15 +359,16 @@ public static function toString($value) /** * Serialize an array to a string. * - * @param array $collection collection to serialize to a string - * @param string $style the format use for serialization (csv, + * @param array $collection collection to serialize to a string + * @param string $style the format use for serialization (csv, * ssv, tsv, pipes, multi) - * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array + * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array + * * @return string */ public static function serializeCollection(array $collection, $style, $allowCollectionFormatMulti = false) { - if ($allowCollectionFormatMulti && ($style === 'multi')) { + if ($allowCollectionFormatMulti && ('multi' === $style)) { // http_build_query() almost does the job for us. We just // need to fix the result of multidimensional arrays. return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); @@ -390,22 +396,23 @@ public static function serializeCollection(array $collection, $style, $allowColl /** * Deserialize a JSON string into an object * - * @param mixed $data object or primitive to be deserialized - * @param string $class class name is passed as a string - * @param string[] $httpHeaders HTTP headers - * @param string $discriminator discriminator if polymorphism is used + * @param mixed $data object or primitive to be deserialized + * @param string $class class name is passed as a string + * @param string[] $httpHeaders HTTP headers + * @param string $discriminator discriminator if polymorphism is used + * * @return object|array|null a single or an array of $class instances */ public static function deserialize($data, $class, $httpHeaders = null) { - if ($data === null) { + if (null === $data) { return null; } if (strcasecmp(substr($class, -2), '[]') === 0) { $data = is_string($data) ? json_decode($data) : $data; - if (! is_array($data)) { + if (!is_array($data)) { throw new \InvalidArgumentException("Invalid array '$class'"); } @@ -414,7 +421,6 @@ public static function deserialize($data, $class, $httpHeaders = null) foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass, null); } - return $values; } @@ -423,24 +429,21 @@ public static function deserialize($data, $class, $httpHeaders = null) settype($data, 'array'); $inner = substr($class, 4, -1); $deserialized = []; - if (strrpos($inner, ',') !== false) { + if (strrpos($inner, ",") !== false) { $subClass_array = explode(',', $inner, 2); $subClass = $subClass_array[1]; foreach ($data as $key => $value) { $deserialized[$key] = self::deserialize($value, $subClass, null); } } - return $deserialized; } if ($class === 'object') { settype($data, 'array'); - return $data; } elseif ($class === 'mixed') { settype($data, gettype($data)); - return $data; } @@ -451,7 +454,7 @@ public static function deserialize($data, $class, $httpHeaders = null) // what is meant. The invalid empty string is probably to // be interpreted as a missing field/value. Let's handle // this graceful. - if (! empty($data)) { + if (!empty($data)) { try { return new \DateTime($data); } catch (\Exception $exception) { @@ -476,7 +479,7 @@ public static function deserialize($data, $class, $httpHeaders = null) && array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match) ) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath().DIRECTORY_SEPARATOR.self::sanitizeFilename($match[1]); + $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); } else { $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); } @@ -493,28 +496,27 @@ public static function deserialize($data, $class, $httpHeaders = null) /** @psalm-suppress ParadoxicalCondition */ if (in_array($class, ['\DateTime', '\SplFileObject', 'array', 'bool', 'boolean', 'byte', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { settype($data, $class); - return $data; } + if (method_exists($class, 'getAllowableEnumValues')) { - if (! in_array($data, $class::getAllowableEnumValues(), true)) { + if (!in_array($data, $class::getAllowableEnumValues(), true)) { $imploded = implode("', '", $class::getAllowableEnumValues()); throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); } - return $data; } else { $data = is_string($data) ? json_decode($data) : $data; if (is_array($data)) { - $data = (object) $data; + $data = (object)$data; } // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; - if (! empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\Cone\Billingo\Model\\'.$data->{$discriminator}; + if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { + $subclass = '\Cone\Billingo\Model\\' . $data->{$discriminator}; if (is_subclass_of($subclass, $class)) { $class = $subclass; } @@ -525,11 +527,11 @@ public static function deserialize($data, $class, $httpHeaders = null) foreach ($instance::openAPITypes() as $property => $type) { $propertySetter = $instance::setters()[$property]; - if (! isset($propertySetter)) { + if (!isset($propertySetter)) { continue; } - if (! isset($data->{$instance::attributeMap()[$property]})) { + if (!isset($data->{$instance::attributeMap()[$property]})) { if ($instance::isNullable($property)) { $instance->$propertySetter(null); } @@ -542,20 +544,20 @@ public static function deserialize($data, $class, $httpHeaders = null) $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); } } - return $instance; } } /** * Native `http_build_query` wrapper. - * * @see https://www.php.net/manual/en/function.http-build-query * - * @param array|object $data May be an array or object containing properties. - * @param string $numeric_prefix If numeric indices are used in the base array and this parameter is provided, it will be prepended to the numeric index for elements in the base array only. - * @param string|null $arg_separator arg_separator.output is used to separate arguments but may be overridden by specifying this parameter. - * @param int $encoding_type Encoding type. By default, PHP_QUERY_RFC1738. + * @param array|object $data May be an array or object containing properties. + * @param string $numeric_prefix If numeric indices are used in the base array and this parameter is provided, it will be prepended to the numeric index for elements in the base array only. + * @param string|null $arg_separator arg_separator.output is used to separate arguments but may be overridden by specifying this parameter. + * @param int $encoding_type Encoding type. By default, PHP_QUERY_RFC1738. + * + * @return string */ public static function buildQuery( $data,