diff --git a/CHANGELOG.md b/CHANGELOG.md index 1905650..ce48a6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Added `GET /api/v2/persons/{id}/picture` endpoint to retrieve picture information for a specific person, including ID, file size, and URLs for both 128x128 (thumbnail) and 512x512 (full-size) versions of the person's profile picture + +## [14.7.1](https://github.com/pipedrive/client-php/compare/14.7.0...14.7.1) (2026-01-27) ## [14.7.0](https://github.com/pipedrive/client-php/compare/14.6.1...14.7.0) (2026-01-27) diff --git a/docs/versions/v2/Model/ActivityItemLocation.md b/docs/versions/v2/Model/ActivityItemLocation.md index 0fd68ac..a2e33c9 100644 --- a/docs/versions/v2/Model/ActivityItemLocation.md +++ b/docs/versions/v2/Model/ActivityItemLocation.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **sublocality** | **string** | Sublocality (e.g. neighborhood) of the activity | [optional] **route** | **string** | Route (e.g. street) of the activity | [optional] **street_number** | **string** | Street number of the activity | [optional] +**subpremise** | **string** | Subpremise (e.g. apartment/suite number) of the activity | [optional] **postal_code** | **string** | Postal code of the activity | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v2/Model/OrganizationItemAddress.md b/docs/versions/v2/Model/OrganizationItemAddress.md index c4d8ee4..92803e6 100644 --- a/docs/versions/v2/Model/OrganizationItemAddress.md +++ b/docs/versions/v2/Model/OrganizationItemAddress.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **sublocality** | **string** | Sublocality (e.g. neighborhood) of the organization | [optional] **route** | **string** | Route (e.g. street) of the organization | [optional] **street_number** | **string** | Street number of the organization | [optional] +**subpremise** | **string** | Subpremise (e.g. apartment/suite number) of the organization | [optional] **postal_code** | **string** | Postal code of the organization | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v2/Model/PersonItemPostalAddress.md b/docs/versions/v2/Model/PersonItemPostalAddress.md index 8e0913e..5f5399f 100644 --- a/docs/versions/v2/Model/PersonItemPostalAddress.md +++ b/docs/versions/v2/Model/PersonItemPostalAddress.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **sublocality** | **string** | Sublocality (e.g. neighborhood) of the person | [optional] **route** | **string** | Route (e.g. street) of the person | [optional] **street_number** | **string** | Street number of the person | [optional] +**subpremise** | **string** | Subpremise (e.g. apartment/suite number) of the person | [optional] **postal_code** | **string** | Postal code of the person | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/versions/v2/Model/ActivityItemLocation.php b/lib/versions/v2/Model/ActivityItemLocation.php index 38e8b9b..b34fb77 100644 --- a/lib/versions/v2/Model/ActivityItemLocation.php +++ b/lib/versions/v2/Model/ActivityItemLocation.php @@ -75,6 +75,7 @@ class ActivityItemLocation implements ModelInterface, ArrayAccess, JsonSerializa 'sublocality' => 'string', 'route' => 'string', 'street_number' => 'string', + 'subpremise' => 'string', 'postal_code' => 'string' ]; @@ -94,6 +95,7 @@ class ActivityItemLocation implements ModelInterface, ArrayAccess, JsonSerializa 'sublocality' => null, 'route' => null, 'street_number' => null, + 'subpremise' => null, 'postal_code' => null ]; @@ -136,6 +138,7 @@ public static function openAPIFormats(): array 'sublocality' => 'sublocality', 'route' => 'route', 'street_number' => 'street_number', + 'subpremise' => 'subpremise', 'postal_code' => 'postal_code' ]; @@ -153,6 +156,7 @@ public static function openAPIFormats(): array 'sublocality' => 'setSublocality', 'route' => 'setRoute', 'street_number' => 'setStreetNumber', + 'subpremise' => 'setSubpremise', 'postal_code' => 'setPostalCode' ]; @@ -170,6 +174,7 @@ public static function openAPIFormats(): array 'sublocality' => 'getSublocality', 'route' => 'getRoute', 'street_number' => 'getStreetNumber', + 'subpremise' => 'getSubpremise', 'postal_code' => 'getPostalCode' ]; @@ -248,6 +253,7 @@ public function __construct(array $data = null) $this->container['sublocality'] = $data['sublocality'] ?? null; $this->container['route'] = $data['route'] ?? null; $this->container['street_number'] = $data['street_number'] ?? null; + $this->container['subpremise'] = $data['subpremise'] ?? null; $this->container['postal_code'] = $data['postal_code'] ?? null; } @@ -469,6 +475,30 @@ public function setStreetNumber($street_number): self return $this; } + /** + * Gets subpremise + * + * @return string|null + */ + public function getSubpremise() + { + return $this->container['subpremise']; + } + + /** + * Sets subpremise + * + * @param string|null $subpremise Subpremise (e.g. apartment/suite number) of the activity + * + * @return self + */ + public function setSubpremise($subpremise): self + { + $this->container['subpremise'] = $subpremise; + + return $this; + } + /** * Gets postal_code * diff --git a/lib/versions/v2/Model/OrganizationItemAddress.php b/lib/versions/v2/Model/OrganizationItemAddress.php index 0559062..1c98da0 100644 --- a/lib/versions/v2/Model/OrganizationItemAddress.php +++ b/lib/versions/v2/Model/OrganizationItemAddress.php @@ -74,6 +74,7 @@ class OrganizationItemAddress implements ModelInterface, ArrayAccess, JsonSerial 'sublocality' => 'string', 'route' => 'string', 'street_number' => 'string', + 'subpremise' => 'string', 'postal_code' => 'string' ]; @@ -93,6 +94,7 @@ class OrganizationItemAddress implements ModelInterface, ArrayAccess, JsonSerial 'sublocality' => null, 'route' => null, 'street_number' => null, + 'subpremise' => null, 'postal_code' => null ]; @@ -135,6 +137,7 @@ public static function openAPIFormats(): array 'sublocality' => 'sublocality', 'route' => 'route', 'street_number' => 'street_number', + 'subpremise' => 'subpremise', 'postal_code' => 'postal_code' ]; @@ -152,6 +155,7 @@ public static function openAPIFormats(): array 'sublocality' => 'setSublocality', 'route' => 'setRoute', 'street_number' => 'setStreetNumber', + 'subpremise' => 'setSubpremise', 'postal_code' => 'setPostalCode' ]; @@ -169,6 +173,7 @@ public static function openAPIFormats(): array 'sublocality' => 'getSublocality', 'route' => 'getRoute', 'street_number' => 'getStreetNumber', + 'subpremise' => 'getSubpremise', 'postal_code' => 'getPostalCode' ]; @@ -247,6 +252,7 @@ public function __construct(array $data = null) $this->container['sublocality'] = $data['sublocality'] ?? null; $this->container['route'] = $data['route'] ?? null; $this->container['street_number'] = $data['street_number'] ?? null; + $this->container['subpremise'] = $data['subpremise'] ?? null; $this->container['postal_code'] = $data['postal_code'] ?? null; } @@ -468,6 +474,30 @@ public function setStreetNumber($street_number): self return $this; } + /** + * Gets subpremise + * + * @return string|null + */ + public function getSubpremise() + { + return $this->container['subpremise']; + } + + /** + * Sets subpremise + * + * @param string|null $subpremise Subpremise (e.g. apartment/suite number) of the organization + * + * @return self + */ + public function setSubpremise($subpremise): self + { + $this->container['subpremise'] = $subpremise; + + return $this; + } + /** * Gets postal_code * diff --git a/lib/versions/v2/Model/PersonItemPostalAddress.php b/lib/versions/v2/Model/PersonItemPostalAddress.php index bcfb1de..5ee2418 100644 --- a/lib/versions/v2/Model/PersonItemPostalAddress.php +++ b/lib/versions/v2/Model/PersonItemPostalAddress.php @@ -75,6 +75,7 @@ class PersonItemPostalAddress implements ModelInterface, ArrayAccess, JsonSerial 'sublocality' => 'string', 'route' => 'string', 'street_number' => 'string', + 'subpremise' => 'string', 'postal_code' => 'string' ]; @@ -94,6 +95,7 @@ class PersonItemPostalAddress implements ModelInterface, ArrayAccess, JsonSerial 'sublocality' => null, 'route' => null, 'street_number' => null, + 'subpremise' => null, 'postal_code' => null ]; @@ -136,6 +138,7 @@ public static function openAPIFormats(): array 'sublocality' => 'sublocality', 'route' => 'route', 'street_number' => 'street_number', + 'subpremise' => 'subpremise', 'postal_code' => 'postal_code' ]; @@ -153,6 +156,7 @@ public static function openAPIFormats(): array 'sublocality' => 'setSublocality', 'route' => 'setRoute', 'street_number' => 'setStreetNumber', + 'subpremise' => 'setSubpremise', 'postal_code' => 'setPostalCode' ]; @@ -170,6 +174,7 @@ public static function openAPIFormats(): array 'sublocality' => 'getSublocality', 'route' => 'getRoute', 'street_number' => 'getStreetNumber', + 'subpremise' => 'getSubpremise', 'postal_code' => 'getPostalCode' ]; @@ -248,6 +253,7 @@ public function __construct(array $data = null) $this->container['sublocality'] = $data['sublocality'] ?? null; $this->container['route'] = $data['route'] ?? null; $this->container['street_number'] = $data['street_number'] ?? null; + $this->container['subpremise'] = $data['subpremise'] ?? null; $this->container['postal_code'] = $data['postal_code'] ?? null; } @@ -469,6 +475,30 @@ public function setStreetNumber($street_number): self return $this; } + /** + * Gets subpremise + * + * @return string|null + */ + public function getSubpremise() + { + return $this->container['subpremise']; + } + + /** + * Sets subpremise + * + * @param string|null $subpremise Subpremise (e.g. apartment/suite number) of the person + * + * @return self + */ + public function setSubpremise($subpremise): self + { + $this->container['subpremise'] = $subpremise; + + return $this; + } + /** * Gets postal_code *