Skip to content

Commit bcea624

Browse files
Merge pull request #229 from pipedrive/253
Build 253 - version-patch
2 parents c84fed0 + 8f29bf7 commit bcea624

File tree

7 files changed

+113
-15
lines changed

7 files changed

+113
-15
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [12.0.2](https://github.com/pipedrive/client-php/compare/12.0.1...12.0.2) (2025-07-07)
10+
11+
### Added
12+
- Added `custom_fields` type to `deal`, `person`, `organization`, `product` schemas
13+
914
## [12.0.1](https://github.com/pipedrive/client-php/compare/12.0.0...12.0.1) (2025-06-25)
1015

1116
### Fixed

docs/versions/v2/Model/DealItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ Name | Type | Description | Notes
3434
**arr** | **float** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional]
3535
**mrr** | **float** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional]
3636
**acv** | **float** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional]
37+
**custom_fields** | [**array<string,OneOfStringNumberMap>**](OneOfStringNumberMap.md) | A map of custom fields with hash-based keys | [optional]
3738

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

docs/versions/v2/Model/OrganizationItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Name | Type | Description | Notes
1313
**visible_to** | **int** | The visibility of the organization | [optional]
1414
**address** | [**\Pipedrive\versions\v2\Model\OrganizationItemAddress**](OrganizationItemAddress.md) | | [optional]
1515
**label_ids** | **int[]** | The IDs of labels assigned to the organization | [optional]
16+
**custom_fields** | [**array<string,OneOfStringNumberMap>**](OneOfStringNumberMap.md) | A map of custom fields with hash-based keys | [optional]
1617

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

docs/versions/v2/Model/PersonItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
2323
**im** | [**\Pipedrive\versions\v2\Model\PersonItemIm[]**](PersonItemIm.md) | The instant messaging accounts of the person, included if contact sync is enabled for the company | [optional]
2424
**birthday** | **string** | The birthday of the person, included if contact sync is enabled for the company | [optional]
2525
**job_title** | **string** | The job title of the person, included if contact sync is enabled for the company | [optional]
26+
**custom_fields** | [**array<string,OneOfStringNumberMap>**](OneOfStringNumberMap.md) | A map of custom fields with hash-based keys | [optional]
2627

