pipedrive 21.0.0 → 21.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,38 +57,6 @@ var BasicDeal = /*#__PURE__*/function () {
57
57
  value: function constructFromObject(data, obj) {
58
58
  if (data) {
59
59
  obj = obj || new BasicDeal();
60
- if (data.hasOwnProperty('value')) {
61
- obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
62
- delete data['value'];
63
- }
64
- if (data.hasOwnProperty('currency')) {
65
- obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
66
- delete data['currency'];
67
- }
68
- if (data.hasOwnProperty('user_id')) {
69
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
70
- delete data['user_id'];
71
- }
72
- if (data.hasOwnProperty('person_id')) {
73
- obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
74
- delete data['person_id'];
75
- }
76
- if (data.hasOwnProperty('org_id')) {
77
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
78
- delete data['org_id'];
79
- }
80
- if (data.hasOwnProperty('pipeline_id')) {
81
- obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
82
- delete data['pipeline_id'];
83
- }
84
- if (data.hasOwnProperty('stage_id')) {
85
- obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
86
- delete data['stage_id'];
87
- }
88
- if (data.hasOwnProperty('status')) {
89
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
90
- delete data['status'];
91
- }
92
60
  if (data.hasOwnProperty('expected_close_date')) {
93
61
  obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
94
62
  delete data['expected_close_date'];
@@ -114,54 +82,6 @@ var BasicDeal = /*#__PURE__*/function () {
114
82
  }]);
115
83
  return BasicDeal;
116
84
  }();
117
- /**
118
- * The value of the deal. If omitted, value will be set to 0.
119
- * @member {String} value
120
- */
121
- BasicDeal.prototype['value'] = undefined;
122
-
123
- /**
124
- * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
125
- * @member {String} currency
126
- */
127
- BasicDeal.prototype['currency'] = undefined;
128
-
129
- /**
130
- * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
131
- * @member {Number} user_id
132
- */
133
- BasicDeal.prototype['user_id'] = undefined;
134
-
135
- /**
136
- * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
137
- * @member {Number} person_id
138
- */
139
- BasicDeal.prototype['person_id'] = undefined;
140
-
141
- /**
142
- * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
143
- * @member {Number} org_id
144
- */
145
- BasicDeal.prototype['org_id'] = undefined;
146
-
147
- /**
148
- * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
149
- * @member {Number} pipeline_id
150
- */
151
- BasicDeal.prototype['pipeline_id'] = undefined;
152
-
153
- /**
154
- * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
155
- * @member {Number} stage_id
156
- */
157
- BasicDeal.prototype['stage_id'] = undefined;
158
-
159
- /**
160
- * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
161
- * @member {module:model/BasicDeal.StatusEnum} status
162
- */
163
- BasicDeal.prototype['status'] = undefined;
164
-
165
85
  /**
166
86
  * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
167
87
  * @member {Date} expected_close_date
@@ -185,33 +105,5 @@ BasicDeal.prototype['lost_reason'] = undefined;
185
105
  * @member {module:model/VisibleTo} visible_to
186
106
  */
187
107
  BasicDeal.prototype['visible_to'] = undefined;
188
-
189
- /**
190
- * Allowed values for the <code>status</code> property.
191
- * @enum {String}
192
- * @readonly
193
- */
194
- BasicDeal['StatusEnum'] = {
195
- /**
196
- * value: "open"
197
- * @const
198
- */
199
- "open": "open",
200
- /**
201
- * value: "won"
202
- * @const
203
- */
204
- "won": "won",
205
- /**
206
- * value: "lost"
207
- * @const
208
- */
209
- "lost": "lost",
210
- /**
211
- * value: "deleted"
212
- * @const
213
- */
214
- "deleted": "deleted"
215
- };
216
108
  var _default = BasicDeal;
217
109
  exports["default"] = _default;
@@ -0,0 +1,97 @@
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 _AdditionalDataWithCursorPagination = _interopRequireDefault(require("./AdditionalDataWithCursorPagination"));
12
+ var _OrganizationsCollectionResponseObject = _interopRequireDefault(require("./OrganizationsCollectionResponseObject"));
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 InlineResponse2001 model module.
27
+ * @module model/InlineResponse2001
28
+ * @version 1.0.0
29
+ */
30
+ var InlineResponse2001 = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>InlineResponse2001</code>.
33
+ * @alias module:model/InlineResponse2001
34
+ */
35
+ function InlineResponse2001() {
36
+ (0, _classCallCheck2["default"])(this, InlineResponse2001);
37
+ InlineResponse2001.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"])(InlineResponse2001, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>InlineResponse2001</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/InlineResponse2001} obj Optional instance to populate.
54
+ * @return {module:model/InlineResponse2001} The populated <code>InlineResponse2001</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new InlineResponse2001();
61
+ if (data.hasOwnProperty('success')) {
62
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
63
+ delete data['success'];
64
+ }
65
+ if (data.hasOwnProperty('data')) {
66
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_OrganizationsCollectionResponseObject["default"]]);
67
+ delete data['data'];
68
+ }
69
+ if (data.hasOwnProperty('additional_data')) {
70
+ obj['additional_data'] = _AdditionalDataWithCursorPagination["default"].constructFromObject(data['additional_data']);
71
+ delete data['additional_data'];
72
+ }
73
+ if (Object.keys(data).length > 0) {
74
+ Object.assign(obj, data);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+ }]);
80
+ return InlineResponse2001;
81
+ }();
82
+ /**
83
+ * @member {Boolean} success
84
+ */
85
+ InlineResponse2001.prototype['success'] = undefined;
86
+
87
+ /**
88
+ * @member {Array.<module:model/OrganizationsCollectionResponseObject>} data
89
+ */
90
+ InlineResponse2001.prototype['data'] = undefined;
91
+
92
+ /**
93
+ * @member {module:model/AdditionalDataWithCursorPagination} additional_data
94
+ */
95
+ InlineResponse2001.prototype['additional_data'] = undefined;
96
+ var _default = InlineResponse2001;
97
+ exports["default"] = _default;
@@ -0,0 +1,97 @@
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 _AdditionalDataWithCursorPagination = _interopRequireDefault(require("./AdditionalDataWithCursorPagination"));
12
+ var _PersonsCollectionResponseObject = _interopRequireDefault(require("./PersonsCollectionResponseObject"));
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 InlineResponse2002 model module.
27
+ * @module model/InlineResponse2002
28
+ * @version 1.0.0
29
+ */
30
+ var InlineResponse2002 = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>InlineResponse2002</code>.
33
+ * @alias module:model/InlineResponse2002
34
+ */
35
+ function InlineResponse2002() {
36
+ (0, _classCallCheck2["default"])(this, InlineResponse2002);
37
+ InlineResponse2002.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"])(InlineResponse2002, null, [{
46
+ key: "initialize",
47
+ value: function initialize(obj) {}
48
+
49
+ /**
50
+ * Constructs a <code>InlineResponse2002</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/InlineResponse2002} obj Optional instance to populate.
54
+ * @return {module:model/InlineResponse2002} The populated <code>InlineResponse2002</code> instance.
55
+ */
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new InlineResponse2002();
61
+ if (data.hasOwnProperty('success')) {
62
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
63
+ delete data['success'];
64
+ }
65
+ if (data.hasOwnProperty('data')) {
66
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_PersonsCollectionResponseObject["default"]]);
67
+ delete data['data'];
68
+ }
69
+ if (data.hasOwnProperty('additional_data')) {
70
+ obj['additional_data'] = _AdditionalDataWithCursorPagination["default"].constructFromObject(data['additional_data']);
71
+ delete data['additional_data'];
72
+ }
73
+ if (Object.keys(data).length > 0) {
74
+ Object.assign(obj, data);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+ }]);
80
+ return InlineResponse2002;
81
+ }();
82
+ /**
83
+ * @member {Boolean} success
84
+ */
85
+ InlineResponse2002.prototype['success'] = undefined;
86
+
87
+ /**
88
+ * @member {Array.<module:model/PersonsCollectionResponseObject>} data
89
+ */
90
+ InlineResponse2002.prototype['data'] = undefined;
91
+
92
+ /**
93
+ * @member {module:model/AdditionalDataWithCursorPagination} additional_data
94
+ */
95
+ InlineResponse2002.prototype['additional_data'] = undefined;
96
+ var _default = InlineResponse2002;
97
+ exports["default"] = _default;
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
11
  var _BasicDeal = _interopRequireDefault(require("./BasicDeal"));
