pipedrive 20.5.2 → 21.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
12
+ var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
13
+ /**
14
+ * Pipedrive API v1
15
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16
+ *
17
+ * The version of the OpenAPI document: 1.0.0
18
+ *
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * The PersonsCollectionResponseObject model module.
27
+ * @module model/PersonsCollectionResponseObject
28
+ * @version 1.0.0
29
+ */
30
+ var PersonsCollectionResponseObject = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>PersonsCollectionResponseObject</code>.
33
+ * @alias module:model/PersonsCollectionResponseObject
34
+ */
35
+ function PersonsCollectionResponseObject() {
36
+ (0, _classCallCheck2["default"])(this, PersonsCollectionResponseObject);
37
+ PersonsCollectionResponseObject.initialize(this);
38
+ }
39
+
40
+ /**
41
+ * Initializes the fields of this object.
42
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
43
+ * Only for internal use.
44
+ */
45
+ (0, _createClass2["default"])(PersonsCollectionResponseObject, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>PersonsCollectionResponseObject</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
53
+ * @param {module:model/PersonsCollectionResponseObject} obj Optional instance to populate.
54
+ * @return {module:model/PersonsCollectionResponseObject} The populated <code>PersonsCollectionResponseObject</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new PersonsCollectionResponseObject();
61
+ if (data.hasOwnProperty('id')) {
62
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
63
+ delete data['id'];
64
+ }
65
+ if (data.hasOwnProperty('active_flag')) {
66
+ obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
67
+ delete data['active_flag'];
68
+ }
69
+ if (data.hasOwnProperty('owner_id')) {
70
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
71
+ delete data['owner_id'];
72
+ }
73
+ if (data.hasOwnProperty('org_id')) {
74
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
75
+ delete data['org_id'];
76
+ }
77
+ if (data.hasOwnProperty('name')) {
78
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
79
+ delete data['name'];
80
+ }
81
+ if (data.hasOwnProperty('email')) {
82
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasicPersonEmail["default"]]);
83
+ delete data['email'];
84
+ }
85
+ if (data.hasOwnProperty('phone')) {
86
+ obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
87
+ delete data['phone'];
88
+ }
89
+ if (data.hasOwnProperty('update_time')) {
90
+ obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
91
+ delete data['update_time'];
92
+ }
93
+ if (data.hasOwnProperty('delete_time')) {
94
+ obj['delete_time'] = _ApiClient["default"].convertToType(data['delete_time'], 'String');
95
+ delete data['delete_time'];
96
+ }
97
+ if (data.hasOwnProperty('add_time')) {
98
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
99
+ delete data['add_time'];
100
+ }
101
+ if (data.hasOwnProperty('visible_to')) {
102
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'String');
103
+ delete data['visible_to'];
104
+ }
105
+ if (data.hasOwnProperty('picture_id')) {
106
+ obj['picture_id'] = _ApiClient["default"].convertToType(data['picture_id'], 'Number');
107
+ delete data['picture_id'];
108
+ }
109
+ if (data.hasOwnProperty('label')) {
110
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'Number');
111
+ delete data['label'];
112
+ }
113
+ if (data.hasOwnProperty('cc_email')) {
114
+ obj['cc_email'] = _ApiClient["default"].convertToType(data['cc_email'], 'String');
115
+ delete data['cc_email'];
116
+ }
117
+ if (Object.keys(data).length > 0) {
118
+ Object.assign(obj, data);
119
+ }
120
+ }
121
+ return obj;
122
+ }
123
+ }]);
124
+ return PersonsCollectionResponseObject;
125
+ }();
126
+ /**
127
+ * The ID of the person
128
+ * @member {Number} id
129
+ */
130
+ PersonsCollectionResponseObject.prototype['id'] = undefined;
131
+
132
+ /**
133
+ * Whether the person is active or not
134
+ * @member {Boolean} active_flag
135
+ */
136
+ PersonsCollectionResponseObject.prototype['active_flag'] = undefined;
137
+
138
+ /**
139
+ * The ID of the owner related to the person
140
+ * @member {Number} owner_id
141
+ */
142
+ PersonsCollectionResponseObject.prototype['owner_id'] = undefined;
143
+
144
+ /**
145
+ * The ID of the organization related to the person
146
+ * @member {Number} org_id
147
+ */
148
+ PersonsCollectionResponseObject.prototype['org_id'] = undefined;
149
+
150
+ /**
151
+ * The name of the person
152
+ * @member {String} name
153
+ */
154
+ PersonsCollectionResponseObject.prototype['name'] = undefined;
155
+
156
+ /**
157
+ * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required.
158
+ * @member {Array.<module:model/BasicPersonEmail>} email
159
+ */
160
+ PersonsCollectionResponseObject.prototype['email'] = undefined;
161
+
162
+ /**
163
+ * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required.
164
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
165
+ */
166
+ PersonsCollectionResponseObject.prototype['phone'] = undefined;
167
+
168
+ /**
169
+ * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS
170
+ * @member {String} update_time
171
+ */
172
+ PersonsCollectionResponseObject.prototype['update_time'] = undefined;
173
+
174
+ /**
175
+ * The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS
176
+ * @member {String} delete_time
177
+ */
178
+ PersonsCollectionResponseObject.prototype['delete_time'] = undefined;
179
+
180
+ /**
181
+ * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS
182
+ * @member {String} add_time
183
+ */
184
+ PersonsCollectionResponseObject.prototype['add_time'] = undefined;
185
+
186
+ /**
187
+ * The visibility group ID of who can see the person
188
+ * @member {String} visible_to
189
+ */
190
+ PersonsCollectionResponseObject.prototype['visible_to'] = undefined;
191
+
192
+ /**
193
+ * The ID of the picture associated with the item
194
+ * @member {Number} picture_id
195
+ */
196
+ PersonsCollectionResponseObject.prototype['picture_id'] = undefined;
197
+
198
+ /**
199
+ * The label assigned to the person
200
+ * @member {Number} label
201
+ */
202
+ PersonsCollectionResponseObject.prototype['label'] = undefined;
203
+
204
+ /**
205
+ * The BCC email associated with the person
206
+ * @member {String} cc_email
207
+ */
208
+ PersonsCollectionResponseObject.prototype['cc_email'] = undefined;
209
+ var _default = PersonsCollectionResponseObject;
210
+ exports["default"] = _default;
@@ -83,9 +83,13 @@ var ProductAttachmentDetails = /*#__PURE__*/function () {
83
83
  obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
84
84
  delete data['quantity'];
85
85
  }
