pipedrive 22.6.1 → 22.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -684,6 +684,7 @@ Class | Method | HTTP request | Description
684
684
  - [Pipedrive.AddProductAttachmentDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetailsAllOf.md)
685
685
  - [Pipedrive.AddProductFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductFollowerRequest.md)
686
686
  - [Pipedrive.AddProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBody.md)
687
+ - [Pipedrive.AddProductRequestBodyAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBodyAllOf.md)
687
688
  - [Pipedrive.AddProjectResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProjectResponse201.md)
688
689
  - [Pipedrive.AddRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRole.md)
689
690
  - [Pipedrive.AddRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRoleAssignmentRequest.md)
@@ -747,10 +748,13 @@ Class | Method | HTTP request | Description
747
748
  - [Pipedrive.BaseWebhook](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseWebhook.md)
748
749
  - [Pipedrive.BasicDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDeal.md)
749
750
  - [Pipedrive.BasicDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProduct.md)
751
+ - [Pipedrive.BasicDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProductAllOf.md)
750
752
  - [Pipedrive.BasicGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicGoal.md)
751
753
  - [Pipedrive.BasicOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicOrganization.md)
752
754
  - [Pipedrive.BasicPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPerson.md)
753
755
  - [Pipedrive.BasicPersonEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPersonEmail.md)
756
+ - [Pipedrive.BillingFrequency](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency.md)
757
+ - [Pipedrive.BillingFrequency1](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency1.md)
754
758
  - [Pipedrive.BulkDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponse.md)
755
759
  - [Pipedrive.BulkDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOf.md)
756
760
  - [Pipedrive.BulkDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOfData.md)
@@ -804,6 +808,7 @@ Class | Method | HTTP request | Description
804
808
  - [Pipedrive.DealPersonDataPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataPhone.md)
805
809
  - [Pipedrive.DealPersonDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithId.md)
806
810
  - [Pipedrive.DealPersonDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithIdAllOf.md)
811
+ - [Pipedrive.DealProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductRequestBody.md)
807
812
  - [Pipedrive.DealProductUnitDuration](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductUnitDuration.md)
808
813
  - [Pipedrive.DealSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItem.md)
809
814
  - [Pipedrive.DealSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItem.md)
@@ -1119,9 +1124,13 @@ Class | Method | HTTP request | Description
1119
1124
  - [Pipedrive.MergePersonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonsResponseAllOf.md)
1120
1125
  - [Pipedrive.MessageObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObject.md)
1121
1126
  - [Pipedrive.MessageObjectAttachments](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObjectAttachments.md)
1127
+ - [Pipedrive.NameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/NameObject.md)
1122
1128
  - [Pipedrive.NewDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDeal.md)
1123
1129
  - [Pipedrive.NewDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealParameters.md)
1124
1130
  - [Pipedrive.NewDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProduct.md)
1131
+ - [Pipedrive.NewDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf.md)
1132
+ - [Pipedrive.NewDealProductAllOf1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf1.md)
1133
+ - [Pipedrive.NewDealProductAllOf2](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf2.md)
1125
1134
  - [Pipedrive.NewFollowerResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponse.md)
1126
1135
  - [Pipedrive.NewFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponseData.md)
1127
1136
  - [Pipedrive.NewGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewGoal.md)
@@ -1142,9 +1151,7 @@ Class | Method | HTTP request | Description
1142
1151
  - [Pipedrive.NumberBoolean](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBoolean.md)
1143
1152
  - [Pipedrive.NumberBooleanDefault0](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault0.md)
1144
1153
  - [Pipedrive.NumberBooleanDefault1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault1.md)
1145
- - [Pipedrive.ObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ObjectPrices.md)
1146
1154
  - [Pipedrive.OneLeadResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/OneLeadResponse200.md)
1147
- - [Pipedrive.OptionalNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/OptionalNameObject.md)
1148
1155
  - [Pipedrive.OrgAndOwnerId](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrgAndOwnerId.md)
1149
1156
  - [Pipedrive.OrganizationAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationAddressInfo.md)
1150
1157
  - [Pipedrive.OrganizationCountAndAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationCountAndAddressInfo.md)
@@ -1275,7 +1282,6 @@ Class | Method | HTTP request | Description
1275
1282
  - [Pipedrive.ProductSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOf.md)
