pipedrive 22.6.1 → 22.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/README.md +9 -4
  2. package/dist/api/DealsApi.js +2 -2
  3. package/dist/api/LeadsApi.js +2 -2
  4. package/dist/index.js +63 -28
  5. package/dist/model/AddLeadRequest.js +30 -0
  6. package/dist/model/AddProductAttachmentDetails.js +60 -23
  7. package/dist/model/AddProductRequestBody.js +50 -14
  8. package/dist/model/AddProductRequestBodyAllOf.js +78 -0
  9. package/dist/model/BaseDeal.js +40 -0
  10. package/dist/model/BaseProduct.js +60 -1
  11. package/dist/model/BasicDealProduct.js +139 -16
  12. package/dist/model/BasicDealProductAllOf.js +235 -0
  13. package/dist/model/BillingFrequency.js +86 -0
  14. package/dist/model/BillingFrequency1.js +86 -0
  15. package/dist/model/DealNonStrict.js +60 -0
  16. package/dist/model/DealNonStrictWithDetails.js +60 -0
  17. package/dist/model/DealProductRequestBody.js +235 -0
  18. package/dist/model/DealStrict.js +60 -0
  19. package/dist/model/DealStrictWithMergeId.js +60 -0
  20. package/dist/model/LeadResponse.js +40 -0
  21. package/dist/model/NameObject.js +78 -0
  22. package/dist/model/NewDeal.js +45 -0
  23. package/dist/model/NewDealParameters.js +30 -0
  24. package/dist/model/NewDealProduct.js +95 -43
  25. package/dist/model/NewDealProductAllOf.js +9 -12
  26. package/dist/model/NewDealProductAllOf1.js +78 -0
  27. package/dist/model/NewDealProductAllOf2.js +78 -0
  28. package/dist/model/PersonListProduct.js +1 -1
  29. package/dist/model/ProductAttachmentDetails.js +60 -23
  30. package/dist/model/ProductListItem.js +6 -6
  31. package/dist/model/ProductRequest.js +1 -1
  32. package/dist/model/ProductWithArrayPrices.js +72 -2
  33. package/dist/model/UpdateDealParameters.js +20 -0
  34. package/dist/model/UpdateDealProduct.js +135 -5
  35. package/dist/model/UpdateDealRequest.js +30 -0
  36. package/dist/model/UpdateLeadRequest.js +20 -0
  37. package/dist/model/UpdateProductRequestBody.js +50 -14
  38. package/dist/model/UpdateProductResponse.js +3 -3
  39. package/package.json +1 -1
