diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 09a6d30..4bc5d61 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.8.0 +7.9.0 diff --git a/src/Api/BankAccountApi.php b/src/Api/BankAccountApi.php index 9c781f9..29fe181 100644 --- a/src/Api/BankAccountApi.php +++ b/src/Api/BankAccountApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -100,7 +100,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -189,18 +189,6 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -421,6 +409,19 @@ public function createBankAccountWithHttpInfo($bankAccount, string $contentType ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\BankAccount'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -744,18 +745,6 @@ public function deleteBankAccountWithHttpInfo($id, string $contentType = self::c $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -1035,18 +1024,6 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1267,6 +1244,19 @@ public function getBankAccountWithHttpInfo($id, string $contentType = self::cont ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\BankAccount'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1594,18 +1584,6 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1799,6 +1777,19 @@ public function listBankAccountWithHttpInfo($page = null, $perPage = 25, string ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\BankAccountList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2132,18 +2123,6 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -2391,6 +2370,19 @@ public function updateBankAccountWithHttpInfo($id, $bankAccount, string $content ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\BankAccount'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/CurrencyApi.php b/src/Api/CurrencyApi.php index 48a969b..76ffc63 100644 --- a/src/Api/CurrencyApi.php +++ b/src/Api/CurrencyApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -88,7 +88,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -126,8 +126,8 @@ public function getConfig() * * Get currencies exchange rate. * - * @param Currency $from from (required) - * @param Currency $to to (required) + * @param \Cone\Billingo\Model\Currency $from from (required) + * @param \Cone\Billingo\Model\Currency $to to (required) * @param \DateTime $date date (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getConversionRate'] to see the possible values for this operation * @@ -146,8 +146,8 @@ public function getConversionRate($from, $to, $date = null, string $contentType * * Get currencies exchange rate. * - * @param Currency $from (required) - * @param Currency $to (required) + * @param \Cone\Billingo\Model\Currency $from (required) + * @param \Cone\Billingo\Model\Currency $to (required) * @param \DateTime $date (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getConversionRate'] to see the possible values for this operation * @@ -181,18 +181,6 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -386,6 +374,19 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\ConversationRate'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -482,8 +483,8 @@ public function getConversionRateWithHttpInfo($from, $to, $date = null, string $ * * Get currencies exchange rate. * - * @param Currency $from (required) - * @param Currency $to (required) + * @param \Cone\Billingo\Model\Currency $from (required) + * @param \Cone\Billingo\Model\Currency $to (required) * @param \DateTime $date (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getConversionRate'] to see the possible values for this operation * @@ -505,8 +506,8 @@ function ($response) { * * Get currencies exchange rate. * - * @param Currency $from (required) - * @param Currency $to (required) + * @param \Cone\Billingo\Model\Currency $from (required) + * @param \Cone\Billingo\Model\Currency $to (required) * @param \DateTime $date (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getConversionRate'] to see the possible values for this operation * @@ -557,8 +558,8 @@ function ($exception) { /** * Create request for operation 'getConversionRate' * - * @param Currency $from (required) - * @param Currency $to (required) + * @param \Cone\Billingo\Model\Currency $from (required) + * @param \Cone\Billingo\Model\Currency $to (required) * @param \DateTime $date (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getConversionRate'] to see the possible values for this operation * diff --git a/src/Api/DocumentApi.php b/src/Api/DocumentApi.php index 18fdf07..e2392d2 100644 --- a/src/Api/DocumentApi.php +++ b/src/Api/DocumentApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -148,7 +148,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -236,18 +236,6 @@ public function archiveDocumentWithHttpInfo($id, string $contentType = self::con $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -537,18 +525,6 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -796,6 +772,19 @@ public function cancelDocumentWithHttpInfo($id, $documentCancellation = null, st ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1140,18 +1129,6 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -1372,6 +1349,19 @@ public function createDocumentWithHttpInfo($documentInsert, string $contentType ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1698,18 +1688,6 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1957,6 +1935,19 @@ public function createDocumentFromDraftWithHttpInfo($id, $documentInsert, string ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2309,18 +2300,6 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -2568,6 +2547,19 @@ public function createDocumentFromProformaWithHttpInfo($id, $invoiceSettings = n ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2914,18 +2906,6 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -3173,6 +3153,19 @@ public function createModificationDocumentWithHttpInfo($id, $modificationDocumen ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -3523,18 +3516,6 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -3755,6 +3736,19 @@ public function createReceiptWithHttpInfo($receiptInsert, string $contentType = ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -4081,18 +4075,6 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -4340,6 +4322,19 @@ public function createReceiptFromDraftWithHttpInfo($id, $receiptInsert, string $ ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -4689,18 +4684,6 @@ public function deleteDocumentWithHttpInfo($id, string $contentType = self::cont $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -4980,18 +4963,6 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -5212,6 +5183,19 @@ public function deletePaymentWithHttpInfo($id, string $contentType = self::conte ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -5537,18 +5521,6 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -5796,6 +5768,19 @@ public function documentCopyWithHttpInfo($id, string $contentType = self::conten ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -6129,18 +6114,6 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -6388,6 +6361,19 @@ public function downloadDocumentWithHttpInfo($id, string $contentType = self::co ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\SplFileObject'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -6721,18 +6707,6 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -6953,6 +6927,19 @@ public function getDocumentWithHttpInfo($id, string $contentType = self::content ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -7278,18 +7265,6 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -7483,6 +7458,19 @@ public function getDocumentByVendorIdWithHttpInfo($vendorId, string $contentType ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Document'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -7800,18 +7788,6 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -8032,6 +8008,19 @@ public function getOnlineSzamlaStatusWithHttpInfo($id, string $contentType = sel ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\OnlineSzamlaStatus'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -8357,18 +8346,6 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -8589,6 +8566,19 @@ public function getPaymentWithHttpInfo($id, string $contentType = self::contentT ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -8914,18 +8904,6 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -9146,6 +9124,19 @@ public function getPublicUrlWithHttpInfo($id, string $contentType = self::conten ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\DocumentPublicUrl'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -9424,15 +9415,15 @@ public function getPublicUrlRequest($id, string $contentType = self::contentType * @param int $perPage perPage (optional, default to 25) * @param int $blockId Filter documents by the identifier of your DocumentBlock. (optional) * @param int $partnerId Filter documents by the identifier of your Partner. (optional) - * @param PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) - * @param PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) + * @param \Cone\Billingo\Model\PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) * @param \DateTime $startDate Filter documents by their invoice date. (optional) * @param \DateTime $endDate Filter documents by their invoice date. (optional) * @param int $startNumber Starting number of the document, should not contain year or any other formatting. Required if `start_year` given (optional) * @param int $endNumber Ending number of the document, should not contain year or any other formatting. Required if `end_year` given (optional) * @param int $startYear Year for `start_number` parameter. Required if `start_number` given. (optional) * @param int $endYear Year for `end_number` parameter. Required if `end_number` given. (optional) - * @param DocumentType $type Filter documents by type (optional) + * @param \Cone\Billingo\Model\DocumentType $type Filter documents by type (optional) * @param string $query Filter documents by the given text (optional) * @param \DateTime $paidStartDate Filter documents by their payment date. (optional) * @param \DateTime $paidEndDate Filter documents by their payment date. (optional) @@ -9460,15 +9451,15 @@ public function listDocument($page = null, $perPage = 25, $blockId = null, $part * @param int $perPage (optional, default to 25) * @param int $blockId Filter documents by the identifier of your DocumentBlock. (optional) * @param int $partnerId Filter documents by the identifier of your Partner. (optional) - * @param PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) - * @param PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) + * @param \Cone\Billingo\Model\PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) * @param \DateTime $startDate Filter documents by their invoice date. (optional) * @param \DateTime $endDate Filter documents by their invoice date. (optional) * @param int $startNumber Starting number of the document, should not contain year or any other formatting. Required if `start_year` given (optional) * @param int $endNumber Ending number of the document, should not contain year or any other formatting. Required if `end_year` given (optional) * @param int $startYear Year for `start_number` parameter. Required if `start_number` given. (optional) * @param int $endYear Year for `end_number` parameter. Required if `end_number` given. (optional) - * @param DocumentType $type Filter documents by type (optional) + * @param \Cone\Billingo\Model\DocumentType $type Filter documents by type (optional) * @param string $query Filter documents by the given text (optional) * @param \DateTime $paidStartDate Filter documents by their payment date. (optional) * @param \DateTime $paidEndDate Filter documents by their payment date. (optional) @@ -9507,18 +9498,6 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -9712,6 +9691,19 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\DocumentList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -9812,15 +9804,15 @@ public function listDocumentWithHttpInfo($page = null, $perPage = 25, $blockId = * @param int $perPage (optional, default to 25) * @param int $blockId Filter documents by the identifier of your DocumentBlock. (optional) * @param int $partnerId Filter documents by the identifier of your Partner. (optional) - * @param PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) - * @param PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) + * @param \Cone\Billingo\Model\PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) * @param \DateTime $startDate Filter documents by their invoice date. (optional) * @param \DateTime $endDate Filter documents by their invoice date. (optional) * @param int $startNumber Starting number of the document, should not contain year or any other formatting. Required if `start_year` given (optional) * @param int $endNumber Ending number of the document, should not contain year or any other formatting. Required if `end_year` given (optional) * @param int $startYear Year for `start_number` parameter. Required if `start_number` given. (optional) * @param int $endYear Year for `end_number` parameter. Required if `end_number` given. (optional) - * @param DocumentType $type Filter documents by type (optional) + * @param \Cone\Billingo\Model\DocumentType $type Filter documents by type (optional) * @param string $query Filter documents by the given text (optional) * @param \DateTime $paidStartDate Filter documents by their payment date. (optional) * @param \DateTime $paidEndDate Filter documents by their payment date. (optional) @@ -9851,15 +9843,15 @@ function ($response) { * @param int $perPage (optional, default to 25) * @param int $blockId Filter documents by the identifier of your DocumentBlock. (optional) * @param int $partnerId Filter documents by the identifier of your Partner. (optional) - * @param PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) - * @param PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) + * @param \Cone\Billingo\Model\PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) * @param \DateTime $startDate Filter documents by their invoice date. (optional) * @param \DateTime $endDate Filter documents by their invoice date. (optional) * @param int $startNumber Starting number of the document, should not contain year or any other formatting. Required if `start_year` given (optional) * @param int $endNumber Ending number of the document, should not contain year or any other formatting. Required if `end_year` given (optional) * @param int $startYear Year for `start_number` parameter. Required if `start_number` given. (optional) * @param int $endYear Year for `end_number` parameter. Required if `end_number` given. (optional) - * @param DocumentType $type Filter documents by type (optional) + * @param \Cone\Billingo\Model\DocumentType $type Filter documents by type (optional) * @param string $query Filter documents by the given text (optional) * @param \DateTime $paidStartDate Filter documents by their payment date. (optional) * @param \DateTime $paidEndDate Filter documents by their payment date. (optional) @@ -9919,15 +9911,15 @@ function ($exception) { * @param int $perPage (optional, default to 25) * @param int $blockId Filter documents by the identifier of your DocumentBlock. (optional) * @param int $partnerId Filter documents by the identifier of your Partner. (optional) - * @param PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) - * @param PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethod Filter documents by PaymentMethod value. (optional) + * @param \Cone\Billingo\Model\PaymentStatus $paymentStatus Filter documents by PaymentStatus value. (optional) * @param \DateTime $startDate Filter documents by their invoice date. (optional) * @param \DateTime $endDate Filter documents by their invoice date. (optional) * @param int $startNumber Starting number of the document, should not contain year or any other formatting. Required if `start_year` given (optional) * @param int $endNumber Ending number of the document, should not contain year or any other formatting. Required if `end_year` given (optional) * @param int $startYear Year for `start_number` parameter. Required if `start_number` given. (optional) * @param int $endYear Year for `end_number` parameter. Required if `end_number` given. (optional) - * @param DocumentType $type Filter documents by type (optional) + * @param \Cone\Billingo\Model\DocumentType $type Filter documents by type (optional) * @param string $query Filter documents by the given text (optional) * @param \DateTime $paidStartDate Filter documents by their payment date. (optional) * @param \DateTime $paidEndDate Filter documents by their payment date. (optional) @@ -10266,18 +10258,6 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -10498,6 +10478,19 @@ public function posPrintWithHttpInfo($id, $size, string $contentType = self::con ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\SplFileObject'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -10844,18 +10837,6 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -11103,6 +11084,19 @@ public function sendDocumentWithHttpInfo($id, $sendDocument = null, string $cont ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\SendDocument'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -11449,18 +11443,6 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -11708,6 +11690,19 @@ public function updatePaymentWithHttpInfo($id, $paymentHistory, string $contentT ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\PaymentHistory[]'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/DocumentBlockApi.php b/src/Api/DocumentBlockApi.php index bde25e1..124098a 100644 --- a/src/Api/DocumentBlockApi.php +++ b/src/Api/DocumentBlockApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -88,7 +88,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -128,7 +128,7 @@ public function getConfig() * * @param int $page page (optional) * @param int $perPage perPage (optional, default to 25) - * @param DocumentBlockType $type Filter document blocks by type (optional) + * @param \Cone\Billingo\Model\DocumentBlockType $type Filter document blocks by type (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listDocumentBlock'] to see the possible values for this operation * * @throws \Cone\Billingo\ApiException on non-2xx response or if the response body is not in the expected format @@ -148,7 +148,7 @@ public function listDocumentBlock($page = null, $perPage = 25, $type = null, str * * @param int $page (optional) * @param int $perPage (optional, default to 25) - * @param DocumentBlockType $type Filter document blocks by type (optional) + * @param \Cone\Billingo\Model\DocumentBlockType $type Filter document blocks by type (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listDocumentBlock'] to see the possible values for this operation * * @throws \Cone\Billingo\ApiException on non-2xx response or if the response body is not in the expected format @@ -181,18 +181,6 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -386,6 +374,19 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\DocumentBlockList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -484,7 +485,7 @@ public function listDocumentBlockWithHttpInfo($page = null, $perPage = 25, $type * * @param int $page (optional) * @param int $perPage (optional, default to 25) - * @param DocumentBlockType $type Filter document blocks by type (optional) + * @param \Cone\Billingo\Model\DocumentBlockType $type Filter document blocks by type (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listDocumentBlock'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -507,7 +508,7 @@ function ($response) { * * @param int $page (optional) * @param int $perPage (optional, default to 25) - * @param DocumentBlockType $type Filter document blocks by type (optional) + * @param \Cone\Billingo\Model\DocumentBlockType $type Filter document blocks by type (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listDocumentBlock'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -559,7 +560,7 @@ function ($exception) { * * @param int $page (optional) * @param int $perPage (optional, default to 25) - * @param DocumentBlockType $type Filter document blocks by type (optional) + * @param \Cone\Billingo\Model\DocumentBlockType $type Filter document blocks by type (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listDocumentBlock'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/src/Api/DocumentExportApi.php b/src/Api/DocumentExportApi.php index abdbd5d..5f6850b 100644 --- a/src/Api/DocumentExportApi.php +++ b/src/Api/DocumentExportApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -94,7 +94,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -183,18 +183,6 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -415,6 +403,19 @@ public function createWithHttpInfo($createDocumentExport, string $contentType = ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\DocumentExportId'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -739,18 +740,6 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -971,6 +960,19 @@ public function downloadWithHttpInfo($id, string $contentType = self::contentTyp ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\SplFileObject'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1296,18 +1298,6 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1528,6 +1518,19 @@ public function pollWithHttpInfo($id, string $contentType = self::contentTypes[' ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\DocumentExportStatus'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/OrganizationApi.php b/src/Api/OrganizationApi.php index 3ccaeb4..af7ca3b 100644 --- a/src/Api/OrganizationApi.php +++ b/src/Api/OrganizationApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -88,7 +88,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -175,18 +175,6 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -380,6 +368,19 @@ public function getOrganizationDataWithHttpInfo(string $contentType = self::cont ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\OrganizationData'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/PartnerApi.php b/src/Api/PartnerApi.php index 85841c4..ed9fcd4 100644 --- a/src/Api/PartnerApi.php +++ b/src/Api/PartnerApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -100,7 +100,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -189,18 +189,6 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -421,6 +409,19 @@ public function createPartnerWithHttpInfo($partner, string $contentType = self:: ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Partner'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -744,18 +745,6 @@ public function deletePartnerWithHttpInfo($id, string $contentType = self::conte $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -1035,18 +1024,6 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1267,6 +1244,19 @@ public function getPartnerWithHttpInfo($id, string $contentType = self::contentT ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Partner'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1596,18 +1586,6 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1801,6 +1779,19 @@ public function listPartnerWithHttpInfo($page = null, $perPage = 25, $query = nu ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\PartnerList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2147,18 +2138,6 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -2406,6 +2385,19 @@ public function updatePartnerWithHttpInfo($id, $partner, string $contentType = s ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Partner'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/ProductApi.php b/src/Api/ProductApi.php index 3fecedc..dd8ca48 100644 --- a/src/Api/ProductApi.php +++ b/src/Api/ProductApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -100,7 +100,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -189,18 +189,6 @@ public function createProductWithHttpInfo($product, string $contentType = self:: $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -421,6 +409,19 @@ public function createProductWithHttpInfo($product, string $contentType = self:: ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Product'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -744,18 +745,6 @@ public function deleteProductWithHttpInfo($id, string $contentType = self::conte $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -1035,18 +1024,6 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1267,6 +1244,19 @@ public function getProductWithHttpInfo($id, string $contentType = self::contentT ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Product'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1596,18 +1586,6 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1801,6 +1779,19 @@ public function listProductWithHttpInfo($page = null, $perPage = 25, $query = nu ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\ProductList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2147,18 +2138,6 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -2406,6 +2385,19 @@ public function updateProductWithHttpInfo($id, $product, string $contentType = s ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Product'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/SpendingApi.php b/src/Api/SpendingApi.php index 5d96fb0..da24764 100644 --- a/src/Api/SpendingApi.php +++ b/src/Api/SpendingApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -100,7 +100,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -188,18 +188,6 @@ public function spendingDeleteWithHttpInfo($id, string $contentType = self::cont $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } return [null, $statusCode, $response->getHeaders()]; @@ -431,14 +419,14 @@ public function spendingDeleteRequest($id, string $contentType = self::contentTy * @param string $q q (optional, default to '') * @param int $page page (optional, default to 1) * @param int $perPage perPage (optional, default to 25) - * @param DateType $spendingDate spendingDate (optional) + * @param \Cone\Billingo\Model\DateType $spendingDate spendingDate (optional) * @param string $startDate startDate (optional) * @param string $endDate endDate (optional) - * @param PaymentStatusSpending $paymentStatus paymentStatus (optional) - * @param Source $spendingType spendingType (optional) - * @param Category $categories categories (optional) - * @param Currency $currencies currencies (optional) - * @param PaymentMethod $paymentMethods paymentMethods (optional) + * @param \Cone\Billingo\Model\PaymentStatusSpending $paymentStatus paymentStatus (optional) + * @param \Cone\Billingo\Model\Source $spendingType spendingType (optional) + * @param \Cone\Billingo\Model\Category $categories categories (optional) + * @param \Cone\Billingo\Model\Currency $currencies currencies (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethods paymentMethods (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['spendingList'] to see the possible values for this operation * * @throws \Cone\Billingo\ApiException on non-2xx response or if the response body is not in the expected format @@ -459,14 +447,14 @@ public function spendingList($q = '', $page = 1, $perPage = 25, $spendingDate = * @param string $q (optional, default to '') * @param int $page (optional, default to 1) * @param int $perPage (optional, default to 25) - * @param DateType $spendingDate (optional) + * @param \Cone\Billingo\Model\DateType $spendingDate (optional) * @param string $startDate (optional) * @param string $endDate (optional) - * @param PaymentStatusSpending $paymentStatus (optional) - * @param Source $spendingType (optional) - * @param Category $categories (optional) - * @param Currency $currencies (optional) - * @param PaymentMethod $paymentMethods (optional) + * @param \Cone\Billingo\Model\PaymentStatusSpending $paymentStatus (optional) + * @param \Cone\Billingo\Model\Source $spendingType (optional) + * @param \Cone\Billingo\Model\Category $categories (optional) + * @param \Cone\Billingo\Model\Currency $currencies (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethods (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['spendingList'] to see the possible values for this operation * * @throws \Cone\Billingo\ApiException on non-2xx response or if the response body is not in the expected format @@ -499,18 +487,6 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -704,6 +680,19 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\SpendingList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -803,14 +792,14 @@ public function spendingListWithHttpInfo($q = '', $page = 1, $perPage = 25, $spe * @param string $q (optional, default to '') * @param int $page (optional, default to 1) * @param int $perPage (optional, default to 25) - * @param DateType $spendingDate (optional) + * @param \Cone\Billingo\Model\DateType $spendingDate (optional) * @param string $startDate (optional) * @param string $endDate (optional) - * @param PaymentStatusSpending $paymentStatus (optional) - * @param Source $spendingType (optional) - * @param Category $categories (optional) - * @param Currency $currencies (optional) - * @param PaymentMethod $paymentMethods (optional) + * @param \Cone\Billingo\Model\PaymentStatusSpending $paymentStatus (optional) + * @param \Cone\Billingo\Model\Source $spendingType (optional) + * @param \Cone\Billingo\Model\Category $categories (optional) + * @param \Cone\Billingo\Model\Currency $currencies (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethods (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['spendingList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -834,14 +823,14 @@ function ($response) { * @param string $q (optional, default to '') * @param int $page (optional, default to 1) * @param int $perPage (optional, default to 25) - * @param DateType $spendingDate (optional) + * @param \Cone\Billingo\Model\DateType $spendingDate (optional) * @param string $startDate (optional) * @param string $endDate (optional) - * @param PaymentStatusSpending $paymentStatus (optional) - * @param Source $spendingType (optional) - * @param Category $categories (optional) - * @param Currency $currencies (optional) - * @param PaymentMethod $paymentMethods (optional) + * @param \Cone\Billingo\Model\PaymentStatusSpending $paymentStatus (optional) + * @param \Cone\Billingo\Model\Source $spendingType (optional) + * @param \Cone\Billingo\Model\Category $categories (optional) + * @param \Cone\Billingo\Model\Currency $currencies (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethods (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['spendingList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -894,14 +883,14 @@ function ($exception) { * @param string $q (optional, default to '') * @param int $page (optional, default to 1) * @param int $perPage (optional, default to 25) - * @param DateType $spendingDate (optional) + * @param \Cone\Billingo\Model\DateType $spendingDate (optional) * @param string $startDate (optional) * @param string $endDate (optional) - * @param PaymentStatusSpending $paymentStatus (optional) - * @param Source $spendingType (optional) - * @param Category $categories (optional) - * @param Currency $currencies (optional) - * @param PaymentMethod $paymentMethods (optional) + * @param \Cone\Billingo\Model\PaymentStatusSpending $paymentStatus (optional) + * @param \Cone\Billingo\Model\Source $spendingType (optional) + * @param \Cone\Billingo\Model\Category $categories (optional) + * @param \Cone\Billingo\Model\Currency $currencies (optional) + * @param \Cone\Billingo\Model\PaymentMethod $paymentMethods (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['spendingList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1152,18 +1141,6 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 201: @@ -1384,6 +1361,19 @@ public function spendingSaveWithHttpInfo($spendingSave = null, string $contentTy ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Spending'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1702,18 +1692,6 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1934,6 +1912,19 @@ public function spendingShowWithHttpInfo($id, string $contentType = self::conten ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Spending'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -2261,18 +2252,6 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -2520,6 +2499,19 @@ public function spendingUpdateWithHttpInfo($id, $spendingSave = null, string $co ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Spending'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/Api/UtilApi.php b/src/Api/UtilApi.php index d7cda62..ce5aadf 100644 --- a/src/Api/UtilApi.php +++ b/src/Api/UtilApi.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -94,7 +94,7 @@ public function __construct( $hostIndex = 0 ) { $this->client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->headerSelector = $selector ?: new HeaderSelector(); $this->hostIndex = $hostIndex; } @@ -183,18 +183,6 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -388,6 +376,19 @@ public function checkTaxNumberWithHttpInfo($taxNumber, string $contentType = sel ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\TaxNumber'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -708,18 +709,6 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -940,6 +929,19 @@ public function getIdWithHttpInfo($id, string $contentType = self::contentTypes[ ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\Id'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1263,18 +1265,6 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } switch ($statusCode) { case 200: @@ -1468,6 +1458,19 @@ public function getServerTimeWithHttpInfo(string $contentType = self::contentTyp ]; } + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + $returnType = '\Cone\Billingo\Model\ServerTime'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer diff --git a/src/ApiException.php b/src/ApiException.php index b4cd77b..4909365 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Configuration.php b/src/Configuration.php index 37ab165..6fa2d05 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index 0ed43ce..802982b 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -16,7 +16,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -84,7 +84,7 @@ private function selectAcceptHeader(array $accept): ?string } // If none of the available Accept headers is of type "json", then just use all them - $headersWithJson = preg_grep('~(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$~', $accept); + $headersWithJson = $this->selectJsonMimeList($accept); if (count($headersWithJson) === 0) { return implode(',', $accept); } @@ -94,6 +94,35 @@ private function selectAcceptHeader(array $accept): ?string return $this->getAcceptHeaderWithAdjustedWeight($accept, $headersWithJson); } + /** + * Detects whether a string contains a valid JSON mime type + * + * @param string $searchString + * @return bool + */ + public function isJsonMime(string $searchString): bool + { + return preg_match('~^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)~', $searchString) === 1; + } + + /** + * Select all items from a list containing a JSON mime type + * + * @param array $mimeList + * @return array + */ + private function selectJsonMimeList(array $mimeList): array + { + $jsonMimeList = []; + foreach ($mimeList as $mime) { + if ($this->isJsonMime($mime)) { + $jsonMimeList[] = $mime; + } + } + return $jsonMimeList; + } + + /** * Create an Accept header string from the given "Accept" headers array, recalculating all weights * diff --git a/src/Model/Address.php b/src/Model/Address.php index 9c4f297..514a435 100644 --- a/src/Model/Address.php +++ b/src/Model/Address.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/BankAccount.php b/src/Model/BankAccount.php index ecc15fc..552fec4 100644 --- a/src/Model/BankAccount.php +++ b/src/Model/BankAccount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/BankAccountList.php b/src/Model/BankAccountList.php index a5e7de2..9912507 100644 --- a/src/Model/BankAccountList.php +++ b/src/Model/BankAccountList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Category.php b/src/Model/Category.php index 2a76be2..7e052ae 100644 --- a/src/Model/Category.php +++ b/src/Model/Category.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/CheckTaxNumberMessage.php b/src/Model/CheckTaxNumberMessage.php index c6e3c80..70c2b76 100644 --- a/src/Model/CheckTaxNumberMessage.php +++ b/src/Model/CheckTaxNumberMessage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ClientError.php b/src/Model/ClientError.php index 58840e0..ec39689 100644 --- a/src/Model/ClientError.php +++ b/src/Model/ClientError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ClientErrorResponse.php b/src/Model/ClientErrorResponse.php index 13317e2..8157455 100644 --- a/src/Model/ClientErrorResponse.php +++ b/src/Model/ClientErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ConversationRate.php b/src/Model/ConversationRate.php index 4e699a4..0de8d13 100644 --- a/src/Model/ConversationRate.php +++ b/src/Model/ConversationRate.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/CorrectionType.php b/src/Model/CorrectionType.php index 9df1967..54f38d5 100644 --- a/src/Model/CorrectionType.php +++ b/src/Model/CorrectionType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Country.php b/src/Model/Country.php index 8c3bf4b..3d219df 100644 --- a/src/Model/Country.php +++ b/src/Model/Country.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/CreateDocumentExport.php b/src/Model/CreateDocumentExport.php index 0aeb0e5..a18fe90 100644 --- a/src/Model/CreateDocumentExport.php +++ b/src/Model/CreateDocumentExport.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Currency.php b/src/Model/Currency.php index 3f3a5f8..2b76f08 100644 --- a/src/Model/Currency.php +++ b/src/Model/Currency.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DateType.php b/src/Model/DateType.php index d272d06..8248062 100644 --- a/src/Model/DateType.php +++ b/src/Model/DateType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Discount.php b/src/Model/Discount.php index b29b675..d464025 100644 --- a/src/Model/Discount.php +++ b/src/Model/Discount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DiscountType.php b/src/Model/DiscountType.php index 78b1081..c83961d 100644 --- a/src/Model/DiscountType.php +++ b/src/Model/DiscountType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Document.php b/src/Model/Document.php index 551ed7d..c6f0c4d 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentAncestor.php b/src/Model/DocumentAncestor.php index bde5fac..da19089 100644 --- a/src/Model/DocumentAncestor.php +++ b/src/Model/DocumentAncestor.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentBankAccount.php b/src/Model/DocumentBankAccount.php index a229b74..6026f24 100644 --- a/src/Model/DocumentBankAccount.php +++ b/src/Model/DocumentBankAccount.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentBlock.php b/src/Model/DocumentBlock.php index 67fa889..48e86ae 100644 --- a/src/Model/DocumentBlock.php +++ b/src/Model/DocumentBlock.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentBlockList.php b/src/Model/DocumentBlockList.php index 712a784..4579fdf 100644 --- a/src/Model/DocumentBlockList.php +++ b/src/Model/DocumentBlockList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentBlockType.php b/src/Model/DocumentBlockType.php index 8be5684..9a686de 100644 --- a/src/Model/DocumentBlockType.php +++ b/src/Model/DocumentBlockType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentCancellation.php b/src/Model/DocumentCancellation.php index d579657..56495b5 100644 --- a/src/Model/DocumentCancellation.php +++ b/src/Model/DocumentCancellation.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportFilterExtra.php b/src/Model/DocumentExportFilterExtra.php index 9a45c63..2790c9e 100644 --- a/src/Model/DocumentExportFilterExtra.php +++ b/src/Model/DocumentExportFilterExtra.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportId.php b/src/Model/DocumentExportId.php index 0c7e474..e419aea 100644 --- a/src/Model/DocumentExportId.php +++ b/src/Model/DocumentExportId.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportOtherOptions.php b/src/Model/DocumentExportOtherOptions.php index d7cdd23..7c1e582 100644 --- a/src/Model/DocumentExportOtherOptions.php +++ b/src/Model/DocumentExportOtherOptions.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportQueryType.php b/src/Model/DocumentExportQueryType.php index 08f6349..7e33bd5 100644 --- a/src/Model/DocumentExportQueryType.php +++ b/src/Model/DocumentExportQueryType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportSortBy.php b/src/Model/DocumentExportSortBy.php index cfbd533..c0a273f 100644 --- a/src/Model/DocumentExportSortBy.php +++ b/src/Model/DocumentExportSortBy.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportStatus.php b/src/Model/DocumentExportStatus.php index 2f801c5..c22114e 100644 --- a/src/Model/DocumentExportStatus.php +++ b/src/Model/DocumentExportStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportStatusState.php b/src/Model/DocumentExportStatusState.php index 367f488..c3f0302 100644 --- a/src/Model/DocumentExportStatusState.php +++ b/src/Model/DocumentExportStatusState.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentExportType.php b/src/Model/DocumentExportType.php index 0ab6767..edcc10c 100644 --- a/src/Model/DocumentExportType.php +++ b/src/Model/DocumentExportType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentForm.php b/src/Model/DocumentForm.php index b2b8fbb..acb4461 100644 --- a/src/Model/DocumentForm.php +++ b/src/Model/DocumentForm.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentFormat.php b/src/Model/DocumentFormat.php index 934da00..7668c03 100644 --- a/src/Model/DocumentFormat.php +++ b/src/Model/DocumentFormat.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentInsert.php b/src/Model/DocumentInsert.php index 6eafa52..4aecf35 100644 --- a/src/Model/DocumentInsert.php +++ b/src/Model/DocumentInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentInsertItemsInner.php b/src/Model/DocumentInsertItemsInner.php index 1230d1f..8610b1f 100644 --- a/src/Model/DocumentInsertItemsInner.php +++ b/src/Model/DocumentInsertItemsInner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentInsertType.php b/src/Model/DocumentInsertType.php index 8f17836..5954438 100644 --- a/src/Model/DocumentInsertType.php +++ b/src/Model/DocumentInsertType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentItem.php b/src/Model/DocumentItem.php index bd9f73c..2219923 100644 --- a/src/Model/DocumentItem.php +++ b/src/Model/DocumentItem.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentItemData.php b/src/Model/DocumentItemData.php index 840cb47..30af3b0 100644 --- a/src/Model/DocumentItemData.php +++ b/src/Model/DocumentItemData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentLanguage.php b/src/Model/DocumentLanguage.php index cb0f0ef..5a69418 100644 --- a/src/Model/DocumentLanguage.php +++ b/src/Model/DocumentLanguage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentList.php b/src/Model/DocumentList.php index 23d7c71..ec2fe76 100644 --- a/src/Model/DocumentList.php +++ b/src/Model/DocumentList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentNotificationStatus.php b/src/Model/DocumentNotificationStatus.php index c2e9acf..709f2dc 100644 --- a/src/Model/DocumentNotificationStatus.php +++ b/src/Model/DocumentNotificationStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentOrganization.php b/src/Model/DocumentOrganization.php index 2929f85..983df8f 100644 --- a/src/Model/DocumentOrganization.php +++ b/src/Model/DocumentOrganization.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentPartner.php b/src/Model/DocumentPartner.php index ca5031e..f976bf9 100644 --- a/src/Model/DocumentPartner.php +++ b/src/Model/DocumentPartner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentProductData.php b/src/Model/DocumentProductData.php index 884c9e3..c74e053 100644 --- a/src/Model/DocumentProductData.php +++ b/src/Model/DocumentProductData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentPublicUrl.php b/src/Model/DocumentPublicUrl.php index 1acc1de..8d810e0 100644 --- a/src/Model/DocumentPublicUrl.php +++ b/src/Model/DocumentPublicUrl.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentSettings.php b/src/Model/DocumentSettings.php index 8cd6947..91cf78e 100644 --- a/src/Model/DocumentSettings.php +++ b/src/Model/DocumentSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentSummary.php b/src/Model/DocumentSummary.php index 296ea12..3bfa984 100644 --- a/src/Model/DocumentSummary.php +++ b/src/Model/DocumentSummary.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentType.php b/src/Model/DocumentType.php index 290c6ef..cef6401 100644 --- a/src/Model/DocumentType.php +++ b/src/Model/DocumentType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/DocumentVatRateSummary.php b/src/Model/DocumentVatRateSummary.php index 51c50b4..7971b23 100644 --- a/src/Model/DocumentVatRateSummary.php +++ b/src/Model/DocumentVatRateSummary.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Entitlement.php b/src/Model/Entitlement.php index 6ebdac8..aec35f3 100644 --- a/src/Model/Entitlement.php +++ b/src/Model/Entitlement.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Feature.php b/src/Model/Feature.php index f565ba9..e331af6 100644 --- a/src/Model/Feature.php +++ b/src/Model/Feature.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Id.php b/src/Model/Id.php index e33bd70..f85cd4e 100644 --- a/src/Model/Id.php +++ b/src/Model/Id.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/InvoiceSettings.php b/src/Model/InvoiceSettings.php index 5a75e08..229fec4 100644 --- a/src/Model/InvoiceSettings.php +++ b/src/Model/InvoiceSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/LedgerNumberInformation.php b/src/Model/LedgerNumberInformation.php index 4f9e856..fd2c03d 100644 --- a/src/Model/LedgerNumberInformation.php +++ b/src/Model/LedgerNumberInformation.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 051013f..0b6e8eb 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ModificationDocumentInsert.php b/src/Model/ModificationDocumentInsert.php index 10b73c5..01db36a 100644 --- a/src/Model/ModificationDocumentInsert.php +++ b/src/Model/ModificationDocumentInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/OnlinePayment.php b/src/Model/OnlinePayment.php index 91fdbd7..3ca11c1 100644 --- a/src/Model/OnlinePayment.php +++ b/src/Model/OnlinePayment.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/OnlineSzamlaStatus.php b/src/Model/OnlineSzamlaStatus.php index 134eb87..a9ae7ef 100644 --- a/src/Model/OnlineSzamlaStatus.php +++ b/src/Model/OnlineSzamlaStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/OnlineSzamlaStatusEnum.php b/src/Model/OnlineSzamlaStatusEnum.php index 8a8569a..a568d61 100644 --- a/src/Model/OnlineSzamlaStatusEnum.php +++ b/src/Model/OnlineSzamlaStatusEnum.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/OnlineSzamlaStatusMessage.php b/src/Model/OnlineSzamlaStatusMessage.php index 81d4f56..c55f9d4 100644 --- a/src/Model/OnlineSzamlaStatusMessage.php +++ b/src/Model/OnlineSzamlaStatusMessage.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/OrganizationData.php b/src/Model/OrganizationData.php index bd0e35c..0d6122d 100644 --- a/src/Model/OrganizationData.php +++ b/src/Model/OrganizationData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Partner.php b/src/Model/Partner.php index e5a3c8d..0165964 100644 --- a/src/Model/Partner.php +++ b/src/Model/Partner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PartnerCustomBillingSettings.php b/src/Model/PartnerCustomBillingSettings.php index 867f193..8a66138 100644 --- a/src/Model/PartnerCustomBillingSettings.php +++ b/src/Model/PartnerCustomBillingSettings.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PartnerList.php b/src/Model/PartnerList.php index 841b8cf..0e685c3 100644 --- a/src/Model/PartnerList.php +++ b/src/Model/PartnerList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PartnerTaxType.php b/src/Model/PartnerTaxType.php index 6cfcb46..8d99048 100644 --- a/src/Model/PartnerTaxType.php +++ b/src/Model/PartnerTaxType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PaymentHistory.php b/src/Model/PaymentHistory.php index 6c4f5f4..d7fb801 100644 --- a/src/Model/PaymentHistory.php +++ b/src/Model/PaymentHistory.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PaymentMethod.php b/src/Model/PaymentMethod.php index 23c051c..afdb157 100644 --- a/src/Model/PaymentMethod.php +++ b/src/Model/PaymentMethod.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PaymentStatus.php b/src/Model/PaymentStatus.php index 56b55f8..0ae5bf7 100644 --- a/src/Model/PaymentStatus.php +++ b/src/Model/PaymentStatus.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/PaymentStatusSpending.php b/src/Model/PaymentStatusSpending.php index 94b856e..dc501a5 100644 --- a/src/Model/PaymentStatusSpending.php +++ b/src/Model/PaymentStatusSpending.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Product.php b/src/Model/Product.php index 67c64cb..5d1cb76 100644 --- a/src/Model/Product.php +++ b/src/Model/Product.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ProductList.php b/src/Model/ProductList.php index 37324e6..86483f8 100644 --- a/src/Model/ProductList.php +++ b/src/Model/ProductList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ReceiptInsert.php b/src/Model/ReceiptInsert.php index bf97a0b..5cc5649 100644 --- a/src/Model/ReceiptInsert.php +++ b/src/Model/ReceiptInsert.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ReceiptInsertItemsInner.php b/src/Model/ReceiptInsertItemsInner.php index ac46771..2a9f179 100644 --- a/src/Model/ReceiptInsertItemsInner.php +++ b/src/Model/ReceiptInsertItemsInner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ReceiptItemData.php b/src/Model/ReceiptItemData.php index ea918c7..ef1de8f 100644 --- a/src/Model/ReceiptItemData.php +++ b/src/Model/ReceiptItemData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ReceiptProductData.php b/src/Model/ReceiptProductData.php index 6aacd2d..ec6bb49 100644 --- a/src/Model/ReceiptProductData.php +++ b/src/Model/ReceiptProductData.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Round.php b/src/Model/Round.php index ef49afe..eb845fc 100644 --- a/src/Model/Round.php +++ b/src/Model/Round.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SendDocument.php b/src/Model/SendDocument.php index 89d1bf6..aa3e359 100644 --- a/src/Model/SendDocument.php +++ b/src/Model/SendDocument.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ServerError.php b/src/Model/ServerError.php index 08aadb7..d7ccc10 100644 --- a/src/Model/ServerError.php +++ b/src/Model/ServerError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ServerErrorResponse.php b/src/Model/ServerErrorResponse.php index 732b4ed..198c2d8 100644 --- a/src/Model/ServerErrorResponse.php +++ b/src/Model/ServerErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ServerTime.php b/src/Model/ServerTime.php index 336d2c5..a638fc2 100644 --- a/src/Model/ServerTime.php +++ b/src/Model/ServerTime.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Source.php b/src/Model/Source.php index acb6a38..a40903d 100644 --- a/src/Model/Source.php +++ b/src/Model/Source.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Spending.php b/src/Model/Spending.php index 2930539..c14d214 100644 --- a/src/Model/Spending.php +++ b/src/Model/Spending.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SpendingList.php b/src/Model/SpendingList.php index b3e79d7..f48105b 100644 --- a/src/Model/SpendingList.php +++ b/src/Model/SpendingList.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SpendingListItem.php b/src/Model/SpendingListItem.php index a1f81e8..536ab30 100644 --- a/src/Model/SpendingListItem.php +++ b/src/Model/SpendingListItem.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SpendingPartner.php b/src/Model/SpendingPartner.php index 7790f26..1420d17 100644 --- a/src/Model/SpendingPartner.php +++ b/src/Model/SpendingPartner.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SpendingPaymentMethod.php b/src/Model/SpendingPaymentMethod.php index 46c3f8c..c6af236 100644 --- a/src/Model/SpendingPaymentMethod.php +++ b/src/Model/SpendingPaymentMethod.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SpendingSave.php b/src/Model/SpendingSave.php index 87f2241..990ed70 100644 --- a/src/Model/SpendingSave.php +++ b/src/Model/SpendingSave.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index e5bb7a9..210202e 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/SubscriptionErrorResponse.php b/src/Model/SubscriptionErrorResponse.php index c9b6ddc..f4891c9 100644 --- a/src/Model/SubscriptionErrorResponse.php +++ b/src/Model/SubscriptionErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/TaxNumber.php b/src/Model/TaxNumber.php index 15ca1cd..0407f53 100644 --- a/src/Model/TaxNumber.php +++ b/src/Model/TaxNumber.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/TooManyRequestsResponse.php b/src/Model/TooManyRequestsResponse.php index 828f2f9..e393154 100644 --- a/src/Model/TooManyRequestsResponse.php +++ b/src/Model/TooManyRequestsResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/UnitPriceType.php b/src/Model/UnitPriceType.php index cdd55a4..04c81ba 100644 --- a/src/Model/UnitPriceType.php +++ b/src/Model/UnitPriceType.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ValidationError.php b/src/Model/ValidationError.php index a07acf5..8d9cf6e 100644 --- a/src/Model/ValidationError.php +++ b/src/Model/ValidationError.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/ValidationErrorResponse.php b/src/Model/ValidationErrorResponse.php index c50e5e7..f703f32 100644 --- a/src/Model/ValidationErrorResponse.php +++ b/src/Model/ValidationErrorResponse.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/Model/Vat.php b/src/Model/Vat.php index 2c78feb..22a6a27 100644 --- a/src/Model/Vat.php +++ b/src/Model/Vat.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 4d248fc..0841567 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 3.0.14 * Contact: hello@billingo.hu * Generated by: https://openapi-generator.tech - * Generator version: 7.8.0 + * Generator version: 7.9.0 */ /** @@ -195,6 +195,10 @@ private static function isEmptyValue($value, string $openApiType): bool case 'boolean': return !in_array($value, [false, 0], true); + // For string values, '' is considered empty. + case 'string': + return $value === ''; + // For all the other types, any value at this point can be considered empty. default: return true;