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
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/14.0.5...HEAD)
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/14.0.6...HEAD)

## [14.0.6](https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.6) - 2026-04-22

### CRM Objects

- `crm()->objects()->basicApi()->create()` now returns HTTP 201 instead of 200.
- `crm()->objects()->basicApi()->getPage()` return type changed from `CollectionResponseSimplePublicObjectWithAssociations` to `CollectionResponseSimplePublicObjectWithAssociationsForwardPaging`.
- `crm()->objects()->batchApi()->create()` now returns HTTP 201 instead of 200, and handles HTTP 207 (partial success) responses with new `BatchResponseSimplePublicObjectWithErrors` model.
- `crm()->objects()->batchApi()->read()` and `update()` now handle HTTP 207 (partial success) responses, returning `BatchResponseSimplePublicObjectWithErrors`.
- `crm()->objects()->batchApi()->upsert()` now handles HTTP 207 (partial success) responses, returning `BatchResponseSimplePublicUpsertObjectWithErrors`.
- `HubSpot\Client\Crm\Objects\Model\BatchResponseSimplePublicObject` no longer includes `errors` and `numErrors` fields — those are available on the new `BatchResponseSimplePublicObjectWithErrors` model.
- `HubSpot\Client\Crm\Objects\Model\BatchResponseSimplePublicUpsertObject` no longer includes `errors` and `numErrors` fields — those are available on the new `BatchResponseSimplePublicUpsertObjectWithErrors` model.
- Renamed model `CollectionResponseSimplePublicObjectWithAssociations` to `CollectionResponseSimplePublicObjectWithAssociationsForwardPaging`.
- Added new models: `BatchResponseSimplePublicObjectWithErrors`, `BatchResponseSimplePublicUpsertObjectWithErrors`, `ForwardPaging`.

## [14.0.5](https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.5) - 2026-04-02

Expand Down Expand Up @@ -1230,7 +1244,7 @@ to
25. getSubscriptions => getAll (webhooks()->subscriptionsApi())
26. updateSubscription => update (webhooks()->subscriptionsApi())

[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/14.0.5...HEAD
[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/14.0.6...HEAD
[1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta
[1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0
[1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0
Expand Down Expand Up @@ -1302,3 +1316,4 @@ to
[14.0.3]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.3
[14.0.4]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.4
[14.0.5]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.5
[14.0.6]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.6
174 changes: 87 additions & 87 deletions codegen/Crm/Objects/Api/BasicApi.php

Large diffs are not rendered by default.

126 changes: 91 additions & 35 deletions codegen/Crm/Objects/Api/BatchApi.php

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions codegen/Crm/Objects/Api/SearchApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getConfig()
/**
* Operation doSearch
*
* @param string $object_type object_type (required)
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicObjectSearchRequest $public_object_search_request public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
Expand All @@ -145,7 +145,7 @@ public function doSearch($object_type, $public_object_search_request, string $co
/**
* Operation doSearchWithHttpInfo
*
* @param string $object_type (required)
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
Expand Down Expand Up @@ -243,7 +243,7 @@ public function doSearchWithHttpInfo($object_type, $public_object_search_request
/**
* Operation doSearchAsync
*
* @param string $object_type (required)
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
Expand All @@ -263,7 +263,7 @@ function ($response) {
/**
* Operation doSearchAsyncWithHttpInfo
*
* @param string $object_type (required)
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
Expand Down Expand Up @@ -314,7 +314,7 @@ function ($exception) {
/**
* Create request for operation 'doSearch'
*
* @param string $object_type (required)
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
Expand Down
68 changes: 0 additions & 68 deletions codegen/Crm/Objects/Model/BatchResponseSimplePublicObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ class BatchResponseSimplePublicObject implements ModelInterface, ArrayAccess, \J
*/
protected static $openAPITypes = [
'completed_at' => '\DateTime',
'errors' => '\HubSpot\Client\Crm\Objects\Model\StandardError[]',
'links' => 'array<string,string>',
'num_errors' => 'int',
'requested_at' => '\DateTime',
'results' => '\HubSpot\Client\Crm\Objects\Model\SimplePublicObject[]',
'started_at' => '\DateTime',
Expand All @@ -77,9 +75,7 @@ class BatchResponseSimplePublicObject implements ModelInterface, ArrayAccess, \J
*/
protected static $openAPIFormats = [
'completed_at' => 'date-time',
'errors' => null,
'links' => null,
'num_errors' => 'int32',
'requested_at' => 'date-time',
'results' => null,
'started_at' => 'date-time',
Expand All @@ -93,9 +89,7 @@ class BatchResponseSimplePublicObject implements ModelInterface, ArrayAccess, \J
*/
protected static array $openAPINullables = [
'completed_at' => false,
'errors' => false,
'links' => false,
'num_errors' => false,
'requested_at' => false,
'results' => false,
'started_at' => false,
Expand Down Expand Up @@ -189,9 +183,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'completed_at' => 'completedAt',
'errors' => 'errors',
'links' => 'links',
'num_errors' => 'numErrors',
'requested_at' => 'requestedAt',
'results' => 'results',
'started_at' => 'startedAt',
Expand All @@ -205,9 +197,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'completed_at' => 'setCompletedAt',
'errors' => 'setErrors',
'links' => 'setLinks',
'num_errors' => 'setNumErrors',
'requested_at' => 'setRequestedAt',
'results' => 'setResults',
'started_at' => 'setStartedAt',
Expand All @@ -221,9 +211,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'completed_at' => 'getCompletedAt',
'errors' => 'getErrors',
'links' => 'getLinks',
'num_errors' => 'getNumErrors',
'requested_at' => 'getRequestedAt',
'results' => 'getResults',
'started_at' => 'getStartedAt',
Expand Down Expand Up @@ -307,9 +295,7 @@ public function getStatusAllowableValues()
public function __construct(?array $data = null)
{
$this->setIfExists('completed_at', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
$this->setIfExists('links', $data ?? [], null);
$this->setIfExists('num_errors', $data ?? [], null);
$this->setIfExists('requested_at', $data ?? [], null);
$this->setIfExists('results', $data ?? [], null);
$this->setIfExists('started_at', $data ?? [], null);
Expand Down Expand Up @@ -406,33 +392,6 @@ public function setCompletedAt($completed_at)
return $this;
}

/**
* Gets errors
*
* @return \HubSpot\Client\Crm\Objects\Model\StandardError[]|null
*/
public function getErrors()
{
return $this->container['errors'];
}

/**
* Sets errors
*
* @param \HubSpot\Client\Crm\Objects\Model\StandardError[]|null $errors errors
*
* @return self
*/
public function setErrors($errors)
{
if (is_null($errors)) {
throw new \InvalidArgumentException('non-nullable errors cannot be null');
}
$this->container['errors'] = $errors;

return $this;
}

/**
* Gets links
*
Expand Down Expand Up @@ -460,33 +419,6 @@ public function setLinks($links)
return $this;
}

/**
* Gets num_errors
*
* @return int|null
*/
public function getNumErrors()
{
return $this->container['num_errors'];
}

/**
* Sets num_errors
*
* @param int|null $num_errors The total number of errors that occurred during the batch operation.
*
* @return self
*/
public function setNumErrors($num_errors)
{
if (is_null($num_errors)) {
throw new \InvalidArgumentException('non-nullable num_errors cannot be null');
}
$this->container['num_errors'] = $num_errors;

return $this;
}

/**
* Gets requested_at
*
Expand Down
Loading
Loading