@@ -8,8 +8,11 @@ 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 _AddProductRequestBodyAllOf = _interopRequireDefault(require("./AddProductRequestBodyAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
13
+ var _NameObject = _interopRequireDefault(require("./NameObject"));
14
+ var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf1"));
11
15
  var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
12
- var _RequiredNameObject = _interopRequireDefault(require("./RequiredNameObject"));
13
16
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
14
17
  /**
15
18
  * Pipedrive API v1
@@ -32,15 +35,18 @@ var AddProductRequestBody = /*#__PURE__*/function () {
32
35
  /**
33
36
  * Constructs a new <code>AddProductRequestBody</code>.
34
37
  * @alias module:model/AddProductRequestBody
35
- * @implements module:model/RequiredNameObject
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 AddProductRequestBody(name) {
43
+ function AddProductRequestBody() {
40
44
  (0, _classCallCheck2["default"])(this, AddProductRequestBody);
41
- _RequiredNameObject["default"].initialize(this, name);
45
+ _NameObject["default"].initialize(this);
42
46
  _ProductRequest["default"].initialize(this);
43
- AddProductRequestBody.initialize(this, name);
47
+ _AddProductRequestBodyAllOf["default"].initialize(this);
48
+ _NewDealProductAllOf["default"].initialize(this);
49
+ AddProductRequestBody.initialize(this);
44
50
  }
45
51
 
46
52
  /**
@@ -50,9 +56,7 @@ var AddProductRequestBody = /*#__PURE__*/function () {
50
56
  */
51
57
  (0, _createClass2["default"])(AddProductRequestBody, 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>AddProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
@@ -66,8 +70,10 @@ var AddProductRequestBody = /*#__PURE__*/function () {
66
70
  value: function constructFromObject(data, obj) {
67
71
  if (data) {
68
72
  obj = obj || new AddProductRequestBody();
69
- _RequiredNameObject["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 AddProductRequestBody = /*#__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 @@ AddProductRequestBody.prototype['selectable'] = true;
159
173
  AddProductRequestBody.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
  AddProductRequestBody.prototype['owner_id'] = undefined;
@@ -170,12 +184,23 @@ AddProductRequestBody.prototype['owner_id'] = undefined;
170
184
  */
171
185
  AddProductRequestBody.prototype['prices'] = undefined;
172
186
 
173
- // Implement RequiredNameObject interface:
187
+ /**
188
+ * @member {module:model/BillingFrequency1} billing_frequency
189
+ */
190
+ AddProductRequestBody.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
+ AddProductRequestBody.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
- _RequiredNameObject["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 = AddProductRequestBody;
224
260
  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
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
12
+ /**
13
+ * Pipedrive API v1
14
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15
+ *
16
+ * The version of the OpenAPI document: 1.0.0
17
+ *
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The AddProductRequestBodyAllOf model module.
26
+ * @module model/AddProductRequestBodyAllOf
27
+ * @version 1.0.0
28
+ */
29
+ var AddProductRequestBodyAllOf = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>AddProductRequestBodyAllOf</code>.
32
+ * @alias module:model/AddProductRequestBodyAllOf
33
+ */
34
+ function AddProductRequestBodyAllOf() {
35
+ (0, _classCallCheck2["default"])(this, AddProductRequestBodyAllOf);
36
+ AddProductRequestBodyAllOf.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ (0, _createClass2["default"])(AddProductRequestBodyAllOf, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>AddProductRequestBodyAllOf</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/AddProductRequestBodyAllOf} obj Optional instance to populate.
53
+ * @return {module:model/AddProductRequestBodyAllOf} The populated <code>AddProductRequestBodyAllOf</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new AddProductRequestBodyAllOf();
60
+ if (data.hasOwnProperty('billing_frequency')) {
61
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
62
+ delete data['billing_frequency'];
63
+ }
64
+ if (Object.keys(data).length > 0) {
65
+ Object.assign(obj, data);
66
+ }
67
+ }
68
+ return obj;
69
+ }
70
+ }]);
71
+ return AddProductRequestBodyAllOf;
72
+ }();
73
+ /**
74
+ * @member {module:model/BillingFrequency1} billing_frequency
75
+ */
76
+ AddProductRequestBodyAllOf.prototype['billing_frequency'] = undefined;
77
+ var _default = AddProductRequestBodyAllOf;
78
+ exports["default"] = _default;
@@ -264,6 +264,22 @@ var BaseDeal = /*#__PURE__*/function () {
264
264
  obj['person_hidden'] = _ApiClient["default"].convertToType(data['person_hidden'], 'Boolean');
265
265
  delete data['person_hidden'];
266
266
  }
267
+ if (data.hasOwnProperty('origin')) {
268
+ obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
269
+ delete data['origin'];
270
+ }
271
+ if (data.hasOwnProperty('origin_id')) {
272
+ obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
273
+ delete data['origin_id'];
274
+ }
275
+ if (data.hasOwnProperty('channel')) {
276
+ obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
277
+ delete data['channel'];
278
+ }
279
+ if (data.hasOwnProperty('channel_id')) {
280
+ obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
281
+ delete data['channel_id'];
282
+ }
267
283
  if (Object.keys(data).length > 0) {
268
284
  Object.assign(obj, data);
269
285
  }
@@ -584,5 +600,29 @@ BaseDeal.prototype['org_hidden'] = undefined;
584
600
  * @member {Boolean} person_hidden
585
601
  */
586
602
  BaseDeal.prototype['person_hidden'] = undefined;
603
+
604
+ /**
605
+ * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
606
+ * @member {String} origin
607
+ */
608
+ BaseDeal.prototype['origin'] = undefined;
609
+
610
+ /**
611
+ * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
612
+ * @member {String} origin_id
613
+ */
614
+ BaseDeal.prototype['origin_id'] = undefined;
615
+
616
+ /**
617
+ * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>.
618
+ * @member {Number} channel
619
+ */
620
+ BaseDeal.prototype['channel'] = undefined;
621
+
622
+ /**
623
+ * The optional ID to further distinguish the Marketing channel.
624
+ * @member {String} channel_id
625
+ */
626
+ BaseDeal.prototype['channel_id'] = undefined;
587
627
  var _default = BaseDeal;
588
628
  exports["default"] = _default;
@@ -93,6 +93,14 @@ var BaseProduct = /*#__PURE__*/function () {
93
93
  obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], Object);
94
94
  delete data['owner_id'];
95
95
  }
96
+ if (data.hasOwnProperty('billing_frequency')) {
97
+ obj['billing_frequency'] = _ApiClient["default"].convertToType(data['billing_frequency'], 'String');
98
+ delete data['billing_frequency'];
99
+ }
100
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
101
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
102
+ delete data['billing_frequency_cycles'];
103
+ }
96
104
  if (Object.keys(data).length > 0) {
97
105
  Object.assign(obj, data);
98
106
  }
@@ -127,7 +135,7 @@ BaseProduct.prototype['code'] = undefined;
127
135
  BaseProduct.prototype['unit'] = undefined;
128
136
 
129
137
  /**
130
- * The ax percentage
138
+ * The tax percentage
131
139
  * @member {Number} tax
132
140
  * @default 0
133
141
  */
@@ -158,5 +166,56 @@ BaseProduct.prototype['visible_to'] = undefined;
158
166
  * @member {Object} owner_id
159
167
  */
160
168
  BaseProduct.prototype['owner_id'] = undefined;
169
+
170
+ /**
171
+ * Only available in Advanced and above plans How often a customer is billed for access to a service or product
172
+ * @member {module:model/BaseProduct.BillingFrequencyEnum} billing_frequency
173
+ * @default 'one-time'
174
+ */
175
+ BaseProduct.prototype['billing_frequency'] = 'one-time';
176
+
177
+ /**
178
+ * 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
179
+ * @member {Number} billing_frequency_cycles
180
+ */
181
+ BaseProduct.prototype['billing_frequency_cycles'] = undefined;
182
+
183
+ /**
184
+ * Allowed values for the <code>billing_frequency</code> property.
185
+ * @enum {String}
186
+ * @readonly
187
+ */
188
+ BaseProduct['BillingFrequencyEnum'] = {
189
+ /**
190
+ * value: "one-time"
191
+ * @const
192
+ */
193
+ "one-time": "one-time",
194
+ /**
195
+ * value: "annually"
196
+ * @const
197
+ */
198
+ "annually": "annually",
199
+ /**
200
+ * value: "semi-annually"
201
+ * @const
202
+ */
203
+ "semi-annually": "semi-annually",
204
+ /**
205
+ * value: "quarterly"
206
+ * @const
207
+ */
208
+ "quarterly": "quarterly",
209
+ /**
210
+ * value: "monthly"
211
+ * @const
212
+ */
213
+ "monthly": "monthly",
214
+ /**
215
+ * value: "weekly"
216
+ * @const
217
+ */
218
+ "weekly": "weekly"
219
+ };
161
220
  var _default = BaseProduct;
162
221
  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 _BasicDealProductAllOf = _interopRequireDefault(require("./BasicDealProductAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
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,13 +35,18 @@ var BasicDealProduct = /*#__PURE__*/function () {
30
35
  /**
31
36
  * Constructs a new <code>BasicDealProduct</code>.
32
37
  * @alias module:model/BasicDealProduct
33
- * @param productId {Number} The ID of the product to use
34
- * @param itemPrice {Number} The price at which this product will be added to the deal
35
- * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
38
+ * @implements module:model/BasicDealProductAllOf
39
+ * @implements module:model/NewDealProductAllOf
40
+ * @implements module:model/NewDealProductAllOf1
41
+ * @implements module:model/NewDealProductAllOf2
36
42
  */
37
- function BasicDealProduct(productId, itemPrice, quantity) {
43
+ function BasicDealProduct() {
38
44
  (0, _classCallCheck2["default"])(this, BasicDealProduct);
39
- BasicDealProduct.initialize(this, productId, itemPrice, quantity);
45
+ _BasicDealProductAllOf["default"].initialize(this);
46
+ _NewDealProductAllOf["default"].initialize(this);
47
+ _NewDealProductAllOf2["default"].initialize(this);
48
+ _NewDealProductAllOf3["default"].initialize(this);
49
+ BasicDealProduct.initialize(this);
40
50
  }
41
51
 
42
52
  /**
@@ -46,11 +56,7 @@ var BasicDealProduct = /*#__PURE__*/function () {
46
56
  */
47
57
  (0, _createClass2["default"])(BasicDealProduct, null, [{
48
58
  key: "initialize",
49
- value: function initialize(obj, productId, itemPrice, quantity) {
50
- obj['product_id'] = productId;
51
- obj['item_price'] = itemPrice;
52
- obj['quantity'] = quantity;
53
- }
59
+ value: function initialize(obj) {}
54
60
 
55
61
  /**
56
62
  * Constructs a <code>BasicDealProduct</code> from a plain JavaScript object, optionally creating a new instance.
@@ -64,6 +70,10 @@ var BasicDealProduct = /*#__PURE__*/function () {
64
70
  value: function constructFromObject(data, obj) {
65
71
  if (data) {
66
72
  obj = obj || new BasicDealProduct();
73
+ _BasicDealProductAllOf["default"].constructFromObject(data, obj);
74
+ _NewDealProductAllOf["default"].constructFromObject(data, obj);
75
+ _NewDealProductAllOf2["default"].constructFromObject(data, obj);
76
+ _NewDealProductAllOf3["default"].constructFromObject(data, obj);
67
77
  if (data.hasOwnProperty('product_id')) {
68
78
  obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
69
79
  delete data['product_id'];
@@ -112,6 +122,18 @@ var BasicDealProduct = /*#__PURE__*/function () {
112
122
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
113
123
  delete data['enabled_flag'];
114
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
+ }
115
137
  if (Object.keys(data).length > 0) {
116
138
  Object.assign(obj, data);
117
139
  }
@@ -140,21 +162,21 @@ BasicDealProduct.prototype['item_price'] = undefined;
140
162
  BasicDealProduct.prototype['quantity'] = undefined;
141
163
 
142
164
  /**
143
- * 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
144
166
  * @member {Number} discount
145
167
  * @default 0
146
168
  */
147
169
  BasicDealProduct.prototype['discount'] = 0;
148
170
 
149
171
  /**
150
- * The type of the discount's value.
172
+ * The type of the discount's value
151
173
  * @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type
152
174
  * @default 'percentage'
153
175
  */
154
176
  BasicDealProduct.prototype['discount_type'] = 'percentage';
155
177
 
156
178
  /**
157
- * The duration of the product. If omitted, will be set to 1.
179
+ * The duration of the product. If omitted, will be set to 1
158
180
  * @member {Number} duration
159
181
  * @default 1
160
182
  */
@@ -167,7 +189,7 @@ BasicDealProduct.prototype['duration'] = 1;
167
189
  BasicDealProduct.prototype['duration_unit'] = undefined;
168
190
 
169
191
  /**
170
- * 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
171
193
  * @member {Number} product_variation_id
172
194
  */
173
195
  BasicDealProduct.prototype['product_variation_id'] = undefined;
@@ -186,18 +208,119 @@ BasicDealProduct.prototype['comments'] = undefined;
186
208
  BasicDealProduct.prototype['tax'] = 0;
187
209
 
188
210
  /**
189
- * 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. 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
190
212
  * @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method
191
213
  */
192
214
  BasicDealProduct.prototype['tax_method'] = undefined;
193
215
 
194
216
  /**
195
- * 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
196
218
  * @member {Boolean} enabled_flag
197
219
  * @default true
198
220
  */
199
221
  BasicDealProduct.prototype['enabled_flag'] = true;
200
222
 
223
+ /**
224
+ * @member {module:model/BillingFrequency} billing_frequency
225
+ */
226
+ BasicDealProduct.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
+ BasicDealProduct.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
+ BasicDealProduct.prototype['billing_start_date'] = undefined;
239
+
240
+ // Implement BasicDealProductAllOf interface:
241
+ /**
242
+ * The ID of the product to use
243
+ * @member {Number} product_id
244
+ */
245
+ _BasicDealProductAllOf["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
+ _BasicDealProductAllOf["default"].prototype['item_price'] = undefined;
251
+ /**
252
+ * Quantity – e.g. how many items of this product will be added to the deal
253
+ * @member {Number} quantity
254
+ */
255
+ _BasicDealProductAllOf["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
+ _BasicDealProductAllOf["default"].prototype['discount'] = 0;
262
+ /**
263
+ * The type of the discount's value
264
+ * @member {module:model/BasicDealProductAllOf.DiscountTypeEnum} discount_type
265
+ * @default 'percentage'
266
+ */
267
+ _BasicDealProductAllOf["default"].prototype['discount_type'] = 'percentage';
268
+ /**
269
+ * The duration of the product. If omitted, will be set to 1
270
+ * @member {Number} duration
271
+ * @default 1
272
+ */
273
+ _BasicDealProductAllOf["default"].prototype['duration'] = 1;
274
+ /**
275
+ * The unit duration of the product
276
+ * @member {module:model/DealProductUnitDuration} duration_unit
277
+ */
278
+ _BasicDealProductAllOf["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
+ _BasicDealProductAllOf["default"].prototype['product_variation_id'] = undefined;
284
+ /**
285
+ * A textual comment associated with this product-deal attachment
286
+ * @member {String} comments
287
+ */
288
+ _BasicDealProductAllOf["default"].prototype['comments'] = undefined;
289
+ /**
290
+ * The tax percentage
291
+ * @member {Number} tax
292
+ * @default 0
293
+ */
294
+ _BasicDealProductAllOf["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. 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
297
+ * @member {module:model/BasicDealProductAllOf.TaxMethodEnum} tax_method
298
+ */
299
+ _BasicDealProductAllOf["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
+ _BasicDealProductAllOf["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
+
201
324
  /**
202
325
  * Allowed values for the <code>discount_type</code> property.
203
326
  * @enum {String}