This file contains all notable changes to this project. This project adheres to Semantic Versioning. This change log follows the conventions of keepachangelog.com.
- Update
LeadLabelresource to use PATCH method (as according to the API doc)
- Add the capability to override the HTTP method used to update a resource
- Update
Leadresource to use PATCH method (as according to the API doc)
- Added
findmethod for user to work for thefindendpoint of the Pipedrive API
- Implement
empty?(orno_content?) method on all the models when the response is No content (204 HTTP code) - Add option to treat 204 HTTP code (No Content) as 404 HTTP code (Not found)
- Add
find_by_dealmethod toSubscriptionto allow finding of subscriptions bydeal_id.
- Add the new resource
Pipedrive::OrganizationField - Add activities (as a
has_manyrelationship) toPipedrive::Person - Provide better error information also maping the status code to a class according to https://pipedrive.readme.io/docs/core-api-concepts-http-status-codes (check lib/pipedrive/errors.rb)
- Add
Subscriptionresource with additionalcreate_recurring,update_recurringandcancel_recurringmethods. - Changed faraday dependency to allow more flexibility
- Add
delete_attached_productmethod toDeal - Add metadata to
has_manyrelations that store the returned data(API) without transformation, as it is.
- Add
dealstoPerson
- Add
Pipedrive.debug_http_bodyfor debugging the http payload - Fix bugs with
POST/PUTendpoints
- Add
Pipedrive.debugso basic debug info is not displayed out of the box. - Add
Pipedrive.debug_httpfor debugging http traffic. - Fix bug in some resources when no fields filtering was provided.
- Fix bug introduced by v1.2.0 where
has_manyremoved the chance to pass extra parameters.
- Some endpoints like
deals/:id/productsallow to expand the response withinclude_product_datathat include an attrproductwith all the data - including the custon fields - of the products. The deafult for that option isfalseor0. I personally think this is redundant, so this version overrides this behavior by passingtrueor1and deleging the attrproductby merging its content with the body itself, at the end/productsshould returnproducts. On future versions this option would be passed to thehas_manymethod, likehas_many :products, class_name: "Product", include_data: false
- Add Lead, LeadLabel, LeadLabel and Goal models.
- Add capability to merge organizations, people and deals. See the doc here.
- Fixes unitialized constant error when the class_name within has_many definition doesn't contain the namespace
- Initial release