1276
1283
  - [Pipedrive.ProductSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOfData.md)
1277
1284
  - [Pipedrive.ProductWithArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithArrayPrices.md)
1278
- - [Pipedrive.ProductWithObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithObjectPrices.md)
1279
1285
  - [Pipedrive.ProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsResponse.md)
1280
1286
  - [Pipedrive.ProjectBoardObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectBoardObject.md)
1281
1287
  - [Pipedrive.ProjectGroupsObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectGroupsObject.md)
@@ -1320,7 +1326,6 @@ Class | Method | HTTP request | Description
1320
1326
  - [Pipedrive.RelationshipOrganizationInfoItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItem.md)
1321
1327
  - [Pipedrive.RelationshipOrganizationInfoItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemAllOf.md)
1322
1328
  - [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemWithActiveFlag.md)
1323
- - [Pipedrive.RequiredNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredNameObject.md)
1324
1329
  - [Pipedrive.RequiredPostProjectParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostProjectParameters.md)
1325
1330
  - [Pipedrive.RequiredPostTaskParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostTaskParameters.md)
1326
1331
  - [Pipedrive.RequredTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequredTitleParameter.md)
package/dist/index.js CHANGED
@@ -352,6 +352,12 @@ Object.defineProperty(exports, "AddProductRequestBody", {
352
352
  return _AddProductRequestBody["default"];
353
353
  }
354
354
  });
