1616 *
1717 * The version of the OpenAPI document: v4
1818 * Generated by: https://openapi-generator.tech
19- * OpenAPI Generator version: 7.3 .0
19+ * Generator version: 7.12 .0
2020 */
2121
2222/**
@@ -86,13 +86,13 @@ class CallbacksApi
8686 * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
8787 */
8888 public function __construct (
89- ClientInterface $ client = null ,
90- Configuration $ config = null ,
91- HeaderSelector $ selector = null ,
92- $ hostIndex = 0
89+ ? ClientInterface $ client = null ,
90+ ? Configuration $ config = null ,
91+ ? HeaderSelector $ selector = null ,
92+ int $ hostIndex = 0
9393 ) {
9494 $ this ->client = $ client ?: new Client ();
95- $ this ->config = $ config ?: new Configuration ();
95+ $ this ->config = $ config ?: Configuration:: getDefaultConfiguration ();
9696 $ this ->headerSelector = $ selector ?: new HeaderSelector ();
9797 $ this ->hostIndex = $ hostIndex ;
9898 }
@@ -128,9 +128,9 @@ public function getConfig()
128128 /**
129129 * Operation complete
130130 *
131- * Completes a single callback
131+ * Completes a callback
132132 *
133- * @param string $callback_id callback_id (required)
133+ * @param string $callback_id The ID of the action execution. (required)
134134 * @param \HubSpot\Client\Automation\Actions\Model\CallbackCompletionRequest $callback_completion_request callback_completion_request (required)
135135 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['complete'] to see the possible values for this operation
136136 *
@@ -146,9 +146,9 @@ public function complete($callback_id, $callback_completion_request, string $con
146146 /**
147147 * Operation completeWithHttpInfo
148148 *
149- * Completes a single callback
149+ * Completes a callback
150150 *
151- * @param string $callback_id (required)
151+ * @param string $callback_id The ID of the action execution. (required)
152152 * @param \HubSpot\Client\Automation\Actions\Model\CallbackCompletionRequest $callback_completion_request (required)
153153 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['complete'] to see the possible values for this operation
154154 *
@@ -182,18 +182,6 @@ public function completeWithHttpInfo($callback_id, $callback_completion_request,
182182
183183 $ statusCode = $ response ->getStatusCode ();
184184
185- if ($ statusCode < 200 || $ statusCode > 299 ) {
186- throw new ApiException (
187- sprintf (
188- '[%d] Error connecting to the API (%s) ' ,
189- $ statusCode ,
190- (string ) $ request ->getUri ()
191- ),
192- $ statusCode ,
193- $ response ->getHeaders (),
194- (string ) $ response ->getBody ()
195- );
196- }
197185
198186 return [null , $ statusCode , $ response ->getHeaders ()];
199187
@@ -215,9 +203,9 @@ public function completeWithHttpInfo($callback_id, $callback_completion_request,
215203 /**
216204 * Operation completeAsync
217205 *
218- * Completes a single callback
206+ * Completes a callback
219207 *
220- * @param string $callback_id (required)
208+ * @param string $callback_id The ID of the action execution. (required)
221209 * @param \HubSpot\Client\Automation\Actions\Model\CallbackCompletionRequest $callback_completion_request (required)
222210 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['complete'] to see the possible values for this operation
223211 *
@@ -237,9 +225,9 @@ function ($response) {
237225 /**
238226 * Operation completeAsyncWithHttpInfo
239227 *
240- * Completes a single callback
228+ * Completes a callback
241229 *
242- * @param string $callback_id (required)
230+ * @param string $callback_id The ID of the action execution. (required)
243231 * @param \HubSpot\Client\Automation\Actions\Model\CallbackCompletionRequest $callback_completion_request (required)
244232 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['complete'] to see the possible values for this operation
245233 *
@@ -277,7 +265,7 @@ function ($exception) {
277265 /**
278266 * Create request for operation 'complete'
279267 *
280- * @param string $callback_id (required)
268+ * @param string $callback_id The ID of the action execution. (required)
281269 * @param \HubSpot\Client\Automation\Actions\Model\CallbackCompletionRequest $callback_completion_request (required)
282270 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['complete'] to see the possible values for this operation
283271 *
@@ -388,7 +376,7 @@ public function completeRequest($callback_id, $callback_completion_request, stri
388376 /**
389377 * Operation completeBatch
390378 *
391- * Completes a batch of callbacks
379+ * Complete a batch of callbacks
392380 *
393381 * @param \HubSpot\Client\Automation\Actions\Model\BatchInputCallbackCompletionBatchRequest $batch_input_callback_completion_batch_request batch_input_callback_completion_batch_request (required)
394382 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['completeBatch'] to see the possible values for this operation
@@ -405,7 +393,7 @@ public function completeBatch($batch_input_callback_completion_batch_request, st
405393 /**
406394 * Operation completeBatchWithHttpInfo
407395 *
408- * Completes a batch of callbacks
396+ * Complete a batch of callbacks
409397 *
410398 * @param \HubSpot\Client\Automation\Actions\Model\BatchInputCallbackCompletionBatchRequest $batch_input_callback_completion_batch_request (required)
411399 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['completeBatch'] to see the possible values for this operation
@@ -440,18 +428,6 @@ public function completeBatchWithHttpInfo($batch_input_callback_completion_batch
440428
441429 $ statusCode = $ response ->getStatusCode ();
442430
443- if ($ statusCode < 200 || $ statusCode > 299 ) {
444- throw new ApiException (
445- sprintf (
446- '[%d] Error connecting to the API (%s) ' ,
447- $ statusCode ,
448- (string ) $ request ->getUri ()
449- ),
450- $ statusCode ,
451- $ response ->getHeaders (),
452- (string ) $ response ->getBody ()
453- );
454- }
455431
456432 return [null , $ statusCode , $ response ->getHeaders ()];
457433
@@ -473,7 +449,7 @@ public function completeBatchWithHttpInfo($batch_input_callback_completion_batch
473449 /**
474450 * Operation completeBatchAsync
475451 *
476- * Completes a batch of callbacks
452+ * Complete a batch of callbacks
477453 *
478454 * @param \HubSpot\Client\Automation\Actions\Model\BatchInputCallbackCompletionBatchRequest $batch_input_callback_completion_batch_request (required)
479455 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['completeBatch'] to see the possible values for this operation
@@ -494,7 +470,7 @@ function ($response) {
494470 /**
495471 * Operation completeBatchAsyncWithHttpInfo
496472 *
497- * Completes a batch of callbacks
473+ * Complete a batch of callbacks
498474 *
499475 * @param \HubSpot\Client\Automation\Actions\Model\BatchInputCallbackCompletionBatchRequest $batch_input_callback_completion_batch_request (required)
500476 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['completeBatch'] to see the possible values for this operation
0 commit comments