pipedrive 22.6.0 → 22.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/README.md +9 -6
  2. package/dist/ApiClient.js +8 -4
  3. package/dist/api/ActivitiesApi.js +12 -1
  4. package/dist/api/ActivityFieldsApi.js +12 -1
  5. package/dist/api/ActivityTypesApi.js +12 -1
  6. package/dist/api/BillingApi.js +12 -1
  7. package/dist/api/CallLogsApi.js +12 -1
  8. package/dist/api/ChannelsApi.js +12 -1
  9. package/dist/api/CurrenciesApi.js +12 -1
  10. package/dist/api/DealFieldsApi.js +12 -1
  11. package/dist/api/DealsApi.js +12 -1
  12. package/dist/api/FilesApi.js +12 -1
  13. package/dist/api/FiltersApi.js +12 -1
  14. package/dist/api/GlobalMessagesApi.js +12 -1
  15. package/dist/api/GoalsApi.js +12 -1
  16. package/dist/api/ItemSearchApi.js +12 -1
  17. package/dist/api/LeadLabelsApi.js +12 -1
  18. package/dist/api/LeadSourcesApi.js +12 -1
  19. package/dist/api/LeadsApi.js +12 -1
  20. package/dist/api/LegacyTeamsApi.js +12 -1
  21. package/dist/api/MailboxApi.js +12 -1
  22. package/dist/api/MeetingsApi.js +12 -1
  23. package/dist/api/NoteFieldsApi.js +12 -1
  24. package/dist/api/NotesApi.js +12 -1
  25. package/dist/api/OrganizationFieldsApi.js +12 -1
  26. package/dist/api/OrganizationRelationshipsApi.js +12 -1
  27. package/dist/api/OrganizationsApi.js +12 -1
  28. package/dist/api/PermissionSetsApi.js +12 -1
  29. package/dist/api/PersonFieldsApi.js +12 -1
  30. package/dist/api/PersonsApi.js +12 -1
  31. package/dist/api/PipelinesApi.js +12 -1
  32. package/dist/api/ProductFieldsApi.js +12 -1
  33. package/dist/api/ProductsApi.js +12 -1
  34. package/dist/api/ProjectTemplatesApi.js +12 -1
  35. package/dist/api/ProjectsApi.js +12 -1
  36. package/dist/api/RecentsApi.js +12 -1
  37. package/dist/api/RolesApi.js +12 -1
  38. package/dist/api/SearchResultsApi.js +12 -1
  39. package/dist/api/StagesApi.js +12 -1
  40. package/dist/api/SubscriptionsApi.js +12 -1
  41. package/dist/api/TasksApi.js +12 -1
  42. package/dist/api/TeamsApi.js +12 -1
  43. package/dist/api/UserConnectionsApi.js +12 -1
  44. package/dist/api/UserSettingsApi.js +12 -1
  45. package/dist/api/UsersApi.js +12 -1
  46. package/dist/api/WebhooksApi.js +12 -1
  47. package/dist/index.js +63 -42
  48. package/dist/model/AddProductAttachmentDetails.js +60 -23
  49. package/dist/model/AddProductRequestBody.js +50 -14
  50. package/dist/model/AddProductRequestBodyAllOf.js +78 -0
  51. package/dist/model/BaseProduct.js +60 -1
  52. package/dist/model/BaseUser.js +10 -0
  53. package/dist/model/BaseUserMe.js +15 -0
  54. package/dist/model/BasicDealProduct.js +139 -16
  55. package/dist/model/BasicDealProductAllOf.js +235 -0
  56. package/dist/model/BillingFrequency.js +86 -0
  57. package/dist/model/BillingFrequency1.js +86 -0
  58. package/dist/model/DealProductRequestBody.js +235 -0
  59. package/dist/model/DealProductUnitDuration.js +20 -0
  60. package/dist/model/Field.js +10 -0
  61. package/dist/model/FieldTypeAsString.js +68 -0
  62. package/dist/model/FilterType.js +28 -0
  63. package/dist/model/IconKey.js +160 -0
  64. package/dist/model/LeadLabelColor.js +24 -0
  65. package/dist/model/ListPermittedUsersResponse.js +0 -19
  66. package/dist/model/MarketingStatus.js +16 -0
  67. package/dist/model/NameObject.js +78 -0
  68. package/dist/model/NewDealProduct.js +95 -43
  69. package/dist/model/NewDealProductAllOf.js +9 -12
  70. package/dist/model/NewDealProductAllOf1.js +78 -0
  71. package/dist/model/NewDealProductAllOf2.js +78 -0
  72. package/dist/model/NumberBoolean.js +8 -0
  73. package/dist/model/NumberBooleanDefault0.js +8 -0
  74. package/dist/model/NumberBooleanDefault1.js +8 -0
  75. package/dist/model/PersonListProduct.js +1 -1
  76. package/dist/model/ProductAttachmentDetails.js +60 -23
  77. package/dist/model/ProductField.js +15 -0
  78. package/dist/model/ProductFieldAllOf.js +10 -0
  79. package/dist/model/ProductListItem.js +6 -6
  80. package/dist/model/ProductRequest.js +1 -1
  81. package/dist/model/ProductWithArrayPrices.js +72 -2
  82. package/dist/model/UpdateDealProduct.js +135 -5
  83. package/dist/model/UpdateProductRequestBody.js +50 -14
  84. package/dist/model/UpdateProductResponse.js +3 -3
  85. package/dist/model/VisibleTo.js +16 -0
  86. package/package.json +1 -1
