Skip to content

Commit 70c44a1

Browse files
Codegen: CRM Tickets
1 parent 50767de commit 70c44a1

17 files changed

Lines changed: 1004 additions & 607 deletions

codegen/Crm/Tickets/Api/BasicApi.php

Lines changed: 358 additions & 10 deletions
Large diffs are not rendered by default.

codegen/Crm/Tickets/Api/BatchApi.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -379,16 +379,16 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con
379379
*
380380
* Create a batch of tickets
381381
*
382-
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectInputForCreate $batch_input_simple_public_object_input_for_create batch_input_simple_public_object_input_for_create (required)
382+
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectBatchInputForCreate $batch_input_simple_public_object_batch_input_for_create batch_input_simple_public_object_batch_input_for_create (required)
383383
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation
384384
*
385385
* @throws \HubSpot\Client\Crm\Tickets\ApiException on non-2xx response or if the response body is not in the expected format
386386
* @throws \InvalidArgumentException
387387
* @return \HubSpot\Client\Crm\Tickets\Model\BatchResponseSimplePublicObject|\HubSpot\Client\Crm\Tickets\Model\BatchResponseSimplePublicObjectWithErrors|\HubSpot\Client\Crm\Tickets\Model\Error
388388
*/
389-
public function create($batch_input_simple_public_object_input_for_create, string $contentType = self::contentTypes['create'][0])
389+
public function create($batch_input_simple_public_object_batch_input_for_create, string $contentType = self::contentTypes['create'][0])
390390
{
391-
list($response) = $this->createWithHttpInfo($batch_input_simple_public_object_input_for_create, $contentType);
391+
list($response) = $this->createWithHttpInfo($batch_input_simple_public_object_batch_input_for_create, $contentType);
392392
return $response;
393393
}
394394

