pipedrive 20.5.2 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/dist/api/ActivitiesApi.js +2 -2
- package/dist/api/OrganizationsApi.js +71 -2
- package/dist/api/PersonsApi.js +71 -2
- package/dist/api/ProductsApi.js +2 -2
- package/dist/index.js +45 -10
- package/dist/model/AddProductAttachmentDetails.js +82 -9
- package/dist/model/BaseOrganizationItem.js +4 -4
- package/dist/model/BaseOrganizationItemFields.js +2 -2
- package/dist/model/BaseOrganizationItemWithEditNameFlag.js +4 -4
- package/dist/model/BasicDealProduct.js +68 -6
- package/dist/model/InlineResponse2001.js +97 -0
- package/dist/model/InlineResponse2002.js +97 -0
- package/dist/model/NewDealProduct.js +82 -9
- package/dist/model/OrganizationItem.js +4 -4
- package/dist/model/OrganizationsCollectionResponseObject.js +394 -0
- package/dist/model/OrganizationsCollectionResponseObjectAllOf.js +168 -0
- package/dist/model/PersonsCollectionResponseObject.js +210 -0
- package/dist/model/ProductAttachmentDetails.js +82 -9
- package/dist/model/ProductListItem.js +69 -6
- package/dist/model/UpdateDealProduct.js +68 -6
- package/package.json +1 -1
@@ -328,7 +328,7 @@ BaseOrganizationItemWithEditNameFlag.prototype['update_time'] = undefined;
|
|
328
328
|
BaseOrganizationItemWithEditNameFlag.prototype['visible_to'] = undefined;
|
329
329
|
|
330
330
|
/**
|
331
|
-
* The
|
331
|
+
* The label assigned to the organization
|
332
332
|
* @member {Number} label
|
333
333
|
*/
|
334
334
|
BaseOrganizationItemWithEditNameFlag.prototype['label'] = undefined;
|
@@ -340,7 +340,7 @@ BaseOrganizationItemWithEditNameFlag.prototype['label'] = undefined;
|
|
340
340
|
BaseOrganizationItemWithEditNameFlag.prototype['owner_name'] = undefined;
|
341
341
|
|
342
342
|
/**
|
343
|
-
* The BCC email
|
343
|
+
* The BCC email associated with the organization
|
344
344
|
* @member {String} cc_email
|
345
345
|
*/
|
346
346
|
BaseOrganizationItemWithEditNameFlag.prototype['cc_email'] = undefined;
|
@@ -598,7 +598,7 @@ _BaseOrganizationItem["default"].prototype['update_time'] = undefined;
|
|
598
598
|
*/
|
599
599
|
_BaseOrganizationItem["default"].prototype['visible_to'] = undefined;
|
600
600
|
/**
|
601
|
-
* The
|
601
|
+
* The label assigned to the organization
|
602
602
|
* @member {Number} label
|
603
603
|
*/
|
604
604
|
_BaseOrganizationItem["default"].prototype['label'] = undefined;
|
@@ -608,7 +608,7 @@ _BaseOrganizationItem["default"].prototype['label'] = undefined;
|
|
608
608
|
*/
|
609
609
|
_BaseOrganizationItem["default"].prototype['owner_name'] = undefined;
|
610
610
|
/**
|
611
|
-
* The BCC email
|
611
|
+
* The BCC email associated with the organization
|
612
612
|
* @member {String} cc_email
|
613
613
|
*/
|
614
614
|
_BaseOrganizationItem["default"].prototype['cc_email'] = undefined;
|
@@ -76,9 +76,13 @@ var BasicDealProduct = /*#__PURE__*/function () {
|
|
76
76
|
obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
|
77
77
|
delete data['quantity'];
|
78
78
|
}
|
79
|
-
if (data.hasOwnProperty('
|
80
|
-
obj['
|
81
|
-
delete data['
|
79
|
+
if (data.hasOwnProperty('discount')) {
|
80
|
+
obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
|
81
|
+
delete data['discount'];
|
82
|
+
}
|
83
|
+
if (data.hasOwnProperty('discount_type')) {
|
84
|
+
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
85
|
+
delete data['discount_type'];
|
82
86
|
}
|
83
87
|
if (data.hasOwnProperty('duration')) {
|
84
88
|
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
@@ -100,6 +104,10 @@ var BasicDealProduct = /*#__PURE__*/function () {
|
|
100
104
|
obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
|
101
105
|
delete data['tax'];
|
102
106
|
}
|
107
|
+
if (data.hasOwnProperty('tax_method')) {
|
108
|
+
obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
|
109
|
+
delete data['tax_method'];
|
110
|
+
}
|
103
111
|
if (data.hasOwnProperty('enabled_flag')) {
|
104
112
|
obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
|
105
113
|
delete data['enabled_flag'];
|
@@ -132,11 +140,18 @@ BasicDealProduct.prototype['item_price'] = undefined;
|
|
132
140
|
BasicDealProduct.prototype['quantity'] = undefined;
|
133
141
|
|
134
142
|
/**
|
135
|
-
* The discount
|
136
|
-
* @member {Number}
|
143
|
+
* The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
|
144
|
+
* @member {Number} discount
|
137
145
|
* @default 0
|
138
146
|
*/
|
139
|
-
BasicDealProduct.prototype['
|
147
|
+
BasicDealProduct.prototype['discount'] = 0;
|
148
|
+
|
149
|
+
/**
|
150
|
+
* The type of the discount's value.
|
151
|
+
* @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type
|
152
|
+
* @default 'percentage'
|
153
|
+
*/
|
154
|
+
BasicDealProduct.prototype['discount_type'] = 'percentage';
|
140
155
|
|
141
156
|
/**
|
142
157
|
* The duration of the product. If omitted, will be set to 1.
|
@@ -170,11 +185,58 @@ BasicDealProduct.prototype['comments'] = undefined;
|
|
170
185
|
*/
|
171
186
|
BasicDealProduct.prototype['tax'] = 0;
|
172
187
|
|
188
|
+
/**
|
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.
|
190
|
+
* @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method
|
191
|
+
*/
|
192
|
+
BasicDealProduct.prototype['tax_method'] = undefined;
|
193
|
+
|
173
194
|
/**
|
174
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.
|
175
196
|
* @member {Boolean} enabled_flag
|
176
197
|
* @default true
|
177
198
|
*/
|
178
199
|
BasicDealProduct.prototype['enabled_flag'] = true;
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Allowed values for the <code>discount_type</code> property.
|
203
|
+
* @enum {String}
|
204
|
+
* @readonly
|
205
|
+
*/
|
206
|
+
BasicDealProduct['DiscountTypeEnum'] = {
|
207
|
+
/**
|
208
|
+
* value: "percentage"
|
209
|
+
* @const
|
210
|
+
*/
|
211
|
+
"percentage": "percentage",
|
212
|
+
/**
|
213
|
+
* value: "amount"
|
214
|
+
* @const
|
215
|
+
*/
|
216
|
+
"amount": "amount"
|
217
|
+
};
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Allowed values for the <code>tax_method</code> property.
|
221
|
+
* @enum {String}
|
222
|
+
* @readonly
|
223
|
+
*/
|
224
|
+
BasicDealProduct['TaxMethodEnum'] = {
|
225
|
+
/**
|
226
|
+
* value: "exclusive"
|
227
|
+
* @const
|
228
|
+
*/
|
229
|
+
"exclusive": "exclusive",
|
230
|
+
/**
|
231
|
+
* value: "inclusive"
|
232
|
+
* @const
|
233
|
+
*/
|
234
|
+
"inclusive": "inclusive",
|
235
|
+
/**
|
236
|
+
* value: "none"
|
237
|
+
* @const
|
238
|
+
*/
|
239
|
+
"none": "none"
|
240
|
+
};
|
179
241
|
var _default = BasicDealProduct;
|
180
242
|
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;
|
@@ -80,9 +80,13 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
80
80
|
obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
|
81
81
|
delete data['quantity'];
|
82
82
|
}
|
83
|
-
if (data.hasOwnProperty('
|
84
|
-
obj['
|
85
|
-
delete data['
|
83
|
+
if (data.hasOwnProperty('discount')) {
|
84
|
+
obj['discount'] = _ApiClient["default"].convertToType(data['discount'], 'Number');
|
85
|
+
delete data['discount'];
|
86
|
+
}
|
87
|
+
if (data.hasOwnProperty('discount_type')) {
|
88
|
+
obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
|
89
|
+
delete data['discount_type'];
|
86
90
|
}
|
87
91
|
if (data.hasOwnProperty('duration')) {
|
88
92
|
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
@@ -104,6 +108,10 @@ var NewDealProduct = /*#__PURE__*/function () {
|
|
104
108
|
obj['tax'] = _ApiClient["default"].convertToType(data['tax'], 'Number');
|
105
109
|
delete data['tax'];
|
106
110
|
}
|
111
|
+
if (data.hasOwnProperty('tax_method')) {
|
112
|
+
obj['tax_method'] = _ApiClient["default"].convertToType(data['tax_method'], 'String');
|
113
|
+
delete data['tax_method'];
|
114
|
+
}
|
107
115
|
if (data.hasOwnProperty('enabled_flag')) {
|
108
116
|
obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
|
109
117
|
delete data['enabled_flag'];
|
@@ -136,11 +144,18 @@ NewDealProduct.prototype['item_price'] = undefined;
|
|
136
144
|
NewDealProduct.prototype['quantity'] = undefined;
|
137
145
|
|
138
146
|
/**
|
139
|
-
* The discount
|
140
|
-
* @member {Number}
|
147
|
+
* The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
|
148
|
+
* @member {Number} discount
|
141
149
|
* @default 0
|
142
150
|
*/
|
143
|
-
NewDealProduct.prototype['
|
151
|
+
NewDealProduct.prototype['discount'] = 0;
|
152
|
+
|
153
|
+
/**
|
154
|
+
* The type of the discount's value.
|
155
|
+
* @member {module:model/NewDealProduct.DiscountTypeEnum} discount_type
|
156
|
+
* @default 'percentage'
|
157
|
+
*/
|
158
|
+
NewDealProduct.prototype['discount_type'] = 'percentage';
|
144
159
|
|
145
160
|
/**
|
146
161
|
* The duration of the product. If omitted, will be set to 1.
|
@@ -174,6 +189,12 @@ NewDealProduct.prototype['comments'] = undefined;
|
|
174
189
|
*/
|
175
190
|
NewDealProduct.prototype['tax'] = 0;
|
176
191
|
|
192
|
+
/**
|
193
|
+
* The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
|
194
|
+
* @member {module:model/NewDealProduct.TaxMethodEnum} tax_method
|
195
|
+
*/
|
196
|
+
NewDealProduct.prototype['tax_method'] = undefined;
|
197
|
+
|
177
198
|
/**
|
178
199
|
* Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
|
179
200
|
* @member {Boolean} enabled_flag
|
@@ -198,11 +219,17 @@ _BasicDealProduct["default"].prototype['item_price'] = undefined;
|
|
198
219
|
*/
|
199
220
|
_BasicDealProduct["default"].prototype['quantity'] = undefined;
|
200
221
|
/**
|
201
|
-
* The discount
|
202
|
-
* @member {Number}
|
222
|
+
* The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
|
223
|
+
* @member {Number} discount
|
203
224
|
* @default 0
|
204
225
|
*/
|
205
|
-
_BasicDealProduct["default"].prototype['
|
226
|
+
_BasicDealProduct["default"].prototype['discount'] = 0;
|
227
|
+
/**
|
228
|
+
* The type of the discount's value.
|
229
|
+
* @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type
|
230
|
+
* @default 'percentage'
|
231
|
+
*/
|
232
|
+
_BasicDealProduct["default"].prototype['discount_type'] = 'percentage';
|
206
233
|
/**
|
207
234
|
* The duration of the product. If omitted, will be set to 1.
|
208
235
|
* @member {Number} duration
|
@@ -230,11 +257,57 @@ _BasicDealProduct["default"].prototype['comments'] = undefined;
|
|
230
257
|
* @default 0
|
231
258
|
*/
|
232
259
|
_BasicDealProduct["default"].prototype['tax'] = 0;
|
260
|
+
/**
|
261
|
+
* The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
|
262
|
+
* @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method
|
263
|
+
*/
|
264
|
+
_BasicDealProduct["default"].prototype['tax_method'] = undefined;
|
233
265
|
/**
|
234
266
|
* Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
|
235
267
|
* @member {Boolean} enabled_flag
|
236
268
|
* @default true
|
237
269
|
*/
|
238
270
|
_BasicDealProduct["default"].prototype['enabled_flag'] = true;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Allowed values for the <code>discount_type</code> property.
|
274
|
+
* @enum {String}
|
275
|
+
* @readonly
|
276
|
+
*/
|
277
|
+
NewDealProduct['DiscountTypeEnum'] = {
|
278
|
+
/**
|
279
|
+
* value: "percentage"
|
280
|
+
* @const
|
281
|
+
*/
|
282
|
+
"percentage": "percentage",
|
283
|
+
/**
|
284
|
+
* value: "amount"
|
285
|
+
* @const
|
286
|
+
*/
|
287
|
+
"amount": "amount"
|
288
|
+
};
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Allowed values for the <code>tax_method</code> property.
|
292
|
+
* @enum {String}
|
293
|
+
* @readonly
|
294
|
+
*/
|
295
|
+
NewDealProduct['TaxMethodEnum'] = {
|
296
|
+
/**
|
297
|
+
* value: "exclusive"
|
298
|
+
* @const
|
299
|
+
*/
|
300
|
+
"exclusive": "exclusive",
|
301
|
+
/**
|
302
|
+
* value: "inclusive"
|
303
|
+
* @const
|
304
|
+
*/
|
305
|
+
"inclusive": "inclusive",
|
306
|
+
/**
|
307
|
+
* value: "none"
|
308
|
+
* @const
|
309
|
+
*/
|
310
|
+
"none": "none"
|
311
|
+
};
|
239
312
|
var _default = NewDealProduct;
|
240
313
|
exports["default"] = _default;
|
@@ -336,7 +336,7 @@ OrganizationItem.prototype['update_time'] = undefined;
|
|
336
336
|
OrganizationItem.prototype['visible_to'] = undefined;
|
337
337
|
|
338
338
|
/**
|
339
|
-
* The
|
339
|
+
* The label assigned to the organization
|
340
340
|
* @member {Number} label
|
341
341
|
*/
|
342
342
|
OrganizationItem.prototype['label'] = undefined;
|
@@ -348,7 +348,7 @@ OrganizationItem.prototype['label'] = undefined;
|
|
348
348
|
OrganizationItem.prototype['owner_name'] = undefined;
|
349
349
|
|
350
350
|
/**
|
351
|
-
* The BCC email
|
351
|
+
* The BCC email associated with the organization
|
352
352
|
* @member {String} cc_email
|
353
353
|
*/
|
354
354
|
OrganizationItem.prototype['cc_email'] = undefined;
|
@@ -618,7 +618,7 @@ _BaseOrganizationItemWithEditNameFlag["default"].prototype['update_time'] = unde
|
|
618
618
|
*/
|
619
619
|
_BaseOrganizationItemWithEditNameFlag["default"].prototype['visible_to'] = undefined;
|
620
620
|
/**
|
621
|
-
* The
|
621
|
+
* The label assigned to the organization
|
622
622
|
* @member {Number} label
|
623
623
|
*/
|
624
624
|
_BaseOrganizationItemWithEditNameFlag["default"].prototype['label'] = undefined;
|
@@ -628,7 +628,7 @@ _BaseOrganizationItemWithEditNameFlag["default"].prototype['label'] = undefined;
|
|
628
628
|
*/
|
629
629
|
_BaseOrganizationItemWithEditNameFlag["default"].prototype['owner_name'] = undefined;
|
630
630
|
/**
|
631
|
-
* The BCC email
|
631
|
+
* The BCC email associated with the organization
|
632
632
|
* @member {String} cc_email
|
633
633
|
*/
|
634
634
|
_BaseOrganizationItemWithEditNameFlag["default"].prototype['cc_email'] = undefined;
|