1616 *
1717 * The version of the OpenAPI document: 1.0.0
1818 * @generated Generated by: https://openapi-generator.tech
19- * Generator version: 7.20 .0
19+ * Generator version: 7.24 .0
2020 */
2121
2222/**
3232use GuzzleHttp \ClientInterface ;
3333use GuzzleHttp \Exception \ConnectException ;
3434use GuzzleHttp \Exception \RequestException ;
35- use GuzzleHttp \Psr7 \MultipartStream ;
3635use GuzzleHttp \Psr7 \Request ;
3736use GuzzleHttp \RequestOptions ;
3837use GuzzleHttp \Promise \PromiseInterface ;
4140use Cone \Vies \ApiException ;
4241use Cone \Vies \Configuration ;
4342use Cone \Vies \HeaderSelector ;
44- use Cone \Vies \FormDataProcessor ;
4543use Cone \Vies \ObjectSerializer ;
4644
4745/**
@@ -72,7 +70,7 @@ class PublicApi
7270 */
7371 protected int $ hostIndex ;
7472
75- /** @var string[] $contentTypes **/
73+ /** @var array< string,string[]> $contentTypes **/
7674 public const contentTypes = [
7775 'checkStatus ' => [
7876 'application/json ' ,
@@ -158,7 +156,7 @@ public function checkStatus(
158156 *
159157 * @throws ApiException on non-2xx response or if the response body is not in the expected format
160158 * @throws InvalidArgumentException
161- * @return array of \Cone\Vies\Model\StatusInformationResponse|\Cone\Vies\Model\CommonResponse|\Cone\Vies\Model\CommonResponse, HTTP status code, HTTP response headers (array of strings)
159+ * @return array{0: \Cone\Vies\Model\StatusInformationResponse|\Cone\Vies\Model\CommonResponse, 1: int, 2: array<string, string[]>} [response data, HTTP status code, HTTP response headers]
162160 */
163161 public function checkStatusWithHttpInfo (
164162 string $ contentType = self ::contentTypes['checkStatus ' ][0 ]
@@ -208,7 +206,6 @@ public function checkStatusWithHttpInfo(
208206 );
209207 }
210208
211-
212209 if ($ statusCode < 200 || $ statusCode > 299 ) {
213210 throw new ApiException (
214211 sprintf (
@@ -344,9 +341,7 @@ public function checkStatusRequest(
344341 string $ contentType = self ::contentTypes['checkStatus ' ][0 ]
345342 ): Request {
346343
347-
348344 $ resourcePath = '/check-status ' ;
349- $ formParams = [];
350345 $ queryParams = [];
351346 $ headerParams = [];
352347 $ httpBody = '' ;
@@ -362,30 +357,6 @@ public function checkStatusRequest(
362357 $ multipart
363358 );
364359
365- // for model (json/xml)
366- if (count ($ formParams ) > 0 ) {
367- if ($ multipart ) {
368- $ multipartContents = [];
369- foreach ($ formParams as $ formParamName => $ formParamValue ) {
370- $ formParamValueItems = is_array ($ formParamValue ) ? $ formParamValue : [$ formParamValue ];
371- foreach ($ formParamValueItems as $ formParamValueItem ) {
372- $ multipartContents [] = [
373- 'name ' => $ formParamName ,
374- 'contents ' => $ formParamValueItem ,
375- ];
376- }
377- }
378- // for HTTP post (form)
379- $ httpBody = new MultipartStream ($ multipartContents );
380-
381- } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
382- // if Content-Type contains "application/json", json_encode the form parameters
383- $ httpBody = \GuzzleHttp \Utils::jsonEncode ($ formParams );
384- } else {
385- // for HTTP post (form)
386- $ httpBody = ObjectSerializer::buildQuery ($ formParams );
387- }
388- }
389360
390361 $ defaultHeaders = [];
391362 if ($ this ->config ->getUserAgent ()) {
@@ -438,7 +409,7 @@ public function checkVatNumber(
438409 *
439410 * @throws ApiException on non-2xx response or if the response body is not in the expected format
440411 * @throws InvalidArgumentException
441- * @return array of \Cone\Vies\Model\CheckVatResponse|\Cone\Vies\Model\CommonResponse|\Cone\Vies\Model\CommonResponse, HTTP status code, HTTP response headers (array of strings)
412+ * @return array{0: \Cone\Vies\Model\CheckVatResponse|\Cone\Vies\Model\CommonResponse, 1: int, 2: array<string, string[]>} [response data, HTTP status code, HTTP response headers]
442413 */
443414 public function checkVatNumberWithHttpInfo (
444415 \Cone \Vies \Model \CheckVatRequest $ body ,
@@ -489,7 +460,6 @@ public function checkVatNumberWithHttpInfo(
489460 );
490461 }
491462
492-
493463 if ($ statusCode < 200 || $ statusCode > 299 ) {
494464 throw new ApiException (
495465 sprintf (
@@ -630,15 +600,13 @@ public function checkVatNumberRequest(
630600 \Cone \Vies \Model \CheckVatRequest $ body ,
631601 string $ contentType = self ::contentTypes['checkVatNumber ' ][0 ]
632602 ): Request {
633-
634603 // verify the required parameter 'body' is set
635604 if ($ body === null || (is_array ($ body ) && count ($ body ) === 0 )) {
636605 throw new InvalidArgumentException (
637606 'Missing the required parameter $body when calling checkVatNumber '
638607 );
639608 }
640609
641-
642610 $ resourcePath = '/check-vat-number ' ;
643611 $ formParams = [];
644612 $ queryParams = [];
@@ -677,7 +645,7 @@ public function checkVatNumberRequest(
677645 }
678646 }
679647 // for HTTP post (form)
680- $ httpBody = new MultipartStream ($ multipartContents );
648+ $ httpBody = new \ GuzzleHttp \ Psr7 \ MultipartStream ($ multipartContents );
681649
682650 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
683651 // if Content-Type contains "application/json", json_encode the form parameters
@@ -739,7 +707,7 @@ public function checkVatTestService(
739707 *
740708 * @throws ApiException on non-2xx response or if the response body is not in the expected format
741709 * @throws InvalidArgumentException
742- * @return array of \Cone\Vies\Model\CheckVatResponse|\Cone\Vies\Model\CommonResponse|\Cone\Vies\Model\CommonResponse, HTTP status code, HTTP response headers (array of strings)
710+ * @return array{0: \Cone\Vies\Model\CheckVatResponse|\Cone\Vies\Model\CommonResponse, 1: int, 2: array<string, string[]>} [response data, HTTP status code, HTTP response headers]
743711 */
744712 public function checkVatTestServiceWithHttpInfo (
745713 \Cone \Vies \Model \CheckVatRequest $ body ,
@@ -790,7 +758,6 @@ public function checkVatTestServiceWithHttpInfo(
790758 );
791759 }
792760
793-
794761 if ($ statusCode < 200 || $ statusCode > 299 ) {
795762 throw new ApiException (
796763 sprintf (
@@ -931,15 +898,13 @@ public function checkVatTestServiceRequest(
931898 \Cone \Vies \Model \CheckVatRequest $ body ,
932899 string $ contentType = self ::contentTypes['checkVatTestService ' ][0 ]
933900 ): Request {
934-
935901 // verify the required parameter 'body' is set
936902 if ($ body === null || (is_array ($ body ) && count ($ body ) === 0 )) {
937903 throw new InvalidArgumentException (
938904 'Missing the required parameter $body when calling checkVatTestService '
939905 );
940906 }
941907
942-
943908 $ resourcePath = '/check-vat-test-service ' ;
944909 $ formParams = [];
945910 $ queryParams = [];
@@ -978,7 +943,7 @@ public function checkVatTestServiceRequest(
978943 }
979944 }
980945 // for HTTP post (form)
981- $ httpBody = new MultipartStream ($ multipartContents );
946+ $ httpBody = new \ GuzzleHttp \ Psr7 \ MultipartStream ($ multipartContents );
982947
983948 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
984949 // if Content-Type contains "application/json", json_encode the form parameters
0 commit comments