86
- if (data.hasOwnProperty('discount_percentage')) {
87
- obj['discount_percentage'] = _ApiClient["default"].convertToType(data['discount_percentage'], 'Number');
88
- delete data['discount_percentage'];
86
+ if (data.hasOwnProperty('discount')) {
87
+ obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
88
+ delete data['discount'];
89
+ }
90
+ if (data.hasOwnProperty('discount_type')) {
91
+ obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
92
+ delete data['discount_type'];
89
93
  }
90
94
  if (data.hasOwnProperty('duration')) {
91
95
  obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
@@ -107,6 +111,10 @@ var ProductAttachmentDetails = /*#__PURE__*/function () {
107
111
  obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
108
112
  delete data['tax'];
109
113
  }
114
+ if (data.hasOwnProperty('tax_method')) {
115
+ obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
116
+ delete data['tax_method'];
117
+ }
110
118
  if (data.hasOwnProperty('enabled_flag')) {
111
119
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
112
120
  delete data['enabled_flag'];
@@ -179,11 +187,18 @@ ProductAttachmentDetails.prototype['item_price'] = undefined;
179
187
  ProductAttachmentDetails.prototype['quantity'] = undefined;
180
188
 
181
189
  /**
182
- * The discount %. If omitted, will be set to 0.
183
- * @member {Number} discount_percentage
190
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
191
+ * @member {Number} discount
184
192
  * @default 0
185
193
  */
186
- ProductAttachmentDetails.prototype['discount_percentage'] = 0;
194
+ ProductAttachmentDetails.prototype['discount'] = 0;
195
+
196
+ /**
197
+ * The type of the discount's value.
198
+ * @member {module:model/ProductAttachmentDetails.DiscountTypeEnum} discount_type
199
+ * @default 'percentage'
200
+ */
201
+ ProductAttachmentDetails.prototype['discount_type'] = 'percentage';
187
202
 
188
203
  /**
189
204
  * The duration of the product. If omitted, will be set to 1.
@@ -216,6 +231,12 @@ ProductAttachmentDetails.prototype['comments'] = undefined;
216
231
  */
217
232
  ProductAttachmentDetails.prototype['tax'] = undefined;
218
233
 
234
+ /**
235
+ * 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. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
236
+ * @member {module:model/ProductAttachmentDetails.TaxMethodEnum} tax_method
237
+ */
238
+ ProductAttachmentDetails.prototype['tax_method'] = undefined;
239
+
219
240
  /**
220
241
  * 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.
221
242
  * @member {Boolean} enabled_flag
@@ -300,11 +321,17 @@ _BasicDealProduct["default"].prototype['item_price'] = undefined;
300
321
  */
301
322
  _BasicDealProduct["default"].prototype['quantity'] = undefined;
302
323
  /**
303
- * The discount %. If omitted, will be set to 0.
304
- * @member {Number} discount_percentage
324
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
325
+ * @member {Number} discount
305
326
  * @default 0
306
327
  */
307
- _BasicDealProduct["default"].prototype['discount_percentage'] = 0;
328
+ _BasicDealProduct["default"].prototype['discount'] = 0;
329
+ /**
330
+ * The type of the discount's value.
331
+ * @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type
332
+ * @default 'percentage'
333
+ */
334
+ _BasicDealProduct["default"].prototype['discount_type'] = 'percentage';
308
335
  /**
309
336
  * The duration of the product. If omitted, will be set to 1.
310
337
  * @member {Number} duration
@@ -332,6 +359,11 @@ _BasicDealProduct["default"].prototype['comments'] = undefined;
332
359
  * @default 0
333
360
  */
334
361
  _BasicDealProduct["default"].prototype['tax'] = 0;
362
+ /**
363
+ * 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. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
364
+ * @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method
365
+ */
366
+ _BasicDealProduct["default"].prototype['tax_method'] = undefined;
335
367
  /**
336
368
  * 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.
337
369
  * @member {Boolean} enabled_flag
@@ -404,5 +436,46 @@ _ProductAttachementFields["default"].prototype['tax'] = undefined;
404
436
  * @member {String} name
405
437
  */
406
438
  _ProductAttachementFields["default"].prototype['name'] = undefined;
439
+
440
+ /**
441
+ * Allowed values for the <code>discount_type</code> property.
442
+ * @enum {String}
443
+ * @readonly
444
+ */
445
+ ProductAttachmentDetails['DiscountTypeEnum'] = {
446
+ /**
447
+ * value: "percentage"
448
+ * @const
449
+ */
450
+ "percentage": "percentage",
451
+ /**
452
+ * value: "amount"
453
+ * @const
454
+ */
455
+ "amount": "amount"
456
+ };
457
+
458
+ /**
459
+ * Allowed values for the <code>tax_method</code> property.
460
+ * @enum {String}
461
+ * @readonly
462
+ */
463
+ ProductAttachmentDetails['TaxMethodEnum'] = {
464
+ /**
465
+ * value: "exclusive"
466
+ * @const
467
+ */
468
+ "exclusive": "exclusive",
469
+ /**
470
+ * value: "inclusive"
471
+ * @const
472
+ */
473
+ "inclusive": "inclusive",
474
+ /**
475
+ * value: "none"
476
+ * @const
477
+ */
478
+ "none": "none"
479
+ };
407
480
  var _default = ProductAttachmentDetails;
408
481
  exports["default"] = _default;
@@ -81,9 +81,13 @@ var ProductListItem = /*#__PURE__*/function () {
81
81
  obj['item_price'] = _ApiClient["default"].convertToType(data['item_price'], 'Number');
82
82
  delete data['item_price'];
83
83
  }
84
- if (data.hasOwnProperty('discount_percentage')) {
85
- obj['discount_percentage'] = _ApiClient["default"].convertToType(data['discount_percentage'], 'Number');
86
- delete data['discount_percentage'];
84
+ if (data.hasOwnProperty('discount')) {
85
+ obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
86
+ delete data['discount'];
87
+ }
88
+ if (data.hasOwnProperty('discount_type')) {
89
+ obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
90
+ delete data['discount_type'];
87
91
  }
88
92
  if (data.hasOwnProperty('duration')) {
89
93
  obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
@@ -129,6 +133,10 @@ var ProductListItem = /*#__PURE__*/function () {
129
133
  obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
130
134
  delete data['tax'];
131
135
  }
136
+ if (data.hasOwnProperty('tax_method')) {
137
+ obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
138
+ delete data['tax_method'];
139
+ }
132
140
  if (data.hasOwnProperty('name')) {
133
141
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
134
142
  delete data['name'];
@@ -195,10 +203,18 @@ ProductListItem.prototype['product_variation_id'] = undefined;
195
203
  ProductListItem.prototype['item_price'] = undefined;
196
204
 
197
205
  /**
198
- * The discount percentage of the product
199
- * @member {Number} discount_percentage
206
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
207
+ * @member {Number} discount
208
+ * @default 0
209
+ */
210
+ ProductListItem.prototype['discount'] = 0;
211
+
212
+ /**
213
+ * The type of the discount's value.
214
+ * @member {module:model/ProductListItem.DiscountTypeEnum} discount_type
215
+ * @default 'percentage'
200
216
  */
201
- ProductListItem.prototype['discount_percentage'] = undefined;
217
+ ProductListItem.prototype['discount_type'] = 'percentage';
202
218
 
203
219
  /**
204
220
  * The duration of the product
@@ -266,6 +282,12 @@ ProductListItem.prototype['active_flag'] = undefined;
266
282
  */
267
283
  ProductListItem.prototype['tax'] = undefined;
268
284
 
285
+ /**
286
+ * 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. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
287
+ * @member {module:model/ProductListItem.TaxMethodEnum} tax_method
288
+ */
289
+ ProductListItem.prototype['tax_method'] = undefined;
290
+
269
291
  /**
270
292
  * The product name
271
293
  * @member {String} name
@@ -294,5 +316,46 @@ ProductListItem.prototype['quantity'] = undefined;
294
316
  * @member {module:model/ProductWithObjectPrices} product
295
317
  */
296
318
  ProductListItem.prototype['product'] = undefined;
319
+
320
+ /**
321
+ * Allowed values for the <code>discount_type</code> property.
322
+ * @enum {String}
323
+ * @readonly
324
+ */
325
+ ProductListItem['DiscountTypeEnum'] = {
326
+ /**
327
+ * value: "percentage"
328
+ * @const
329
+ */
330
+ "percentage": "percentage",
331
+ /**
332
+ * value: "amount"
333
+ * @const
334
+ */
335
+ "amount": "amount"
336
+ };
337
+
338
+ /**
339
+ * Allowed values for the <code>tax_method</code> property.
340
+ * @enum {String}
341
+ * @readonly
342
+ */
343
+ ProductListItem['TaxMethodEnum'] = {
344
+ /**
345
+ * value: "exclusive"
346
+ * @const
347
+ */
348
+ "exclusive": "exclusive",
349
+ /**
350
+ * value: "inclusive"
351
+ * @const
352
+ */
353
+ "inclusive": "inclusive",
354
+ /**
355
+ * value: "none"
356
+ * @const
357
+ */
358
+ "none": "none"
359
+ };
297
360
  var _default = ProductListItem;
298
361
  exports["default"] = _default;
@@ -69,9 +69,13 @@ var UpdateDealProduct = /*#__PURE__*/function () {
69
69
  obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
70
70
  delete data['quantity'];
71
71
  }
72
- if (data.hasOwnProperty('discount_percentage')) {
73
- obj['discount_percentage'] = _ApiClient["default"].convertToType(data['discount_percentage'], 'Number');
74
- delete data['discount_percentage'];
72
+ if (data.hasOwnProperty('discount')) {
73
+ obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
74
+ delete data['discount'];
75
+ }
76
+ if (data.hasOwnProperty('discount_type')) {
77
+ obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
78
+ delete data['discount_type'];
75
79
  }
76
80
  if (data.hasOwnProperty('duration')) {
77
81
  obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
@@ -93,6 +97,10 @@ var UpdateDealProduct = /*#__PURE__*/function () {
93
97
  obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
94
98
  delete data['tax'];
95
99
  }
100
+ if (data.hasOwnProperty('tax_method')) {
101
+ obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
102
+ delete data['tax_method'];
103
+ }
96
104
  if (data.hasOwnProperty('enabled_flag')) {
97
105
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
98
106
  delete data['enabled_flag'];
@@ -125,11 +133,18 @@ UpdateDealProduct.prototype['item_price'] = undefined;
125
133
  UpdateDealProduct.prototype['quantity'] = undefined;
126
134
 
127
135
  /**
128
- * The discount %. If omitted, will be set to 0.
129
- * @member {Number} discount_percentage
136
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
137
+ * @member {Number} discount
130
138
  * @default 0
131
139
  */
132
- UpdateDealProduct.prototype['discount_percentage'] = 0;
140
+ UpdateDealProduct.prototype['discount'] = 0;
141
+
142
+ /**
143
+ * The type of the discount's value.
144
+ * @member {module:model/UpdateDealProduct.DiscountTypeEnum} discount_type
145
+ * @default 'percentage'
146
+ */
147
+ UpdateDealProduct.prototype['discount_type'] = 'percentage';
133
148
 
134
149
  /**
135
150
  * The duration of the product
@@ -163,11 +178,58 @@ UpdateDealProduct.prototype['comments'] = undefined;
163
178
  */
164
179
  UpdateDealProduct.prototype['tax'] = 0;
165
180
 
181
+ /**
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.
183
+ * @member {module:model/UpdateDealProduct.TaxMethodEnum} tax_method
184
+ */
185
+ UpdateDealProduct.prototype['tax_method'] = undefined;
186
+
166
187
  /**
167
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.
168
189
  * @member {Boolean} enabled_flag
169
190
  * @default true
170
191
  */
171
192
  UpdateDealProduct.prototype['enabled_flag'] = true;
193
+
194
+ /**
195
+ * Allowed values for the <code>discount_type</code> property.
196
+ * @enum {String}
197
+ * @readonly
198
+ */
199
+ UpdateDealProduct['DiscountTypeEnum'] = {
200
+ /**
201
+ * value: "percentage"
202
+ * @const
203
+ */
204
+ "percentage": "percentage",
205
+ /**
206
+ * value: "amount"
207
+ * @const
208
+ */
209
+ "amount": "amount"
210
+ };
211
+
212
+ /**
213
+ * Allowed values for the <code>tax_method</code> property.
214
+ * @enum {String}
215
+ * @readonly
216
+ */
217
+ UpdateDealProduct['TaxMethodEnum'] = {
218
+ /**
219
+ * value: "exclusive"
220
+ * @const
221
+ */
222
+ "exclusive": "exclusive",
223
+ /**
224
+ * value: "inclusive"
225
+ * @const
226
+ */
227
+ "inclusive": "inclusive",
228
+ /**
229
+ * value: "none"
230
+ * @const
231
+ */
232
+ "none": "none"
233
+ };
172
234
  var _default = UpdateDealProduct;
173
235
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "20.5.2",
3
+ "version": "21.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",