@@ -101,6 +101,14 @@ var ProductWithArrayPrices = /*#__PURE__*/function () {
101
101
  obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], Object);
102
102
  delete data['owner_id'];
103
103
  }
104
+ if (data.hasOwnProperty('billing_frequency')) {
105
+ obj['billing_frequency'] = _ApiClient["default"].convertToType(data['billing_frequency'], 'String');
106
+ delete data['billing_frequency'];
107
+ }
108
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
109
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
110
+ delete data['billing_frequency_cycles'];
111
+ }
104
112
  if (data.hasOwnProperty('prices')) {
105
113
  obj['prices'] = _ApiClient["default"].convertToType(data['prices'], [Object]);
106
114
  delete data['prices'];
@@ -139,7 +147,7 @@ ProductWithArrayPrices.prototype['code'] = undefined;
139
147
  ProductWithArrayPrices.prototype['unit'] = undefined;
140
148
 
141
149
  /**
142
- * The ax percentage
150
+ * The tax percentage
143
151
  * @member {Number} tax
144
152
  * @default 0
145
153
  */
@@ -171,6 +179,19 @@ ProductWithArrayPrices.prototype['visible_to'] = undefined;
171
179
  */
172
180
  ProductWithArrayPrices.prototype['owner_id'] = undefined;
173
181
 
182
+ /**
183
+ * Only available in Advanced and above plans How often a customer is billed for access to a service or product
184
+ * @member {module:model/ProductWithArrayPrices.BillingFrequencyEnum} billing_frequency
185
+ * @default 'one-time'
186
+ */
187
+ ProductWithArrayPrices.prototype['billing_frequency'] = 'one-time';
188
+
189
+ /**
190
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
191
+ * @member {Number} billing_frequency_cycles
192
+ */
193
+ ProductWithArrayPrices.prototype['billing_frequency_cycles'] = undefined;
194
+
174
195
  /**
175
196
  * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional)
176
197
  * @member {Array.<Object>} prices
@@ -199,7 +220,7 @@ _BaseProduct["default"].prototype['code'] = undefined;
199
220
  */
200
221
  _BaseProduct["default"].prototype['unit'] = undefined;
201
222
  /**
202
- * The ax percentage
223
+ * The tax percentage
203
224
  * @member {Number} tax
204
225
  * @default 0
205
226
  */
@@ -226,11 +247,60 @@ _BaseProduct["default"].prototype['visible_to'] = undefined;
226
247
  * @member {Object} owner_id
227
248
  */
228
249
  _BaseProduct["default"].prototype['owner_id'] = undefined;
250
+ /**
251
+ * Only available in Advanced and above plans How often a customer is billed for access to a service or product
252
+ * @member {module:model/BaseProduct.BillingFrequencyEnum} billing_frequency
253
+ * @default 'one-time'
254
+ */
255
+ _BaseProduct["default"].prototype['billing_frequency'] = 'one-time';
256
+ /**
257
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
258
+ * @member {Number} billing_frequency_cycles
259
+ */
260
+ _BaseProduct["default"].prototype['billing_frequency_cycles'] = undefined;
229
261
  // Implement ArrayPrices interface:
230
262
  /**
231
263
  * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional)
232
264
  * @member {Array.<Object>} prices
233
265
  */
234
266
  _ArrayPrices["default"].prototype['prices'] = undefined;
267
+
268
+ /**
269
+ * Allowed values for the <code>billing_frequency</code> property.
270
+ * @enum {String}
271
+ * @readonly
272
+ */
273
+ ProductWithArrayPrices['BillingFrequencyEnum'] = {
274
+ /**
275
+ * value: "one-time"
276
+ * @const
277
+ */
278
+ "one-time": "one-time",
279
+ /**
280
+ * value: "annually"
281
+ * @const
282
+ */
283
+ "annually": "annually",
284
+ /**
285
+ * value: "semi-annually"
286
+ * @const
287
+ */
288
+ "semi-annually": "semi-annually",
289
+ /**
290
+ * value: "quarterly"
291
+ * @const
292
+ */
293
+ "quarterly": "quarterly",
294
+ /**
295
+ * value: "monthly"
296
+ * @const
297
+ */
298
+ "monthly": "monthly",
299
+ /**
300
+ * value: "weekly"
301
+ * @const
302
+ */
303
+ "weekly": "weekly"
304
+ };
235
305
  var _default = ProductWithArrayPrices;
236
306
  exports["default"] = _default;
@@ -8,7 +8,12 @@ exports["default"] = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
12
+ var _DealProductRequestBody = _interopRequireDefault(require("./DealProductRequestBody"));
11
13
  var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
14
+ var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
15
+ var _NewDealProductAllOf2 = _interopRequireDefault(require("./NewDealProductAllOf1"));
16
+ var _NewDealProductAllOf3 = _interopRequireDefault(require("./NewDealProductAllOf2"));
12
17
  /**
13
18
  * Pipedrive API v1
14
19
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -30,9 +35,17 @@ var UpdateDealProduct = /*#__PURE__*/function () {
30
35
  /**
31
36
  * Constructs a new <code>UpdateDealProduct</code>.
32
37
  * @alias module:model/UpdateDealProduct
38
+ * @implements module:model/DealProductRequestBody
39
+ * @implements module:model/NewDealProductAllOf
40
+ * @implements module:model/NewDealProductAllOf1
41
+ * @implements module:model/NewDealProductAllOf2
33
42
  */
34
43
  function UpdateDealProduct() {
35
44
  (0, _classCallCheck2["default"])(this, UpdateDealProduct);
45
+ _DealProductRequestBody["default"].initialize(this);
46
+ _NewDealProductAllOf["default"].initialize(this);
47
+ _NewDealProductAllOf2["default"].initialize(this);
48
+ _NewDealProductAllOf3["default"].initialize(this);
36
49
  UpdateDealProduct.initialize(this);
37
50
  }
38
51
 
@@ -57,6 +70,10 @@ var UpdateDealProduct = /*#__PURE__*/function () {
57
70
  value: function constructFromObject(data, obj) {
58
71
  if (data) {
59
72
  obj = obj || new UpdateDealProduct();
73
+ _DealProductRequestBody["default"].constructFromObject(data, obj);
74
+ _NewDealProductAllOf["default"].constructFromObject(data, obj);
75
+ _NewDealProductAllOf2["default"].constructFromObject(data, obj);
76
+ _NewDealProductAllOf3["default"].constructFromObject(data, obj);
60
77
  if (data.hasOwnProperty('product_id')) {
61
78
  obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
62
79
  delete data['product_id'];
@@ -105,6 +122,18 @@ var UpdateDealProduct = /*#__PURE__*/function () {
105
122
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
106
123
  delete data['enabled_flag'];
107
124
  }
125
+ if (data.hasOwnProperty('billing_frequency')) {
126
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
127
+ delete data['billing_frequency'];
128
+ }
129
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
130
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
131
+ delete data['billing_frequency_cycles'];
132
+ }
133
+ if (data.hasOwnProperty('billing_start_date')) {
134
+ obj['billing_start_date'] = _ApiClient["default"].convertToType(data['billing_start_date'], 'String');
135
+ delete data['billing_start_date'];
136
+ }
108
137
  if (Object.keys(data).length > 0) {
109
138
  Object.assign(obj, data);
110
139
  }
@@ -133,14 +162,14 @@ UpdateDealProduct.prototype['item_price'] = undefined;
133
162
  UpdateDealProduct.prototype['quantity'] = undefined;
134
163
 
135
164
  /**
136
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
165
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
137
166
  * @member {Number} discount
138
167
  * @default 0
139
168
  */
140
169
  UpdateDealProduct.prototype['discount'] = 0;
141
170
 
142
171
  /**
143
- * The type of the discount's value.
172
+ * The type of the discount's value
144
173
  * @member {module:model/UpdateDealProduct.DiscountTypeEnum} discount_type
145
174
  * @default 'percentage'
146
175
  */
@@ -160,7 +189,7 @@ UpdateDealProduct.prototype['duration'] = 1;
160
189
  UpdateDealProduct.prototype['duration_unit'] = undefined;
161
190
 
162
191
  /**
163
- * The ID of the product variation to use. When omitted, no variation will be used.
192
+ * The ID of the product variation to use. When omitted, no variation will be used
164
193
  * @member {Number} product_variation_id
165
194
  */
166
195
  UpdateDealProduct.prototype['product_variation_id'] = undefined;
@@ -179,18 +208,119 @@ UpdateDealProduct.prototype['comments'] = undefined;
179
208
  UpdateDealProduct.prototype['tax'] = 0;
180
209
 
181
210
  /**
182
- * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount.
211
+ * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount
183
212
  * @member {module:model/UpdateDealProduct.TaxMethodEnum} tax_method
184
213
  */
185
214
  UpdateDealProduct.prototype['tax_method'] = undefined;
186
215
 
187
216
  /**
188
- * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
217
+ * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default
189
218
  * @member {Boolean} enabled_flag
190
219
  * @default true
191
220
  */
192
221
  UpdateDealProduct.prototype['enabled_flag'] = true;
193
222
 
223
+ /**
224
+ * @member {module:model/BillingFrequency} billing_frequency
225
+ */
226
+ UpdateDealProduct.prototype['billing_frequency'] = undefined;
227
+
228
+ /**
229
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
230
+ * @member {Number} billing_frequency_cycles
231
+ */
232
+ UpdateDealProduct.prototype['billing_frequency_cycles'] = undefined;
233
+
234
+ /**
235
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
236
+ * @member {String} billing_start_date
237
+ */
238
+ UpdateDealProduct.prototype['billing_start_date'] = undefined;
239
+
240
+ // Implement DealProductRequestBody interface:
241
+ /**
242
+ * The ID of the product to use
243
+ * @member {Number} product_id
244
+ */
245
+ _DealProductRequestBody["default"].prototype['product_id'] = undefined;
246
+ /**
247
+ * The price at which this product will be added to the deal
248
+ * @member {Number} item_price
249
+ */
250
+ _DealProductRequestBody["default"].prototype['item_price'] = undefined;
251
+ /**
252
+ * How many items of this product will be added to the deal
253
+ * @member {Number} quantity
254
+ */
255
+ _DealProductRequestBody["default"].prototype['quantity'] = undefined;
256
+ /**
257
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
258
+ * @member {Number} discount
259
+ * @default 0
260
+ */
261
+ _DealProductRequestBody["default"].prototype['discount'] = 0;
262
+ /**
263
+ * The type of the discount's value
264
+ * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type
265
+ * @default 'percentage'
266
+ */
267
+ _DealProductRequestBody["default"].prototype['discount_type'] = 'percentage';
268
+ /**
269
+ * The duration of the product
270
+ * @member {Number} duration
271
+ * @default 1
272
+ */
273
+ _DealProductRequestBody["default"].prototype['duration'] = 1;
274
+ /**
275
+ * The unit duration of the product
276
+ * @member {module:model/DealProductUnitDuration} duration_unit
277
+ */
278
+ _DealProductRequestBody["default"].prototype['duration_unit'] = undefined;
279
+ /**
280
+ * The ID of the product variation to use. When omitted, no variation will be used
281
+ * @member {Number} product_variation_id
282
+ */
283
+ _DealProductRequestBody["default"].prototype['product_variation_id'] = undefined;
284
+ /**
285
+ * A textual comment associated with this product-deal attachment
286
+ * @member {String} comments
287
+ */
288
+ _DealProductRequestBody["default"].prototype['comments'] = undefined;
289
+ /**
290
+ * The tax percentage
291
+ * @member {Number} tax
292
+ * @default 0
293
+ */
294
+ _DealProductRequestBody["default"].prototype['tax'] = 0;
295
+ /**
296
+ * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount
297
+ * @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method
298
+ */
299
+ _DealProductRequestBody["default"].prototype['tax_method'] = undefined;
300
+ /**
301
+ * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default
302
+ * @member {Boolean} enabled_flag
303
+ * @default true
304
+ */
305
+ _DealProductRequestBody["default"].prototype['enabled_flag'] = true;
306
+ // Implement NewDealProductAllOf interface:
307
+ /**
308
+ * @member {module:model/BillingFrequency} billing_frequency
309
+ */
310
+ _NewDealProductAllOf["default"].prototype['billing_frequency'] = undefined;
311
+ // Implement NewDealProductAllOf1 interface:
312
+ /**
313
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
314
+ * @member {Number} billing_frequency_cycles
315
+ */
316
+ _NewDealProductAllOf2["default"].prototype['billing_frequency_cycles'] = undefined;
317
+ // Implement NewDealProductAllOf2 interface:
318
+ /**
319
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
320
+ * @member {String} billing_start_date
321
+ */
322
+ _NewDealProductAllOf3["default"].prototype['billing_start_date'] = undefined;
323
+
194
324
  /**
195
325
  * Allowed values for the <code>discount_type</code> property.
196
326
  * @enum {String}
@@ -8,7 +8,10 @@ exports["default"] = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
- var _OptionalNameObject = _interopRequireDefault(require("./OptionalNameObject"));
11
+ var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./AddProductRequestBodyAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
13
+ var _NameObject = _interopRequireDefault(require("./NameObject"));
14
+ var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf1"));
12
15
  var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
13
16
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
14
17
  /**
@@ -32,15 +35,18 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
32
35
  /**
33
36
  * Constructs a new <code>UpdateProductRequestBody</code>.
34
37
  * @alias module:model/UpdateProductRequestBody
35
- * @implements module:model/OptionalNameObject
38
+ * @implements module:model/NameObject
36
39
  * @implements module:model/ProductRequest
37
- * @param name {String} The name of the product
40
+ * @implements module:model/AddProductRequestBodyAllOf
41
+ * @implements module:model/NewDealProductAllOf1
38
42
  */
39
- function UpdateProductRequestBody(name) {
43
+ function UpdateProductRequestBody() {
40
44
  (0, _classCallCheck2["default"])(this, UpdateProductRequestBody);
41
- _OptionalNameObject["default"].initialize(this);
45
+ _NameObject["default"].initialize(this);
42
46
  _ProductRequest["default"].initialize(this);
43
- UpdateProductRequestBody.initialize(this, name);
47
+ _AddProductRequestBodyAllOf["default"].initialize(this);
48
+ _NewDealProductAllOf["default"].initialize(this);
49
+ UpdateProductRequestBody.initialize(this);
44
50
  }
45
51
 
46
52
  /**
@@ -50,9 +56,7 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
50
56
  */
51
57
  (0, _createClass2["default"])(UpdateProductRequestBody, null, [{
52
58
  key: "initialize",
53
- value: function initialize(obj, name) {
54
- obj['name'] = name;
55
- }
59
+ value: function initialize(obj) {}
56
60
 
57
61
  /**
58
62
  * Constructs a <code>UpdateProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
@@ -66,8 +70,10 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
66
70
  value: function constructFromObject(data, obj) {
67
71
  if (data) {
68
72
  obj = obj || new UpdateProductRequestBody();
69
- _OptionalNameObject["default"].constructFromObject(data, obj);
73
+ _NameObject["default"].constructFromObject(data, obj);
70
74
  _ProductRequest["default"].constructFromObject(data, obj);
75
+ _AddProductRequestBodyAllOf["default"].constructFromObject(data, obj);
76
+ _NewDealProductAllOf["default"].constructFromObject(data, obj);
71
77
  if (data.hasOwnProperty('name')) {
72
78
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
73
79
  delete data['name'];
@@ -104,6 +110,14 @@ var UpdateProductRequestBody = /*#__PURE__*/function () {
104
110
  obj['prices'] = _ApiClient["default"].convertToType(data['prices'], [Object]);
105
111
  delete data['prices'];
106
112
  }
113
+ if (data.hasOwnProperty('billing_frequency')) {
114
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
115
+ delete data['billing_frequency'];
116
+ }
117
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
118
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
119
+ delete data['billing_frequency_cycles'];
120
+ }
107
121
  if (Object.keys(data).length > 0) {
108
122
  Object.assign(obj, data);
109
123
  }
@@ -159,7 +173,7 @@ UpdateProductRequestBody.prototype['selectable'] = true;
159
173
  UpdateProductRequestBody.prototype['visible_to'] = undefined;
160
174
 
161
175
  /**
162
- * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
176
+ * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
163
177
  * @member {Number} owner_id
164
178
  */
165
179
  UpdateProductRequestBody.prototype['owner_id'] = undefined;
@@ -170,12 +184,23 @@ UpdateProductRequestBody.prototype['owner_id'] = undefined;
170
184
  */
171
185
  UpdateProductRequestBody.prototype['prices'] = undefined;
172
186
 
173
- // Implement OptionalNameObject interface:
187
+ /**
188
+ * @member {module:model/BillingFrequency1} billing_frequency
189
+ */
190
+ UpdateProductRequestBody.prototype['billing_frequency'] = undefined;
191
+
192
+ /**
193
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
194
+ * @member {Number} billing_frequency_cycles
195
+ */
196
+ UpdateProductRequestBody.prototype['billing_frequency_cycles'] = undefined;
197
+
198
+ // Implement NameObject interface:
174
199
  /**
175
200
  * The name of the product
176
201
  * @member {String} name
177
202
  */
178
- _OptionalNameObject["default"].prototype['name'] = undefined;
203
+ _NameObject["default"].prototype['name'] = undefined;
179
204
  // Implement ProductRequest interface:
180
205
  /**
181
206
  * The product code
@@ -211,7 +236,7 @@ _ProductRequest["default"].prototype['selectable'] = true;
211
236
  */
212
237
  _ProductRequest["default"].prototype['visible_to'] = undefined;
213
238
  /**
214
- * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
239
+ * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
215
240
  * @member {Number} owner_id
216
241
  */
217
242
  _ProductRequest["default"].prototype['owner_id'] = undefined;
@@ -220,5 +245,16 @@ _ProductRequest["default"].prototype['owner_id'] = undefined;
220
245
  * @member {Array.<Object>} prices
221
246
  */
222
247
  _ProductRequest["default"].prototype['prices'] = undefined;
248
+ // Implement AddProductRequestBodyAllOf interface:
249
+ /**
250
+ * @member {module:model/BillingFrequency1} billing_frequency
251
+ */
252
+ _AddProductRequestBodyAllOf["default"].prototype['billing_frequency'] = undefined;
253
+ // Implement NewDealProductAllOf1 interface:
254
+ /**
255
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
256
+ * @member {Number} billing_frequency_cycles
257
+ */
258
+ _NewDealProductAllOf["default"].prototype['billing_frequency_cycles'] = undefined;
223
259
  var _default = UpdateProductRequestBody;
224
260
  exports["default"] = _default;
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
11
  var _GetActivitiesResponse200RelatedObjects = _interopRequireDefault(require("./GetActivitiesResponse200RelatedObjects"));
12
- var _ProductWithObjectPrices = _interopRequireDefault(require("./ProductWithObjectPrices"));
12
+ var _ProductWithArrayPrices = _interopRequireDefault(require("./ProductWithArrayPrices"));
13
13
  /**
14
14
  * Pipedrive API v1
15
15
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -63,7 +63,7 @@ var UpdateProductResponse = /*#__PURE__*/function () {
63
63
  delete data['success'];
64
64
  }
65
65
  if (data.hasOwnProperty('data')) {
66
- obj['data'] = _ProductWithObjectPrices["default"].constructFromObject(data['data']);
66
+ obj['data'] = _ProductWithArrayPrices["default"].constructFromObject(data['data']);
67
67
  delete data['data'];
68
68
  }
69
69
  if (data.hasOwnProperty('related_objects')) {
@@ -86,7 +86,7 @@ var UpdateProductResponse = /*#__PURE__*/function () {
86
86
  UpdateProductResponse.prototype['success'] = undefined;
87
87
 
88
88
  /**
89
- * @member {module:model/ProductWithObjectPrices} data
89
+ * @member {module:model/ProductWithArrayPrices} data
90
90
  */
91
91
  UpdateProductResponse.prototype['data'] = undefined;
92
92
 
@@ -34,6 +34,22 @@ var VisibleTo = /*#__PURE__*/function () {
34
34
  (0, _defineProperty2["default"])(this, "5", "5");
35
35
  (0, _defineProperty2["default"])(this, "7", "7");
36
36
  }
37
+ /**
38
+ * value: "1"
39
+ * @const
40
+ */
41
+ /**
42
+ * value: "3"
43
+ * @const
44
+ */
45
+ /**
46
+ * value: "5"
47
+ * @const
48
+ */
49
+ /**
50
+ * value: "7"
51
+ * @const
52
+ */
37
53
  (0, _createClass2["default"])(VisibleTo, null, [{
38
54
  key: "constructFromObject",
39
55
  value:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "22.6.0",
3
+ "version": "22.7.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",