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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [11.1.1](https://github.com/pipedrive/client-php/compare/11.1.0...11.1.1) (2025-06-09)

### Added
- Documented `address` property in the Organization v2 API for add and update endpoints:
- `POST /v2/organizations`
- `PATCH /v2/organizations/{id}`

## [11.1.0](https://github.com/pipedrive/client-php/compare/11.0.0...11.1.1) (2025-05-26)
### Fixed
- Fixed the OAuth scopes of Deal to Lead conversion and Lead to Deal conversion endpoints
Expand Down
1 change: 1 addition & 0 deletions docs/versions/v2/Model/OrganizationRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ Name | Type | Description | Notes
**update_time** | **string** | The last updated date and time of the organization | [optional]
**visible_to** | **int** | The visibility of the organization | [optional]
**label_ids** | **int[]** | The IDs of labels assigned to the organization | [optional]
**address** | [**\Pipedrive\versions\v2\Model\OrganizationItemAddress**](OrganizationItemAddress.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)
2 changes: 1 addition & 1 deletion lib/versions/v2/Model/OrganizationItemAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class OrganizationItemAddress implements ModelInterface, ArrayAccess, JsonSerial
*
* @var string
*/
protected static string $openAPIModelName = 'OrganizationItem_address';
protected static string $openAPIModelName = 'OrganizationItemAddress';

/**
* Array of property to type mappings. Used for (de)serialization
Expand Down
40 changes: 35 additions & 5 deletions lib/versions/v2/Model/OrganizationRequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class OrganizationRequestBody implements ModelInterface, ArrayAccess, JsonSerial
'add_time' => 'string',
'update_time' => 'string',
'visible_to' => 'int',
'label_ids' => 'int[]'
'label_ids' => 'int[]',
'address' => '\Pipedrive\versions\v2\Model\OrganizationItemAddress'
];

/**
Expand All @@ -87,7 +88,8 @@ class OrganizationRequestBody implements ModelInterface, ArrayAccess, JsonSerial
'add_time' => null,
'update_time' => null,
'visible_to' => null,
'label_ids' => null
'label_ids' => null,
'address' => null
];

/**
Expand Down Expand Up @@ -126,7 +128,8 @@ public static function openAPIFormats(): array
'add_time' => 'add_time',
'update_time' => 'update_time',
'visible_to' => 'visible_to',
'label_ids' => 'label_ids'
'label_ids' => 'label_ids',
'address' => 'address'
];

/**
Expand All @@ -140,7 +143,8 @@ public static function openAPIFormats(): array
'add_time' => 'setAddTime',
'update_time' => 'setUpdateTime',
'visible_to' => 'setVisibleTo',
'label_ids' => 'setLabelIds'
'label_ids' => 'setLabelIds',
'address' => 'setAddress'
];

/**
Expand All @@ -154,7 +158,8 @@ public static function openAPIFormats(): array
'add_time' => 'getAddTime',
'update_time' => 'getUpdateTime',
'visible_to' => 'getVisibleTo',
'label_ids' => 'getLabelIds'
'label_ids' => 'getLabelIds',
'address' => 'getAddress'
];

/**
Expand Down Expand Up @@ -230,6 +235,7 @@ public function __construct(array $data = null)
$this->container['update_time'] = $data['update_time'] ?? null;
$this->container['visible_to'] = $data['visible_to'] ?? null;
$this->container['label_ids'] = $data['label_ids'] ?? null;
$this->container['address'] = $data['address'] ?? null;
}

/**
Expand Down Expand Up @@ -401,6 +407,30 @@ public function setLabelIds($label_ids): self

return $this;
}

/**
* Gets address
*
* @return \Pipedrive\versions\v2\Model\OrganizationItemAddress|null
*/
public function getAddress()
{
return $this->container['address'];
}

/**
* Sets address
*
* @param \Pipedrive\versions\v2\Model\OrganizationItemAddress|null $address address
*
* @return self
*/
public function setAddress($address): self
{
$this->container['address'] = $address;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down