Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions codegen/Crm/Commerce/Invoices/Api/BasicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($invoice_id, string $contentType = self::con
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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,
Expand All @@ -442,7 +442,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -481,7 +481,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -737,7 +737,7 @@ public function getByIdWithHttpInfo($invoice_id, $properties = null, $properties
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -776,7 +776,7 @@ public function getByIdWithHttpInfo($invoice_id, $properties = null, $properties
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 /.+/.");
}




Expand Down Expand Up @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1140,7 +1140,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1451,7 +1451,7 @@ public function updateWithHttpInfo($invoice_id, $simple_public_object_input, $id
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1490,7 +1490,7 @@ public function updateWithHttpInfo($invoice_id, $simple_public_object_input, $id
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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(
Expand Down
30 changes: 14 additions & 16 deletions codegen/Crm/Companies/Api/BasicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function archiveWithHttpInfo($company_id, string $contentType = self::con
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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,
Expand All @@ -445,8 +445,6 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
Expand Down Expand Up @@ -484,7 +482,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -740,7 +738,7 @@ public function getByIdWithHttpInfo($company_id, $properties = null, $properties
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -779,7 +777,7 @@ public function getByIdWithHttpInfo($company_id, $properties = null, $properties
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 /.+/.");
}




Expand Down Expand Up @@ -1104,7 +1102,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1143,7 +1141,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1450,7 +1448,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1489,7 +1487,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1739,7 +1737,7 @@ public function updateWithHttpInfo($company_id, $simple_public_object_input, $id
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1778,7 +1776,7 @@ public function updateWithHttpInfo($company_id, $simple_public_object_input, $id
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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(
Expand Down
30 changes: 15 additions & 15 deletions codegen/Crm/Deals/Api/BasicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function archiveWithHttpInfo($deal_id, string $contentType = self::conten
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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,
Expand All @@ -445,7 +445,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -484,7 +484,7 @@ public function createWithHttpInfo($simple_public_object_input_for_create, strin
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -740,7 +740,7 @@ public function getByIdWithHttpInfo($deal_id, $properties = null, $properties_wi
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -779,7 +779,7 @@ public function getByIdWithHttpInfo($deal_id, $properties = null, $properties_wi
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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 /.+/.");
}




Expand Down Expand Up @@ -1104,7 +1104,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1143,7 +1143,7 @@ public function getPageWithHttpInfo($limit = 10, $after = null, $properties = nu
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1450,7 +1450,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1489,7 +1489,7 @@ public function mergeWithHttpInfo($public_merge_input, string $contentType = sel
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -1739,7 +1739,7 @@ public function updateWithHttpInfo($deal_id, $simple_public_object_input, $id_pr
);
}



if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1778,7 +1778,7 @@ public function updateWithHttpInfo($deal_id, $simple_public_object_input, $id_pr
$e->setResponseObject($data);
throw $e;
}


throw $e;
}
Expand Down Expand Up @@ -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(
Expand Down
Loading