@@ -397,16 +397,16 @@ public function create($batch_input_simple_public_object_input_for_create, strin
397397
*
398398
* Create a batch of tickets
399399
*
400-
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectInputForCreate $batch_input_simple_public_object_input_for_create (required)
400+
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectBatchInputForCreate $batch_input_simple_public_object_batch_input_for_create (required)
401401
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation
402402
*
403403
* @throws \HubSpot\Client\Crm\Tickets\ApiException on non-2xx response or if the response body is not in the expected format
404404
* @throws \InvalidArgumentException
405405
* @return array of \HubSpot\Client\Crm\Tickets\Model\BatchResponseSimplePublicObject|\HubSpot\Client\Crm\Tickets\Model\BatchResponseSimplePublicObjectWithErrors|\HubSpot\Client\Crm\Tickets\Model\Error, HTTP status code, HTTP response headers (array of strings)
406406
*/
407-
public function createWithHttpInfo($batch_input_simple_public_object_input_for_create, string $contentType = self::contentTypes['create'][0])
407+
public function createWithHttpInfo($batch_input_simple_public_object_batch_input_for_create, string $contentType = self::contentTypes['create'][0])
408408
{
409-
$request = $this->createRequest($batch_input_simple_public_object_input_for_create, $contentType);
409+
$request = $this->createRequest($batch_input_simple_public_object_batch_input_for_create, $contentType);
410410

411411
try {
412412
$options = $this->createHttpClientOption();
@@ -591,15 +591,15 @@ public function createWithHttpInfo($batch_input_simple_public_object_input_for_c
591591
*
592592
* Create a batch of tickets
593593
*
594-
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectInputForCreate $batch_input_simple_public_object_input_for_create (required)
594+
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectBatchInputForCreate $batch_input_simple_public_object_batch_input_for_create (required)
595595
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation
596596
*
597597
* @throws \InvalidArgumentException
598598
* @return \GuzzleHttp\Promise\PromiseInterface
599599
*/
600-
public function createAsync($batch_input_simple_public_object_input_for_create, string $contentType = self::contentTypes['create'][0])
600+
public function createAsync($batch_input_simple_public_object_batch_input_for_create, string $contentType = self::contentTypes['create'][0])
601601
{
602-
return $this->createAsyncWithHttpInfo($batch_input_simple_public_object_input_for_create, $contentType)
602+
return $this->createAsyncWithHttpInfo($batch_input_simple_public_object_batch_input_for_create, $contentType)
603603
->then(
604604
function ($response) {
605605
return $response[0];
@@ -612,16 +612,16 @@ function ($response) {
612612
*
613613
* Create a batch of tickets
614614
*
615-
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectInputForCreate $batch_input_simple_public_object_input_for_create (required)
615+
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectBatchInputForCreate $batch_input_simple_public_object_batch_input_for_create (required)
616616
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation
617617
*
618618
* @throws \InvalidArgumentException
619619
* @return \GuzzleHttp\Promise\PromiseInterface
620620
*/
621-
public function createAsyncWithHttpInfo($batch_input_simple_public_object_input_for_create, string $contentType = self::contentTypes['create'][0])
621+
public function createAsyncWithHttpInfo($batch_input_simple_public_object_batch_input_for_create, string $contentType = self::contentTypes['create'][0])
622622
{
623623
$returnType = '\HubSpot\Client\Crm\Tickets\Model\BatchResponseSimplePublicObject';
624-
$request = $this->createRequest($batch_input_simple_public_object_input_for_create, $contentType);
624+
$request = $this->createRequest($batch_input_simple_public_object_batch_input_for_create, $contentType);
625625

626626
return $this->client
627627
->sendAsync($request, $this->createHttpClientOption())
@@ -662,19 +662,19 @@ function ($exception) {
662662
/**
663663
* Create request for operation 'create'
664664
*
665-
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectInputForCreate $batch_input_simple_public_object_input_for_create (required)
665+
* @param \HubSpot\Client\Crm\Tickets\Model\BatchInputSimplePublicObjectBatchInputForCreate $batch_input_simple_public_object_batch_input_for_create (required)
666666
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['create'] to see the possible values for this operation
667667
*
668668
* @throws \InvalidArgumentException
669669
* @return \GuzzleHttp\Psr7\Request
670670
*/
671-
public function createRequest($batch_input_simple_public_object_input_for_create, string $contentType = self::contentTypes['create'][0])
671+
public function createRequest($batch_input_simple_public_object_batch_input_for_create, string $contentType = self::contentTypes['create'][0])
672672
{
673673

674-
// verify the required parameter 'batch_input_simple_public_object_input_for_create' is set
675-
if ($batch_input_simple_public_object_input_for_create === null || (is_array($batch_input_simple_public_object_input_for_create) && count($batch_input_simple_public_object_input_for_create) === 0)) {
674+
// verify the required parameter 'batch_input_simple_public_object_batch_input_for_create' is set
675+
if ($batch_input_simple_public_object_batch_input_for_create === null || (is_array($batch_input_simple_public_object_batch_input_for_create) && count($batch_input_simple_public_object_batch_input_for_create) === 0)) {
676676
throw new \InvalidArgumentException(
677-
'Missing the required parameter $batch_input_simple_public_object_input_for_create when calling create'
677+
'Missing the required parameter $batch_input_simple_public_object_batch_input_for_create when calling create'
678678
);
679679
}
680680

@@ -697,12 +697,12 @@ public function createRequest($batch_input_simple_public_object_input_for_create
697697
);
698698

699699
// for model (json/xml)
700-
if (isset($batch_input_simple_public_object_input_for_create)) {
700+
if (isset($batch_input_simple_public_object_batch_input_for_create)) {
701701
if (stripos($headers['Content-Type'], 'application/json') !== false) {
702702
# if Content-Type contains "application/json", json_encode the body
703-
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($batch_input_simple_public_object_input_for_create));
703+
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($batch_input_simple_public_object_batch_input_for_create));
704704
} else {
705-
$httpBody = $batch_input_simple_public_object_input_for_create;
705+
$httpBody = $batch_input_simple_public_object_batch_input_for_create;
706706
}
707707
} elseif (count($formParams) > 0) {
708708
if ($multipart) {

0 commit comments

Comments
 (0)