355
+ Object.defineProperty(exports, "AddProductRequestBodyAllOf", {
356
+ enumerable: true,
357
+ get: function get() {
358
+ return _AddProductRequestBodyAllOf["default"];
359
+ }
360
+ });
355
361
  Object.defineProperty(exports, "AddProjectResponse201", {
356
362
  enumerable: true,
357
363
  get: function get() {
@@ -736,6 +742,12 @@ Object.defineProperty(exports, "BasicDealProduct", {
736
742
  return _BasicDealProduct["default"];
737
743
  }
738
744
  });
745
+ Object.defineProperty(exports, "BasicDealProductAllOf", {
746
+ enumerable: true,
747
+ get: function get() {
748
+ return _BasicDealProductAllOf["default"];
749
+ }
750
+ });
739
751
  Object.defineProperty(exports, "BasicGoal", {
740
752
  enumerable: true,
741
753
  get: function get() {
@@ -766,6 +778,18 @@ Object.defineProperty(exports, "BillingApi", {
766
778
  return _BillingApi["default"];
767
779
  }
768
780
  });
781
+ Object.defineProperty(exports, "BillingFrequency", {
782
+ enumerable: true,
783
+ get: function get() {
784
+ return _BillingFrequency["default"];
785
+ }
786
+ });
787
+ Object.defineProperty(exports, "BillingFrequency1", {
788
+ enumerable: true,
789
+ get: function get() {
790
+ return _BillingFrequency2["default"];
791
+ }
792
+ });
769
793
  Object.defineProperty(exports, "BulkDeleteResponse", {
770
794
  enumerable: true,
771
795
  get: function get() {
@@ -1108,6 +1132,12 @@ Object.defineProperty(exports, "DealPersonDataWithIdAllOf", {
1108
1132
  return _DealPersonDataWithIdAllOf["default"];
1109
1133
  }
1110
1134
  });
1135
+ Object.defineProperty(exports, "DealProductRequestBody", {
1136
+ enumerable: true,
1137
+ get: function get() {
1138
+ return _DealProductRequestBody["default"];
1139
+ }
1140
+ });
1111
1141
  Object.defineProperty(exports, "DealProductUnitDuration", {
1112
1142
  enumerable: true,
1113
1143
  get: function get() {
@@ -3064,6 +3094,12 @@ Object.defineProperty(exports, "MessageObjectAttachments", {
3064
3094
  return _MessageObjectAttachments["default"];
3065
3095
  }
3066
3096
  });
3097
+ Object.defineProperty(exports, "NameObject", {
3098
+ enumerable: true,
3099
+ get: function get() {
3100
+ return _NameObject["default"];
3101
+ }
3102
+ });
3067
3103
  Object.defineProperty(exports, "NewDeal", {
3068
3104
  enumerable: true,
3069
3105
  get: function get() {
@@ -3082,6 +3118,24 @@ Object.defineProperty(exports, "NewDealProduct", {
3082
3118
  return _NewDealProduct["default"];
3083
3119
  }
3084
3120
  });
3121
+ Object.defineProperty(exports, "NewDealProductAllOf", {
3122
+ enumerable: true,
3123
+ get: function get() {
3124
+ return _NewDealProductAllOf["default"];
3125
+ }
3126
+ });
3127
+ Object.defineProperty(exports, "NewDealProductAllOf1", {
3128
+ enumerable: true,
3129
+ get: function get() {
3130
+ return _NewDealProductAllOf2["default"];
3131
+ }
3132
+ });
3133
+ Object.defineProperty(exports, "NewDealProductAllOf2", {
3134
+ enumerable: true,
3135
+ get: function get() {
3136
+ return _NewDealProductAllOf3["default"];
3137
+ }
3138
+ });
3085
3139
  Object.defineProperty(exports, "NewFollowerResponse", {
3086
3140
  enumerable: true,
3087
3141
  get: function get() {
@@ -3214,24 +3268,12 @@ Object.defineProperty(exports, "NumberBooleanDefault1", {
3214
3268
  return _NumberBooleanDefault2["default"];
3215
3269
  }
3216
3270
  });
3217
- Object.defineProperty(exports, "ObjectPrices", {
3218
- enumerable: true,
3219
- get: function get() {
3220
- return _ObjectPrices["default"];
3221
- }
3222
- });
3223
3271
  Object.defineProperty(exports, "OneLeadResponse200", {
3224
3272
  enumerable: true,
3225
3273
  get: function get() {
3226
3274
  return _OneLeadResponse["default"];
3227
3275
  }
3228
3276
  });
3229
- Object.defineProperty(exports, "OptionalNameObject", {
3230
- enumerable: true,
3231
- get: function get() {
3232
- return _OptionalNameObject["default"];
3233
- }
3234
- });
3235
3277
  Object.defineProperty(exports, "OrgAndOwnerId", {
3236
3278
  enumerable: true,
3237
3279
  get: function get() {
@@ -4060,12 +4102,6 @@ Object.defineProperty(exports, "ProductWithArrayPrices", {
4060
4102
  return _ProductWithArrayPrices["default"];
4061
4103
  }
4062
4104
  });
4063
- Object.defineProperty(exports, "ProductWithObjectPrices", {
4064
- enumerable: true,
4065
- get: function get() {
4066
- return _ProductWithObjectPrices["default"];
4067
- }
4068
- });
4069
4105
  Object.defineProperty(exports, "ProductsApi", {
4070
4106
  enumerable: true,
4071
4107
  get: function get() {
@@ -4354,12 +4390,6 @@ Object.defineProperty(exports, "RelationshipOrganizationInfoItemWithActiveFlag",
4354
4390
  return _RelationshipOrganizationInfoItemWithActiveFlag["default"];
4355
4391
  }
4356
4392
  });
4357
- Object.defineProperty(exports, "RequiredNameObject", {
4358
- enumerable: true,
4359
- get: function get() {
4360
- return _RequiredNameObject["default"];
4361
- }
4362
- });
4363
4393
  Object.defineProperty(exports, "RequiredPostProjectParameters", {
4364
4394
  enumerable: true,
4365
4395
  get: function get() {
@@ -5100,6 +5130,7 @@ var _AddProductAttachmentDetails = _interopRequireDefault(require("./model/AddPr
5100
5130
  var _AddProductAttachmentDetailsAllOf = _interopRequireDefault(require("./model/AddProductAttachmentDetailsAllOf"));
5101
5131
  var _AddProductFollowerRequest = _interopRequireDefault(require("./model/AddProductFollowerRequest"));
5102
5132
  var _AddProductRequestBody = _interopRequireDefault(require("./model/AddProductRequestBody"));
5133
+ var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./model/AddProductRequestBodyAllOf"));
5103
5134
  var _AddProjectResponse = _interopRequireDefault(require("./model/AddProjectResponse201"));
5104
5135
  var _AddRole = _interopRequireDefault(require("./model/AddRole"));
5105
5136
  var _AddRoleAssignmentRequest = _interopRequireDefault(require("./model/AddRoleAssignmentRequest"));
@@ -5163,10 +5194,13 @@ var _BaseUserMeAllOfLanguage = _interopRequireDefault(require("./model/BaseUserM
5163
5194
  var _BaseWebhook = _interopRequireDefault(require("./model/BaseWebhook"));
5164
5195
  var _BasicDeal = _interopRequireDefault(require("./model/BasicDeal"));
5165
5196
  var _BasicDealProduct = _interopRequireDefault(require("./model/BasicDealProduct"));
5197
+ var _BasicDealProductAllOf = _interopRequireDefault(require("./model/BasicDealProductAllOf"));
5166
5198
  var _BasicGoal = _interopRequireDefault(require("./model/BasicGoal"));
5167
5199
  var _BasicOrganization = _interopRequireDefault(require("./model/BasicOrganization"));
5168
5200
  var _BasicPerson = _interopRequireDefault(require("./model/BasicPerson"));
5169
5201
  var _BasicPersonEmail = _interopRequireDefault(require("./model/BasicPersonEmail"));
5202
+ var _BillingFrequency = _interopRequireDefault(require("./model/BillingFrequency"));
5203
+ var _BillingFrequency2 = _interopRequireDefault(require("./model/BillingFrequency1"));
5170
5204
  var _BulkDeleteResponse = _interopRequireDefault(require("./model/BulkDeleteResponse"));
5171
5205
  var _BulkDeleteResponseAllOf = _interopRequireDefault(require("./model/BulkDeleteResponseAllOf"));
5172
5206
  var _BulkDeleteResponseAllOfData = _interopRequireDefault(require("./model/BulkDeleteResponseAllOfData"));
@@ -5220,6 +5254,7 @@ var _DealPersonDataEmail = _interopRequireDefault(require("./model/DealPersonDat
5220
5254
  var _DealPersonDataPhone = _interopRequireDefault(require("./model/DealPersonDataPhone"));
5221
5255
  var _DealPersonDataWithId = _interopRequireDefault(require("./model/DealPersonDataWithId"));
5222
5256
  var _DealPersonDataWithIdAllOf = _interopRequireDefault(require("./model/DealPersonDataWithIdAllOf"));
5257
+ var _DealProductRequestBody = _interopRequireDefault(require("./model/DealProductRequestBody"));
5223
5258
  var _DealProductUnitDuration = _interopRequireDefault(require("./model/DealProductUnitDuration"));
5224
5259
  var _DealSearchItem = _interopRequireDefault(require("./model/DealSearchItem"));
5225
5260
  var _DealSearchItemItem = _interopRequireDefault(require("./model/DealSearchItemItem"));
@@ -5535,9 +5570,13 @@ var _MergePersonsResponse = _interopRequireDefault(require("./model/MergePersons
5535
5570
  var _MergePersonsResponseAllOf = _interopRequireDefault(require("./model/MergePersonsResponseAllOf"));
5536
5571
  var _MessageObject = _interopRequireDefault(require("./model/MessageObject"));
5537
5572
  var _MessageObjectAttachments = _interopRequireDefault(require("./model/MessageObjectAttachments"));
5573
+ var _NameObject = _interopRequireDefault(require("./model/NameObject"));
5538
5574
  var _NewDeal = _interopRequireDefault(require("./model/NewDeal"));
5539
5575
  var _NewDealParameters = _interopRequireDefault(require("./model/NewDealParameters"));
5540
5576
  var _NewDealProduct = _interopRequireDefault(require("./model/NewDealProduct"));
5577
+ var _NewDealProductAllOf = _interopRequireDefault(require("./model/NewDealProductAllOf"));
5578
+ var _NewDealProductAllOf2 = _interopRequireDefault(require("./model/NewDealProductAllOf1"));
5579
+ var _NewDealProductAllOf3 = _interopRequireDefault(require("./model/NewDealProductAllOf2"));
5541
5580
  var _NewFollowerResponse = _interopRequireDefault(require("./model/NewFollowerResponse"));
5542
5581
  var _NewFollowerResponseData = _interopRequireDefault(require("./model/NewFollowerResponseData"));
5543
5582
  var _NewGoal = _interopRequireDefault(require("./model/NewGoal"));
@@ -5558,9 +5597,7 @@ var _NoteParams = _interopRequireDefault(require("./model/NoteParams"));
5558
5597
  var _NumberBoolean = _interopRequireDefault(require("./model/NumberBoolean"));
5559
5598
  var _NumberBooleanDefault = _interopRequireDefault(require("./model/NumberBooleanDefault0"));
5560
5599
  var _NumberBooleanDefault2 = _interopRequireDefault(require("./model/NumberBooleanDefault1"));
5561
- var _ObjectPrices = _interopRequireDefault(require("./model/ObjectPrices"));
5562
5600
  var _OneLeadResponse = _interopRequireDefault(require("./model/OneLeadResponse200"));
5563
- var _OptionalNameObject = _interopRequireDefault(require("./model/OptionalNameObject"));
5564
5601
  var _OrgAndOwnerId = _interopRequireDefault(require("./model/OrgAndOwnerId"));
5565
5602
  var _OrganizationAddressInfo = _interopRequireDefault(require("./model/OrganizationAddressInfo"));
5566
5603
  var _OrganizationCountAndAddressInfo = _interopRequireDefault(require("./model/OrganizationCountAndAddressInfo"));
@@ -5691,7 +5728,6 @@ var _ProductSearchResponse = _interopRequireDefault(require("./model/ProductSear
5691
5728
  var _ProductSearchResponseAllOf = _interopRequireDefault(require("./model/ProductSearchResponseAllOf"));
5692
5729
  var _ProductSearchResponseAllOfData = _interopRequireDefault(require("./model/ProductSearchResponseAllOfData"));
5693
5730
  var _ProductWithArrayPrices = _interopRequireDefault(require("./model/ProductWithArrayPrices"));
5694
- var _ProductWithObjectPrices = _interopRequireDefault(require("./model/ProductWithObjectPrices"));
5695
5731
  var _ProductsResponse = _interopRequireDefault(require("./model/ProductsResponse"));
5696
5732
  var _ProjectBoardObject = _interopRequireDefault(require("./model/ProjectBoardObject"));
5697
5733
  var _ProjectGroupsObject = _interopRequireDefault(require("./model/ProjectGroupsObject"));
@@ -5736,7 +5772,6 @@ var _RelatedUserData = _interopRequireDefault(require("./model/RelatedUserData")
5736
5772
  var _RelationshipOrganizationInfoItem = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItem"));
5737
5773
  var _RelationshipOrganizationInfoItemAllOf = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemAllOf"));
5738
5774
  var _RelationshipOrganizationInfoItemWithActiveFlag = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemWithActiveFlag"));
5739
- var _RequiredNameObject = _interopRequireDefault(require("./model/RequiredNameObject"));
5740
5775
  var _RequiredPostProjectParameters = _interopRequireDefault(require("./model/RequiredPostProjectParameters"));
5741
5776
  var _RequiredPostTaskParameters = _interopRequireDefault(require("./model/RequiredPostTaskParameters"));
5742
5777
  var _RequredTitleParameter = _interopRequireDefault(require("./model/RequredTitleParameter"));
@@ -9,6 +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 _AddProductAttachmentDetailsAllOf = _interopRequireDefault(require("./AddProductAttachmentDetailsAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
12
13
  var _ProductAttachmentDetails = _interopRequireDefault(require("./ProductAttachmentDetails"));
13
14
  /**
14
15
  * Pipedrive API v1
@@ -33,15 +34,12 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
33
34
  * @alias module:model/AddProductAttachmentDetails
34
35
  * @implements module:model/ProductAttachmentDetails
35
36
  * @implements module:model/AddProductAttachmentDetailsAllOf
36
- * @param productId {Number} The ID of the product
37
- * @param itemPrice {Number} The price at which this product will be added to the deal
38
- * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
39
37
  */
40
- function AddProductAttachmentDetails(productId, itemPrice, quantity) {
38
+ function AddProductAttachmentDetails() {
41
39
  (0, _classCallCheck2["default"])(this, AddProductAttachmentDetails);
42
- _ProductAttachmentDetails["default"].initialize(this, productId, itemPrice, quantity);
40
+ _ProductAttachmentDetails["default"].initialize(this);
43
41
  _AddProductAttachmentDetailsAllOf["default"].initialize(this);
44
- AddProductAttachmentDetails.initialize(this, productId, itemPrice, quantity);
42
+ AddProductAttachmentDetails.initialize(this);
45
43
  }
46
44
 
47
45
  /**
@@ -51,11 +49,7 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
51
49
  */
52
50
  (0, _createClass2["default"])(AddProductAttachmentDetails, null, [{
53
51
  key: "initialize",
54
- value: function initialize(obj, productId, itemPrice, quantity) {
55
- obj['product_id'] = productId;
56
- obj['item_price'] = itemPrice;
57
- obj['quantity'] = quantity;
58
- }
52
+ value: function initialize(obj) {}
59
53
 
60
54
  /**
61
55
  * Constructs a <code>AddProductAttachmentDetails</code> from a plain JavaScript object, optionally creating a new instance.
@@ -119,6 +113,18 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
119
113
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
120
114
  delete data['enabled_flag'];
121
115
  }
116
+ if (data.hasOwnProperty('billing_frequency')) {
117
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
118
+ delete data['billing_frequency'];
119
+ }
120
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
121
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
122
+ delete data['billing_frequency_cycles'];
123
+ }
124
+ if (data.hasOwnProperty('billing_start_date')) {
125
+ obj['billing_start_date'] = _ApiClient["default"].convertToType(data['billing_start_date'], 'String');
126
+ delete data['billing_start_date'];
127
+ }
122
128
  if (data.hasOwnProperty('id')) {
123
129
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
124
130
  delete data['id'];
@@ -187,21 +193,21 @@ AddProductAttachmentDetails.prototype['item_price'] = undefined;
187
193
  AddProductAttachmentDetails.prototype['quantity'] = undefined;
188
194
 
189
195
  /**
190
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
196
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
191
197
  * @member {Number} discount
192
198
  * @default 0
193
199
  */
194
200
  AddProductAttachmentDetails.prototype['discount'] = 0;
195
201
 
196
202
  /**
197
- * The type of the discount's value.
203
+ * The type of the discount's value
198
204
  * @member {module:model/AddProductAttachmentDetails.DiscountTypeEnum} discount_type
199
205
  * @default 'percentage'
200
206
  */
201
207
  AddProductAttachmentDetails.prototype['discount_type'] = 'percentage';
202
208
 
203
209
  /**
204
- * The duration of the product. If omitted, will be set to 1.
210
+ * The duration of the product. If omitted, will be set to 1
205
211
  * @member {Number} duration
206
212
  * @default 1
207
213
  */
@@ -214,7 +220,7 @@ AddProductAttachmentDetails.prototype['duration'] = 1;
214
220
  AddProductAttachmentDetails.prototype['duration_unit'] = undefined;
215
221
 
216
222
  /**
217
- * The ID of the product variation to use. When omitted, no variation will be used.
223
+ * The ID of the product variation to use. When omitted, no variation will be used
218
224
  * @member {Number} product_variation_id
219
225
  */
220
226
  AddProductAttachmentDetails.prototype['product_variation_id'] = undefined;
@@ -232,18 +238,35 @@ AddProductAttachmentDetails.prototype['comments'] = undefined;
232
238
  AddProductAttachmentDetails.prototype['tax'] = undefined;
233
239
 
234
240
  /**
235
- * 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.
241
+ * 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
236
242
  * @member {module:model/AddProductAttachmentDetails.TaxMethodEnum} tax_method
237
243
  */
238
244
  AddProductAttachmentDetails.prototype['tax_method'] = undefined;
239
245
 
240
246
  /**
241
- * 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.
247
+ * 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
242
248
  * @member {Boolean} enabled_flag
243
249
  * @default true
244
250
  */
245
251
  AddProductAttachmentDetails.prototype['enabled_flag'] = true;
246
252
 
253
+ /**
254
+ * @member {module:model/BillingFrequency} billing_frequency
255
+ */
256
+ AddProductAttachmentDetails.prototype['billing_frequency'] = undefined;
257
+
258
+ /**
259
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
260
+ * @member {Number} billing_frequency_cycles
261
+ */
262
+ AddProductAttachmentDetails.prototype['billing_frequency_cycles'] = undefined;
263
+
264
+ /**
265
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
266
+ * @member {String} billing_start_date
267
+ */
268
+ AddProductAttachmentDetails.prototype['billing_start_date'] = undefined;
269
+
247
270
  /**
248
271
  * The ID of the deal-product (the ID of the product attached to the deal)
249
272
  * @member {Number} id
@@ -321,19 +344,19 @@ _ProductAttachmentDetails["default"].prototype['item_price'] = undefined;
321
344
  */
322
345
  _ProductAttachmentDetails["default"].prototype['quantity'] = undefined;
323
346
  /**
324
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
347
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
325
348
  * @member {Number} discount
326
349
  * @default 0
327
350
  */
328
351
  _ProductAttachmentDetails["default"].prototype['discount'] = 0;
329
352
  /**
330
- * The type of the discount's value.
353
+ * The type of the discount's value
331
354
  * @member {module:model/ProductAttachmentDetails.DiscountTypeEnum} discount_type
332
355
  * @default 'percentage'
333
356
  */
334
357
  _ProductAttachmentDetails["default"].prototype['discount_type'] = 'percentage';
335
358
  /**
336
- * The duration of the product. If omitted, will be set to 1.
359
+ * The duration of the product. If omitted, will be set to 1
337
360
  * @member {Number} duration
338
361
  * @default 1
339
362
  */
@@ -344,7 +367,7 @@ _ProductAttachmentDetails["default"].prototype['duration'] = 1;
344
367
  */
345
368
  _ProductAttachmentDetails["default"].prototype['duration_unit'] = undefined;
346
369
  /**
347
- * The ID of the product variation to use. When omitted, no variation will be used.
370
+ * The ID of the product variation to use. When omitted, no variation will be used
348
371
  * @member {Number} product_variation_id
349
372
  */
350
373
  _ProductAttachmentDetails["default"].prototype['product_variation_id'] = undefined;
@@ -359,16 +382,30 @@ _ProductAttachmentDetails["default"].prototype['comments'] = undefined;
359
382
  */
360
383
  _ProductAttachmentDetails["default"].prototype['tax'] = undefined;
361
384
  /**
362
- * 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.
385
+ * 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
363
386
  * @member {module:model/ProductAttachmentDetails.TaxMethodEnum} tax_method
364
387
  */
365
388
  _ProductAttachmentDetails["default"].prototype['tax_method'] = undefined;
366
389
  /**
367
- * 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.
390
+ * 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
368
391
  * @member {Boolean} enabled_flag
369
392
  * @default true
370
393
  */
371
394
  _ProductAttachmentDetails["default"].prototype['enabled_flag'] = true;
395
+ /**
396
+ * @member {module:model/BillingFrequency} billing_frequency
397
+ */
398
+ _ProductAttachmentDetails["default"].prototype['billing_frequency'] = undefined;
399
+ /**
400
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
401
+ * @member {Number} billing_frequency_cycles
402
+ */
403
+ _ProductAttachmentDetails["default"].prototype['billing_frequency_cycles'] = undefined;
404
+ /**
405
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
406
+ * @member {String} billing_start_date
407
+ */
408
+ _ProductAttachmentDetails["default"].prototype['billing_start_date'] = undefined;
372
409
  /**
373
410
  * The ID of the deal-product (the ID of the product attached to the deal)
374
411
  * @member {Number} id
@@ -8,8 +8,11 @@ exports["default"] = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./AddProductRequestBodyAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
13
+ var _NameObject = _interopRequireDefault(require("./NameObject"));
14
+ var _NewDealProductAllOf = _interopRequireDefault(require("./NewDealProductAllOf1"));
11
15
  var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
12
- var _RequiredNameObject = _interopRequireDefault(require("./RequiredNameObject"));
13
16
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
14
17
  /**
15
18
  * Pipedrive API v1
@@ -32,15 +35,18 @@ var AddProductRequestBody = /*#__PURE__*/function () {
32
35
  /**
33
36
  * Constructs a new <code>AddProductRequestBody</code>.
34
37
  * @alias module:model/AddProductRequestBody
35
- * @implements module:model/RequiredNameObject
38
+ * @implements module:model/NameObject
36
39
  * @implements module:model/ProductRequest
37
- * @param name {String} The name of the product
40
+ * @implements module:model/AddProductRequestBodyAllOf
41
+ * @implements module:model/NewDealProductAllOf1
38
42
  */
39
- function AddProductRequestBody(name) {
43
+ function AddProductRequestBody() {
40
44
  (0, _classCallCheck2["default"])(this, AddProductRequestBody);
41
- _RequiredNameObject["default"].initialize(this, name);
45
+ _NameObject["default"].initialize(this);
42
46
  _ProductRequest["default"].initialize(this);
43
- AddProductRequestBody.initialize(this, name);
47
+ _AddProductRequestBodyAllOf["default"].initialize(this);
48
+ _NewDealProductAllOf["default"].initialize(this);
49
+ AddProductRequestBody.initialize(this);
44
50
  }
45
51
 
46
52
  /**
@@ -50,9 +56,7 @@ var AddProductRequestBody = /*#__PURE__*/function () {
50
56
  */
51
57
  (0, _createClass2["default"])(AddProductRequestBody, null, [{
52
58
  key: "initialize",
53
- value: function initialize(obj, name) {
54
- obj['name'] = name;
55
- }
59
+ value: function initialize(obj) {}
56
60
 
57
61
  /**
58
62
  * Constructs a <code>AddProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
@@ -66,8 +70,10 @@ var AddProductRequestBody = /*#__PURE__*/function () {
66
70
  value: function constructFromObject(data, obj) {
67
71
  if (data) {
68
72
  obj = obj || new AddProductRequestBody();
69
- _RequiredNameObject["default"].constructFromObject(data, obj);
73
+ _NameObject["default"].constructFromObject(data, obj);
70
74
  _ProductRequest["default"].constructFromObject(data, obj);
75
+ _AddProductRequestBodyAllOf["default"].constructFromObject(data, obj);
76
+ _NewDealProductAllOf["default"].constructFromObject(data, obj);
71
77
  if (data.hasOwnProperty('name')) {
72
78
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
73
79
  delete data['name'];
@@ -104,6 +110,14 @@ var AddProductRequestBody = /*#__PURE__*/function () {
104
110
  obj['prices'] = _ApiClient["default"].convertToType(data['prices'], [Object]);
105
111
  delete data['prices'];
106
112
  }
113
+ if (data.hasOwnProperty('billing_frequency')) {
114
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
115
+ delete data['billing_frequency'];
116
+ }
117
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
118
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
119
+ delete data['billing_frequency_cycles'];
120
+ }
107
121
  if (Object.keys(data).length > 0) {
108
122
  Object.assign(obj, data);
109
123
  }
@@ -159,7 +173,7 @@ AddProductRequestBody.prototype['selectable'] = true;
159
173
  AddProductRequestBody.prototype['visible_to'] = undefined;
160
174
 
161
175
  /**
162
- * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
176
+ * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
163
177
  * @member {Number} owner_id
164
178
  */
165
179
  AddProductRequestBody.prototype['owner_id'] = undefined;
@@ -170,12 +184,23 @@ AddProductRequestBody.prototype['owner_id'] = undefined;
170
184
  */
171
185
  AddProductRequestBody.prototype['prices'] = undefined;
172
186
 
173
- // Implement RequiredNameObject interface:
187
+ /**
188
+ * @member {module:model/BillingFrequency1} billing_frequency
189
+ */
190
+ AddProductRequestBody.prototype['billing_frequency'] = undefined;
191
+
192
+ /**
193
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
194
+ * @member {Number} billing_frequency_cycles
195
+ */
196
+ AddProductRequestBody.prototype['billing_frequency_cycles'] = undefined;
197
+
198
+ // Implement NameObject interface:
174
199
  /**
175
200
  * The name of the product
176
201
  * @member {String} name
177
202
  */
178
- _RequiredNameObject["default"].prototype['name'] = undefined;
203
+ _NameObject["default"].prototype['name'] = undefined;
179
204
  // Implement ProductRequest interface:
180
205
  /**
181
206
  * The product code
@@ -211,7 +236,7 @@ _ProductRequest["default"].prototype['selectable'] = true;
211
236
  */
212
237
  _ProductRequest["default"].prototype['visible_to'] = undefined;
213
238
  /**
214
- * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used.
239
+ * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used
215
240
  * @member {Number} owner_id
216
241
  */
217
242
  _ProductRequest["default"].prototype['owner_id'] = undefined;
@@ -220,5 +245,16 @@ _ProductRequest["default"].prototype['owner_id'] = undefined;
220
245
  * @member {Array.<Object>} prices
221
246
  */
222
247
  _ProductRequest["default"].prototype['prices'] = undefined;
248
+ // Implement AddProductRequestBodyAllOf interface:
249
+ /**
250
+ * @member {module:model/BillingFrequency1} billing_frequency
251
+ */
252
+ _AddProductRequestBodyAllOf["default"].prototype['billing_frequency'] = undefined;
253
+ // Implement NewDealProductAllOf1 interface:
254
+ /**
255
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
256
+ * @member {Number} billing_frequency_cycles
257
+ */
258
+ _NewDealProductAllOf["default"].prototype['billing_frequency_cycles'] = undefined;
223
259
  var _default = AddProductRequestBody;
224
260
  exports["default"] = _default;