2728
[[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/DealItem.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class DealItem implements ModelInterface, ArrayAccess, JsonSerializable
9595
'channel_id' => 'string',
9696
'arr' => 'float',
9797
'mrr' => 'float',
98-
'acv' => 'float'
98+
'acv' => 'float',
99+
'custom_fields' => 'array<string,OneOfStringNumberMap>'
99100
];
100101

101102
/**
@@ -135,7 +136,8 @@ class DealItem implements ModelInterface, ArrayAccess, JsonSerializable
135136
'channel_id' => null,
136137
'arr' => null,
137138
'mrr' => null,
138-
'acv' => null
139+
'acv' => null,
140+
'custom_fields' => null
139141
];
140142

141143
/**
@@ -198,7 +200,8 @@ public static function openAPIFormats(): array
198200
'channel_id' => 'channel_id',
199201
'arr' => 'arr',
200202
'mrr' => 'mrr',
201-
'acv' => 'acv'
203+
'acv' => 'acv',
204+
'custom_fields' => 'custom_fields'
202205
];
203206

204207
/**
@@ -236,7 +239,8 @@ public static function openAPIFormats(): array
236239
'channel_id' => 'setChannelId',
237240
'arr' => 'setArr',
238241
'mrr' => 'setMrr',
239-
'acv' => 'setAcv'
242+
'acv' => 'setAcv',
243+
'custom_fields' => 'setCustomFields'
240244
];
241245

242246
/**
@@ -274,7 +278,8 @@ public static function openAPIFormats(): array
274278
'channel_id' => 'getChannelId',
275279
'arr' => 'getArr',
276280
'mrr' => 'getMrr',
277-
'acv' => 'getAcv'
281+
'acv' => 'getAcv',
282+
'custom_fields' => 'getCustomFields'
278283
];
279284

280285
/**
@@ -374,6 +379,7 @@ public function __construct(array $data = null)
374379
$this->container['arr'] = $data['arr'] ?? null;
375380
$this->container['mrr'] = $data['mrr'] ?? null;
376381
$this->container['acv'] = $data['acv'] ?? null;
382+
$this->container['custom_fields'] = $data['custom_fields'] ?? null;
377383
}
378384

379385
/**
@@ -1121,6 +1127,30 @@ public function setAcv($acv): self
11211127

11221128
return $this;
11231129
}
1130+
1131+
/**
1132+
* Gets custom_fields
1133+
*
1134+
* @return array<string,OneOfStringNumberMap>|null
1135+
*/
1136+
public function getCustomFields()
1137+
{
1138+
return $this->container['custom_fields'];
1139+
}
1140+
1141+
/**
1142+
* Sets custom_fields
1143+
*
1144+
* @param array<string,OneOfStringNumberMap>|null $custom_fields A map of custom fields with hash-based keys
1145+
*
1146+
* @return self
1147+
*/
1148+
public function setCustomFields($custom_fields): self
1149+
{
1150+
$this->container['custom_fields'] = $custom_fields;
1151+
1152+
return $this;
1153+
}
11241154
/**
11251155
* Returns true if offset exists. False otherwise.
11261156
*

lib/versions/v2/Model/OrganizationItem.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ class OrganizationItem implements ModelInterface, ArrayAccess, JsonSerializable
7474
'is_deleted' => 'bool',
7575
'visible_to' => 'int',
7676
'address' => '\Pipedrive\versions\v2\Model\OrganizationItemAddress',
77-
'label_ids' => 'int[]'
77+
'label_ids' => 'int[]',
78+
'custom_fields' => 'array<string,OneOfStringNumberMap>'
7879
];
7980

8081
/**
@@ -93,7 +94,8 @@ class OrganizationItem implements ModelInterface, ArrayAccess, JsonSerializable
9394
'is_deleted' => null,
9495
'visible_to' => null,
9596
'address' => null,
96-
'label_ids' => null
97+
'label_ids' => null,
98+
'custom_fields' => null
9799
];
98100

99101
/**
@@ -135,7 +137,8 @@ public static function openAPIFormats(): array
135137
'is_deleted' => 'is_deleted',
136138
'visible_to' => 'visible_to',
137139
'address' => 'address',
138-
'label_ids' => 'label_ids'
140+
'label_ids' => 'label_ids',
141+
'custom_fields' => 'custom_fields'
139142
];
140143

141144
/**
@@ -152,7 +155,8 @@ public static function openAPIFormats(): array
152155
'is_deleted' => 'setIsDeleted',
153156
'visible_to' => 'setVisibleTo',
154157
'address' => 'setAddress',
155-
'label_ids' => 'setLabelIds'
158+
'label_ids' => 'setLabelIds',
159+
'custom_fields' => 'setCustomFields'
156160
];
157161

158162
/**
@@ -169,7 +173,8 @@ public static function openAPIFormats(): array
169173
'is_deleted' => 'getIsDeleted',
170174
'visible_to' => 'getVisibleTo',
171175
'address' => 'getAddress',
172-
'label_ids' => 'getLabelIds'
176+
'label_ids' => 'getLabelIds',
177+
'custom_fields' => 'getCustomFields'
173178
];
174179

175180
/**
@@ -248,6 +253,7 @@ public function __construct(array $data = null)
248253
$this->container['visible_to'] = $data['visible_to'] ?? null;
249254
$this->container['address'] = $data['address'] ?? null;
250255
$this->container['label_ids'] = $data['label_ids'] ?? null;
256+
$this->container['custom_fields'] = $data['custom_fields'] ?? null;
251257
}
252258

253259
/**
@@ -491,6 +497,30 @@ public function setLabelIds($label_ids): self
491497

492498
return $this;
493499
}
500+
501+
/**
502+
* Gets custom_fields
503+
*
504+
* @return array<string,OneOfStringNumberMap>|null
505+
*/
506+
public function getCustomFields()
507+
{
508+
return $this->container['custom_fields'];
509+
}
510+
511+
/**
512+
* Sets custom_fields
513+
*
514+
* @param array<string,OneOfStringNumberMap>|null $custom_fields A map of custom fields with hash-based keys
515+
*
516+
* @return self
517+
*/
518+
public function setCustomFields($custom_fields): self
519+
{
520+
$this->container['custom_fields'] = $custom_fields;
521+
522+
return $this;
523+
}
494524
/**
495525
* Returns true if offset exists. False otherwise.
496526
*

lib/versions/v2/Model/PersonItem.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ class PersonItem implements ModelInterface, ArrayAccess, JsonSerializable
8484
'notes' => 'string',
8585
'im' => '\Pipedrive\versions\v2\Model\PersonItemIm[]',
8686
'birthday' => 'string',
87-
'job_title' => 'string'
87+
'job_title' => 'string',
88+
'custom_fields' => 'array<string,OneOfStringNumberMap>'
8889
];
8990

9091
/**
@@ -113,7 +114,8 @@ class PersonItem implements ModelInterface, ArrayAccess, JsonSerializable
113114
'notes' => null,
114115
'im' => null,
115116
'birthday' => null,
116-
'job_title' => null
117+
'job_title' => null,
118+
'custom_fields' => null
117119
];
118120

119121
/**
@@ -165,7 +167,8 @@ public static function openAPIFormats(): array
165167
'notes' => 'notes',
166168
'im' => 'im',
167169
'birthday' => 'birthday',
168-
'job_title' => 'job_title'
170+
'job_title' => 'job_title',
171+
'custom_fields' => 'custom_fields'
169172
];
170173

171174
/**
@@ -192,7 +195,8 @@ public static function openAPIFormats(): array
192195
'notes' => 'setNotes',
193196
'im' => 'setIm',
194197
'birthday' => 'setBirthday',
195-
'job_title' => 'setJobTitle'
198+
'job_title' => 'setJobTitle',
199+
'custom_fields' => 'setCustomFields'
196200
];
197201

198202
/**
@@ -219,7 +223,8 @@ public static function openAPIFormats(): array
219223
'notes' => 'getNotes',
220224
'im' => 'getIm',
221225
'birthday' => 'getBirthday',
222-
'job_title' => 'getJobTitle'
226+
'job_title' => 'getJobTitle',
227+
'custom_fields' => 'getCustomFields'
223228
];
224229

225230
/**
@@ -308,6 +313,7 @@ public function __construct(array $data = null)
308313
$this->container['im'] = $data['im'] ?? null;
309314
$this->container['birthday'] = $data['birthday'] ?? null;
310315
$this->container['job_title'] = $data['job_title'] ?? null;
316+
$this->container['custom_fields'] = $data['custom_fields'] ?? null;
311317
}
312318

313319
/**
@@ -791,6 +797,30 @@ public function setJobTitle($job_title): self
791797

792798
return $this;
793799
}
800+
801+
/**
802+
* Gets custom_fields
803+
*
804+
* @return array<string,OneOfStringNumberMap>|null
805+
*/
806+
public function getCustomFields()
807+
{
808+
return $this->container['custom_fields'];
809+
}
810+
811+
/**
812+
* Sets custom_fields
813+
*
814+
* @param array<string,OneOfStringNumberMap>|null $custom_fields A map of custom fields with hash-based keys
815+
*
816+
* @return self
817+
*/
818+
public function setCustomFields($custom_fields): self
819+
{
820+
$this->container['custom_fields'] = $custom_fields;
821+
822+
return $this;
823+
}
794824
/**
795825
* Returns true if offset exists. False otherwise.
796826
*

0 commit comments

Comments
 (0)