pipedrive 22.6.1 → 22.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
@@ -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 DealProductRequestBody model module.
26
+ * @module model/DealProductRequestBody
27
+ * @version 1.0.0
28
+ */
29
+ var DealProductRequestBody = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>DealProductRequestBody</code>.
32
+ * @alias module:model/DealProductRequestBody
33
+ */
34
+ function DealProductRequestBody() {
35
+ (0, _classCallCheck2["default"])(this, DealProductRequestBody);
36
+ DealProductRequestBody.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"])(DealProductRequestBody, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>DealProductRequestBody</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/DealProductRequestBody} obj Optional instance to populate.
53
+ * @return {module:model/DealProductRequestBody} The populated <code>DealProductRequestBody</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new DealProductRequestBody();
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 DealProductRequestBody;
116
+ }();
117
+ /**
118
+ * The ID of the product to use
119
+ * @member {Number} product_id
120
+ */
121
+ DealProductRequestBody.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
+ DealProductRequestBody.prototype['item_price'] = undefined;
128
+
129
+ /**
130
+ * How many items of this product will be added to the deal
131
+ * @member {Number} quantity
132
+ */
133
+ DealProductRequestBody.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
+ DealProductRequestBody.prototype['discount'] = 0;
141
+
142
+ /**
143
+ * The type of the discount's value
144
+ * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type
145
+ * @default 'percentage'
146
+ */
147
+ DealProductRequestBody.prototype['discount_type'] = 'percentage';
148
+
149
+ /**
150
+ * The duration of the product
151
+ * @member {Number} duration
152
+ * @default 1
153
+ */
154
+ DealProductRequestBody.prototype['duration'] = 1;
155
+
156
+ /**
157
+ * The unit duration of the product
158
+ * @member {module:model/DealProductUnitDuration} duration_unit
159
+ */
160
+ DealProductRequestBody.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
+ DealProductRequestBody.prototype['product_variation_id'] = undefined;
167
+
168
+ /**
169
+ * A textual comment associated with this product-deal attachment
170
+ * @member {String} comments
171
+ */
172
+ DealProductRequestBody.prototype['comments'] = undefined;
173
+
174
+ /**
175
+ * The tax percentage
176
+ * @member {Number} tax
177
+ * @default 0
178
+ */
179
+ DealProductRequestBody.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
183
+ * @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method
184
+ */
185
+ DealProductRequestBody.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
+ DealProductRequestBody.prototype['enabled_flag'] = true;
193
+
194
+ /**
195
+ * Allowed values for the <code>discount_type</code> property.
196
+ * @enum {String}
197
+ * @readonly
198
+ */
199
+ DealProductRequestBody['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
+ DealProductRequestBody['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 = DealProductRequestBody;
235
+ 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 NameObject model module.
25
+ * @module model/NameObject
26
+ * @version 1.0.0
27
+ */
28
+ var NameObject = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>NameObject</code>.
31
+ * @alias module:model/NameObject
32
+ */
33
+ function NameObject() {
34
+ (0, _classCallCheck2["default"])(this, NameObject);
35
+ NameObject.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"])(NameObject, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>NameObject</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/NameObject} obj Optional instance to populate.
52
+ * @return {module:model/NameObject} The populated <code>NameObject</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new NameObject();
59
+ if (data.hasOwnProperty('name')) {
60
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
61
+ delete data['name'];
62
+ }
63
+ if (Object.keys(data).length > 0) {
64
+ Object.assign(obj, data);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+ }]);
70
+ return NameObject;
71
+ }();
72
+ /**
73
+ * The name of the product
74
+ * @member {String} name
75
+ */
76
+ NameObject.prototype['name'] = undefined;
77
+ var _default = NameObject;
78
+ exports["default"] = _default;