diff --git a/CHANGELOG.md b/CHANGELOG.md index 051196cd..6d59f91a 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] +### Removed +- Removed request and response fields `duration` and `duration_unit` for all endpoints of deals and products using them ## [22.10.1] - 2024-06-07 ### Removed diff --git a/README.md b/README.md index e8cfafbd..4ee7c681 100644 --- a/README.md +++ b/README.md @@ -809,7 +809,6 @@ Class | Method | HTTP request | Description - [Pipedrive.DealPersonDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithId.md) - [Pipedrive.DealPersonDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithIdAllOf.md) - [Pipedrive.DealProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductRequestBody.md) - - [Pipedrive.DealProductUnitDuration](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductUnitDuration.md) - [Pipedrive.DealSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItem.md) - [Pipedrive.DealSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItem.md) - [Pipedrive.DealSearchItemItemOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemOrganization.md) diff --git a/docs/AddProductAttachmentDetails.md b/docs/AddProductAttachmentDetails.md index ee9cc8e3..b1789f8f 100644 --- a/docs/AddProductAttachmentDetails.md +++ b/docs/AddProductAttachmentDetails.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product. If omitted, will be set to 1 | [optional] [default to 1] -**duration_unit** | **String** | The type of the duration. (For example hourly, daily, etc.) | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The product tax | [optional] diff --git a/docs/BasicDealProduct.md b/docs/BasicDealProduct.md index d102c39f..86e9cec1 100644 --- a/docs/BasicDealProduct.md +++ b/docs/BasicDealProduct.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product. If omitted, will be set to 1 | [optional] [default to 1] -**duration_unit** | [**DealProductUnitDuration**](DealProductUnitDuration.md) | The unit duration of the product | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] diff --git a/docs/BasicDealProductAllOf.md b/docs/BasicDealProductAllOf.md index a89c397d..aedcd577 100644 --- a/docs/BasicDealProductAllOf.md +++ b/docs/BasicDealProductAllOf.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product. If omitted, will be set to 1 | [optional] [default to 1] -**duration_unit** | [**DealProductUnitDuration**](DealProductUnitDuration.md) | The unit duration of the product | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] diff --git a/docs/DealProductRequestBody.md b/docs/DealProductRequestBody.md index 6907833c..37c47044 100644 --- a/docs/DealProductRequestBody.md +++ b/docs/DealProductRequestBody.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | How many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product | [optional] [default to 1] -**duration_unit** | [**DealProductUnitDuration**](DealProductUnitDuration.md) | The unit duration of the product | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] diff --git a/docs/NewDealProduct.md b/docs/NewDealProduct.md index b4c6115b..5633f67b 100644 --- a/docs/NewDealProduct.md +++ b/docs/NewDealProduct.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | How many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product | [optional] [default to 1] -**duration_unit** | [**DealProductUnitDuration**](DealProductUnitDuration.md) | The unit duration of the product | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] diff --git a/docs/ProductAttachementFields.md b/docs/ProductAttachementFields.md index bf26a6f5..5f0b740c 100644 --- a/docs/ProductAttachementFields.md +++ b/docs/ProductAttachementFields.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **company_id** | **Number** | The ID of the company | [optional] **deal_id** | **Number** | The ID of the deal | [optional] **product_id** | **Number** | The ID of the product | [optional] -**duration_unit** | **String** | The type of the duration. (For example hourly, daily, etc.) | [optional] **sum** | **Number** | The sum of all the products attached to the deal | [optional] **currency** | **String** | The currency associated with the deal product | [optional] **add_time** | **String** | The date and time when the product was added to the deal | [optional] diff --git a/docs/ProductAttachmentDetails.md b/docs/ProductAttachmentDetails.md index d06af0a3..aa677a8d 100644 --- a/docs/ProductAttachmentDetails.md +++ b/docs/ProductAttachmentDetails.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product. If omitted, will be set to 1 | [optional] [default to 1] -**duration_unit** | **String** | The type of the duration. (For example hourly, daily, etc.) | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The product tax | [optional] diff --git a/docs/ProductListItem.md b/docs/ProductListItem.md index e668a256..907cea1b 100644 --- a/docs/ProductListItem.md +++ b/docs/ProductListItem.md @@ -12,8 +12,6 @@ Name | Type | Description | Notes **item_price** | **Number** | The price value of the product | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product | [optional] -**duration_unit** | **String** | The type of the duration. (For example hourly, daily, etc.) | [optional] **sum** | **Number** | The sum of all the products attached to the deal | [optional] **currency** | **String** | The currency associated with the deal product | [optional] **enabled_flag** | **Boolean** | Whether the product is enabled or not | [optional] diff --git a/docs/UpdateDealProduct.md b/docs/UpdateDealProduct.md index 6209e162..88930495 100644 --- a/docs/UpdateDealProduct.md +++ b/docs/UpdateDealProduct.md @@ -9,8 +9,6 @@ Name | Type | Description | Notes **quantity** | **Number** | How many items of this product will be added to the deal | [optional] **discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] **discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**duration** | **Number** | The duration of the product | [optional] [default to 1] -**duration_unit** | [**DealProductUnitDuration**](DealProductUnitDuration.md) | The unit duration of the product | [optional] **product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] **comments** | **String** | A textual comment associated with this product-deal attachment | [optional] **tax** | **Number** | The tax percentage | [optional] [default to 0] diff --git a/src/index.js b/src/index.js index 26bd060b..7a089b0e 100644 --- a/src/index.js +++ b/src/index.js @@ -193,7 +193,6 @@ import DealPersonDataPhone from './model/DealPersonDataPhone'; import DealPersonDataWithId from './model/DealPersonDataWithId'; import DealPersonDataWithIdAllOf from './model/DealPersonDataWithIdAllOf'; import DealProductRequestBody from './model/DealProductRequestBody'; -import DealProductUnitDuration from './model/DealProductUnitDuration'; import DealSearchItem from './model/DealSearchItem'; import DealSearchItemItem from './model/DealSearchItemItem'; import DealSearchItemItemOrganization from './model/DealSearchItemItemOrganization'; @@ -1977,12 +1976,6 @@ export { */ DealProductRequestBody, - /** - * The DealProductUnitDuration model constructor. - * @property {module:model/DealProductUnitDuration} - */ - DealProductUnitDuration, - /** * The DealSearchItem model constructor. * @property {module:model/DealSearchItem} diff --git a/src/model/AddProductAttachmentDetails.js b/src/model/AddProductAttachmentDetails.js index 9083bf8b..5b099d3c 100644 --- a/src/model/AddProductAttachmentDetails.js +++ b/src/model/AddProductAttachmentDetails.js @@ -79,16 +79,6 @@ class AddProductAttachmentDetails { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], 'String'); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -223,19 +213,6 @@ AddProductAttachmentDetails.prototype['discount'] = 0; */ AddProductAttachmentDetails.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -AddProductAttachmentDetails.prototype['duration'] = 1; - -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -AddProductAttachmentDetails.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -373,17 +350,6 @@ ProductAttachmentDetails.prototype['discount'] = 0; * @default 'percentage' */ ProductAttachmentDetails.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -ProductAttachmentDetails.prototype['duration'] = 1; -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -ProductAttachmentDetails.prototype['duration_unit'] = undefined; /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id diff --git a/src/model/BasicDealProduct.js b/src/model/BasicDealProduct.js index 016682f0..6c87816b 100644 --- a/src/model/BasicDealProduct.js +++ b/src/model/BasicDealProduct.js @@ -14,7 +14,6 @@ import ApiClient from '../ApiClient'; import BasicDealProductAllOf from './BasicDealProductAllOf'; import BillingFrequency from './BillingFrequency'; -import DealProductUnitDuration from './DealProductUnitDuration'; import NewDealProductAllOf from './NewDealProductAllOf'; import NewDealProductAllOf1 from './NewDealProductAllOf1'; import NewDealProductAllOf2 from './NewDealProductAllOf2'; @@ -86,16 +85,6 @@ class BasicDealProduct { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], DealProductUnitDuration); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -180,19 +169,6 @@ BasicDealProduct.prototype['discount'] = 0; */ BasicDealProduct.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -BasicDealProduct.prototype['duration'] = 1; - -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -BasicDealProduct.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -271,17 +247,6 @@ BasicDealProductAllOf.prototype['discount'] = 0; * @default 'percentage' */ BasicDealProductAllOf.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -BasicDealProductAllOf.prototype['duration'] = 1; -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -BasicDealProductAllOf.prototype['duration_unit'] = undefined; /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id diff --git a/src/model/BasicDealProductAllOf.js b/src/model/BasicDealProductAllOf.js index 5f8e3f15..6df01b66 100644 --- a/src/model/BasicDealProductAllOf.js +++ b/src/model/BasicDealProductAllOf.js @@ -12,7 +12,6 @@ */ import ApiClient from '../ApiClient'; -import DealProductUnitDuration from './DealProductUnitDuration'; /** * The BasicDealProductAllOf model module. @@ -73,16 +72,6 @@ class BasicDealProductAllOf { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], DealProductUnitDuration); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -152,19 +141,6 @@ BasicDealProductAllOf.prototype['discount'] = 0; */ BasicDealProductAllOf.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -BasicDealProductAllOf.prototype['duration'] = 1; - -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -BasicDealProductAllOf.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id diff --git a/src/model/DealProductRequestBody.js b/src/model/DealProductRequestBody.js index f0bc3d85..289da8ba 100644 --- a/src/model/DealProductRequestBody.js +++ b/src/model/DealProductRequestBody.js @@ -12,7 +12,6 @@ */ import ApiClient from '../ApiClient'; -import DealProductUnitDuration from './DealProductUnitDuration'; /** * The DealProductRequestBody model module. @@ -73,16 +72,6 @@ class DealProductRequestBody { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], DealProductUnitDuration); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -152,19 +141,6 @@ DealProductRequestBody.prototype['discount'] = 0; */ DealProductRequestBody.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - * @default 1 - */ -DealProductRequestBody.prototype['duration'] = 1; - -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -DealProductRequestBody.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id diff --git a/src/model/NewDealProduct.js b/src/model/NewDealProduct.js index df4a43b6..f7a35b78 100644 --- a/src/model/NewDealProduct.js +++ b/src/model/NewDealProduct.js @@ -14,7 +14,6 @@ import ApiClient from '../ApiClient'; import BillingFrequency from './BillingFrequency'; import DealProductRequestBody from './DealProductRequestBody'; -import DealProductUnitDuration from './DealProductUnitDuration'; import NewDealProductAllOf from './NewDealProductAllOf'; import NewDealProductAllOf1 from './NewDealProductAllOf1'; import NewDealProductAllOf2 from './NewDealProductAllOf2'; @@ -86,16 +85,6 @@ class NewDealProduct { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], DealProductUnitDuration); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -180,19 +169,6 @@ NewDealProduct.prototype['discount'] = 0; */ NewDealProduct.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - * @default 1 - */ -NewDealProduct.prototype['duration'] = 1; - -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -NewDealProduct.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -271,17 +247,6 @@ DealProductRequestBody.prototype['discount'] = 0; * @default 'percentage' */ DealProductRequestBody.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - * @default 1 - */ -DealProductRequestBody.prototype['duration'] = 1; -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -DealProductRequestBody.prototype['duration_unit'] = undefined; /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id diff --git a/src/model/ProductAttachementFields.js b/src/model/ProductAttachementFields.js index c3f16ce8..4316c2c2 100644 --- a/src/model/ProductAttachementFields.js +++ b/src/model/ProductAttachementFields.js @@ -67,11 +67,6 @@ class ProductAttachementFields { delete data['product_id']; } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], 'String'); - - delete data['duration_unit']; - } if (data.hasOwnProperty('sum')) { obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); @@ -143,12 +138,6 @@ ProductAttachementFields.prototype['deal_id'] = undefined; */ ProductAttachementFields.prototype['product_id'] = undefined; -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -ProductAttachementFields.prototype['duration_unit'] = undefined; - /** * The sum of all the products attached to the deal * @member {Number} sum diff --git a/src/model/ProductAttachmentDetails.js b/src/model/ProductAttachmentDetails.js index bf2ca683..a65137f5 100644 --- a/src/model/ProductAttachmentDetails.js +++ b/src/model/ProductAttachmentDetails.js @@ -79,16 +79,6 @@ class ProductAttachmentDetails { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], 'String'); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -218,19 +208,6 @@ ProductAttachmentDetails.prototype['discount'] = 0; */ ProductAttachmentDetails.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -ProductAttachmentDetails.prototype['duration'] = 1; - -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -ProductAttachmentDetails.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -362,17 +339,6 @@ BasicDealProduct.prototype['discount'] = 0; * @default 'percentage' */ BasicDealProduct.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product. If omitted, will be set to 1 - * @member {Number} duration - * @default 1 - */ -BasicDealProduct.prototype['duration'] = 1; -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -BasicDealProduct.prototype['duration_unit'] = undefined; /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -435,11 +401,6 @@ ProductAttachementFields.prototype['deal_id'] = undefined; * @member {Number} product_id */ ProductAttachementFields.prototype['product_id'] = undefined; -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -ProductAttachementFields.prototype['duration_unit'] = undefined; /** * The sum of all the products attached to the deal * @member {Number} sum diff --git a/src/model/ProductListItem.js b/src/model/ProductListItem.js index c4e53ef9..5ee612c1 100644 --- a/src/model/ProductListItem.js +++ b/src/model/ProductListItem.js @@ -88,16 +88,6 @@ class ProductListItem { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], 'String'); - - delete data['duration_unit']; - } if (data.hasOwnProperty('sum')) { obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); @@ -230,18 +220,6 @@ ProductListItem.prototype['discount'] = 0; */ ProductListItem.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - */ -ProductListItem.prototype['duration'] = undefined; - -/** - * The type of the duration. (For example hourly, daily, etc.) - * @member {String} duration_unit - */ -ProductListItem.prototype['duration_unit'] = undefined; - /** * The sum of all the products attached to the deal * @member {Number} sum diff --git a/src/model/UpdateDealProduct.js b/src/model/UpdateDealProduct.js index ff800207..732e12cc 100644 --- a/src/model/UpdateDealProduct.js +++ b/src/model/UpdateDealProduct.js @@ -14,7 +14,6 @@ import ApiClient from '../ApiClient'; import BillingFrequency from './BillingFrequency'; import DealProductRequestBody from './DealProductRequestBody'; -import DealProductUnitDuration from './DealProductUnitDuration'; import NewDealProductAllOf from './NewDealProductAllOf'; import NewDealProductAllOf1 from './NewDealProductAllOf1'; import NewDealProductAllOf2 from './NewDealProductAllOf2'; @@ -86,16 +85,6 @@ class UpdateDealProduct { delete data['discount_type']; } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - - delete data['duration']; - } - if (data.hasOwnProperty('duration_unit')) { - obj['duration_unit'] = ApiClient.convertToType(data['duration_unit'], DealProductUnitDuration); - - delete data['duration_unit']; - } if (data.hasOwnProperty('product_variation_id')) { obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); @@ -180,19 +169,6 @@ UpdateDealProduct.prototype['discount'] = 0; */ UpdateDealProduct.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - * @default 1 - */ -UpdateDealProduct.prototype['duration'] = 1; - -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -UpdateDealProduct.prototype['duration_unit'] = undefined; - /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id @@ -271,17 +247,6 @@ DealProductRequestBody.prototype['discount'] = 0; * @default 'percentage' */ DealProductRequestBody.prototype['discount_type'] = 'percentage'; -/** - * The duration of the product - * @member {Number} duration - * @default 1 - */ -DealProductRequestBody.prototype['duration'] = 1; -/** - * The unit duration of the product - * @member {module:model/DealProductUnitDuration} duration_unit - */ -DealProductRequestBody.prototype['duration_unit'] = undefined; /** * The ID of the product variation to use. When omitted, no variation will be used * @member {Number} product_variation_id