pipedrive 22.6.0 → 22.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -6
- package/dist/ApiClient.js +8 -4
- package/dist/api/ActivitiesApi.js +12 -1
- package/dist/api/ActivityFieldsApi.js +12 -1
- package/dist/api/ActivityTypesApi.js +12 -1
- package/dist/api/BillingApi.js +12 -1
- package/dist/api/CallLogsApi.js +12 -1
- package/dist/api/ChannelsApi.js +12 -1
- package/dist/api/CurrenciesApi.js +12 -1
- package/dist/api/DealFieldsApi.js +12 -1
- package/dist/api/DealsApi.js +12 -1
- package/dist/api/FilesApi.js +12 -1
- package/dist/api/FiltersApi.js +12 -1
- package/dist/api/GlobalMessagesApi.js +12 -1
- package/dist/api/GoalsApi.js +12 -1
- package/dist/api/ItemSearchApi.js +12 -1
- package/dist/api/LeadLabelsApi.js +12 -1
- package/dist/api/LeadSourcesApi.js +12 -1
- package/dist/api/LeadsApi.js +12 -1
- package/dist/api/LegacyTeamsApi.js +12 -1
- package/dist/api/MailboxApi.js +12 -1
- package/dist/api/MeetingsApi.js +12 -1
- package/dist/api/NoteFieldsApi.js +12 -1
- package/dist/api/NotesApi.js +12 -1
- package/dist/api/OrganizationFieldsApi.js +12 -1
- package/dist/api/OrganizationRelationshipsApi.js +12 -1
- package/dist/api/OrganizationsApi.js +12 -1
- package/dist/api/PermissionSetsApi.js +12 -1
- package/dist/api/PersonFieldsApi.js +12 -1
- package/dist/api/PersonsApi.js +12 -1
- package/dist/api/PipelinesApi.js +12 -1
- package/dist/api/ProductFieldsApi.js +12 -1
- package/dist/api/ProductsApi.js +12 -1
- package/dist/api/ProjectTemplatesApi.js +12 -1
- package/dist/api/ProjectsApi.js +12 -1
- package/dist/api/RecentsApi.js +12 -1
- package/dist/api/RolesApi.js +12 -1
- package/dist/api/SearchResultsApi.js +12 -1
- package/dist/api/StagesApi.js +12 -1
- package/dist/api/SubscriptionsApi.js +12 -1
- package/dist/api/TasksApi.js +12 -1
- package/dist/api/TeamsApi.js +12 -1
- package/dist/api/UserConnectionsApi.js +12 -1
- package/dist/api/UserSettingsApi.js +12 -1
- package/dist/api/UsersApi.js +12 -1
- package/dist/api/WebhooksApi.js +12 -1
- package/dist/index.js +63 -42
- package/dist/model/AddProductAttachmentDetails.js +60 -23
- package/dist/model/AddProductRequestBody.js +50 -14
- package/dist/model/AddProductRequestBodyAllOf.js +78 -0
- package/dist/model/BaseProduct.js +60 -1
- package/dist/model/BaseUser.js +10 -0
- package/dist/model/BaseUserMe.js +15 -0
- package/dist/model/BasicDealProduct.js +139 -16
- package/dist/model/BasicDealProductAllOf.js +235 -0
- package/dist/model/BillingFrequency.js +86 -0
- package/dist/model/BillingFrequency1.js +86 -0
- package/dist/model/DealProductRequestBody.js +235 -0
- package/dist/model/DealProductUnitDuration.js +20 -0
- package/dist/model/Field.js +10 -0
- package/dist/model/FieldTypeAsString.js +68 -0
- package/dist/model/FilterType.js +28 -0
- package/dist/model/IconKey.js +160 -0
- package/dist/model/LeadLabelColor.js +24 -0
- package/dist/model/ListPermittedUsersResponse.js +0 -19
- package/dist/model/MarketingStatus.js +16 -0
- package/dist/model/NameObject.js +78 -0
- package/dist/model/NewDealProduct.js +95 -43
- package/dist/model/NewDealProductAllOf.js +9 -12
- package/dist/model/NewDealProductAllOf1.js +78 -0
- package/dist/model/NewDealProductAllOf2.js +78 -0
- package/dist/model/NumberBoolean.js +8 -0
- package/dist/model/NumberBooleanDefault0.js +8 -0
- package/dist/model/NumberBooleanDefault1.js +8 -0
- package/dist/model/PersonListProduct.js +1 -1
- package/dist/model/ProductAttachmentDetails.js +60 -23
- package/dist/model/ProductField.js +15 -0
- package/dist/model/ProductFieldAllOf.js +10 -0
- package/dist/model/ProductListItem.js +6 -6
- package/dist/model/ProductRequest.js +1 -1
- package/dist/model/ProductWithArrayPrices.js +72 -2
- package/dist/model/UpdateDealProduct.js +135 -5
- package/dist/model/UpdateProductRequestBody.js +50 -14
- package/dist/model/UpdateProductResponse.js +3 -3
- package/dist/model/VisibleTo.js +16 -0
- package/package.json +1 -1
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() {
|
@@ -2776,18 +2806,6 @@ Object.defineProperty(exports, "ListPermittedUsersResponse1AllOf", {
|
|
2776
2806
|
return _ListPermittedUsersResponse1AllOf["default"];
|
2777
2807
|
}
|
2778
2808
|
});
|
2779
|
-
Object.defineProperty(exports, "ListPermittedUsersResponseAllOf", {
|
2780
|
-
enumerable: true,
|
2781
|
-
get: function get() {
|
2782
|
-
return _ListPermittedUsersResponseAllOf["default"];
|
2783
|
-
}
|
2784
|
-
});
|
2785
|
-
Object.defineProperty(exports, "ListPermittedUsersResponseAllOfData", {
|
2786
|
-
enumerable: true,
|
2787
|
-
get: function get() {
|
2788
|
-
return _ListPermittedUsersResponseAllOfData["default"];
|
2789
|
-
}
|
2790
|
-
});
|
2791
2809
|
Object.defineProperty(exports, "ListPersonProductsResponse", {
|
2792
2810
|
enumerable: true,
|
2793
2811
|
get: function get() {
|
@@ -3076,6 +3094,12 @@ Object.defineProperty(exports, "MessageObjectAttachments", {
|
|
3076
3094
|
return _MessageObjectAttachments["default"];
|
3077
3095
|
}
|
3078
3096
|
});
|
3097
|
+
Object.defineProperty(exports, "NameObject", {
|
3098
|
+
enumerable: true,
|
3099
|
+
get: function get() {
|
3100
|
+
return _NameObject["default"];
|
3101
|
+
}
|
3102
|
+
});
|
3079
3103
|
Object.defineProperty(exports, "NewDeal", {
|
3080
3104
|
enumerable: true,
|
3081
3105
|
get: function get() {
|
@@ -3094,6 +3118,24 @@ Object.defineProperty(exports, "NewDealProduct", {
|
|
3094
3118
|
return _NewDealProduct["default"];
|
3095
3119
|
}
|
3096
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
|
+
});
|
3097
3139
|
Object.defineProperty(exports, "NewFollowerResponse", {
|
3098
3140
|
enumerable: true,
|
3099
3141
|
get: function get() {
|
@@ -3226,24 +3268,12 @@ Object.defineProperty(exports, "NumberBooleanDefault1", {
|
|
3226
3268
|
return _NumberBooleanDefault2["default"];
|
3227
3269
|
}
|
3228
3270
|
});
|
3229
|
-
Object.defineProperty(exports, "ObjectPrices", {
|
3230
|
-
enumerable: true,
|
3231
|
-
get: function get() {
|
3232
|
-
return _ObjectPrices["default"];
|
3233
|
-
}
|
3234
|
-
});
|
3235
3271
|
Object.defineProperty(exports, "OneLeadResponse200", {
|
3236
3272
|
enumerable: true,
|
3237
3273
|
get: function get() {
|
3238
3274
|
return _OneLeadResponse["default"];
|
3239
3275
|
}
|
3240
3276
|
});
|
3241
|
-
Object.defineProperty(exports, "OptionalNameObject", {
|
3242
|
-
enumerable: true,
|
3243
|
-
get: function get() {
|
3244
|
-
return _OptionalNameObject["default"];
|
3245
|
-
}
|
3246
|
-
});
|
3247
3277
|
Object.defineProperty(exports, "OrgAndOwnerId", {
|
3248
3278
|
enumerable: true,
|
3249
3279
|
get: function get() {
|
@@ -4072,12 +4102,6 @@ Object.defineProperty(exports, "ProductWithArrayPrices", {
|
|
4072
4102
|
return _ProductWithArrayPrices["default"];
|
4073
4103
|
}
|
4074
4104
|
});
|
4075
|
-
Object.defineProperty(exports, "ProductWithObjectPrices", {
|
4076
|
-
enumerable: true,
|
4077
|
-
get: function get() {
|
4078
|
-
return _ProductWithObjectPrices["default"];
|
4079
|
-
}
|
4080
|
-
});
|
4081
4105
|
Object.defineProperty(exports, "ProductsApi", {
|
4082
4106
|
enumerable: true,
|
4083
4107
|
get: function get() {
|
@@ -4366,12 +4390,6 @@ Object.defineProperty(exports, "RelationshipOrganizationInfoItemWithActiveFlag",
|
|
4366
4390
|
return _RelationshipOrganizationInfoItemWithActiveFlag["default"];
|
4367
4391
|
}
|
4368
4392
|
});
|
4369
|
-
Object.defineProperty(exports, "RequiredNameObject", {
|
4370
|
-
enumerable: true,
|
4371
|
-
get: function get() {
|
4372
|
-
return _RequiredNameObject["default"];
|
4373
|
-
}
|
4374
|
-
});
|
4375
4393
|
Object.defineProperty(exports, "RequiredPostProjectParameters", {
|
4376
4394
|
enumerable: true,
|
4377
4395
|
get: function get() {
|
@@ -5112,6 +5130,7 @@ var _AddProductAttachmentDetails = _interopRequireDefault(require("./model/AddPr
|
|
5112
5130
|
var _AddProductAttachmentDetailsAllOf = _interopRequireDefault(require("./model/AddProductAttachmentDetailsAllOf"));
|
5113
5131
|
var _AddProductFollowerRequest = _interopRequireDefault(require("./model/AddProductFollowerRequest"));
|
5114
5132
|
var _AddProductRequestBody = _interopRequireDefault(require("./model/AddProductRequestBody"));
|
5133
|
+
var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./model/AddProductRequestBodyAllOf"));
|
5115
5134
|
var _AddProjectResponse = _interopRequireDefault(require("./model/AddProjectResponse201"));
|
5116
5135
|
var _AddRole = _interopRequireDefault(require("./model/AddRole"));
|
5117
5136
|
var _AddRoleAssignmentRequest = _interopRequireDefault(require("./model/AddRoleAssignmentRequest"));
|
@@ -5175,10 +5194,13 @@ var _BaseUserMeAllOfLanguage = _interopRequireDefault(require("./model/BaseUserM
|
|
5175
5194
|
var _BaseWebhook = _interopRequireDefault(require("./model/BaseWebhook"));
|
5176
5195
|
var _BasicDeal = _interopRequireDefault(require("./model/BasicDeal"));
|
5177
5196
|
var _BasicDealProduct = _interopRequireDefault(require("./model/BasicDealProduct"));
|
5197
|
+
var _BasicDealProductAllOf = _interopRequireDefault(require("./model/BasicDealProductAllOf"));
|
5178
5198
|
var _BasicGoal = _interopRequireDefault(require("./model/BasicGoal"));
|
5179
5199
|
var _BasicOrganization = _interopRequireDefault(require("./model/BasicOrganization"));
|
5180
5200
|
var _BasicPerson = _interopRequireDefault(require("./model/BasicPerson"));
|
5181
5201
|
var _BasicPersonEmail = _interopRequireDefault(require("./model/BasicPersonEmail"));
|
5202
|
+
var _BillingFrequency = _interopRequireDefault(require("./model/BillingFrequency"));
|
5203
|
+
var _BillingFrequency2 = _interopRequireDefault(require("./model/BillingFrequency1"));
|
5182
5204
|
var _BulkDeleteResponse = _interopRequireDefault(require("./model/BulkDeleteResponse"));
|
5183
5205
|
var _BulkDeleteResponseAllOf = _interopRequireDefault(require("./model/BulkDeleteResponseAllOf"));
|
5184
5206
|
var _BulkDeleteResponseAllOfData = _interopRequireDefault(require("./model/BulkDeleteResponseAllOfData"));
|
@@ -5232,6 +5254,7 @@ var _DealPersonDataEmail = _interopRequireDefault(require("./model/DealPersonDat
|
|
5232
5254
|
var _DealPersonDataPhone = _interopRequireDefault(require("./model/DealPersonDataPhone"));
|
5233
5255
|
var _DealPersonDataWithId = _interopRequireDefault(require("./model/DealPersonDataWithId"));
|
5234
5256
|
var _DealPersonDataWithIdAllOf = _interopRequireDefault(require("./model/DealPersonDataWithIdAllOf"));
|
5257
|
+
var _DealProductRequestBody = _interopRequireDefault(require("./model/DealProductRequestBody"));
|
5235
5258
|
var _DealProductUnitDuration = _interopRequireDefault(require("./model/DealProductUnitDuration"));
|
5236
5259
|
var _DealSearchItem = _interopRequireDefault(require("./model/DealSearchItem"));
|
5237
5260
|
var _DealSearchItemItem = _interopRequireDefault(require("./model/DealSearchItemItem"));
|
@@ -5501,8 +5524,6 @@ var _ListMailMessagesResponseAllOfData = _interopRequireDefault(require("./model
|
|
5501
5524
|
var _ListPermittedUsersResponse = _interopRequireDefault(require("./model/ListPermittedUsersResponse"));
|
5502
5525
|
var _ListPermittedUsersResponse2 = _interopRequireDefault(require("./model/ListPermittedUsersResponse1"));
|
5503
5526
|
var _ListPermittedUsersResponse1AllOf = _interopRequireDefault(require("./model/ListPermittedUsersResponse1AllOf"));
|
5504
|
-
var _ListPermittedUsersResponseAllOf = _interopRequireDefault(require("./model/ListPermittedUsersResponseAllOf"));
|
5505
|
-
var _ListPermittedUsersResponseAllOfData = _interopRequireDefault(require("./model/ListPermittedUsersResponseAllOfData"));
|
5506
5527
|
var _ListPersonProductsResponse = _interopRequireDefault(require("./model/ListPersonProductsResponse"));
|
5507
5528
|
var _ListPersonProductsResponseAllOf = _interopRequireDefault(require("./model/ListPersonProductsResponseAllOf"));
|
5508
5529
|
var _ListPersonProductsResponseAllOfDEALID = _interopRequireDefault(require("./model/ListPersonProductsResponseAllOfDEALID"));
|
@@ -5549,9 +5570,13 @@ var _MergePersonsResponse = _interopRequireDefault(require("./model/MergePersons
|
|
5549
5570
|
var _MergePersonsResponseAllOf = _interopRequireDefault(require("./model/MergePersonsResponseAllOf"));
|
5550
5571
|
var _MessageObject = _interopRequireDefault(require("./model/MessageObject"));
|
5551
5572
|
var _MessageObjectAttachments = _interopRequireDefault(require("./model/MessageObjectAttachments"));
|
5573
|
+
var _NameObject = _interopRequireDefault(require("./model/NameObject"));
|
5552
5574
|
var _NewDeal = _interopRequireDefault(require("./model/NewDeal"));
|
5553
5575
|
var _NewDealParameters = _interopRequireDefault(require("./model/NewDealParameters"));
|
5554
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"));
|
5555
5580
|
var _NewFollowerResponse = _interopRequireDefault(require("./model/NewFollowerResponse"));
|
5556
5581
|
var _NewFollowerResponseData = _interopRequireDefault(require("./model/NewFollowerResponseData"));
|
5557
5582
|
var _NewGoal = _interopRequireDefault(require("./model/NewGoal"));
|
@@ -5572,9 +5597,7 @@ var _NoteParams = _interopRequireDefault(require("./model/NoteParams"));
|
|
5572
5597
|
var _NumberBoolean = _interopRequireDefault(require("./model/NumberBoolean"));
|
5573
5598
|
var _NumberBooleanDefault = _interopRequireDefault(require("./model/NumberBooleanDefault0"));
|
5574
5599
|
var _NumberBooleanDefault2 = _interopRequireDefault(require("./model/NumberBooleanDefault1"));
|
5575
|
-
var _ObjectPrices = _interopRequireDefault(require("./model/ObjectPrices"));
|
5576
5600
|
var _OneLeadResponse = _interopRequireDefault(require("./model/OneLeadResponse200"));
|
5577
|
-
var _OptionalNameObject = _interopRequireDefault(require("./model/OptionalNameObject"));
|
5578
5601
|
var _OrgAndOwnerId = _interopRequireDefault(require("./model/OrgAndOwnerId"));
|
5579
5602
|
var _OrganizationAddressInfo = _interopRequireDefault(require("./model/OrganizationAddressInfo"));
|
5580
5603
|
var _OrganizationCountAndAddressInfo = _interopRequireDefault(require("./model/OrganizationCountAndAddressInfo"));
|
@@ -5705,7 +5728,6 @@ var _ProductSearchResponse = _interopRequireDefault(require("./model/ProductSear
|
|
5705
5728
|
var _ProductSearchResponseAllOf = _interopRequireDefault(require("./model/ProductSearchResponseAllOf"));
|
5706
5729
|
var _ProductSearchResponseAllOfData = _interopRequireDefault(require("./model/ProductSearchResponseAllOfData"));
|
5707
5730
|
var _ProductWithArrayPrices = _interopRequireDefault(require("./model/ProductWithArrayPrices"));
|
5708
|
-
var _ProductWithObjectPrices = _interopRequireDefault(require("./model/ProductWithObjectPrices"));
|
5709
5731
|
var _ProductsResponse = _interopRequireDefault(require("./model/ProductsResponse"));
|
5710
5732
|
var _ProjectBoardObject = _interopRequireDefault(require("./model/ProjectBoardObject"));
|
5711
5733
|
var _ProjectGroupsObject = _interopRequireDefault(require("./model/ProjectGroupsObject"));
|
@@ -5750,7 +5772,6 @@ var _RelatedUserData = _interopRequireDefault(require("./model/RelatedUserData")
|
|
5750
5772
|
var _RelationshipOrganizationInfoItem = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItem"));
|
5751
5773
|
var _RelationshipOrganizationInfoItemAllOf = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemAllOf"));
|
5752
5774
|
var _RelationshipOrganizationInfoItemWithActiveFlag = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemWithActiveFlag"));
|
5753
|
-
var _RequiredNameObject = _interopRequireDefault(require("./model/RequiredNameObject"));
|
5754
5775
|
var _RequiredPostProjectParameters = _interopRequireDefault(require("./model/RequiredPostProjectParameters"));
|
5755
5776
|
var _RequiredPostTaskParameters = _interopRequireDefault(require("./model/RequiredPostTaskParameters"));
|
5756
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(
|
38
|
+
function AddProductAttachmentDetails() {
|
41
39
|
(0, _classCallCheck2["default"])(this, AddProductAttachmentDetails);
|
42
|
-
_ProductAttachmentDetails["default"].initialize(this
|
40
|
+
_ProductAttachmentDetails["default"].initialize(this);
|
43
41
|
_AddProductAttachmentDetailsAllOf["default"].initialize(this);
|
44
|
-
AddProductAttachmentDetails.initialize(this
|
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
|
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/
|
38
|
+
* @implements module:model/NameObject
|
36
39
|
* @implements module:model/ProductRequest
|
37
|
-
* @
|
40
|
+
* @implements module:model/AddProductRequestBodyAllOf
|
41
|
+
* @implements module:model/NewDealProductAllOf1
|
38
42
|
*/
|
39
|
-
function AddProductRequestBody(
|
43
|
+
function AddProductRequestBody() {
|
40
44
|
(0, _classCallCheck2["default"])(this, AddProductRequestBody);
|
41
|
-
|
45
|
+
_NameObject["default"].initialize(this);
|
42
46
|
_ProductRequest["default"].initialize(this);
|
43
|
-
|
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
|
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
|
-
|
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
|
-
|
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
|
-
|
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;
|
@@ -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
|
+
var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency1"));
|
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 AddProductRequestBodyAllOf model module.
|
26
|
+
* @module model/AddProductRequestBodyAllOf
|
27
|
+
* @version 1.0.0
|
28
|
+
*/
|
29
|
+
var AddProductRequestBodyAllOf = /*#__PURE__*/function () {
|
30
|
+
/**
|
31
|
+
* Constructs a new <code>AddProductRequestBodyAllOf</code>.
|
32
|
+
* @alias module:model/AddProductRequestBodyAllOf
|
33
|
+
*/
|
34
|
+
function AddProductRequestBodyAllOf() {
|
35
|
+
(0, _classCallCheck2["default"])(this, AddProductRequestBodyAllOf);
|
36
|
+
AddProductRequestBodyAllOf.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"])(AddProductRequestBodyAllOf, null, [{
|
45
|
+
key: "initialize",
|
46
|
+
value: function initialize(obj) {}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Constructs a <code>AddProductRequestBodyAllOf</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/AddProductRequestBodyAllOf} obj Optional instance to populate.
|
53
|
+
* @return {module:model/AddProductRequestBodyAllOf} The populated <code>AddProductRequestBodyAllOf</code> instance.
|
54
|
+
*/
|
55
|
+
}, {
|
56
|
+
key: "constructFromObject",
|
57
|
+
value: function constructFromObject(data, obj) {
|
58
|
+
if (data) {
|
59
|
+
obj = obj || new AddProductRequestBodyAllOf();
|
60
|
+
if (data.hasOwnProperty('billing_frequency')) {
|
61
|
+
obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
|
62
|
+
delete data['billing_frequency'];
|
63
|
+
}
|
64
|
+
if (Object.keys(data).length > 0) {
|
65
|
+
Object.assign(obj, data);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return obj;
|
69
|
+
}
|
70
|
+
}]);
|
71
|
+
return AddProductRequestBodyAllOf;
|
72
|
+
}();
|
73
|
+
/**
|
74
|
+
* @member {module:model/BillingFrequency1} billing_frequency
|
75
|
+
*/
|
76
|
+
AddProductRequestBodyAllOf.prototype['billing_frequency'] = undefined;
|
77
|
+
var _default = AddProductRequestBodyAllOf;
|
78
|
+
exports["default"] = _default;
|