Releases: pipedrive/client-php
v6.7.0
What's Changed
Added
- Added documentation for new endpoints
/deals/{id}/changelog,/persons/{id}/changelogand/organizations/{id}/changelog. - Added
is_deletedparameter for/v1/users/*responses. - Added
billing_frequency,billing_frequency_cyclesandbilling_start_datefields toGET,POSTandPUT/v1/deals/{id}/productsendpointsGET,POSTandPATCH/v2/deals/{id}/productsendpointsGET/v2/deals/productsendpoint
- Added
billing_frequency,billing_frequency_cyclesfields toGET,POSTandPUT/v1/productsendpointsGET/v1/products/{id}endpointGET,POSTandPATCH/v2/productsendpointsGET/v2/products/{id}endpoints
- Added RawData trait to models to allow access to all response data objects
Community updates 1
This release applies PRs open by the community, to fix and improve the SDK.
What's Changed
- Fixes Array to string conversion error for ProductField option attribute by @jr-k in #24
- Use ReturnTypeWillChange attribute for PHP8.1 comp by @poethrenoff in #60
- Ignore dev/testing files for distribution builds by @pH-7 in #66
- Add pipeline_id into deals summary API by @MgHtinLynn in #81
New Contributors
- @jr-k made their first contribution in #24
- @poethrenoff made their first contribution in #60
- @pH-7 made their first contribution in #66
- @MgHtinLynn made their first contribution in #81
Full Changelog: 4.0.5...4.0.10
Updated add/update deal product methods
- Added shortened aliased
addAProductToADeal, andupdateTheProductAttachedToADealfor the add/update deal product methods - Added the required parameter
productIdto theupdateTheProductAttachedToADealmethod - Updated README documentation for these methods
adding/updating activity should support busyFlag
adding/updating activity should support busyFlag optional attribute.
Get all person fields with pagination and small bug fix
- The method
getAllPersonFieldsnow supports optional pagination parameters. - The class
CamelCaseHelperwas fixed to not break on non-iterable values, such as null.
Deals and Products with custom fields and a small fix
- The methods
addAProductandupdateAProductnow return all Product fields in the response, including custom fields. - From deals,
getAllDealsandgetDetailsOfADealwill return the raw response as it comes from the API itself, so custom fields are also included.- Notice that this is a breaking change, as certain 0/1 integer values coming from the API (eg.: has_pic) were cast to boolean before, but they won't be cast anymore.
- The
getDealsTimelinemethod was fixed, now it returns an array of results as expected.
Person, Deal and Organization update methods accept all input keys (including custom fields)
Updated updateAPerson, updateADeal and updateAnOrganization methods to accept all input keys (including custom fields)
Support for call logs added
Call logs endpoints added to the SDK
Consistent casing of response keys
Every response now goes through CamelCaseHelper::keysToCamelCase() function because relying on only the model mapper caused inconsistencies (if the model contained a property that is defined just as an object, not a specific model then the keys of this object were not camel-cased).
Also, if json_encode() is run over the response then everything is now consistently snake_cased (as in the raw response)
Removal of deprecated search endpoints
The following endpoints are deprecated in the Pipedrive API and will stop working soon, so we are removing them from the SDK. This is a breaking change if you use one of the following:
/deals/find
Used in DealsController.findDealsByName()
/persons/find
Used in PersonsController.findPersonsByName()
/organizations/find
Used in OrganizationsController.findOrganizationsByName()
/products/find
Used in ProductsController.findProductsByName()
/searchResults and /searchResults/field
From SearchResultsController.getPerformASearch() and SearchResultsController. getPerformASearchUsingASpecificFieldValue() respectively, The SearchResultsController file is no longer available.