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
@@ -0,0 +1,235 @@
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 _DealProductUnitDuration = _interopRequireDefault(require("./DealProductUnitDuration"));
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 BasicDealProductAllOf model module.
26
+ * @module model/BasicDealProductAllOf
27
+ * @version 1.0.0
28
+ */
29
+ var BasicDealProductAllOf = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>BasicDealProductAllOf</code>.
32
+ * @alias module:model/BasicDealProductAllOf
33
+ */
34
+ function BasicDealProductAllOf() {
35
+ (0, _classCallCheck2["default"])(this, BasicDealProductAllOf);
36
+ BasicDealProductAllOf.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"])(BasicDealProductAllOf, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>BasicDealProductAllOf</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/BasicDealProductAllOf} obj Optional instance to populate.
53
+ * @return {module:model/BasicDealProductAllOf} The populated <code>BasicDealProductAllOf</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new BasicDealProductAllOf();
60
+ if (data.hasOwnProperty('product_id')) {
61
+ obj['product_id'] = _ApiClient["default"].convertToType(data['product_id'], 'Number');
62
+ delete data['product_id'];
63
+ }
64
+ if (data.hasOwnProperty('item_price')) {
65
+ obj['item_price'] = _ApiClient["default"].convertToType(data['item_price'], 'Number');
66
+ delete data['item_price'];
67
+ }
68
+ if (data.hasOwnProperty('quantity')) {
69
+ obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
70
+ delete data['quantity'];
71
+ }
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'];
79
+ }
80
+ if (data.hasOwnProperty('duration')) {
81
+ obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
82
+ delete data['duration'];
83
+ }
84
+ if (data.hasOwnProperty('duration_unit')) {
85
+ obj['duration_unit'] = _ApiClient["default"].convertToType(data['duration_unit'], _DealProductUnitDuration["default"]);
86
+ delete data['duration_unit'];
87
+ }
88
+ if (data.hasOwnProperty('product_variation_id')) {
89
+ obj['product_variation_id'] = _ApiClient["default"].convertToType(data['product_variation_id'], 'Number');
90
+ delete data['product_variation_id'];
91
+ }
92
+ if (data.hasOwnProperty('comments')) {
93
+ obj['comments'] = _ApiClient["default"].convertToType(data['comments'], 'String');
94
+ delete data['comments'];
95
+ }
96
+ if (data.hasOwnProperty('tax')) {
97
+ obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
98
+ delete data['tax'];
99
+ }
100
+ if (data.hasOwnProperty('tax_method')) {
101
+ obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
102
+ delete data['tax_method'];
103
+ }
104
+ if (data.hasOwnProperty('enabled_flag')) {
105
+ obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
106
+ delete data['enabled_flag'];
107
+ }
108
+ if (Object.keys(data).length > 0) {
109
+ Object.assign(obj, data);
110
+ }
111
+ }
112
+ return obj;
113
+ }
114
+ }]);
115
+ return BasicDealProductAllOf;
116
+ }();
117
+ /**
118
+ * The ID of the product to use
119
+ * @member {Number} product_id
120
+ */
121
+ BasicDealProductAllOf.prototype['product_id'] = undefined;
122
+
123
+ /**
124
+ * The price at which this product will be added to the deal
125
+ * @member {Number} item_price
126
+ */
127
+ BasicDealProductAllOf.prototype['item_price'] = undefined;
128
+
129
+ /**
130
+ * Quantity – e.g. how many items of this product will be added to the deal
131
+ * @member {Number} quantity
132
+ */
133
+ BasicDealProductAllOf.prototype['quantity'] = undefined;
134
+
135
+ /**
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
138
+ * @default 0
139
+ */
140
+ BasicDealProductAllOf.prototype['discount'] = 0;
141
+
142
+ /**
143
+ * The type of the discount's value
144
+ * @member {module:model/BasicDealProductAllOf.DiscountTypeEnum} discount_type
145
+ * @default 'percentage'
146
+ */
147
+ BasicDealProductAllOf.prototype['discount_type'] = 'percentage';
148
+
149
+ /**
150
+ * The duration of the product. If omitted, will be set to 1
151
+ * @member {Number} duration
152
+ * @default 1
153
+ */
154
+ BasicDealProductAllOf.prototype['duration'] = 1;
155
+
156
+ /**
157
+ * The unit duration of the product
158
+ * @member {module:model/DealProductUnitDuration} duration_unit
159
+ */
160
+ BasicDealProductAllOf.prototype['duration_unit'] = undefined;
161
+
162
+ /**
163
+ * The ID of the product variation to use. When omitted, no variation will be used
164
+ * @member {Number} product_variation_id
165
+ */
166
+ BasicDealProductAllOf.prototype['product_variation_id'] = undefined;
167
+
168
+ /**
169
+ * A textual comment associated with this product-deal attachment
170
+ * @member {String} comments
171
+ */
172
+ BasicDealProductAllOf.prototype['comments'] = undefined;
173
+
174
+ /**
175
+ * The tax percentage
176
+ * @member {Number} tax
177
+ * @default 0
178
+ */
179
+ BasicDealProductAllOf.prototype['tax'] = 0;
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. 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
183
+ * @member {module:model/BasicDealProductAllOf.TaxMethodEnum} tax_method
184
+ */
185
+ BasicDealProductAllOf.prototype['tax_method'] = undefined;
186
+
187
+ /**
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
189
+ * @member {Boolean} enabled_flag
190
+ * @default true
191
+ */
192
+ BasicDealProductAllOf.prototype['enabled_flag'] = true;
193
+
194
+ /**
195
+ * Allowed values for the <code>discount_type</code> property.
196
+ * @enum {String}
197
+ * @readonly
198
+ */
199
+ BasicDealProductAllOf['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
+ BasicDealProductAllOf['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
+ };
234
+ var _default = BasicDealProductAllOf;
235
+ exports["default"] = _default;
@@ -0,0 +1,86 @@
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
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
+ * Enum class BillingFrequency.
26
+ * @enum {}
27
+ * @readonly
28
+ */
29
+ var BillingFrequency = /*#__PURE__*/function () {
30
+ function BillingFrequency() {
31
+ (0, _classCallCheck2["default"])(this, BillingFrequency);
32
+ (0, _defineProperty2["default"])(this, "one-time", "one-time");
33
+ (0, _defineProperty2["default"])(this, "annually", "annually");
34
+ (0, _defineProperty2["default"])(this, "semi-annually", "semi-annually");
35
+ (0, _defineProperty2["default"])(this, "quarterly", "quarterly");
36
+ (0, _defineProperty2["default"])(this, "monthly", "monthly");
37
+ (0, _defineProperty2["default"])(this, "weekly", "weekly");
38
+ }
39
+ /**
40
+ * value: "one-time"
41
+ * @const
42
+ */
43
+ /**
44
+ * value: "annually"
45
+ * @const
46
+ */
47
+ /**
48
+ * value: "semi-annually"
49
+ * @const
50
+ */
51
+ /**
52
+ * value: "quarterly"
53
+ * @const
54
+ */
55
+ /**
56
+ * value: "monthly"
57
+ * @const
58
+ */
59
+ /**
60
+ * value: "weekly"
61
+ * @const
62
+ */
63
+ (0, _createClass2["default"])(BillingFrequency, null, [{
64
+ key: "constructFromObject",
65
+ value:
66
+ /**
67
+ * Returns a <code>BillingFrequency</code> enum value from a Javascript object name.
68
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
69
+ * @return {module:model/BillingFrequency} The enum <code>BillingFrequency</code> value.
70
+ */
71
+ function constructFromObject(object) {
72
+ return object;
73
+ }
74
+
75
+ /**
76
+ * Initializes the fields of this object.
77
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
78
+ * Only for internal use.
79
+ */
80
+ }, {
81
+ key: "initialize",
82
+ value: function initialize(obj) {}
83
+ }]);
84
+ return BillingFrequency;
85
+ }();
86
+ exports["default"] = BillingFrequency;
@@ -0,0 +1,86 @@
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
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
+ * Enum class BillingFrequency1.
26
+ * @enum {}
27
+ * @readonly
28
+ */
29
+ var BillingFrequency1 = /*#__PURE__*/function () {
30
+ function BillingFrequency1() {
31
+ (0, _classCallCheck2["default"])(this, BillingFrequency1);
32
+ (0, _defineProperty2["default"])(this, "one-time", "one-time");
33
+ (0, _defineProperty2["default"])(this, "annually", "annually");
34
+ (0, _defineProperty2["default"])(this, "semi-annually", "semi-annually");
35
+ (0, _defineProperty2["default"])(this, "quarterly", "quarterly");
36
+ (0, _defineProperty2["default"])(this, "monthly", "monthly");
37
+ (0, _defineProperty2["default"])(this, "weekly", "weekly");
38
+ }
39
+ /**
40
+ * value: "one-time"
41
+ * @const
42
+ */
43
+ /**
44
+ * value: "annually"
45
+ * @const
46
+ */
47
+ /**
48
+ * value: "semi-annually"
49
+ * @const
50
+ */
51
+ /**
52
+ * value: "quarterly"
53
+ * @const
54
+ */
55
+ /**
56
+ * value: "monthly"
57
+ * @const
58
+ */
59
+ /**
60
+ * value: "weekly"
61
+ * @const
62
+ */
63
+ (0, _createClass2["default"])(BillingFrequency1, null, [{
64
+ key: "constructFromObject",
65
+ value:
66
+ /**
67
+ * Returns a <code>BillingFrequency1</code> enum value from a Javascript object name.
68
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
69
+ * @return {module:model/BillingFrequency1} The enum <code>BillingFrequency1</code> value.
70
+ */
71
+ function constructFromObject(object) {
72
+ return object;
73
+ }
74
+
75
+ /**
76
+ * Initializes the fields of this object.
77
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
78
+ * Only for internal use.
79
+ */
80
+ }, {
81
+ key: "initialize",
82
+ value: function initialize(obj) {}
83
+ }]);
84
+ return BillingFrequency1;
85
+ }();
86
+ exports["default"] = BillingFrequency1;
@@ -296,6 +296,22 @@ var DealNonStrict = /*#__PURE__*/function () {
296
296
  obj['person_hidden'] = _ApiClient["default"].convertToType(data['person_hidden'], 'Boolean');
297
297
  delete data['person_hidden'];
298
298
  }
299
+ if (data.hasOwnProperty('origin')) {
300
+ obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
301
+ delete data['origin'];
302
+ }
303
+ if (data.hasOwnProperty('origin_id')) {
304
+ obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
305
+ delete data['origin_id'];
306
+ }
307
+ if (data.hasOwnProperty('channel')) {
308
+ obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
309
+ delete data['channel'];
310
+ }
311
+ if (data.hasOwnProperty('channel_id')) {
312
+ obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
313
+ delete data['channel_id'];
314
+ }
299
315
  if (Object.keys(data).length > 0) {
300
316
  Object.assign(obj, data);
301
317
  }
@@ -643,6 +659,30 @@ DealNonStrict.prototype['org_hidden'] = undefined;
643
659
  */
644
660
  DealNonStrict.prototype['person_hidden'] = undefined;
645
661
 
662
+ /**
663
+ * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
664
+ * @member {String} origin
665
+ */
666
+ DealNonStrict.prototype['origin'] = undefined;
667
+
668
+ /**
669
+ * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
670
+ * @member {String} origin_id
671
+ */
672
+ DealNonStrict.prototype['origin_id'] = undefined;
673
+
674
+ /**
675
+ * 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>.
676
+ * @member {Number} channel
677
+ */
678
+ DealNonStrict.prototype['channel'] = undefined;
679
+
680
+ /**
681
+ * The optional ID to further distinguish the Marketing channel.
682
+ * @member {String} channel_id
683
+ */
684
+ DealNonStrict.prototype['channel_id'] = undefined;
685
+
646
686
  // Implement DealNonStrictModeFields interface:
647
687
  /**
648
688
  * The ID of the deal
@@ -926,5 +966,25 @@ _BaseDeal["default"].prototype['org_hidden'] = undefined;
926
966
  * @member {Boolean} person_hidden
927
967
  */
928
968
  _BaseDeal["default"].prototype['person_hidden'] = undefined;
969
+ /**
970
+ * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
971
+ * @member {String} origin
972
+ */
973
+ _BaseDeal["default"].prototype['origin'] = undefined;
974
+ /**
975
+ * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
976
+ * @member {String} origin_id
977
+ */
978
+ _BaseDeal["default"].prototype['origin_id'] = undefined;
979
+ /**
980
+ * 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>.
981
+ * @member {Number} channel
982
+ */
983
+ _BaseDeal["default"].prototype['channel'] = undefined;
984
+ /**
985
+ * The optional ID to further distinguish the Marketing channel.
986
+ * @member {String} channel_id
987
+ */
988
+ _BaseDeal["default"].prototype['channel_id'] = undefined;
929
989
  var _default = DealNonStrict;
930
990
  exports["default"] = _default;
@@ -299,6 +299,22 @@ var DealNonStrictWithDetails = /*#__PURE__*/function () {
299
299
  obj['person_hidden'] = _ApiClient["default"].convertToType(data['person_hidden'], 'Boolean');
300
300
  delete data['person_hidden'];
301
301
  }
302
+ if (data.hasOwnProperty('origin')) {
303
+ obj['origin'] = _ApiClient["default"].convertToType(data['origin'], 'String');
304
+ delete data['origin'];
305
+ }
306
+ if (data.hasOwnProperty('origin_id')) {
307
+ obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
308
+ delete data['origin_id'];
309
+ }
310
+ if (data.hasOwnProperty('channel')) {
311
+ obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
312
+ delete data['channel'];
313
+ }
314
+ if (data.hasOwnProperty('channel_id')) {
315
+ obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
316
+ delete data['channel_id'];
317
+ }
302
318
  if (data.hasOwnProperty('average_time_to_won')) {
303
319
  obj['average_time_to_won'] = _DealNonStrictWithDetailsAllOfAverageTimeToWon["default"].constructFromObject(data['average_time_to_won']);
304
320
  delete data['average_time_to_won'];
@@ -670,6 +686,30 @@ DealNonStrictWithDetails.prototype['org_hidden'] = undefined;
670
686
  */
671
687
  DealNonStrictWithDetails.prototype['person_hidden'] = undefined;
672
688
 
689
+ /**
690
+ * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
691
+ * @member {String} origin
692
+ */
693
+ DealNonStrictWithDetails.prototype['origin'] = undefined;
694
+
695
+ /**
696
+ * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
697
+ * @member {String} origin_id
698
+ */
699
+ DealNonStrictWithDetails.prototype['origin_id'] = undefined;
700
+
701
+ /**
702
+ * 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>.
703
+ * @member {Number} channel
704
+ */
705
+ DealNonStrictWithDetails.prototype['channel'] = undefined;
706
+
707
+ /**
708
+ * The optional ID to further distinguish the Marketing channel.
709
+ * @member {String} channel_id
710
+ */
711
+ DealNonStrictWithDetails.prototype['channel_id'] = undefined;
712
+
673
713
  /**
674
714
  * @member {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} average_time_to_won
675
715
  */
@@ -985,6 +1025,26 @@ _DealNonStrict["default"].prototype['org_hidden'] = undefined;
985
1025
  * @member {Boolean} person_hidden
986
1026
  */
987
1027
  _DealNonStrict["default"].prototype['person_hidden'] = undefined;
1028
+ /**
1029
+ * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed.
1030
+ * @member {String} origin
1031
+ */
1032
+ _DealNonStrict["default"].prototype['origin'] = undefined;
1033
+ /**
1034
+ * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
1035
+ * @member {String} origin_id
1036
+ */
1037
+ _DealNonStrict["default"].prototype['origin_id'] = undefined;
1038
+ /**
1039
+ * 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>.
1040
+ * @member {Number} channel
1041
+ */
1042
+ _DealNonStrict["default"].prototype['channel'] = undefined;
1043
+ /**
1044
+ * The optional ID to further distinguish the Marketing channel.
1045
+ * @member {String} channel_id
1046
+ */
1047
+ _DealNonStrict["default"].prototype['channel_id'] = undefined;
988
1048
  // Implement DealNonStrictWithDetailsAllOf interface:
989
1049
  /**
990
1050
  * @member {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} average_time_to_won