1616 *
1717 * The version of the OpenAPI document: v3
1818 * Generated by: https://openapi-generator.tech
19- * OpenAPI Generator version: 7.3 .0
19+ * Generator version: 7.12 .0
2020 */
2121
2222/**
@@ -83,13 +83,13 @@ class SearchApi
8383 * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
8484 */
8585 public function __construct (
86- ClientInterface $ client = null ,
87- Configuration $ config = null ,
88- HeaderSelector $ selector = null ,
89- $ hostIndex = 0
86+ ? ClientInterface $ client = null ,
87+ ? Configuration $ config = null ,
88+ ? HeaderSelector $ selector = null ,
89+ int $ hostIndex = 0
9090 ) {
9191 $ this ->client = $ client ?: new Client ();
92- $ this ->config = $ config ?: new Configuration ();
92+ $ this ->config = $ config ?: Configuration:: getDefaultConfiguration ();
9393 $ this ->headerSelector = $ selector ?: new HeaderSelector ();
9494 $ this ->hostIndex = $ hostIndex ;
9595 }
@@ -125,6 +125,8 @@ public function getConfig()
125125 /**
126126 * Operation doSearch
127127 *
128+ * Search for line items
129+ *
128130 * @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request public_object_search_request (required)
129131 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
130132 *
@@ -141,6 +143,8 @@ public function doSearch($public_object_search_request, string $contentType = se
141143 /**
142144 * Operation doSearchWithHttpInfo
143145 *
146+ * Search for line items
147+ *
144148 * @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
145149 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
146150 *
@@ -174,18 +178,6 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
174178
175179 $ statusCode = $ response ->getStatusCode ();
176180
177- if ($ statusCode < 200 || $ statusCode > 299 ) {
178- throw new ApiException (
179- sprintf (
180- '[%d] Error connecting to the API (%s) ' ,
181- $ statusCode ,
182- (string ) $ request ->getUri ()
183- ),
184- $ statusCode ,
185- $ response ->getHeaders (),
186- (string ) $ response ->getBody ()
187- );
188- }
189181
190182 switch ($ statusCode ) {
191183 case 200 :
@@ -244,6 +236,19 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
244236 ];
245237 }
246238
239+ if ($ statusCode < 200 || $ statusCode > 299 ) {
240+ throw new ApiException (
241+ sprintf (
242+ '[%d] Error connecting to the API (%s) ' ,
243+ $ statusCode ,
244+ (string ) $ request ->getUri ()
245+ ),
246+ $ statusCode ,
247+ $ response ->getHeaders (),
248+ (string ) $ response ->getBody ()
249+ );
250+ }
251+
247252 $ returnType = '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging ' ;
248253 if ($ returnType === '\SplFileObject ' ) {
249254 $ content = $ response ->getBody (); //stream goes to serializer
@@ -298,6 +303,8 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
298303 /**
299304 * Operation doSearchAsync
300305 *
306+ * Search for line items
307+ *
301308 * @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
302309 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
303310 *
@@ -317,6 +324,8 @@ function ($response) {
317324 /**
318325 * Operation doSearchAsyncWithHttpInfo
319326 *
327+ * Search for line items
328+ *
320329 * @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
321330 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
322331 *
0 commit comments