12
- var _NewDealAllOf = _interopRequireDefault(require("./NewDealAllOf"));
12
+ var _NewDealParameters = _interopRequireDefault(require("./NewDealParameters"));
13
13
  var _RequredTitleParameter = _interopRequireDefault(require("./RequredTitleParameter"));
14
14
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
15
15
  /**
@@ -34,15 +34,15 @@ var NewDeal = /*#__PURE__*/function () {
34
34
  * Constructs a new <code>NewDeal</code>.
35
35
  * @alias module:model/NewDeal
36
36
  * @implements module:model/RequredTitleParameter
37
+ * @implements module:model/NewDealParameters
37
38
  * @implements module:model/BasicDeal
38
- * @implements module:model/NewDealAllOf
39
39
  * @param title {String} The title of the deal
40
40
  */
41
41
  function NewDeal(title) {
42
42
  (0, _classCallCheck2["default"])(this, NewDeal);
43
43
  _RequredTitleParameter["default"].initialize(this, title);
44
+ _NewDealParameters["default"].initialize(this);
44
45
  _BasicDeal["default"].initialize(this);
45
- _NewDealAllOf["default"].initialize(this);
46
46
  NewDeal.initialize(this, title);
47
47
  }
48
48
 
@@ -70,8 +70,8 @@ var NewDeal = /*#__PURE__*/function () {
70
70
  if (data) {
71
71
  obj = obj || new NewDeal();
72
72
  _RequredTitleParameter["default"].constructFromObject(data, obj);
73
+ _NewDealParameters["default"].constructFromObject(data, obj);
73
74
  _BasicDeal["default"].constructFromObject(data, obj);
74
- _NewDealAllOf["default"].constructFromObject(data, obj);
75
75
  if (data.hasOwnProperty('title')) {
76
76
  obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
77
77
  delete data['title'];
@@ -108,6 +108,10 @@ var NewDeal = /*#__PURE__*/function () {
108
108
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
109
109
  delete data['status'];
110
110
  }
111
+ if (data.hasOwnProperty('add_time')) {
112
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
113
+ delete data['add_time'];
114
+ }
111
115
  if (data.hasOwnProperty('expected_close_date')) {
112
116
  obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
113
117
  delete data['expected_close_date'];
@@ -124,10 +128,6 @@ var NewDeal = /*#__PURE__*/function () {
124
128
  obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
125
129
  delete data['visible_to'];
126
130
  }
127
- if (data.hasOwnProperty('add_time')) {
128
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
129
- delete data['add_time'];
130
- }
131
131
  if (Object.keys(data).length > 0) {
132
132
  Object.assign(obj, data);
133
133
  }
@@ -191,6 +191,12 @@ NewDeal.prototype['stage_id'] = undefined;
191
191
  */
192
192
  NewDeal.prototype['status'] = undefined;
193
193
 
194
+ /**
195
+ * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
196
+ * @member {String} add_time
197
+ */
198
+ NewDeal.prototype['add_time'] = undefined;
199
+
194
200
  /**
195
201
  * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
196
202
  * @member {Date} expected_close_date
@@ -215,59 +221,59 @@ NewDeal.prototype['lost_reason'] = undefined;
215
221
  */
216
222
  NewDeal.prototype['visible_to'] = undefined;
217
223
 
218
- /**
219
- * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
220
- * @member {String} add_time
221
- */
222
- NewDeal.prototype['add_time'] = undefined;
223
-
224
224
  // Implement RequredTitleParameter interface:
225
225
  /**
226
226
  * The title of the deal
227
227
  * @member {String} title
228
228
  */
229
229
  _RequredTitleParameter["default"].prototype['title'] = undefined;
230
- // Implement BasicDeal interface:
230
+ // Implement NewDealParameters interface:
231
231
  /**
232
232
  * The value of the deal. If omitted, value will be set to 0.
233
233
  * @member {String} value
234
234
  */
235
- _BasicDeal["default"].prototype['value'] = undefined;
235
+ _NewDealParameters["default"].prototype['value'] = undefined;
236
236
  /**
237
237
  * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
238
238
  * @member {String} currency
239
239
  */
240
- _BasicDeal["default"].prototype['currency'] = undefined;
240
+ _NewDealParameters["default"].prototype['currency'] = undefined;
241
241
  /**
242
242
  * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
243
243
  * @member {Number} user_id
244
244
  */
245
- _BasicDeal["default"].prototype['user_id'] = undefined;
245
+ _NewDealParameters["default"].prototype['user_id'] = undefined;
246
246
  /**
247
247
  * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
248
248
  * @member {Number} person_id
249
249
  */
250
- _BasicDeal["default"].prototype['person_id'] = undefined;
250
+ _NewDealParameters["default"].prototype['person_id'] = undefined;
251
251
  /**
252
252
  * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
253
253
  * @member {Number} org_id
254
254
  */
255
- _BasicDeal["default"].prototype['org_id'] = undefined;
255
+ _NewDealParameters["default"].prototype['org_id'] = undefined;
256
256
  /**
257
257
  * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
258
258
  * @member {Number} pipeline_id
259
259
  */
260
- _BasicDeal["default"].prototype['pipeline_id'] = undefined;
260
+ _NewDealParameters["default"].prototype['pipeline_id'] = undefined;
261
261
  /**
262
262
  * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
263
263
  * @member {Number} stage_id
264
264
  */
265
- _BasicDeal["default"].prototype['stage_id'] = undefined;
265
+ _NewDealParameters["default"].prototype['stage_id'] = undefined;
266
266
  /**
267
267
  * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
268
- * @member {module:model/BasicDeal.StatusEnum} status
268
+ * @member {module:model/NewDealParameters.StatusEnum} status
269
269
  */
270
- _BasicDeal["default"].prototype['status'] = undefined;
270
+ _NewDealParameters["default"].prototype['status'] = undefined;
271
+ /**
272
+ * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
273
+ * @member {String} add_time
274
+ */
275
+ _NewDealParameters["default"].prototype['add_time'] = undefined;
276
+ // Implement BasicDeal interface:
271
277
  /**
272
278
  * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
273
279
  * @member {Date} expected_close_date
@@ -288,12 +294,6 @@ _BasicDeal["default"].prototype['lost_reason'] = undefined;
288
294
  * @member {module:model/VisibleTo} visible_to
289
295
  */
290
296
  _BasicDeal["default"].prototype['visible_to'] = undefined;
291
- // Implement NewDealAllOf interface:
292
- /**
293
- * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
294
- * @member {String} add_time
295
- */
296
- _NewDealAllOf["default"].prototype['add_time'] = undefined;
297
297
 
298
298
  /**
299
299
  * Allowed values for the <code>status</code> property.
@@ -0,0 +1,186 @@
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 NewDealParameters model module.
25
+ * @module model/NewDealParameters
26
+ * @version 1.0.0
27
+ */
28
+ var NewDealParameters = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>NewDealParameters</code>.
31
+ * @alias module:model/NewDealParameters
32
+ */
33
+ function NewDealParameters() {
34
+ (0, _classCallCheck2["default"])(this, NewDealParameters);
35
+ NewDealParameters.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"])(NewDealParameters, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>NewDealParameters</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/NewDealParameters} obj Optional instance to populate.
52
+ * @return {module:model/NewDealParameters} The populated <code>NewDealParameters</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new NewDealParameters();
59
+ if (data.hasOwnProperty('value')) {
60
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
61
+ delete data['value'];
62
+ }
63
+ if (data.hasOwnProperty('currency')) {
64
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
65
+ delete data['currency'];
66
+ }
67
+ if (data.hasOwnProperty('user_id')) {
68
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
69
+ delete data['user_id'];
70
+ }
71
+ if (data.hasOwnProperty('person_id')) {
72
+ obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
73
+ delete data['person_id'];
74
+ }
75
+ if (data.hasOwnProperty('org_id')) {
76
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
77
+ delete data['org_id'];
78
+ }
79
+ if (data.hasOwnProperty('pipeline_id')) {
80
+ obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
81
+ delete data['pipeline_id'];
82
+ }
83
+ if (data.hasOwnProperty('stage_id')) {
84
+ obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
85
+ delete data['stage_id'];
86
+ }
87
+ if (data.hasOwnProperty('status')) {
88
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
89
+ delete data['status'];
90
+ }
91
+ if (data.hasOwnProperty('add_time')) {
92
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
93
+ delete data['add_time'];
94
+ }
95
+ if (Object.keys(data).length > 0) {
96
+ Object.assign(obj, data);
97
+ }
98
+ }
99
+ return obj;
100
+ }
101
+ }]);
102
+ return NewDealParameters;
103
+ }();
104
+ /**
105
+ * The value of the deal. If omitted, value will be set to 0.
106
+ * @member {String} value
107
+ */
108
+ NewDealParameters.prototype['value'] = undefined;
109
+
110
+ /**
111
+ * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
112
+ * @member {String} currency
113
+ */
114
+ NewDealParameters.prototype['currency'] = undefined;
115
+
116
+ /**
117
+ * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used.
118
+ * @member {Number} user_id
119
+ */
120
+ NewDealParameters.prototype['user_id'] = undefined;
121
+
122
+ /**
123
+ * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
124
+ * @member {Number} person_id
125
+ */
126
+ NewDealParameters.prototype['person_id'] = undefined;
127
+
128
+ /**
129
+ * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
130
+ * @member {Number} org_id
131
+ */
132
+ NewDealParameters.prototype['org_id'] = undefined;
133
+
134
+ /**
135
+ * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
136
+ * @member {Number} pipeline_id
137
+ */
138
+ NewDealParameters.prototype['pipeline_id'] = undefined;
139
+
140
+ /**
141
+ * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
142
+ * @member {Number} stage_id
143
+ */
144
+ NewDealParameters.prototype['stage_id'] = undefined;
145
+
146
+ /**
147
+ * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
148
+ * @member {module:model/NewDealParameters.StatusEnum} status
149
+ */
150
+ NewDealParameters.prototype['status'] = undefined;
151
+
152
+ /**
153
+ * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
154
+ * @member {String} add_time
155
+ */
156
+ NewDealParameters.prototype['add_time'] = undefined;
157
+
158
+ /**
159
+ * Allowed values for the <code>status</code> property.
160
+ * @enum {String}
161
+ * @readonly
162
+ */
163
+ NewDealParameters['StatusEnum'] = {
164
+ /**
165
+ * value: "open"
166
+ * @const
167
+ */
168
+ "open": "open",
169
+ /**
170
+ * value: "won"
171
+ * @const
172
+ */
173
+ "won": "won",
174
+ /**
175
+ * value: "lost"
176
+ * @const
177
+ */
178
+ "lost": "lost",
179
+ /**
180
+ * value: "deleted"
181
+ * @const
182
+ */
183
+ "deleted": "deleted"
184
+ };
185
+ var _default = NewDealParameters;
186
+ exports["default"] = _default;