pipedrive 22.6.1 → 22.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,8 +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 _BasicDealProduct = _interopRequireDefault(require("./BasicDealProduct"));
11
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
12
+ var _DealProductRequestBody = _interopRequireDefault(require("./DealProductRequestBody"));
12
13
  var _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
14
+ var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf"));
15
+ var _NewDealProductAllOf2 = _interopRequireDefault(require("./NewDealProductAllOf1"));
16
+ var _NewDealProductAllOf3 = _interopRequireDefault(require("./NewDealProductAllOf2"));
13
17
  /**
14
18
  * Pipedrive API v1
15
19
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -31,15 +35,18 @@ var NewDealProduct = /*#__PURE__*/function () {
31
35
  /**
32
36
  * Constructs a new <code>NewDealProduct</code>.
33
37
  * @alias module:model/NewDealProduct
34
- * @implements module:model/BasicDealProduct
35
- * @param productId {Number} The ID of the product to use
36
- * @param itemPrice {Number} The price at which this product will be added to the deal
37
- * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
38
+ * @implements module:model/DealProductRequestBody
39
+ * @implements module:model/NewDealProductAllOf
40
+ * @implements module:model/NewDealProductAllOf1
41
+ * @implements module:model/NewDealProductAllOf2
38
42
  */
39
- function NewDealProduct(productId, itemPrice, quantity) {
43
+ function NewDealProduct() {
40
44
  (0, _classCallCheck2["default"])(this, NewDealProduct);
41
- _BasicDealProduct["default"].initialize(this, productId, itemPrice, quantity);
42
- NewDealProduct.initialize(this, productId, itemPrice, quantity);
45
+ _DealProductRequestBody["default"].initialize(this);
46
+ _NewDealProductAllOf["default"].initialize(this);
47
+ _NewDealProductAllOf2["default"].initialize(this);
48
+ _NewDealProductAllOf3["default"].initialize(this);
49
+ NewDealProduct.initialize(this);
43
50
  }
44
51
 
45
52
  /**
@@ -49,11 +56,7 @@ var NewDealProduct = /*#__PURE__*/function () {
49
56
  */
50
57
  (0, _createClass2["default"])(NewDealProduct, null, [{
51
58
  key: "initialize",
52
- value: function initialize(obj, productId, itemPrice, quantity) {
53
- obj['product_id'] = productId;
54
- obj['item_price'] = itemPrice;
55
- obj['quantity'] = quantity;
56
- }
59
+ value: function initialize(obj) {}
57
60
 
58
61
  /**
59
62
  * Constructs a <code>NewDealProduct</code> from a plain JavaScript object, optionally creating a new instance.
@@ -67,7 +70,10 @@ var NewDealProduct = /*#__PURE__*/function () {
67
70
  value: function constructFromObject(data, obj) {
68
71
  if (data) {
69
72
  obj = obj || new NewDealProduct();
70
- _BasicDealProduct["default"].constructFromObject(data, obj);
73
+ _DealProductRequestBody["default"].constructFromObject(data, obj);
74
+ _NewDealProductAllOf["default"].constructFromObject(data, obj);
75
+ _NewDealProductAllOf2["default"].constructFromObject(data, obj);
76
+ _NewDealProductAllOf3["default"].constructFromObject(data, obj);
71
77
  if (data.hasOwnProperty('product_id')) {
72
78
  obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
73
79
  delete data['product_id'];
@@ -116,6 +122,18 @@ var NewDealProduct = /*#__PURE__*/function () {
116
122
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
117
123
  delete data['enabled_flag'];
118
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
+ }
119
137
  if (Object.keys(data).length > 0) {
120
138
  Object.assign(obj, data);
121
139
  }
@@ -138,27 +156,27 @@ NewDealProduct.prototype['product_id'] = undefined;
138
156
  NewDealProduct.prototype['item_price'] = undefined;
139
157
 
140
158
  /**
141
- * Quantity – e.g. how many items of this product will be added to the deal
159
+ * How many items of this product will be added to the deal
142
160
  * @member {Number} quantity
143
161
  */
144
162
  NewDealProduct.prototype['quantity'] = undefined;
145
163
 
146
164
  /**
147
- * 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
148
166
  * @member {Number} discount
149
167
  * @default 0
150
168
  */
151
169
  NewDealProduct.prototype['discount'] = 0;
152
170
 
153
171
  /**
154
- * The type of the discount's value.
172
+ * The type of the discount's value
155
173
  * @member {module:model/NewDealProduct.DiscountTypeEnum} discount_type
156
174
  * @default 'percentage'
157
175
  */
158
176
  NewDealProduct.prototype['discount_type'] = 'percentage';
159
177
 
160
178
  /**
161
- * The duration of the product. If omitted, will be set to 1.
179
+ * The duration of the product
162
180
  * @member {Number} duration
163
181
  * @default 1
164
182
  */
@@ -171,7 +189,7 @@ NewDealProduct.prototype['duration'] = 1;
171
189
  NewDealProduct.prototype['duration_unit'] = undefined;
172
190
 
173
191
  /**
174
- * 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
175
193
  * @member {Number} product_variation_id
176
194
  */
177
195
  NewDealProduct.prototype['product_variation_id'] = undefined;
@@ -190,84 +208,118 @@ NewDealProduct.prototype['comments'] = undefined;
190
208
  NewDealProduct.prototype['tax'] = 0;
191
209
 
192
210
  /**
193
- * 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.
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
194
212
  * @member {module:model/NewDealProduct.TaxMethodEnum} tax_method
195
213
  */
196
214
  NewDealProduct.prototype['tax_method'] = undefined;
197
215
 
198
216
  /**
199
- * 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
200
218
  * @member {Boolean} enabled_flag
201
219
  * @default true
202
220
  */
203
221
  NewDealProduct.prototype['enabled_flag'] = true;
204
222
 
205
- // Implement BasicDealProduct interface:
223
+ /**
224
+ * @member {module:model/BillingFrequency} billing_frequency
225
+ */
226
+ NewDealProduct.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
+ NewDealProduct.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
+ NewDealProduct.prototype['billing_start_date'] = undefined;
239
+
240
+ // Implement DealProductRequestBody interface:
206
241
  /**
207
242
  * The ID of the product to use
208
243
  * @member {Number} product_id
209
244
  */
210
- _BasicDealProduct["default"].prototype['product_id'] = undefined;
245
+ _DealProductRequestBody["default"].prototype['product_id'] = undefined;
211
246
  /**
212
247
  * The price at which this product will be added to the deal
213
248
  * @member {Number} item_price
214
249
  */
215
- _BasicDealProduct["default"].prototype['item_price'] = undefined;
250
+ _DealProductRequestBody["default"].prototype['item_price'] = undefined;
216
251
  /**
217
- * Quantity – e.g. how many items of this product will be added to the deal
252
+ * How many items of this product will be added to the deal
218
253
  * @member {Number} quantity
219
254
  */
220
- _BasicDealProduct["default"].prototype['quantity'] = undefined;
255
+ _DealProductRequestBody["default"].prototype['quantity'] = undefined;
221
256
  /**
222
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
257
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
223
258
  * @member {Number} discount
224
259
  * @default 0
225
260
  */
226
- _BasicDealProduct["default"].prototype['discount'] = 0;
261
+ _DealProductRequestBody["default"].prototype['discount'] = 0;
227
262
  /**
228
- * The type of the discount's value.
229
- * @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type
263
+ * The type of the discount's value
264
+ * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type
230
265
  * @default 'percentage'
231
266
  */
232
- _BasicDealProduct["default"].prototype['discount_type'] = 'percentage';
267
+ _DealProductRequestBody["default"].prototype['discount_type'] = 'percentage';
233
268
  /**
234
- * The duration of the product. If omitted, will be set to 1.
269
+ * The duration of the product
235
270
  * @member {Number} duration
236
271
  * @default 1
237
272
  */
238
- _BasicDealProduct["default"].prototype['duration'] = 1;
273
+ _DealProductRequestBody["default"].prototype['duration'] = 1;
239
274
  /**
240
275
  * The unit duration of the product
241
276
  * @member {module:model/DealProductUnitDuration} duration_unit
242
277
  */
243
- _BasicDealProduct["default"].prototype['duration_unit'] = undefined;
278
+ _DealProductRequestBody["default"].prototype['duration_unit'] = undefined;
244
279
  /**
245
- * The ID of the product variation to use. When omitted, no variation will be used.
280
+ * The ID of the product variation to use. When omitted, no variation will be used
246
281
  * @member {Number} product_variation_id
247
282
  */
248
- _BasicDealProduct["default"].prototype['product_variation_id'] = undefined;
283
+ _DealProductRequestBody["default"].prototype['product_variation_id'] = undefined;
249
284
  /**
250
285
  * A textual comment associated with this product-deal attachment
251
286
  * @member {String} comments
252
287
  */
253
- _BasicDealProduct["default"].prototype['comments'] = undefined;
288
+ _DealProductRequestBody["default"].prototype['comments'] = undefined;
254
289
  /**
255
290
  * The tax percentage
256
291
  * @member {Number} tax
257
292
  * @default 0
258
293
  */
259
- _BasicDealProduct["default"].prototype['tax'] = 0;
294
+ _DealProductRequestBody["default"].prototype['tax'] = 0;
260
295
  /**
261
- * 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.
262
- * @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method
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
263
298
  */
264
- _BasicDealProduct["default"].prototype['tax_method'] = undefined;
299
+ _DealProductRequestBody["default"].prototype['tax_method'] = undefined;
265
300
  /**
266
- * 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.
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
267
302
  * @member {Boolean} enabled_flag
268
303
  * @default true
269
304
  */
270
- _BasicDealProduct["default"].prototype['enabled_flag'] = true;
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;
271
323
 
272
324
  /**
273
325
  * Allowed values for the <code>discount_type</code> property.
@@ -8,6 +8,7 @@ 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"));
11
12
  /**
12
13
  * Pipedrive API v1
13
14
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -29,11 +30,10 @@ var NewDealProductAllOf = /*#__PURE__*/function () {
29
30
  /**
30
31
  * Constructs a new <code>NewDealProductAllOf</code>.
31
32
  * @alias module:model/NewDealProductAllOf
32
- * @param productId {Number} The ID of the product that will be attached
33
33
  */
34
- function NewDealProductAllOf(productId) {
34
+ function NewDealProductAllOf() {
35
35
  (0, _classCallCheck2["default"])(this, NewDealProductAllOf);
36
- NewDealProductAllOf.initialize(this, productId);
36
+ NewDealProductAllOf.initialize(this);
37
37
  }
38
38
 
39
39
  /**
@@ -43,9 +43,7 @@ var NewDealProductAllOf = /*#__PURE__*/function () {
43
43
  */
44
44
  (0, _createClass2["default"])(NewDealProductAllOf, null, [{
45
45
  key: "initialize",
46
- value: function initialize(obj, productId) {
47
- obj['product_id'] = productId;
48
- }
46
+ value: function initialize(obj) {}
49
47
 
50
48
  /**
51
49
  * Constructs a <code>NewDealProductAllOf</code> from a plain JavaScript object, optionally creating a new instance.
@@ -59,9 +57,9 @@ var NewDealProductAllOf = /*#__PURE__*/function () {
59
57
  value: function constructFromObject(data, obj) {
60
58
  if (data) {
61
59
  obj = obj || new NewDealProductAllOf();
62
- if (data.hasOwnProperty('product_id')) {
63
- obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
64
- delete data['product_id'];
60
+ if (data.hasOwnProperty('billing_frequency')) {
61
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
62
+ delete data['billing_frequency'];
65
63
  }
66
64
  if (Object.keys(data).length > 0) {
67
65
  Object.assign(obj, data);
@@ -73,9 +71,8 @@ var NewDealProductAllOf = /*#__PURE__*/function () {
73
71
  return NewDealProductAllOf;
74
72
  }();
75
73
  /**
76
- * The ID of the product that will be attached
77
- * @member {Number} product_id
74
+ * @member {module:model/BillingFrequency} billing_frequency
78
75
  */
79
- NewDealProductAllOf.prototype['product_id'] = undefined;
76
+ NewDealProductAllOf.prototype['billing_frequency'] = undefined;
80
77
  var _default = NewDealProductAllOf;
81
78
  exports["default"] = _default;
@@ -0,0 +1,78 @@
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
+ /**
12
+ * Pipedrive API v1
13
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
14
+ *
15
+ * The version of the OpenAPI document: 1.0.0
16
+ *
17
+ *
18
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19
+ * https://openapi-generator.tech
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+ /**
24
+ * The NewDealProductAllOf1 model module.
25
+ * @module model/NewDealProductAllOf1
26
+ * @version 1.0.0
27
+ */
28
+ var NewDealProductAllOf1 = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>NewDealProductAllOf1</code>.
31
+ * @alias module:model/NewDealProductAllOf1
32
+ */
33
+ function NewDealProductAllOf1() {
34
+ (0, _classCallCheck2["default"])(this, NewDealProductAllOf1);
35
+ NewDealProductAllOf1.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ (0, _createClass2["default"])(NewDealProductAllOf1, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>NewDealProductAllOf1</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/NewDealProductAllOf1} obj Optional instance to populate.
52
+ * @return {module:model/NewDealProductAllOf1} The populated <code>NewDealProductAllOf1</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new NewDealProductAllOf1();
59
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
60
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
61
+ delete data['billing_frequency_cycles'];
62
+ }
63
+ if (Object.keys(data).length > 0) {
64
+ Object.assign(obj, data);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+ }]);
70
+ return NewDealProductAllOf1;
71
+ }();
72
+ /**
73
+ * 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
74
+ * @member {Number} billing_frequency_cycles
75
+ */
76
+ NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined;
77
+ var _default = NewDealProductAllOf1;
78
+ exports["default"] = _default;
@@ -0,0 +1,78 @@
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
+ /**
12
+ * Pipedrive API v1
13
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
14
+ *
15
+ * The version of the OpenAPI document: 1.0.0
16
+ *
17
+ *
18
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19
+ * https://openapi-generator.tech
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+ /**
24
+ * The NewDealProductAllOf2 model module.
25
+ * @module model/NewDealProductAllOf2
26
+ * @version 1.0.0
27
+ */
28
+ var NewDealProductAllOf2 = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>NewDealProductAllOf2</code>.
31
+ * @alias module:model/NewDealProductAllOf2
32
+ */
33
+ function NewDealProductAllOf2() {
34
+ (0, _classCallCheck2["default"])(this, NewDealProductAllOf2);
35
+ NewDealProductAllOf2.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ (0, _createClass2["default"])(NewDealProductAllOf2, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>NewDealProductAllOf2</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/NewDealProductAllOf2} obj Optional instance to populate.
52
+ * @return {module:model/NewDealProductAllOf2} The populated <code>NewDealProductAllOf2</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new NewDealProductAllOf2();
59
+ if (data.hasOwnProperty('billing_start_date')) {
60
+ obj['billing_start_date'] = _ApiClient["default"].convertToType(data['billing_start_date'], 'String');
61
+ delete data['billing_start_date'];
62
+ }
63
+ if (Object.keys(data).length > 0) {
64
+ Object.assign(obj, data);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+ }]);
70
+ return NewDealProductAllOf2;
71
+ }();
72
+ /**
73
+ * 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
74
+ * @member {String} billing_start_date
75
+ */
76
+ NewDealProductAllOf2.prototype['billing_start_date'] = undefined;
77
+ var _default = NewDealProductAllOf2;
78
+ exports["default"] = _default;
@@ -210,7 +210,7 @@ PersonListProduct.prototype['first_char'] = undefined;
210
210
  PersonListProduct.prototype['visible_to'] = undefined;
211
211
 
212
212
  /**
213
- * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
213
+ * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
214
214
  * @member {Number} owner_id
215
215
  */
216
216
  PersonListProduct.prototype['owner_id'] = undefined;