diff --git a/CHANGELOG.md b/CHANGELOG.md index 12d5466..6862382 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ 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.6.0](https://github.com/pipedrive/client-php/compare/14.5.0...14.6.0) (2025-12-05) diff --git a/docs/versions/v2/Api/PersonsApi.md b/docs/versions/v2/Api/PersonsApi.md index 847a638..056f637 100644 --- a/docs/versions/v2/Api/PersonsApi.md +++ b/docs/versions/v2/Api/PersonsApi.md @@ -11,6 +11,7 @@ Method | HTTP request | Description [**getPerson()**](PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person [**getPersonFollowers()**](PersonsApi.md#getPersonFollowers) | **GET** /persons/{id}/followers | List followers of a person [**getPersonFollowersChangelog()**](PersonsApi.md#getPersonFollowersChangelog) | **GET** /persons/{id}/followers/changelog | List followers changelog of a person +[**getPersonPicture()**](PersonsApi.md#getPersonPicture) | **GET** /persons/{id}/picture | Get picture of a person [**getPersons()**](PersonsApi.md#getPersons) | **GET** /persons | Get all persons [**searchPersons()**](PersonsApi.md#searchPersons) | **GET** /persons/search | Search persons [**updatePerson()**](PersonsApi.md#updatePerson) | **PATCH** /persons/{id} | Update a person @@ -487,6 +488,71 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## `getPersonPicture()` + +```php +getPersonPicture($id): \Pipedrive\versions\v2\Model\PersonPictureResponse +``` + +Get picture of a person + +Returns the picture associated with a person. The picture URLs include both 128x128 and 512x512 pixel versions. + +### Example + +```php +setApiKey('x-api-token', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = (new Pipedrive\versions\v2\Configuration())->setApiKeyPrefix('x-api-token', 'Bearer'); + +// Configure OAuth2 access token for authorization: oauth2 +$config = (new Pipedrive\versions\v2\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new Pipedrive\versions\v2\Api\PersonsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$id = 56; // int | The ID of the person + +try { + $result = $apiInstance->getPersonPicture($id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling PersonsApi->getPersonPicture: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| The ID of the person | + +### Return type + +[**\Pipedrive\versions\v2\Model\PersonPictureResponse**](../Model/PersonPictureResponse.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + ## `getPersons()` ```php 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/docs/versions/v2/Model/PersonPictureItem.md b/docs/versions/v2/Model/PersonPictureItem.md new file mode 100644 index 0000000..89f5234 --- /dev/null +++ b/docs/versions/v2/Model/PersonPictureItem.md @@ -0,0 +1,15 @@ +# # PersonPictureItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the picture. | [optional] +**item_type** | **string** | The type of item the picture is associated with. | [optional] +**item_id** | **int** | The ID of the person this picture belongs to. | [optional] +**added_by_user_id** | **int** | The ID of the user who added the picture. | [optional] +**active_flag** | **bool** | Whether the picture is active or not. | [optional] +**file_size** | **int** | The file size in bytes. | [optional] +**pictures** | [**\Pipedrive\versions\v2\Model\PersonPictureItemPictures**](PersonPictureItemPictures.md) | | [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/PersonPictureItemPictures.md b/docs/versions/v2/Model/PersonPictureItemPictures.md new file mode 100644 index 0000000..18a8879 --- /dev/null +++ b/docs/versions/v2/Model/PersonPictureItemPictures.md @@ -0,0 +1,10 @@ +# # PersonPictureItemPictures + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_128** | **string** | The URL of the 128x128 picture. | [optional] +**_512** | **string** | The URL of the 512x512 picture. | [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/PersonPictureResponse.md b/docs/versions/v2/Model/PersonPictureResponse.md new file mode 100644 index 0000000..9ec511d --- /dev/null +++ b/docs/versions/v2/Model/PersonPictureResponse.md @@ -0,0 +1,10 @@ +# # PersonPictureResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | If the response is successful or not | [optional] +**data** | [**\Pipedrive\versions\v2\Model\PersonPictureItem**](PersonPictureItem.md) | | [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/PipelineItem.md b/docs/versions/v2/Model/PipelineItem.md index af44894..861f000 100644 --- a/docs/versions/v2/Model/PipelineItem.md +++ b/docs/versions/v2/Model/PipelineItem.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **id** | **int** | The ID of the pipeline | [optional] **name** | **string** | The name of the pipeline | [optional] **order_nr** | **int** | Defines the order of pipelines. The pipeline with the lowest `order_nr` is considered the default. | [optional] -**is_selected** | **bool** | Whether this pipeline is selected or not | [optional] **is_deleted** | **bool** | Whether this pipeline is marked as deleted or not | [optional] **is_deal_probability_enabled** | **bool** | Whether deal probability is disabled or enabled for this pipeline | [optional] **add_time** | **string** | The pipeline creation time | [optional] diff --git a/docs/versions/v2/README.md b/docs/versions/v2/README.md index 2cb2e1f..ac62ecc 100644 --- a/docs/versions/v2/README.md +++ b/docs/versions/v2/README.md @@ -358,6 +358,7 @@ Class | Method | HTTP request | Description *PersonsApi* | [**getPerson**](Api/PersonsApi.md#getperson) | **GET** /persons/{id} | Get details of a person *PersonsApi* | [**getPersonFollowers**](Api/PersonsApi.md#getpersonfollowers) | **GET** /persons/{id}/followers | List followers of a person *PersonsApi* | [**getPersonFollowersChangelog**](Api/PersonsApi.md#getpersonfollowerschangelog) | **GET** /persons/{id}/followers/changelog | List followers changelog of a person +*PersonsApi* | [**getPersonPicture**](Api/PersonsApi.md#getpersonpicture) | **GET** /persons/{id}/picture | Get picture of a person *PersonsApi* | [**getPersons**](Api/PersonsApi.md#getpersons) | **GET** /persons | Get all persons *PersonsApi* | [**searchPersons**](Api/PersonsApi.md#searchpersons) | **GET** /persons/search | Search persons *PersonsApi* | [**updatePerson**](Api/PersonsApi.md#updateperson) | **PATCH** /persons/{id} | Update a person @@ -574,6 +575,9 @@ Class | Method | HTTP request | Description - [PersonItemIm](Model/PersonItemIm.md) - [PersonItemPhones](Model/PersonItemPhones.md) - [PersonItemPostalAddress](Model/PersonItemPostalAddress.md) + - [PersonPictureItem](Model/PersonPictureItem.md) + - [PersonPictureItemPictures](Model/PersonPictureItemPictures.md) + - [PersonPictureResponse](Model/PersonPictureResponse.md) - [PersonRequestBody](Model/PersonRequestBody.md) - [PersonRequestBodyEmails](Model/PersonRequestBodyEmails.md) - [PersonRequestBodyPhones](Model/PersonRequestBodyPhones.md) diff --git a/lib/versions/v2/Api/PersonsApi.php b/lib/versions/v2/Api/PersonsApi.php index 575157e..d47c0cb 100644 --- a/lib/versions/v2/Api/PersonsApi.php +++ b/lib/versions/v2/Api/PersonsApi.php @@ -2212,6 +2212,302 @@ public function getPersonFollowersChangelogRequest($id, $limit = null, $cursor = } + // path params + if ($id !== null) { + $resourcePath = str_replace( + '{' . 'id' . '}', + ObjectSerializer::toPathValue($id), + $resourcePath + ); + } + + + /* @phpstan-ignore-next-line */ + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (count($formParams) > 0) { + /* @phpstan-ignore-next-line */ + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = Utils::jsonEncode($formParams); + + } else { + // for HTTP post (form) + $httpBody = Query::build($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('x-api-token'); + if ($apiKey !== null) { + $headers['x-api-token'] = $apiKey; + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + // If access token is expired + if ($this->config->isRefreshPossible() && $this->config->getExpiresAt() <= time()) { + $this->config->refreshToken(); + } + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getPersonPicture + * + * Get picture of a person + * + * @param int $id The ID of the person (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException|GuzzleException + * @return \Pipedrive\versions\v2\Model\PersonPictureResponse + */ + public function getPersonPicture($id) + { + list($response) = $this->getPersonPictureWithHttpInfo($id); + return $response; + } + + /** + * Operation getPersonPictureWithHttpInfo + * + * Get picture of a person + * + * @param int $id The ID of the person (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException|GuzzleException + * @return array of \Pipedrive\versions\v2\Model\PersonPictureResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getPersonPictureWithHttpInfo($id) + { + $request = $this->getPersonPictureRequest($id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + if ($e->getCode() === 401 && $this->config->isRefreshPossible()) { + $this->config->refreshToken(); + $request = $this->getPersonPictureRequest($id); + $response = $this->client->send($request, $options); + } else { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + /* @phpstan-ignore-next-line */ + if ('\Pipedrive\versions\v2\Model\PersonPictureResponse' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + } + + return [ + ObjectSerializer::deserialize($content, '\Pipedrive\versions\v2\Model\PersonPictureResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + /* @phpstan-ignore-next-line */ + if ('\Pipedrive\versions\v2\Model\PersonPictureResponse' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + } + + return [ + ObjectSerializer::deserialize($content, '\Pipedrive\versions\v2\Model\PersonPictureResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Pipedrive\versions\v2\Model\PersonPictureResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getPersonPictureAsync + * + * Get picture of a person + * + * @param int $id The ID of the person (required) + * + * @throws InvalidArgumentException|OAuthProviderException + * @return PromiseInterface + */ + public function getPersonPictureAsync($id): PromiseInterface + { + return $this->getPersonPictureAsyncWithHttpInfo($id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPersonPictureAsyncWithHttpInfo + * + * Get picture of a person + * + * @param int $id The ID of the person (required) + * + * @throws InvalidArgumentException|OAuthProviderException + * @return PromiseInterface + */ + public function getPersonPictureAsyncWithHttpInfo($id): PromiseInterface + { + $returnType = '\Pipedrive\versions\v2\Model\PersonPictureResponse'; + $request = $this->getPersonPictureRequest($id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + /* @phpstan-ignore-next-line */ + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPersonPicture' + * + * @param int $id The ID of the person (required) + * + * @throws InvalidArgumentException|OAuthProviderException + * @return Request + */ + public function getPersonPictureRequest($id): Request + { + // verify the required parameter 'id' is set + /* @phpstan-ignore-next-line */ + if ($id === null || (is_array($id) && count($id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $id when calling getPersonPicture' + ); + } + + $resourcePath = '/persons/{id}/picture'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params if ($id !== null) { $resourcePath = str_replace( 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 * diff --git a/lib/versions/v2/Model/PersonPictureItem.php b/lib/versions/v2/Model/PersonPictureItem.php new file mode 100644 index 0000000..001a1d9 --- /dev/null +++ b/lib/versions/v2/Model/PersonPictureItem.php @@ -0,0 +1,525 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PersonPictureItem implements ModelInterface, ArrayAccess, JsonSerializable +{ + use RawData; + + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PersonPictureItem'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @phpsalm-var array + */ + protected static array $openAPITypes = [ + 'id' => 'int', + 'item_type' => 'string', + 'item_id' => 'int', + 'added_by_user_id' => 'int', + 'active_flag' => 'bool', + 'file_size' => 'int', + 'pictures' => '\Pipedrive\versions\v2\Model\PersonPictureItemPictures' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'item_type' => null, + 'item_id' => null, + 'added_by_user_id' => null, + 'active_flag' => null, + 'file_size' => null, + 'pictures' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPITypes(): array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPIFormats(): array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'item_type' => 'item_type', + 'item_id' => 'item_id', + 'added_by_user_id' => 'added_by_user_id', + 'active_flag' => 'active_flag', + 'file_size' => 'file_size', + 'pictures' => 'pictures' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'item_type' => 'setItemType', + 'item_id' => 'setItemId', + 'added_by_user_id' => 'setAddedByUserId', + 'active_flag' => 'setActiveFlag', + 'file_size' => 'setFileSize', + 'pictures' => 'setPictures' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'item_type' => 'getItemType', + 'item_id' => 'getItemId', + 'added_by_user_id' => 'getAddedByUserId', + 'active_flag' => 'getActiveFlag', + 'file_size' => 'getFileSize', + 'pictures' => 'getPictures' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function attributeMap(): array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function setters(): array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function getters(): array + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName(): string + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var array + * @phpstan-var array + * @psalm-var array + */ + protected array $container = []; + + /** + * Constructor + * + * @phpstan-param array|null $data + * @psalm-param array|null $data + * @param array|null $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = $data['id'] ?? null; + $this->container['item_type'] = $data['item_type'] ?? null; + $this->container['item_id'] = $data['item_id'] ?? null; + $this->container['added_by_user_id'] = $data['added_by_user_id'] ?? null; + $this->container['active_flag'] = $data['active_flag'] ?? null; + $this->container['file_size'] = $data['file_size'] ?? null; + $this->container['pictures'] = $data['pictures'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + * @phpstan-return array + * @psalm-return array + */ + public function listInvalidProperties(): array + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid(): bool + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return int|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int|null $id The ID of the picture. + * + * @return self + */ + public function setId($id): self + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets item_type + * + * @return string|null + */ + public function getItemType() + { + return $this->container['item_type']; + } + + /** + * Sets item_type + * + * @param string|null $item_type The type of item the picture is associated with. + * + * @return self + */ + public function setItemType($item_type): self + { + $this->container['item_type'] = $item_type; + + return $this; + } + + /** + * Gets item_id + * + * @return int|null + */ + public function getItemId() + { + return $this->container['item_id']; + } + + /** + * Sets item_id + * + * @param int|null $item_id The ID of the person this picture belongs to. + * + * @return self + */ + public function setItemId($item_id): self + { + $this->container['item_id'] = $item_id; + + return $this; + } + + /** + * Gets added_by_user_id + * + * @return int|null + */ + public function getAddedByUserId() + { + return $this->container['added_by_user_id']; + } + + /** + * Sets added_by_user_id + * + * @param int|null $added_by_user_id The ID of the user who added the picture. + * + * @return self + */ + public function setAddedByUserId($added_by_user_id): self + { + $this->container['added_by_user_id'] = $added_by_user_id; + + return $this; + } + + /** + * Gets active_flag + * + * @return bool|null + */ + public function getActiveFlag() + { + return $this->container['active_flag']; + } + + /** + * Sets active_flag + * + * @param bool|null $active_flag Whether the picture is active or not. + * + * @return self + */ + public function setActiveFlag($active_flag): self + { + $this->container['active_flag'] = $active_flag; + + return $this; + } + + /** + * Gets file_size + * + * @return int|null + */ + public function getFileSize() + { + return $this->container['file_size']; + } + + /** + * Sets file_size + * + * @param int|null $file_size The file size in bytes. + * + * @return self + */ + public function setFileSize($file_size): self + { + $this->container['file_size'] = $file_size; + + return $this; + } + + /** + * Gets pictures + * + * @return \Pipedrive\versions\v2\Model\PersonPictureItemPictures|null + */ + public function getPictures() + { + return $this->container['pictures']; + } + + /** + * Sets pictures + * + * @param \Pipedrive\versions\v2\Model\PersonPictureItemPictures|null $pictures pictures + * + * @return self + */ + public function setPictures($pictures): self + { + $this->container['pictures'] = $pictures; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @throws JsonException + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @throws JsonException + * @return string + */ + public function toHeaderValue(): string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} + + diff --git a/lib/versions/v2/Model/PersonPictureItemPictures.php b/lib/versions/v2/Model/PersonPictureItemPictures.php new file mode 100644 index 0000000..8e95bef --- /dev/null +++ b/lib/versions/v2/Model/PersonPictureItemPictures.php @@ -0,0 +1,376 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PersonPictureItemPictures implements ModelInterface, ArrayAccess, JsonSerializable +{ + use RawData; + + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PersonPictureItem_pictures'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @phpsalm-var array + */ + protected static array $openAPITypes = [ + '_128' => 'string', + '_512' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + '_128' => null, + '_512' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPITypes(): array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPIFormats(): array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + '_128' => '128', + '_512' => '512' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + '_128' => 'set128', + '_512' => 'set512' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + '_128' => 'get128', + '_512' => 'get512' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function attributeMap(): array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function setters(): array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function getters(): array + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName(): string + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var array + * @phpstan-var array + * @psalm-var array + */ + protected array $container = []; + + /** + * Constructor + * + * @phpstan-param array|null $data + * @psalm-param array|null $data + * @param array|null $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['_128'] = $data['_128'] ?? null; + $this->container['_512'] = $data['_512'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + * @phpstan-return array + * @psalm-return array + */ + public function listInvalidProperties(): array + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid(): bool + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets _128 + * + * @return string|null + */ + public function get128() + { + return $this->container['_128']; + } + + /** + * Sets _128 + * + * @param string|null $_128 The URL of the 128x128 picture. + * + * @return self + */ + public function set128($_128): self + { + $this->container['_128'] = $_128; + + return $this; + } + + /** + * Gets _512 + * + * @return string|null + */ + public function get512() + { + return $this->container['_512']; + } + + /** + * Sets _512 + * + * @param string|null $_512 The URL of the 512x512 picture. + * + * @return self + */ + public function set512($_512): self + { + $this->container['_512'] = $_512; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @throws JsonException + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @throws JsonException + * @return string + */ + public function toHeaderValue(): string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} + + diff --git a/lib/versions/v2/Model/PersonPictureResponse.php b/lib/versions/v2/Model/PersonPictureResponse.php new file mode 100644 index 0000000..946d280 --- /dev/null +++ b/lib/versions/v2/Model/PersonPictureResponse.php @@ -0,0 +1,375 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PersonPictureResponse implements ModelInterface, ArrayAccess, JsonSerializable +{ + use RawData; + + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PersonPictureResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @phpsalm-var array + */ + protected static array $openAPITypes = [ + 'success' => 'bool', + 'data' => '\Pipedrive\versions\v2\Model\PersonPictureItem' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'success' => null, + 'data' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPITypes(): array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function openAPIFormats(): array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', + 'data' => 'getData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function attributeMap(): array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function setters(): array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @phpstan-return array + * @psalm-return array + * @return array + */ + public static function getters(): array + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName(): string + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var array + * @phpstan-var array + * @psalm-var array + */ + protected array $container = []; + + /** + * Constructor + * + * @phpstan-param array|null $data + * @psalm-param array|null $data + * @param array|null $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = $data['success'] ?? null; + $this->container['data'] = $data['data'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + * @phpstan-return array + * @psalm-return array + */ + public function listInvalidProperties(): array + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid(): bool + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets success + * + * @return bool|null + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool|null $success If the response is successful or not + * + * @return self + */ + public function setSuccess($success): self + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets data + * + * @return \Pipedrive\versions\v2\Model\PersonPictureItem|null + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Pipedrive\versions\v2\Model\PersonPictureItem|null $data data + * + * @return self + */ + public function setData($data): self + { + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @throws JsonException + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @throws JsonException + * @return string + */ + public function toHeaderValue(): string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} + + diff --git a/lib/versions/v2/Model/PipelineItem.php b/lib/versions/v2/Model/PipelineItem.php index 3679e1c..5606dd8 100644 --- a/lib/versions/v2/Model/PipelineItem.php +++ b/lib/versions/v2/Model/PipelineItem.php @@ -69,7 +69,6 @@ class PipelineItem implements ModelInterface, ArrayAccess, JsonSerializable 'id' => 'int', 'name' => 'string', 'order_nr' => 'int', - 'is_selected' => 'bool', 'is_deleted' => 'bool', 'is_deal_probability_enabled' => 'bool', 'add_time' => 'string', @@ -87,7 +86,6 @@ class PipelineItem implements ModelInterface, ArrayAccess, JsonSerializable 'id' => null, 'name' => null, 'order_nr' => null, - 'is_selected' => null, 'is_deleted' => null, 'is_deal_probability_enabled' => null, 'add_time' => null, @@ -128,7 +126,6 @@ public static function openAPIFormats(): array 'id' => 'id', 'name' => 'name', 'order_nr' => 'order_nr', - 'is_selected' => 'is_selected', 'is_deleted' => 'is_deleted', 'is_deal_probability_enabled' => 'is_deal_probability_enabled', 'add_time' => 'add_time', @@ -144,7 +141,6 @@ public static function openAPIFormats(): array 'id' => 'setId', 'name' => 'setName', 'order_nr' => 'setOrderNr', - 'is_selected' => 'setIsSelected', 'is_deleted' => 'setIsDeleted', 'is_deal_probability_enabled' => 'setIsDealProbabilityEnabled', 'add_time' => 'setAddTime', @@ -160,7 +156,6 @@ public static function openAPIFormats(): array 'id' => 'getId', 'name' => 'getName', 'order_nr' => 'getOrderNr', - 'is_selected' => 'getIsSelected', 'is_deleted' => 'getIsDeleted', 'is_deal_probability_enabled' => 'getIsDealProbabilityEnabled', 'add_time' => 'getAddTime', @@ -237,7 +232,6 @@ public function __construct(array $data = null) $this->container['id'] = $data['id'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['order_nr'] = $data['order_nr'] ?? null; - $this->container['is_selected'] = $data['is_selected'] ?? null; $this->container['is_deleted'] = $data['is_deleted'] ?? null; $this->container['is_deal_probability_enabled'] = $data['is_deal_probability_enabled'] ?? null; $this->container['add_time'] = $data['add_time'] ?? null; @@ -342,30 +336,6 @@ public function setOrderNr($order_nr): self return $this; } - /** - * Gets is_selected - * - * @return bool|null - */ - public function getIsSelected() - { - return $this->container['is_selected']; - } - - /** - * Sets is_selected - * - * @param bool|null $is_selected Whether this pipeline is selected or not - * - * @return self - */ - public function setIsSelected($is_selected): self - { - $this->container['is_selected'] = $is_selected; - - return $this; - } - /** * Gets is_deleted *