From edf4135b3a63842ca4f8a9a1044f76a419d519b6 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 25 Feb 2026 14:56:08 +0300 Subject: [PATCH] Change status code to 201 in create methods of CRM Objects --- .../Crm/Commerce/Invoices/Api/BasicApi.php | 26 +++++----- codegen/Crm/Companies/Api/BasicApi.php | 30 ++++++----- codegen/Crm/Deals/Api/BasicApi.php | 30 +++++------ codegen/Crm/LineItems/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Api/BasicApi.php | 20 ++++---- codegen/Crm/Objects/Calls/Api/BasicApi.php | 26 +++++----- .../Objects/Communications/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Emails/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Goals/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Meetings/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Notes/Api/BasicApi.php | 26 +++++----- .../Crm/Objects/PostalMail/Api/BasicApi.php | 50 +++++++++---------- codegen/Crm/Objects/Tasks/Api/BasicApi.php | 26 +++++----- codegen/Crm/Objects/Taxes/Api/BasicApi.php | 26 +++++----- codegen/Crm/Products/Api/BasicApi.php | 26 +++++----- codegen/Crm/Quotes/Api/BasicApi.php | 26 +++++----- codegen/Crm/Tickets/Api/BasicApi.php | 30 +++++------ 17 files changed, 235 insertions(+), 237 deletions(-) diff --git a/codegen/Crm/Commerce/Invoices/Api/BasicApi.php b/codegen/Crm/Commerce/Invoices/Api/BasicApi.php index cad35b08..8eb4ae45 100644 --- a/codegen/Crm/Commerce/Invoices/Api/BasicApi.php +++ b/codegen/Crm/Commerce/Invoices/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($invoice_id, string $contentType = self::con $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($invoice_id, string $contentType = self::contentT if (!preg_match("/.+/", $invoice_id)) { throw new \InvalidArgumentException("invalid value for \"invoice_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/invoices/{invoiceId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Commerce\Invoices\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($invoice_id, $properties = null, $properties ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($invoice_id, $properties = null, $properties $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($invoice_id, $properties = null, $properties_with if (!preg_match("/.+/", $invoice_id)) { throw new \InvalidArgumentException("invalid value for \"invoice_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($invoice_id, $simple_public_object_input, $id ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($invoice_id, $simple_public_object_input, $id $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($invoice_id, $simple_public_object_input, $id_prop if (!preg_match("/.+/", $invoice_id)) { throw new \InvalidArgumentException("invalid value for \"invoice_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Companies/Api/BasicApi.php b/codegen/Crm/Companies/Api/BasicApi.php index 43c1fef6..500cb636 100644 --- a/codegen/Crm/Companies/Api/BasicApi.php +++ b/codegen/Crm/Companies/Api/BasicApi.php @@ -208,7 +208,7 @@ public function archiveWithHttpInfo($company_id, string $contentType = self::con $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -295,7 +295,7 @@ public function archiveRequest($company_id, string $contentType = self::contentT if (!preg_match("/.+/", $company_id)) { throw new \InvalidArgumentException("invalid value for \"company_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/companies/{companyId}'; $formParams = []; @@ -431,7 +431,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Companies\Model\SimplePublicObject', $request, @@ -445,8 +445,6 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - - if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( sprintf( @@ -484,7 +482,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -740,7 +738,7 @@ public function getByIdWithHttpInfo($company_id, $properties = null, $properties ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -779,7 +777,7 @@ public function getByIdWithHttpInfo($company_id, $properties = null, $properties $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -894,7 +892,7 @@ public function getByIdRequest($company_id, $properties = null, $properties_with if (!preg_match("/.+/", $company_id)) { throw new \InvalidArgumentException("invalid value for \"company_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1104,7 +1102,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1143,7 +1141,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1450,7 +1448,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1489,7 +1487,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1739,7 +1737,7 @@ public function updateWithHttpInfo($company_id, $simple_public_object_input, $id ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1778,7 +1776,7 @@ public function updateWithHttpInfo($company_id, $simple_public_object_input, $id $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1884,7 +1882,7 @@ public function updateRequest($company_id, $simple_public_object_input, $id_prop if (!preg_match("/.+/", $company_id)) { throw new \InvalidArgumentException("invalid value for \"company_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Deals/Api/BasicApi.php b/codegen/Crm/Deals/Api/BasicApi.php index 7e56f929..8f7cd817 100644 --- a/codegen/Crm/Deals/Api/BasicApi.php +++ b/codegen/Crm/Deals/Api/BasicApi.php @@ -208,7 +208,7 @@ public function archiveWithHttpInfo($deal_id, string $contentType = self::conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -295,7 +295,7 @@ public function archiveRequest($deal_id, string $contentType = self::contentType if (!preg_match("/.+/", $deal_id)) { throw new \InvalidArgumentException("invalid value for \"deal_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/0-3/{dealId}'; $formParams = []; @@ -431,7 +431,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Deals\Model\SimplePublicObject', $request, @@ -445,7 +445,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -484,7 +484,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -740,7 +740,7 @@ public function getByIdWithHttpInfo($deal_id, $properties = null, $properties_wi ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -779,7 +779,7 @@ public function getByIdWithHttpInfo($deal_id, $properties = null, $properties_wi $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -894,7 +894,7 @@ public function getByIdRequest($deal_id, $properties = null, $properties_with_hi if (!preg_match("/.+/", $deal_id)) { throw new \InvalidArgumentException("invalid value for \"deal_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1104,7 +1104,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1143,7 +1143,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1450,7 +1450,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1489,7 +1489,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1739,7 +1739,7 @@ public function updateWithHttpInfo($deal_id, $simple_public_object_input, $id_pr ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1778,7 +1778,7 @@ public function updateWithHttpInfo($deal_id, $simple_public_object_input, $id_pr $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1884,7 +1884,7 @@ public function updateRequest($deal_id, $simple_public_object_input, $id_propert if (!preg_match("/.+/", $deal_id)) { throw new \InvalidArgumentException("invalid value for \"deal_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/LineItems/Api/BasicApi.php b/codegen/Crm/LineItems/Api/BasicApi.php index 94cc7a67..1e65e546 100644 --- a/codegen/Crm/LineItems/Api/BasicApi.php +++ b/codegen/Crm/LineItems/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($line_item_id, string $contentType = self::c $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($line_item_id, string $contentType = self::conten if (!preg_match("/.+/", $line_item_id)) { throw new \InvalidArgumentException("invalid value for \"line_item_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/line_items/{lineItemId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\LineItems\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($line_item_id, $properties = null, $properti ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($line_item_id, $properties = null, $properti $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($line_item_id, $properties = null, $properties_wi if (!preg_match("/.+/", $line_item_id)) { throw new \InvalidArgumentException("invalid value for \"line_item_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($line_item_id, $simple_public_object_input, $ ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($line_item_id, $simple_public_object_input, $ $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($line_item_id, $simple_public_object_input, $id_pr if (!preg_match("/.+/", $line_item_id)) { throw new \InvalidArgumentException("invalid value for \"line_item_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Api/BasicApi.php b/codegen/Crm/Objects/Api/BasicApi.php index cf09cb3e..a194108b 100644 --- a/codegen/Crm/Objects/Api/BasicApi.php +++ b/codegen/Crm/Objects/Api/BasicApi.php @@ -207,7 +207,7 @@ public function archiveWithHttpInfo($object_type, $object_id, string $contentTyp $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -447,7 +447,7 @@ public function createWithHttpInfo($object_type, $simple_public_object_input_for switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Model\SimplePublicObject', $request, @@ -461,7 +461,7 @@ public function createWithHttpInfo($object_type, $simple_public_object_input_for ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -500,7 +500,7 @@ public function createWithHttpInfo($object_type, $simple_public_object_input_for $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($object_type, $object_id, $properties = null ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -815,7 +815,7 @@ public function getByIdWithHttpInfo($object_type, $object_id, $properties = null $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1157,7 +1157,7 @@ public function getPageWithHttpInfo($object_type, $limit = 10, $after = null, $p ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1196,7 +1196,7 @@ public function getPageWithHttpInfo($object_type, $limit = 10, $after = null, $p $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1527,7 +1527,7 @@ public function updateWithHttpInfo($object_type, $object_id, $simple_public_obje ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1566,7 +1566,7 @@ public function updateWithHttpInfo($object_type, $object_id, $simple_public_obje $e->setResponseObject($data); throw $e; } - + throw $e; } diff --git a/codegen/Crm/Objects/Calls/Api/BasicApi.php b/codegen/Crm/Objects/Calls/Api/BasicApi.php index 33880f05..52d32454 100644 --- a/codegen/Crm/Objects/Calls/Api/BasicApi.php +++ b/codegen/Crm/Objects/Calls/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($call_id, string $contentType = self::conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($call_id, string $contentType = self::contentType if (!preg_match("/.+/", $call_id)) { throw new \InvalidArgumentException("invalid value for \"call_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/calls/{callId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Calls\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($call_id, $properties = null, $properties_wi ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($call_id, $properties = null, $properties_wi $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($call_id, $properties = null, $properties_with_hi if (!preg_match("/.+/", $call_id)) { throw new \InvalidArgumentException("invalid value for \"call_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($call_id, $simple_public_object_input, $id_pr ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($call_id, $simple_public_object_input, $id_pr $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($call_id, $simple_public_object_input, $id_propert if (!preg_match("/.+/", $call_id)) { throw new \InvalidArgumentException("invalid value for \"call_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Communications/Api/BasicApi.php b/codegen/Crm/Objects/Communications/Api/BasicApi.php index 77170cd5..3da5f727 100644 --- a/codegen/Crm/Objects/Communications/Api/BasicApi.php +++ b/codegen/Crm/Objects/Communications/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($communication_id, string $contentType = sel $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($communication_id, string $contentType = self::co if (!preg_match("/.+/", $communication_id)) { throw new \InvalidArgumentException("invalid value for \"communication_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/communications/{communicationId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Communications\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($communication_id, $properties = null, $prop ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($communication_id, $properties = null, $prop $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($communication_id, $properties = null, $propertie if (!preg_match("/.+/", $communication_id)) { throw new \InvalidArgumentException("invalid value for \"communication_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($communication_id, $simple_public_object_inpu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($communication_id, $simple_public_object_inpu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($communication_id, $simple_public_object_input, $i if (!preg_match("/.+/", $communication_id)) { throw new \InvalidArgumentException("invalid value for \"communication_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Emails/Api/BasicApi.php b/codegen/Crm/Objects/Emails/Api/BasicApi.php index d82dc90e..216affef 100644 --- a/codegen/Crm/Objects/Emails/Api/BasicApi.php +++ b/codegen/Crm/Objects/Emails/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($email_id, string $contentType = self::conte $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($email_id, string $contentType = self::contentTyp if (!preg_match("/.+/", $email_id)) { throw new \InvalidArgumentException("invalid value for \"email_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/emails/{emailId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Emails\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($email_id, $properties = null, $properties_w ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($email_id, $properties = null, $properties_w $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($email_id, $properties = null, $properties_with_h if (!preg_match("/.+/", $email_id)) { throw new \InvalidArgumentException("invalid value for \"email_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($email_id, $simple_public_object_input, $id_p ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($email_id, $simple_public_object_input, $id_p $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($email_id, $simple_public_object_input, $id_proper if (!preg_match("/.+/", $email_id)) { throw new \InvalidArgumentException("invalid value for \"email_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Goals/Api/BasicApi.php b/codegen/Crm/Objects/Goals/Api/BasicApi.php index 84af7995..86493b9c 100644 --- a/codegen/Crm/Objects/Goals/Api/BasicApi.php +++ b/codegen/Crm/Objects/Goals/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($goal_target_id, string $contentType = self: $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($goal_target_id, string $contentType = self::cont if (!preg_match("/.+/", $goal_target_id)) { throw new \InvalidArgumentException("invalid value for \"goal_target_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/goal_targets/{goalTargetId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Goals\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($goal_target_id, $properties = null, $proper ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($goal_target_id, $properties = null, $proper $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($goal_target_id, $properties = null, $properties_ if (!preg_match("/.+/", $goal_target_id)) { throw new \InvalidArgumentException("invalid value for \"goal_target_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($goal_target_id, $simple_public_object_input, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($goal_target_id, $simple_public_object_input, $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($goal_target_id, $simple_public_object_input, $id_ if (!preg_match("/.+/", $goal_target_id)) { throw new \InvalidArgumentException("invalid value for \"goal_target_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Meetings/Api/BasicApi.php b/codegen/Crm/Objects/Meetings/Api/BasicApi.php index 3cc02765..5a00322b 100644 --- a/codegen/Crm/Objects/Meetings/Api/BasicApi.php +++ b/codegen/Crm/Objects/Meetings/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($meeting_id, string $contentType = self::con $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($meeting_id, string $contentType = self::contentT if (!preg_match("/.+/", $meeting_id)) { throw new \InvalidArgumentException("invalid value for \"meeting_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/meetings/{meetingId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Meetings\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($meeting_id, $properties = null, $properties ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($meeting_id, $properties = null, $properties $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($meeting_id, $properties = null, $properties_with if (!preg_match("/.+/", $meeting_id)) { throw new \InvalidArgumentException("invalid value for \"meeting_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($meeting_id, $simple_public_object_input, $id ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($meeting_id, $simple_public_object_input, $id $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($meeting_id, $simple_public_object_input, $id_prop if (!preg_match("/.+/", $meeting_id)) { throw new \InvalidArgumentException("invalid value for \"meeting_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Notes/Api/BasicApi.php b/codegen/Crm/Objects/Notes/Api/BasicApi.php index 87bd83be..76839a76 100644 --- a/codegen/Crm/Objects/Notes/Api/BasicApi.php +++ b/codegen/Crm/Objects/Notes/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($note_id, string $contentType = self::conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($note_id, string $contentType = self::contentType if (!preg_match("/.+/", $note_id)) { throw new \InvalidArgumentException("invalid value for \"note_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/notes/{noteId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Notes\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($note_id, $properties = null, $properties_wi ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($note_id, $properties = null, $properties_wi $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($note_id, $properties = null, $properties_with_hi if (!preg_match("/.+/", $note_id)) { throw new \InvalidArgumentException("invalid value for \"note_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($note_id, $simple_public_object_input, $id_pr ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($note_id, $simple_public_object_input, $id_pr $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($note_id, $simple_public_object_input, $id_propert if (!preg_match("/.+/", $note_id)) { throw new \InvalidArgumentException("invalid value for \"note_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/PostalMail/Api/BasicApi.php b/codegen/Crm/Objects/PostalMail/Api/BasicApi.php index 079a1675..64d94e5c 100644 --- a/codegen/Crm/Objects/PostalMail/Api/BasicApi.php +++ b/codegen/Crm/Objects/PostalMail/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($postal_mail_id, string $contentType = self: $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($postal_mail_id, string $contentType = self::cont if (!preg_match("/.+/", $postal_mail_id)) { throw new \InvalidArgumentException("invalid value for \"postal_mail_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/postal_mail/{postalMailId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -658,7 +658,7 @@ public function createRequest($simple_public_object_input_for_create, string $co /** * Operation getById * - * + * * * @param string $postal_mail_id postal_mail_id (required) * @param string[]|null $properties properties (optional) @@ -681,7 +681,7 @@ public function getById($postal_mail_id, $properties = null, $properties_with_hi /** * Operation getByIdWithHttpInfo * - * + * * * @param string $postal_mail_id (required) * @param string[]|null $properties (optional) @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($postal_mail_id, $properties = null, $proper ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($postal_mail_id, $properties = null, $proper $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -785,7 +785,7 @@ public function getByIdWithHttpInfo($postal_mail_id, $properties = null, $proper /** * Operation getByIdAsync * - * + * * * @param string $postal_mail_id (required) * @param string[]|null $properties (optional) @@ -811,7 +811,7 @@ function ($response) { /** * Operation getByIdAsyncWithHttpInfo * - * + * * * @param string $postal_mail_id (required) * @param string[]|null $properties (optional) @@ -891,7 +891,7 @@ public function getByIdRequest($postal_mail_id, $properties = null, $properties_ if (!preg_match("/.+/", $postal_mail_id)) { throw new \InvalidArgumentException("invalid value for \"postal_mail_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1022,7 +1022,7 @@ public function getByIdRequest($postal_mail_id, $properties = null, $properties_ /** * Operation getPage * - * + * * * @param int|null $limit limit (optional, default to 10) * @param string|null $after after (optional) @@ -1045,7 +1045,7 @@ public function getPage($limit = 10, $after = null, $properties = null, $propert /** * Operation getPageWithHttpInfo * - * + * * * @param int|null $limit (optional, default to 10) * @param string|null $after (optional) @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1149,7 +1149,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu /** * Operation getPageAsync * - * + * * * @param int|null $limit (optional, default to 10) * @param string|null $after (optional) @@ -1175,7 +1175,7 @@ function ($response) { /** * Operation getPageAsyncWithHttpInfo * - * + * * * @param int|null $limit (optional, default to 10) * @param string|null $after (optional) @@ -1378,7 +1378,7 @@ public function getPageRequest($limit = 10, $after = null, $properties = null, $ /** * Operation update * - * + * * * @param string $postal_mail_id postal_mail_id (required) * @param \HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInput $simple_public_object_input simple_public_object_input (required) @@ -1398,7 +1398,7 @@ public function update($postal_mail_id, $simple_public_object_input, $id_propert /** * Operation updateWithHttpInfo * - * + * * * @param string $postal_mail_id (required) * @param \HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInput $simple_public_object_input (required) @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($postal_mail_id, $simple_public_object_input, ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($postal_mail_id, $simple_public_object_input, $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1499,7 +1499,7 @@ public function updateWithHttpInfo($postal_mail_id, $simple_public_object_input, /** * Operation updateAsync * - * + * * * @param string $postal_mail_id (required) * @param \HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInput $simple_public_object_input (required) @@ -1522,7 +1522,7 @@ function ($response) { /** * Operation updateAsyncWithHttpInfo * - * + * * * @param string $postal_mail_id (required) * @param \HubSpot\Client\Crm\Objects\PostalMail\Model\SimplePublicObjectInput $simple_public_object_input (required) @@ -1596,7 +1596,7 @@ public function updateRequest($postal_mail_id, $simple_public_object_input, $id_ if (!preg_match("/.+/", $postal_mail_id)) { throw new \InvalidArgumentException("invalid value for \"postal_mail_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Tasks/Api/BasicApi.php b/codegen/Crm/Objects/Tasks/Api/BasicApi.php index 17aa5b1a..219f288d 100644 --- a/codegen/Crm/Objects/Tasks/Api/BasicApi.php +++ b/codegen/Crm/Objects/Tasks/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($task_id, string $contentType = self::conten $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($task_id, string $contentType = self::contentType if (!preg_match("/.+/", $task_id)) { throw new \InvalidArgumentException("invalid value for \"task_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/tasks/{taskId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Tasks\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($task_id, $properties = null, $properties_wi ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($task_id, $properties = null, $properties_wi $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($task_id, $properties = null, $properties_with_hi if (!preg_match("/.+/", $task_id)) { throw new \InvalidArgumentException("invalid value for \"task_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($task_id, $simple_public_object_input, $id_pr ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($task_id, $simple_public_object_input, $id_pr $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($task_id, $simple_public_object_input, $id_propert if (!preg_match("/.+/", $task_id)) { throw new \InvalidArgumentException("invalid value for \"task_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Objects/Taxes/Api/BasicApi.php b/codegen/Crm/Objects/Taxes/Api/BasicApi.php index b5a9ead4..d0065153 100644 --- a/codegen/Crm/Objects/Taxes/Api/BasicApi.php +++ b/codegen/Crm/Objects/Taxes/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($tax_id, string $contentType = self::content $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($tax_id, string $contentType = self::contentTypes if (!preg_match("/.+/", $tax_id)) { throw new \InvalidArgumentException("invalid value for \"tax_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/taxes/{taxId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Objects\Taxes\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($tax_id, $properties = null, $properties_wit ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($tax_id, $properties = null, $properties_wit $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($tax_id, $properties = null, $properties_with_his if (!preg_match("/.+/", $tax_id)) { throw new \InvalidArgumentException("invalid value for \"tax_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($tax_id, $simple_public_object_input, $id_pro ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($tax_id, $simple_public_object_input, $id_pro $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($tax_id, $simple_public_object_input, $id_property if (!preg_match("/.+/", $tax_id)) { throw new \InvalidArgumentException("invalid value for \"tax_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Products/Api/BasicApi.php b/codegen/Crm/Products/Api/BasicApi.php index b62b84fc..1fad8786 100644 --- a/codegen/Crm/Products/Api/BasicApi.php +++ b/codegen/Crm/Products/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($product_id, string $contentType = self::con $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($product_id, string $contentType = self::contentT if (!preg_match("/.+/", $product_id)) { throw new \InvalidArgumentException("invalid value for \"product_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/products/{productId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Products\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($product_id, $properties = null, $properties ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($product_id, $properties = null, $properties $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($product_id, $properties = null, $properties_with if (!preg_match("/.+/", $product_id)) { throw new \InvalidArgumentException("invalid value for \"product_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($product_id, $simple_public_object_input, $id ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($product_id, $simple_public_object_input, $id $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($product_id, $simple_public_object_input, $id_prop if (!preg_match("/.+/", $product_id)) { throw new \InvalidArgumentException("invalid value for \"product_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Quotes/Api/BasicApi.php b/codegen/Crm/Quotes/Api/BasicApi.php index 710d0f94..6f224355 100644 --- a/codegen/Crm/Quotes/Api/BasicApi.php +++ b/codegen/Crm/Quotes/Api/BasicApi.php @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($quote_id, string $contentType = self::conte $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -292,7 +292,7 @@ public function archiveRequest($quote_id, string $contentType = self::contentTyp if (!preg_match("/.+/", $quote_id)) { throw new \InvalidArgumentException("invalid value for \"quote_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/quotes/{quoteId}'; $formParams = []; @@ -428,7 +428,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Quotes\Model\SimplePublicObject', $request, @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($quote_id, $properties = null, $properties_w ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($quote_id, $properties = null, $properties_w $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -891,7 +891,7 @@ public function getByIdRequest($quote_id, $properties = null, $properties_with_h if (!preg_match("/.+/", $quote_id)) { throw new \InvalidArgumentException("invalid value for \"quote_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($quote_id, $simple_public_object_input, $id_p ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($quote_id, $simple_public_object_input, $id_p $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1596,7 +1596,7 @@ public function updateRequest($quote_id, $simple_public_object_input, $id_proper if (!preg_match("/.+/", $quote_id)) { throw new \InvalidArgumentException("invalid value for \"quote_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException( diff --git a/codegen/Crm/Tickets/Api/BasicApi.php b/codegen/Crm/Tickets/Api/BasicApi.php index dfd9dfb5..a9dab79d 100644 --- a/codegen/Crm/Tickets/Api/BasicApi.php +++ b/codegen/Crm/Tickets/Api/BasicApi.php @@ -208,7 +208,7 @@ public function archiveWithHttpInfo($ticket_id, string $contentType = self::cont $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -295,7 +295,7 @@ public function archiveRequest($ticket_id, string $contentType = self::contentTy if (!preg_match("/.+/", $ticket_id)) { throw new \InvalidArgumentException("invalid value for \"ticket_id\" when calling BasicApi.archive, must conform to the pattern /.+/."); } - + $resourcePath = '/crm/v3/objects/tickets/{ticketId}'; $formParams = []; @@ -431,7 +431,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin switch($statusCode) { - case 200: + case 201: return $this->handleResponseWithDataType( '\HubSpot\Client\Crm\Tickets\Model\SimplePublicObject', $request, @@ -445,7 +445,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -484,7 +484,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -740,7 +740,7 @@ public function getByIdWithHttpInfo($ticket_id, $properties = null, $properties_ ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -779,7 +779,7 @@ public function getByIdWithHttpInfo($ticket_id, $properties = null, $properties_ $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -894,7 +894,7 @@ public function getByIdRequest($ticket_id, $properties = null, $properties_with_ if (!preg_match("/.+/", $ticket_id)) { throw new \InvalidArgumentException("invalid value for \"ticket_id\" when calling BasicApi.getById, must conform to the pattern /.+/."); } - + @@ -1104,7 +1104,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1143,7 +1143,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1450,7 +1450,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1489,7 +1489,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1739,7 +1739,7 @@ public function updateWithHttpInfo($ticket_id, $simple_public_object_input, $id_ ); } - + if ($statusCode < 200 || $statusCode > 299) { throw new ApiException( @@ -1778,7 +1778,7 @@ public function updateWithHttpInfo($ticket_id, $simple_public_object_input, $id_ $e->setResponseObject($data); throw $e; } - + throw $e; } @@ -1884,7 +1884,7 @@ public function updateRequest($ticket_id, $simple_public_object_input, $id_prope if (!preg_match("/.+/", $ticket_id)) { throw new \InvalidArgumentException("invalid value for \"ticket_id\" when calling BasicApi.update, must conform to the pattern /.+/."); } - + // verify the required parameter 'simple_public_object_input' is set if ($simple_public_object_input === null || (is_array($simple_public_object_input) && count($simple_public_object_input) === 0)) { throw new \InvalidArgumentException(