Skip to content

Commit e7781dc

Browse files
authored
Merge pull request #275 from pipedrive/309
Build 309 - version-patch
2 parents 94d7e2b + 4b64f3b commit e7781dc

10 files changed

Lines changed: 62 additions & 54 deletions

File tree

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [15.2.0](https://github.com/pipedrive/client-php/compare/15.1.1...15.2.0) (2026-02-06)
10+
11+
### Fixed
12+
- Fixed incorrect type definitions for `label` fields in v2 Persons API request schema (`PersonRequestBody`). The `label` field for both `phones` and `emails` arrays was incorrectly typed as `boolean` instead of `string`, causing SDK type generation issues. Labels now correctly accept string values like 'work', 'home', 'mobile', and 'other'.
13+
14+
### Changed
15+
- Removed beta labels from v2 lead/deal conversion endpoints:
16+
- `GET /api/v2/leads/{id}/convert/status/{conversion_id}`
17+
- `POST /api/v2/leads/{id}/convert`
18+
- `GET /api/v2/deals/{id}/convert/status/{conversion_id}`
19+
- `POST /api/v2/deals/{id}/convert`
20+
- Removed beta labels from v2 deal installments endpoints:
21+
- `GET /api/v2/deals/installments`
22+
- `POST /api/v2/deals/{id}/installments`
23+
- `PATCH /api/v2/deals/{id}/installments/{installment_id}`
24+
- `DELETE /api/v2/deals/{id}/installments/{installment_id}`
25+
- Removed beta labels from v2 product images endpoints:
26+
- `GET /api/v2/products/{id}/images`
27+
- `POST /api/v2/products/{id}/images`
28+
- `PUT /api/v2/products/{id}/images`
29+
- `DELETE /api/v2/products/{id}/images`
30+
931
## [15.1.1](https://github.com/pipedrive/client-php/compare/15.1.0...15.1.1) (2026-02-06)
1032

1133
### Added

docs/versions/v2/Api/DealsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88
[**addDealFollower()**](DealsApi.md#addDealFollower) | **POST** /deals/{id}/followers | Add a follower to a deal
99
[**addDealProduct()**](DealsApi.md#addDealProduct) | **POST** /deals/{id}/products | Add a product to a deal
1010
[**addManyDealProducts()**](DealsApi.md#addManyDealProducts) | **POST** /deals/{id}/products/bulk | Add multiple products to a deal
11-
[**convertDealToLead()**](DealsApi.md#convertDealToLead) | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
11+
[**convertDealToLead()**](DealsApi.md#convertDealToLead) | **POST** /deals/{id}/convert/lead | Convert a deal to a lead
1212
[**deleteAdditionalDiscount()**](DealsApi.md#deleteAdditionalDiscount) | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal
1313
[**deleteDeal()**](DealsApi.md#deleteDeal) | **DELETE** /deals/{id} | Delete a deal
1414
[**deleteDealFollower()**](DealsApi.md#deleteDealFollower) | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal
@@ -18,7 +18,7 @@ Method | HTTP request | Description
1818
[**getAdditionalDiscounts()**](DealsApi.md#getAdditionalDiscounts) | **GET** /deals/{id}/discounts | List discounts added to a deal
1919
[**getArchivedDeals()**](DealsApi.md#getArchivedDeals) | **GET** /deals/archived | Get all archived deals
2020
[**getDeal()**](DealsApi.md#getDeal) | **GET** /deals/{id} | Get details of a deal
21-
[**getDealConversionStatus()**](DealsApi.md#getDealConversionStatus) | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status (BETA)
21+
[**getDealConversionStatus()**](DealsApi.md#getDealConversionStatus) | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status
2222
[**getDealFollowers()**](DealsApi.md#getDealFollowers) | **GET** /deals/{id}/followers | List followers of a deal
2323
[**getDealFollowersChangelog()**](DealsApi.md#getDealFollowersChangelog) | **GET** /deals/{id}/followers/changelog | List followers changelog of a deal
2424
[**getDealProducts()**](DealsApi.md#getDealProducts) | **GET** /deals/{id}/products | List products attached to a deal
@@ -306,7 +306,7 @@ Name | Type | Description | Notes
306306
convertDealToLead($id): \Pipedrive\versions\v2\Model\AddConvertDealToLeadResponse
307307
```
308308

309-
Convert a deal to a lead (BETA)
309+
Convert a deal to a lead
310310

311311
Initiates a conversion of a deal to a lead. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. There are exceptions for entities like invoices or history that are not transferred and remain linked to the original deal. If the conversion is successful, the deal is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Deals#getDealConversionStatus\">/api/v2/deals/{deal_id}/convert/status/{conversion_id}</a> endpoint.
312312

@@ -1000,7 +1000,7 @@ Name | Type | Description | Notes
10001000
getDealConversionStatus($id, $conversion_id)
10011001
```
10021002

1003-
Get Deal conversion status (BETA)
1003+
Get Deal conversion status
10041004

10051005
Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
10061006

docs/versions/v2/Api/LeadsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ All URIs are relative to https://api.pipedrive.com/api/v2.
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**convertLeadToDeal()**](LeadsApi.md#convertLeadToDeal) | **POST** /leads/{id}/convert/deal | Convert a lead to a deal (BETA)
8-
[**getLeadConversionStatus()**](LeadsApi.md#getLeadConversionStatus) | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status (BETA)
7+
[**convertLeadToDeal()**](LeadsApi.md#convertLeadToDeal) | **POST** /leads/{id}/convert/deal | Convert a lead to a deal
8+
[**getLeadConversionStatus()**](LeadsApi.md#getLeadConversionStatus) | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status
99
[**searchLeads()**](LeadsApi.md#searchLeads) | **GET** /leads/search | Search leads
1010

1111

@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515
convertLeadToDeal($id, $inline_object): \Pipedrive\versions\v2\Model\AddConvertLeadToDealResponse
1616
```
1717

18-
Convert a lead to a deal (BETA)
18+
Convert a lead to a deal
1919

2020
Initiates a conversion of a lead to a deal. The return value is an ID of a job that was assigned to perform the conversion. Related entities (notes, files, emails, activities, ...) are transferred during the process to the target entity. If the conversion is successful, the lead is marked as deleted. To retrieve the created entity ID and the result of the conversion, call the <a href=\"https://developers.pipedrive.com/docs/api/v1/Leads#getLeadConversionStatus\">/api/v2/leads/{lead_id}/convert/status/{conversion_id}</a> endpoint.
2121

@@ -82,7 +82,7 @@ Name | Type | Description | Notes
8282
getLeadConversionStatus($id, $conversion_id)
8383
```
8484

85-
Get Lead conversion status (BETA)
85+
Get Lead conversion status
8686

8787
Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
8888

docs/versions/v2/Model/PersonRequestBody.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
99
**org_id** | **int** | The ID of the organization linked to the person | [optional]
1010
**add_time** | **string** | The creation date and time of the person | [optional]
1111
**update_time** | **string** | The last updated date and time of the person | [optional]
12-
**emails** | [**\Pipedrive\versions\v2\Model\PersonRequestBodyEmails[]**](PersonRequestBodyEmails.md) | The emails of the person | [optional]
13-
**phones** | [**\Pipedrive\versions\v2\Model\PersonRequestBodyPhones[]**](PersonRequestBodyPhones.md) | The phones of the person | [optional]
12+
**emails** | [**\Pipedrive\versions\v2\Model\PersonItemEmails[]**](PersonItemEmails.md) | The emails of the person | [optional]
13+
**phones** | [**\Pipedrive\versions\v2\Model\PersonItemPhones[]**](PersonItemPhones.md) | The phones of the person | [optional]
1414
**visible_to** | **int** | The visibility of the person | [optional]
1515
**label_ids** | **int[]** | The IDs of labels assigned to the person | [optional]
1616
**marketing_status** | **string** | If the person does not have a valid email address, then the marketing status is **not set** and &#x60;no_consent&#x60; is returned for the &#x60;marketing_status&#x60; value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.&lt;table&gt;&lt;tr&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&#x60;no_consent&#x60;&lt;/td&gt;&lt;td&gt;The customer has not given consent to receive any marketing communications&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&#x60;unsubscribed&#x60;&lt;/td&gt;&lt;td&gt;The customers have unsubscribed from ALL marketing communications&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&#x60;subscribed&#x60;&lt;/td&gt;&lt;td&gt;The customers are subscribed and are counted towards marketing caps&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&#x60;archived&#x60;&lt;/td&gt;&lt;td&gt;The customers with &#x60;subscribed&#x60; status can be moved to &#x60;archived&#x60; to save consent, but they are not paid for&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; | [optional]

docs/versions/v2/README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -272,18 +272,6 @@ Class | Method | HTTP request | Description
272272
*ActivitiesApi* | [**updateActivity**](Api/ActivitiesApi.md#updateactivity) | **PATCH** /activities/{id} | Update an activity
273273
*ActivityFieldsApi* | [**getActivityField**](Api/ActivityFieldsApi.md#getactivityfield) | **GET** /activityFields/{field_code} | Get one activity field
274274
*ActivityFieldsApi* | [**getActivityFields**](Api/ActivityFieldsApi.md#getactivityfields) | **GET** /activityFields | Get all activity fields
275-
*BetaApi* | [**convertDealToLead**](Api/BetaApi.md#convertdealtolead) | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
276-
*BetaApi* | [**convertLeadToDeal**](Api/BetaApi.md#convertleadtodeal) | **POST** /leads/{id}/convert/deal | Convert a lead to a deal (BETA)
277-
*BetaApi* | [**deleteInstallment**](Api/BetaApi.md#deleteinstallment) | **DELETE** /deals/{id}/installments/{installment_id} | Delete an installment from a deal
278-
*BetaApi* | [**deleteProductImage**](Api/BetaApi.md#deleteproductimage) | **DELETE** /products/{id}/images | Delete an image of a product
279-
*BetaApi* | [**getDealConversionStatus**](Api/BetaApi.md#getdealconversionstatus) | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status (BETA)
280-
*BetaApi* | [**getInstallments**](Api/BetaApi.md#getinstallments) | **GET** /deals/installments | List installments added to a list of deals
281-
*BetaApi* | [**getLeadConversionStatus**](Api/BetaApi.md#getleadconversionstatus) | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status (BETA)
282-
*BetaApi* | [**getProductImage**](Api/BetaApi.md#getproductimage) | **GET** /products/{id}/images | Get image of a product
283-
*BetaApi* | [**postInstallment**](Api/BetaApi.md#postinstallment) | **POST** /deals/{id}/installments | Add an installment to a deal
284-
*BetaApi* | [**updateInstallment**](Api/BetaApi.md#updateinstallment) | **PATCH** /deals/{id}/installments/{installment_id} | Update an installment added to a deal
285-
*BetaApi* | [**updateProductImage**](Api/BetaApi.md#updateproductimage) | **PUT** /products/{id}/images | Update an image for a product
286-
*BetaApi* | [**uploadProductImage**](Api/BetaApi.md#uploadproductimage) | **POST** /products/{id}/images | Upload an image for a product
287275
*DealFieldsApi* | [**addDealField**](Api/DealFieldsApi.md#adddealfield) | **POST** /dealFields | Create one deal field
288276
*DealFieldsApi* | [**addDealFieldOptions**](Api/DealFieldsApi.md#adddealfieldoptions) | **POST** /dealFields/{field_code}/options | Add deal field options in bulk
289277
*DealFieldsApi* | [**deleteDealField**](Api/DealFieldsApi.md#deletedealfield) | **DELETE** /dealFields/{field_code} | Delete one deal field
@@ -296,7 +284,7 @@ Class | Method | HTTP request | Description
296284
*DealsApi* | [**addDealFollower**](Api/DealsApi.md#adddealfollower) | **POST** /deals/{id}/followers | Add a follower to a deal
297285
*DealsApi* | [**addDealProduct**](Api/DealsApi.md#adddealproduct) | **POST** /deals/{id}/products | Add a product to a deal
298286
*DealsApi* | [**addManyDealProducts**](Api/DealsApi.md#addmanydealproducts) | **POST** /deals/{id}/products/bulk | Add multiple products to a deal
299-
*DealsApi* | [**convertDealToLead**](Api/DealsApi.md#convertdealtolead) | **POST** /deals/{id}/convert/lead | Convert a deal to a lead (BETA)
287+
*DealsApi* | [**convertDealToLead**](Api/DealsApi.md#convertdealtolead) | **POST** /deals/{id}/convert/lead | Convert a deal to a lead
300288
*DealsApi* | [**deleteAdditionalDiscount**](Api/DealsApi.md#deleteadditionaldiscount) | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal
301289
*DealsApi* | [**deleteDeal**](Api/DealsApi.md#deletedeal) | **DELETE** /deals/{id} | Delete a deal
302290
*DealsApi* | [**deleteDealFollower**](Api/DealsApi.md#deletedealfollower) | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal
@@ -306,7 +294,7 @@ Class | Method | HTTP request | Description
306294
*DealsApi* | [**getAdditionalDiscounts**](Api/DealsApi.md#getadditionaldiscounts) | **GET** /deals/{id}/discounts | List discounts added to a deal
307295
*DealsApi* | [**getArchivedDeals**](Api/DealsApi.md#getarchiveddeals) | **GET** /deals/archived | Get all archived deals
308296
*DealsApi* | [**getDeal**](Api/DealsApi.md#getdeal) | **GET** /deals/{id} | Get details of a deal
309-
*DealsApi* | [**getDealConversionStatus**](Api/DealsApi.md#getdealconversionstatus) | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status (BETA)
297+
*DealsApi* | [**getDealConversionStatus**](Api/DealsApi.md#getdealconversionstatus) | **GET** /deals/{id}/convert/status/{conversion_id} | Get Deal conversion status
310298
*DealsApi* | [**getDealFollowers**](Api/DealsApi.md#getdealfollowers) | **GET** /deals/{id}/followers | List followers of a deal
311299
*DealsApi* | [**getDealFollowersChangelog**](Api/DealsApi.md#getdealfollowerschangelog) | **GET** /deals/{id}/followers/changelog | List followers changelog of a deal
312300
*DealsApi* | [**getDealProducts**](Api/DealsApi.md#getdealproducts) | **GET** /deals/{id}/products | List products attached to a deal
@@ -322,8 +310,8 @@ Class | Method | HTTP request | Description
322310
*DealsApi* | [**updateInstallment**](Api/DealsApi.md#updateinstallment) | **PATCH** /deals/{id}/installments/{installment_id} | Update an installment added to a deal
323311
*ItemSearchApi* | [**searchItem**](Api/ItemSearchApi.md#searchitem) | **GET** /itemSearch | Perform a search from multiple item types
324312
*ItemSearchApi* | [**searchItemByField**](Api/ItemSearchApi.md#searchitembyfield) | **GET** /itemSearch/field | Perform a search using a specific field from an item type
325-
*LeadsApi* | [**convertLeadToDeal**](Api/LeadsApi.md#convertleadtodeal) | **POST** /leads/{id}/convert/deal | Convert a lead to a deal (BETA)
326-
*LeadsApi* | [**getLeadConversionStatus**](Api/LeadsApi.md#getleadconversionstatus) | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status (BETA)
313+
*LeadsApi* | [**convertLeadToDeal**](Api/LeadsApi.md#convertleadtodeal) | **POST** /leads/{id}/convert/deal | Convert a lead to a deal
314+
*LeadsApi* | [**getLeadConversionStatus**](Api/LeadsApi.md#getleadconversionstatus) | **GET** /leads/{id}/convert/status/{conversion_id} | Get Lead conversion status
327315
*LeadsApi* | [**searchLeads**](Api/LeadsApi.md#searchleads) | **GET** /leads/search | Search leads
328316
*OrganizationFieldsApi* | [**addOrganizationField**](Api/OrganizationFieldsApi.md#addorganizationfield) | **POST** /organizationFields | Create one organization field
329317
*OrganizationFieldsApi* | [**addOrganizationFieldOptions**](Api/OrganizationFieldsApi.md#addorganizationfieldoptions) | **POST** /organizationFields/{field_code}/options | Add organization field options in bulk
@@ -579,8 +567,6 @@ Class | Method | HTTP request | Description
579567
- [PersonPictureItemPictures](Model/PersonPictureItemPictures.md)
580568
- [PersonPictureResponse](Model/PersonPictureResponse.md)
581569
- [PersonRequestBody](Model/PersonRequestBody.md)
582-
- [PersonRequestBodyEmails](Model/PersonRequestBodyEmails.md)
583-
- [PersonRequestBodyPhones](Model/PersonRequestBodyPhones.md)
584570
- [PersonSearchItem](Model/PersonSearchItem.md)
585571
- [PersonSearchItemItem](Model/PersonSearchItemItem.md)
586572
- [PersonSearchItemItemOrganization](Model/PersonSearchItemItemOrganization.md)

lib/versions/v1/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ class Configuration
111111
*/
112112
protected string $host = 'https://api.pipedrive.com/v1';
113113
/**
114-
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-15.x" by default
114+
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-14.x" by default
115115
*
116116
* @var string
117117
*/
118-
protected string $userAgent = 'Pipedrive-SDK-PHP-15.x';
118+
protected string $userAgent = 'Pipedrive-SDK-PHP-14.x';
119119

120120
/**
121121
* Debug switch (default set to false)

lib/versions/v2/Api/DealsApi.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ public function addManyDealProductsRequest($id, $create_many_deal_product_reques
13331333
/**
13341334
* Operation convertDealToLead
13351335
*
1336-
* Convert a deal to a lead (BETA)
1336+
* Convert a deal to a lead
13371337
*
13381338
* @param int $id The ID of the deal to convert (required)
13391339
*
@@ -1350,7 +1350,7 @@ public function convertDealToLead($id)
13501350
/**
13511351
* Operation convertDealToLeadWithHttpInfo
13521352
*
1353-
* Convert a deal to a lead (BETA)
1353+
* Convert a deal to a lead
13541354
*
13551355
* @param int $id The ID of the deal to convert (required)
13561356
*
@@ -1472,7 +1472,7 @@ public function convertDealToLeadWithHttpInfo($id)
14721472
/**
14731473
* Operation convertDealToLeadAsync
14741474
*
1475-
* Convert a deal to a lead (BETA)
1475+
* Convert a deal to a lead
14761476
*
14771477
* @param int $id The ID of the deal to convert (required)
14781478
*
@@ -1492,7 +1492,7 @@ function ($response) {
14921492
/**
14931493
* Operation convertDealToLeadAsyncWithHttpInfo
14941494
*
1495-
* Convert a deal to a lead (BETA)
1495+
* Convert a deal to a lead
14961496
*
14971497
* @param int $id The ID of the deal to convert (required)
14981498
*
@@ -4621,7 +4621,7 @@ public function getDealRequest($id, $include_fields = null, $custom_fields = nul
46214621
/**
46224622
* Operation getDealConversionStatus
46234623
*
4624-
* Get Deal conversion status (BETA)
4624+
* Get Deal conversion status
46254625
*
46264626
* @param int $id The ID of a deal (required)
46274627
* @param string $conversion_id The ID of the conversion (required)
@@ -4638,7 +4638,7 @@ public function getDealConversionStatus($id, $conversion_id)
46384638
/**
46394639
* Operation getDealConversionStatusWithHttpInfo
46404640
*
4641-
* Get Deal conversion status (BETA)
4641+
* Get Deal conversion status
46424642
*
46434643
* @param int $id The ID of a deal (required)
46444644
* @param string $conversion_id The ID of the conversion (required)
@@ -4700,7 +4700,7 @@ public function getDealConversionStatusWithHttpInfo($id, $conversion_id)
47004700
/**
47014701
* Operation getDealConversionStatusAsync
47024702
*
4703-
* Get Deal conversion status (BETA)
4703+
* Get Deal conversion status
47044704
*
47054705
* @param int $id The ID of a deal (required)
47064706
* @param string $conversion_id The ID of the conversion (required)
@@ -4721,7 +4721,7 @@ function ($response) {
47214721
/**
47224722
* Operation getDealConversionStatusAsyncWithHttpInfo
47234723
*
4724-
* Get Deal conversion status (BETA)
4724+
* Get Deal conversion status
47254725
*
47264726
* @param int $id The ID of a deal (required)
47274727
* @param string $conversion_id The ID of the conversion (required)

0 commit comments

Comments
 (0)