Skip to content

Commit 6781638

Browse files
authored
Merge pull request #220 from pipedrive/242
Build 242 - version-patch
2 parents d196f83 + 7e839ea commit 6781638

File tree

4 files changed

+44
-6
lines changed

4 files changed

+44
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [11.1.1](https://github.com/pipedrive/client-php/compare/11.1.0...11.1.1) (2025-06-09)
10+
11+
### Added
12+
- Documented `address` property in the Organization v2 API for add and update endpoints:
13+
- `POST /v2/organizations`
14+
- `PATCH /v2/organizations/{id}`
15+
916
## [11.1.0](https://github.com/pipedrive/client-php/compare/11.0.0...11.1.1) (2025-05-26)
1017
### Fixed
1118
- Fixed the OAuth scopes of Deal to Lead conversion and Lead to Deal conversion endpoints

docs/versions/v2/Model/OrganizationRequestBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
1010
**update_time** | **string** | The last updated date and time of the organization | [optional]
1111
**visible_to** | **int** | The visibility of the organization | [optional]
1212
**label_ids** | **int[]** | The IDs of labels assigned to the organization | [optional]
13+
**address** | [**\Pipedrive\versions\v2\Model\OrganizationItemAddress**](OrganizationItemAddress.md) | | [optional]
1314

1415
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

lib/versions/v2/Model/OrganizationItemAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class OrganizationItemAddress implements ModelInterface, ArrayAccess, JsonSerial
5656
*
5757
* @var string
5858
*/
59-
protected static string $openAPIModelName = 'OrganizationItem_address';
59+
protected static string $openAPIModelName = 'OrganizationItemAddress';
6060

6161
/**
6262
* Array of property to type mappings. Used for (de)serialization

lib/versions/v2/Model/OrganizationRequestBody.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ class OrganizationRequestBody implements ModelInterface, ArrayAccess, JsonSerial
7171
'add_time' => 'string',
7272
'update_time' => 'string',
7373
'visible_to' => 'int',
74-
'label_ids' => 'int[]'
74+
'label_ids' => 'int[]',
75+
'address' => '\Pipedrive\versions\v2\Model\OrganizationItemAddress'
7576
];
7677

7778
/**
@@ -87,7 +88,8 @@ class OrganizationRequestBody implements ModelInterface, ArrayAccess, JsonSerial
8788
'add_time' => null,
8889
'update_time' => null,
8990
'visible_to' => null,
90-
'label_ids' => null
91+
'label_ids' => null,
92+
'address' => null
9193
];
9294

9395
/**
@@ -126,7 +128,8 @@ public static function openAPIFormats(): array
126128
'add_time' => 'add_time',
127129
'update_time' => 'update_time',
128130
'visible_to' => 'visible_to',
129-
'label_ids' => 'label_ids'
131+
'label_ids' => 'label_ids',
132+
'address' => 'address'
130133
];
131134

132135
/**
@@ -140,7 +143,8 @@ public static function openAPIFormats(): array
140143
'add_time' => 'setAddTime',
141144
'update_time' => 'setUpdateTime',
142145
'visible_to' => 'setVisibleTo',
143-
'label_ids' => 'setLabelIds'
146+
'label_ids' => 'setLabelIds',
147+
'address' => 'setAddress'
144148
];
145149

146150
/**
@@ -154,7 +158,8 @@ public static function openAPIFormats(): array
154158
'add_time' => 'getAddTime',
155159
'update_time' => 'getUpdateTime',
156160
'visible_to' => 'getVisibleTo',
157-
'label_ids' => 'getLabelIds'
161+
'label_ids' => 'getLabelIds',
162+
'address' => 'getAddress'
158163
];
159164

160165
/**
@@ -230,6 +235,7 @@ public function __construct(array $data = null)
230235
$this->container['update_time'] = $data['update_time'] ?? null;
231236
$this->container['visible_to'] = $data['visible_to'] ?? null;
232237
$this->container['label_ids'] = $data['label_ids'] ?? null;
238+
$this->container['address'] = $data['address'] ?? null;
233239
}
234240

235241
/**
@@ -401,6 +407,30 @@ public function setLabelIds($label_ids): self
401407

402408
return $this;
403409
}
410+
411+
/**
412+
* Gets address
413+
*
414+
* @return \Pipedrive\versions\v2\Model\OrganizationItemAddress|null
415+
*/
416+
public function getAddress()
417+
{
418+
return $this->container['address'];
419+
}
420+
421+
/**
422+
* Sets address
423+
*
424+
* @param \Pipedrive\versions\v2\Model\OrganizationItemAddress|null $address address
425+
*
426+
* @return self
427+
*/
428+
public function setAddress($address): self
429+
{
430+
$this->container['address'] = $address;
431+
432+
return $this;
433+
}
404434
/**
405435
* Returns true if offset exists. False otherwise.
406436
*

0 commit comments

Comments
 (0)