Skip to content

Releases: pipedrive/client-php

v6.7.0

17 May 05:33
Compare
Choose a tag to compare

What's Changed

Added

  • Added documentation for new endpoints /deals/{id}/changelog, /persons/{id}/changelog and /organizations/{id}/changelog.
  • Added is_deleted parameter for /v1/users/* responses.
  • Added billing_frequency, billing_frequency_cycles and billing_start_date fields to
    • GET, POST and PUT /v1/deals/{id}/products endpoints
    • GET, POST and PATCH /v2/deals/{id}/products endpoints
    • GET /v2/deals/products endpoint
  • Added billing_frequency, billing_frequency_cycles fields to
    • GET, POST and PUT /v1/products endpoints
    • GET /v1/products/{id} endpoint
    • GET, POST and PATCH /v2/products endpoints
    • GET /v2/products/{id} endpoints
  • Added RawData trait to models to allow access to all response data objects
    • useful for getting access to custom fields that are not available in openapi generated SDK models
      $apiInstance = new DealsApi(...);
      $result = $apiInstance->getDeals(42);
      
      $rawData = $result->getRawData();
      
      See tests for examples.

Community updates 1

09 May 06:23
82bffda
Compare
Choose a tag to compare

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

Full Changelog: 4.0.5...4.0.10

Updated add/update deal product methods

15 Nov 11:43
1c5c766
Compare
Choose a tag to compare
  • Added shortened aliased addAProductToADeal, and updateTheProductAttachedToADeal for the add/update deal product methods
  • Added the required parameter productId to the updateTheProductAttachedToADeal method
  • Updated README documentation for these methods

adding/updating activity should support busyFlag

07 Oct 07:54
1c7719d
Compare
Choose a tag to compare

adding/updating activity should support busyFlag optional attribute.

Get all person fields with pagination and small bug fix

08 Aug 08:31
74690a7
Compare
Choose a tag to compare
  • The method getAllPersonFields now supports optional pagination parameters.
  • The class CamelCaseHelper was fixed to not break on non-iterable values, such as null.

Deals and Products with custom fields and a small fix

07 Dec 09:54
93fd572
Compare
Choose a tag to compare
  • The methods addAProduct and updateAProduct now return all Product fields in the response, including custom fields.
  • From deals, getAllDeals and getDetailsOfADeal will 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 getDealsTimeline method was fixed, now it returns an array of results as expected.

Person, Deal and Organization update methods accept all input keys (including custom fields)

06 Aug 09:28
2d2ccf2
Compare
Choose a tag to compare

Updated updateAPerson, updateADeal and updateAnOrganization methods to accept all input keys (including custom fields)

Support for call logs added

03 Aug 13:07
e9e2833
Compare
Choose a tag to compare

Consistent casing of response keys

02 Aug 08:16
b5fe565
Compare
Choose a tag to compare

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

02 Aug 08:13
d887a1e
Compare
Choose a tag to compare

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.