From 7b15d036d48ef42c694c41c62201220143d149cf Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Thu, 1 Aug 2024 09:26:48 +0000 Subject: [PATCH 1/2] Build 61 - version-patch --- CHANGELOG.md | 2 ++ docs/AddProductRequestBody.md | 1 + docs/ProductRequest.md | 1 + docs/UpdateProductRequestBody.md | 1 + src/model/AddProductRequestBody.js | 16 ++++++++++++++++ src/model/ProductRequest.js | 11 +++++++++++ src/model/UpdateProductRequestBody.js | 16 ++++++++++++++++ 7 files changed, 48 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 042dbe69..d3e61a59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] +### Fixed +- Added missing "description" parameter to "Add a product" and "Update a product" endpoints ## [23.2.0] - 2024-07-25 ### Added diff --git a/docs/AddProductRequestBody.md b/docs/AddProductRequestBody.md index c0334ead..5af51ad8 100644 --- a/docs/AddProductRequestBody.md +++ b/docs/AddProductRequestBody.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the product | [optional] **code** | **String** | The product code | [optional] +**description** | **String** | The product description | [optional] **unit** | **String** | The unit in which this product is sold | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] **active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] diff --git a/docs/ProductRequest.md b/docs/ProductRequest.md index 0f729c5c..aca4a2c9 100644 --- a/docs/ProductRequest.md +++ b/docs/ProductRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **String** | The product code | [optional] +**description** | **String** | The product description | [optional] **unit** | **String** | The unit in which this product is sold | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] **active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] diff --git a/docs/UpdateProductRequestBody.md b/docs/UpdateProductRequestBody.md index b099100d..d5ee71a3 100644 --- a/docs/UpdateProductRequestBody.md +++ b/docs/UpdateProductRequestBody.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the product | [optional] **code** | **String** | The product code | [optional] +**description** | **String** | The product description | [optional] **unit** | **String** | The unit in which this product is sold | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] **active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] diff --git a/src/model/AddProductRequestBody.js b/src/model/AddProductRequestBody.js index fa6de55b..c7e1a008 100644 --- a/src/model/AddProductRequestBody.js +++ b/src/model/AddProductRequestBody.js @@ -71,6 +71,11 @@ class AddProductRequestBody { delete data['code']; } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } if (data.hasOwnProperty('unit')) { obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); @@ -140,6 +145,12 @@ AddProductRequestBody.prototype['name'] = undefined; */ AddProductRequestBody.prototype['code'] = undefined; +/** + * The product description + * @member {String} description + */ +AddProductRequestBody.prototype['description'] = undefined; + /** * The unit in which this product is sold * @member {String} unit @@ -209,6 +220,11 @@ NameObject.prototype['name'] = undefined; * @member {String} code */ ProductRequest.prototype['code'] = undefined; +/** + * The product description + * @member {String} description + */ +ProductRequest.prototype['description'] = undefined; /** * The unit in which this product is sold * @member {String} unit diff --git a/src/model/ProductRequest.js b/src/model/ProductRequest.js index 060d19f8..bc00fe03 100644 --- a/src/model/ProductRequest.js +++ b/src/model/ProductRequest.js @@ -53,6 +53,11 @@ class ProductRequest { delete data['code']; } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } if (data.hasOwnProperty('unit')) { obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); @@ -106,6 +111,12 @@ class ProductRequest { */ ProductRequest.prototype['code'] = undefined; +/** + * The product description + * @member {String} description + */ +ProductRequest.prototype['description'] = undefined; + /** * The unit in which this product is sold * @member {String} unit diff --git a/src/model/UpdateProductRequestBody.js b/src/model/UpdateProductRequestBody.js index 89dff0f9..38165e6e 100644 --- a/src/model/UpdateProductRequestBody.js +++ b/src/model/UpdateProductRequestBody.js @@ -71,6 +71,11 @@ class UpdateProductRequestBody { delete data['code']; } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } if (data.hasOwnProperty('unit')) { obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); @@ -140,6 +145,12 @@ UpdateProductRequestBody.prototype['name'] = undefined; */ UpdateProductRequestBody.prototype['code'] = undefined; +/** + * The product description + * @member {String} description + */ +UpdateProductRequestBody.prototype['description'] = undefined; + /** * The unit in which this product is sold * @member {String} unit @@ -209,6 +220,11 @@ NameObject.prototype['name'] = undefined; * @member {String} code */ ProductRequest.prototype['code'] = undefined; +/** + * The product description + * @member {String} description + */ +ProductRequest.prototype['description'] = undefined; /** * The unit in which this product is sold * @member {String} unit From 8c701627f3451314b241b560085669537b7859f3 Mon Sep 17 00:00:00 2001 From: jenkins User Date: Thu, 1 Aug 2024 09:31:00 +0000 Subject: [PATCH 2/2] 23.2.1 --- CHANGELOG.md | 5 ++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3e61a59..8ec3f54f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] + +## [23.2.1] - 2024-08-01 ### Fixed - Added missing "description" parameter to "Add a product" and "Update a product" endpoints @@ -659,7 +661,8 @@ structure * Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal * Fixed typo in lead example response (`crrency` to `currency`) -[Unreleased]: https://github.com/pipedrive/api-docs/compare/v23.2.0...HEAD +[Unreleased]: https://github.com/pipedrive/api-docs/compare/v23.2.1...HEAD +[23.2.1]: https://github.com/pipedrive/api-docs/compare/v23.2.0...v23.2.1 [23.2.0]: https://github.com/pipedrive/api-docs/compare/v23.1.0...v23.2.0 [23.1.0]: https://github.com/pipedrive/api-docs/compare/v23.0.0...v23.1.0 [23.0.0]: https://github.com/pipedrive/api-docs/compare/v22.10.1...v23.0.0 diff --git a/package-lock.json b/package-lock.json index 9f3160e0..2102a537 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pipedrive", - "version": "23.2.0", + "version": "23.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pipedrive", - "version": "23.2.0", + "version": "23.2.1", "license": "MIT", "dependencies": { "@babel/runtime": "^7.20.1", diff --git a/package.json b/package.json index 20230104..d64d026b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pipedrive", - "version": "23.2.0", + "version": "23.2.1", "description": "Pipedrive REST client for NodeJS", "license": "MIT", "main": "dist/index.js",