pipedrive 28.0.2 → 29.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/versions/v1/api/subscriptions-api.d.ts +9 -9
- package/dist/esm/versions/v1/api.d.ts +0 -1
- package/dist/esm/versions/v1/api.js +0 -1
- package/dist/esm/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
- package/dist/esm/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
- package/dist/esm/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
- package/dist/esm/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
- package/dist/esm/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
- package/dist/esm/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
- package/dist/esm/versions/v1/models/base-deal.d.ts +6 -6
- package/dist/esm/versions/v1/models/base-product.d.ts +2 -2
- package/dist/esm/versions/v1/models/index.d.ts +0 -11
- package/dist/esm/versions/v1/models/index.js +0 -11
- package/dist/esm/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
- package/dist/esm/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
- package/dist/esm/versions/v2/api/beta-api.d.ts +220 -16
- package/dist/esm/versions/v2/api/beta-api.js +308 -16
- package/dist/esm/versions/v2/api/deals-api.d.ts +16 -16
- package/dist/esm/versions/v2/api/deals-api.js +16 -16
- package/dist/esm/versions/v2/api/products-api.d.ts +204 -0
- package/dist/esm/versions/v2/api/products-api.js +292 -0
- package/dist/esm/versions/v2/models/add-product-image-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-product-image-response.js +14 -0
- package/dist/esm/versions/v2/models/base-product-all-of1.d.ts +1 -1
- package/dist/esm/versions/v2/models/deal-item.d.ts +3 -3
- package/dist/esm/versions/v2/models/deal-item1.d.ts +3 -3
- package/dist/esm/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-product-image-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-product-image-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-product-image-response.js +14 -0
- package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
- package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
- package/dist/esm/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
- package/dist/esm/versions/v2/models/get-product-image-response-data.d.ts +53 -0
- package/dist/esm/versions/v2/models/get-product-image-response-data.js +14 -0
- package/dist/esm/versions/v2/models/get-product-image-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/get-product-image-response.js +14 -0
- package/dist/esm/versions/v2/models/index.d.ts +7 -0
- package/dist/esm/versions/v2/models/index.js +7 -0
- package/dist/esm/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
- package/dist/esm/versions/v2/models/update-product-image-response-data.d.ts +38 -0
- package/dist/esm/versions/v2/models/update-product-image-response-data.js +14 -0
- package/dist/esm/versions/v2/models/update-product-image-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/update-product-image-response.js +14 -0
- package/dist/esm/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
- package/dist/versions/v1/api/subscriptions-api.d.ts +9 -9
- package/dist/versions/v1/api.d.ts +0 -1
- package/dist/versions/v1/api.js +0 -1
- package/dist/versions/v1/models/add-deal-product-request-all-of.d.ts +1 -1
- package/dist/versions/v1/models/add-deal-product-request-all-of1.d.ts +1 -1
- package/dist/versions/v1/models/add-deal-product-request-all-of2.d.ts +1 -1
- package/dist/versions/v1/models/add-or-update-role-setting-request.d.ts +1 -1
- package/dist/versions/v1/models/add-product-request-all-of1.d.ts +1 -1
- package/dist/versions/v1/models/add-product-request-all-of2.d.ts +1 -1
- package/dist/versions/v1/models/base-deal.d.ts +6 -6
- package/dist/versions/v1/models/base-product.d.ts +2 -2
- package/dist/versions/v1/models/index.d.ts +0 -11
- package/dist/versions/v1/models/index.js +0 -11
- package/dist/versions/v1/models/update-deal-product-request-all-of.d.ts +1 -1
- package/dist/versions/v1/models/update-product-request-all-of1.d.ts +1 -1
- package/dist/versions/v2/api/beta-api.d.ts +220 -16
- package/dist/versions/v2/api/beta-api.js +308 -16
- package/dist/versions/v2/api/deals-api.d.ts +16 -16
- package/dist/versions/v2/api/deals-api.js +16 -16
- package/dist/versions/v2/api/products-api.d.ts +204 -0
- package/dist/versions/v2/api/products-api.js +292 -0
- package/dist/versions/v2/models/add-product-image-response.d.ts +29 -0
- package/dist/versions/v2/models/add-product-image-response.js +15 -0
- package/dist/versions/v2/models/base-product-all-of1.d.ts +1 -1
- package/dist/versions/v2/models/deal-item.d.ts +3 -3
- package/dist/versions/v2/models/deal-item1.d.ts +3 -3
- package/dist/versions/v2/models/delete-product-image-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-product-image-response-data.js +15 -0
- package/dist/versions/v2/models/delete-product-image-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-product-image-response.js +15 -0
- package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of1.d.ts +1 -1
- package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of2.d.ts +1 -1
- package/dist/versions/v2/models/get-deals-products-response-data-inner-all-of3.d.ts +1 -1
- package/dist/versions/v2/models/get-product-image-response-data.d.ts +53 -0
- package/dist/versions/v2/models/get-product-image-response-data.js +15 -0
- package/dist/versions/v2/models/get-product-image-response.d.ts +29 -0
- package/dist/versions/v2/models/get-product-image-response.js +15 -0
- package/dist/versions/v2/models/index.d.ts +7 -0
- package/dist/versions/v2/models/index.js +7 -0
- package/dist/versions/v2/models/update-deal-product-request-all-of.d.ts +1 -1
- package/dist/versions/v2/models/update-product-image-response-data.d.ts +38 -0
- package/dist/versions/v2/models/update-product-image-response-data.js +15 -0
- package/dist/versions/v2/models/update-product-image-response.d.ts +29 -0
- package/dist/versions/v2/models/update-product-image-response.js +15 -0
- package/dist/versions/v2/models/update-product-request-all-of1.d.ts +1 -1
- package/package.json +1 -1
@@ -110,7 +110,7 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
110
110
|
};
|
111
111
|
}),
|
112
112
|
/**
|
113
|
-
* Removes an installment from a deal. Only available in
|
113
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
114
114
|
* @summary Delete an installment from a deal
|
115
115
|
* @param {number} id The ID of the deal
|
116
116
|
* @param {number} installment_id The ID of the installment
|
@@ -147,6 +147,40 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
147
147
|
options: localVarRequestOptions,
|
148
148
|
};
|
149
149
|
}),
|
150
|
+
/**
|
151
|
+
* Deletes the image of a product.
|
152
|
+
* @summary Delete an image of a product
|
153
|
+
* @param {number} id The ID of the product
|
154
|
+
|
155
|
+
* @throws {RequiredError}
|
156
|
+
*/
|
157
|
+
deleteProductImage: (id) => __awaiter(this, void 0, void 0, function* () {
|
158
|
+
// verify required parameter 'id' is not null or undefined
|
159
|
+
(0, common_1.assertParamExists)('deleteProductImage', 'id', id);
|
160
|
+
const localVarPath = `/products/{id}/images`
|
161
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
164
|
+
let baseOptions;
|
165
|
+
if (configuration) {
|
166
|
+
baseOptions = configuration.baseOptions;
|
167
|
+
}
|
168
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
169
|
+
const localVarHeaderParameter = {};
|
170
|
+
const localVarQueryParameter = {};
|
171
|
+
// authentication api_key required
|
172
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
173
|
+
// authentication oauth2 required
|
174
|
+
// oauth required
|
175
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
179
|
+
return {
|
180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
181
|
+
options: localVarRequestOptions,
|
182
|
+
};
|
183
|
+
}),
|
150
184
|
/**
|
151
185
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
152
186
|
* @summary Get Deal conversion status (BETA)
|
@@ -186,7 +220,7 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
186
220
|
};
|
187
221
|
}),
|
188
222
|
/**
|
189
|
-
* Lists installments attached to a list of deals. Only available in
|
223
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
190
224
|
* @summary List installments added to a list of deals
|
191
225
|
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
192
226
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
@@ -276,7 +310,41 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
276
310
|
};
|
277
311
|
}),
|
278
312
|
/**
|
279
|
-
*
|
313
|
+
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
314
|
+
* @summary Get image of a product
|
315
|
+
* @param {number} id The ID of the product
|
316
|
+
|
317
|
+
* @throws {RequiredError}
|
318
|
+
*/
|
319
|
+
getProductImage: (id) => __awaiter(this, void 0, void 0, function* () {
|
320
|
+
// verify required parameter 'id' is not null or undefined
|
321
|
+
(0, common_1.assertParamExists)('getProductImage', 'id', id);
|
322
|
+
const localVarPath = `/products/{id}/images`
|
323
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
325
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
326
|
+
let baseOptions;
|
327
|
+
if (configuration) {
|
328
|
+
baseOptions = configuration.baseOptions;
|
329
|
+
}
|
330
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
331
|
+
const localVarHeaderParameter = {};
|
332
|
+
const localVarQueryParameter = {};
|
333
|
+
// authentication api_key required
|
334
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
335
|
+
// authentication oauth2 required
|
336
|
+
// oauth required
|
337
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration);
|
338
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
339
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
340
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
341
|
+
return {
|
342
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
343
|
+
options: localVarRequestOptions,
|
344
|
+
};
|
345
|
+
}),
|
346
|
+
/**
|
347
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
280
348
|
* @summary Add an installment to a deal
|
281
349
|
* @param {number} id The ID of the deal
|
282
350
|
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
@@ -313,7 +381,7 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
313
381
|
};
|
314
382
|
}),
|
315
383
|
/**
|
316
|
-
* Edits an installment added to a deal. Only available in
|
384
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
317
385
|
* @summary Update an installment added to a deal
|
318
386
|
* @param {number} id The ID of the deal
|
319
387
|
* @param {number} installment_id The ID of the installment
|
@@ -353,6 +421,92 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
353
421
|
options: localVarRequestOptions,
|
354
422
|
};
|
355
423
|
}),
|
424
|
+
/**
|
425
|
+
* Updates the image of a product.
|
426
|
+
* @summary Update an image for a product
|
427
|
+
* @param {number} id The ID of the product
|
428
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
429
|
+
|
430
|
+
* @throws {RequiredError}
|
431
|
+
*/
|
432
|
+
updateProductImage: (id, data) => __awaiter(this, void 0, void 0, function* () {
|
433
|
+
// verify required parameter 'id' is not null or undefined
|
434
|
+
(0, common_1.assertParamExists)('updateProductImage', 'id', id);
|
435
|
+
// verify required parameter 'data' is not null or undefined
|
436
|
+
(0, common_1.assertParamExists)('updateProductImage', 'data', data);
|
437
|
+
const localVarPath = `/products/{id}/images`
|
438
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
440
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
441
|
+
let baseOptions;
|
442
|
+
if (configuration) {
|
443
|
+
baseOptions = configuration.baseOptions;
|
444
|
+
}
|
445
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, baseOptions);
|
446
|
+
const localVarHeaderParameter = {};
|
447
|
+
const localVarQueryParameter = {};
|
448
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
449
|
+
// authentication api_key required
|
450
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
451
|
+
// authentication oauth2 required
|
452
|
+
// oauth required
|
453
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
454
|
+
if (data !== undefined) {
|
455
|
+
localVarFormParams.append('data', data);
|
456
|
+
}
|
457
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
461
|
+
localVarRequestOptions.data = localVarFormParams;
|
462
|
+
return {
|
463
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
464
|
+
options: localVarRequestOptions,
|
465
|
+
};
|
466
|
+
}),
|
467
|
+
/**
|
468
|
+
* Uploads an image for a product.
|
469
|
+
* @summary Upload an image for a product
|
470
|
+
* @param {number} id The ID of the product
|
471
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
472
|
+
|
473
|
+
* @throws {RequiredError}
|
474
|
+
*/
|
475
|
+
uploadProductImage: (id, data) => __awaiter(this, void 0, void 0, function* () {
|
476
|
+
// verify required parameter 'id' is not null or undefined
|
477
|
+
(0, common_1.assertParamExists)('uploadProductImage', 'id', id);
|
478
|
+
// verify required parameter 'data' is not null or undefined
|
479
|
+
(0, common_1.assertParamExists)('uploadProductImage', 'data', data);
|
480
|
+
const localVarPath = `/products/{id}/images`
|
481
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
483
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
484
|
+
let baseOptions;
|
485
|
+
if (configuration) {
|
486
|
+
baseOptions = configuration.baseOptions;
|
487
|
+
}
|
488
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
489
|
+
const localVarHeaderParameter = {};
|
490
|
+
const localVarQueryParameter = {};
|
491
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
492
|
+
// authentication api_key required
|
493
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-token", configuration);
|
494
|
+
// authentication oauth2 required
|
495
|
+
// oauth required
|
496
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["products:full"], configuration);
|
497
|
+
if (data !== undefined) {
|
498
|
+
localVarFormParams.append('data', data);
|
499
|
+
}
|
500
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
501
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
503
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
504
|
+
localVarRequestOptions.data = localVarFormParams;
|
505
|
+
return {
|
506
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
507
|
+
options: localVarRequestOptions,
|
508
|
+
};
|
509
|
+
}),
|
356
510
|
};
|
357
511
|
};
|
358
512
|
exports.BetaApiAxiosParamCreator = BetaApiAxiosParamCreator;
|
@@ -391,7 +545,7 @@ const BetaApiFp = function (configuration) {
|
|
391
545
|
});
|
392
546
|
},
|
393
547
|
/**
|
394
|
-
* Removes an installment from a deal. Only available in
|
548
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
395
549
|
* @summary Delete an installment from a deal
|
396
550
|
* @param {number} id The ID of the deal
|
397
551
|
* @param {number} installment_id The ID of the installment
|
@@ -404,6 +558,19 @@ const BetaApiFp = function (configuration) {
|
|
404
558
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
405
559
|
});
|
406
560
|
},
|
561
|
+
/**
|
562
|
+
* Deletes the image of a product.
|
563
|
+
* @summary Delete an image of a product
|
564
|
+
* @param {number} id The ID of the product
|
565
|
+
|
566
|
+
* @throws {RequiredError}
|
567
|
+
*/
|
568
|
+
deleteProductImage(id) {
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteProductImage(id);
|
571
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
572
|
+
});
|
573
|
+
},
|
407
574
|
/**
|
408
575
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
409
576
|
* @summary Get Deal conversion status (BETA)
|
@@ -419,7 +586,7 @@ const BetaApiFp = function (configuration) {
|
|
419
586
|
});
|
420
587
|
},
|
421
588
|
/**
|
422
|
-
* Lists installments attached to a list of deals. Only available in
|
589
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
423
590
|
* @summary List installments added to a list of deals
|
424
591
|
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
425
592
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
@@ -450,7 +617,20 @@ const BetaApiFp = function (configuration) {
|
|
450
617
|
});
|
451
618
|
},
|
452
619
|
/**
|
453
|
-
*
|
620
|
+
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
621
|
+
* @summary Get image of a product
|
622
|
+
* @param {number} id The ID of the product
|
623
|
+
|
624
|
+
* @throws {RequiredError}
|
625
|
+
*/
|
626
|
+
getProductImage(id) {
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductImage(id);
|
629
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
630
|
+
});
|
631
|
+
},
|
632
|
+
/**
|
633
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
454
634
|
* @summary Add an installment to a deal
|
455
635
|
* @param {number} id The ID of the deal
|
456
636
|
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
@@ -464,7 +644,7 @@ const BetaApiFp = function (configuration) {
|
|
464
644
|
});
|
465
645
|
},
|
466
646
|
/**
|
467
|
-
* Edits an installment added to a deal. Only available in
|
647
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
468
648
|
* @summary Update an installment added to a deal
|
469
649
|
* @param {number} id The ID of the deal
|
470
650
|
* @param {number} installment_id The ID of the installment
|
@@ -478,6 +658,34 @@ const BetaApiFp = function (configuration) {
|
|
478
658
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
479
659
|
});
|
480
660
|
},
|
661
|
+
/**
|
662
|
+
* Updates the image of a product.
|
663
|
+
* @summary Update an image for a product
|
664
|
+
* @param {number} id The ID of the product
|
665
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
666
|
+
|
667
|
+
* @throws {RequiredError}
|
668
|
+
*/
|
669
|
+
updateProductImage(id, data) {
|
670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductImage(id, data);
|
672
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
673
|
+
});
|
674
|
+
},
|
675
|
+
/**
|
676
|
+
* Uploads an image for a product.
|
677
|
+
* @summary Upload an image for a product
|
678
|
+
* @param {number} id The ID of the product
|
679
|
+
* @param {File} data One image supplied in the multipart/form-data encoding
|
680
|
+
|
681
|
+
* @throws {RequiredError}
|
682
|
+
*/
|
683
|
+
uploadProductImage(id, data) {
|
684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadProductImage(id, data);
|
686
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
687
|
+
});
|
688
|
+
},
|
481
689
|
};
|
482
690
|
};
|
483
691
|
exports.BetaApiFp = BetaApiFp;
|
@@ -509,7 +717,7 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
509
717
|
return localVarFp.convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(axios, basePath));
|
510
718
|
},
|
511
719
|
/**
|
512
|
-
* Removes an installment from a deal. Only available in
|
720
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
513
721
|
* @summary Delete an installment from a deal
|
514
722
|
* @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
|
515
723
|
|
@@ -518,6 +726,16 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
518
726
|
deleteInstallment(requestParameters) {
|
519
727
|
return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(axios, basePath));
|
520
728
|
},
|
729
|
+
/**
|
730
|
+
* Deletes the image of a product.
|
731
|
+
* @summary Delete an image of a product
|
732
|
+
* @param {BetaApiDeleteProductImageRequest} requestParameters Request parameters.
|
733
|
+
|
734
|
+
* @throws {RequiredError}
|
735
|
+
*/
|
736
|
+
deleteProductImage(requestParameters) {
|
737
|
+
return localVarFp.deleteProductImage(requestParameters.id).then((request) => request(axios, basePath));
|
738
|
+
},
|
521
739
|
/**
|
522
740
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
523
741
|
* @summary Get Deal conversion status (BETA)
|
@@ -529,7 +747,7 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
529
747
|
return localVarFp.getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
530
748
|
},
|
531
749
|
/**
|
532
|
-
* Lists installments attached to a list of deals. Only available in
|
750
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
533
751
|
* @summary List installments added to a list of deals
|
534
752
|
* @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
|
535
753
|
|
@@ -549,7 +767,17 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
549
767
|
return localVarFp.getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(axios, basePath));
|
550
768
|
},
|
551
769
|
/**
|
552
|
-
*
|
770
|
+
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
771
|
+
* @summary Get image of a product
|
772
|
+
* @param {BetaApiGetProductImageRequest} requestParameters Request parameters.
|
773
|
+
|
774
|
+
* @throws {RequiredError}
|
775
|
+
*/
|
776
|
+
getProductImage(requestParameters) {
|
777
|
+
return localVarFp.getProductImage(requestParameters.id).then((request) => request(axios, basePath));
|
778
|
+
},
|
779
|
+
/**
|
780
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
553
781
|
* @summary Add an installment to a deal
|
554
782
|
* @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
|
555
783
|
|
@@ -559,7 +787,7 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
559
787
|
return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(axios, basePath));
|
560
788
|
},
|
561
789
|
/**
|
562
|
-
* Edits an installment added to a deal. Only available in
|
790
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
563
791
|
* @summary Update an installment added to a deal
|
564
792
|
* @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
|
565
793
|
|
@@ -568,6 +796,26 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
568
796
|
updateInstallment(requestParameters) {
|
569
797
|
return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(axios, basePath));
|
570
798
|
},
|
799
|
+
/**
|
800
|
+
* Updates the image of a product.
|
801
|
+
* @summary Update an image for a product
|
802
|
+
* @param {BetaApiUpdateProductImageRequest} requestParameters Request parameters.
|
803
|
+
|
804
|
+
* @throws {RequiredError}
|
805
|
+
*/
|
806
|
+
updateProductImage(requestParameters) {
|
807
|
+
return localVarFp.updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
808
|
+
},
|
809
|
+
/**
|
810
|
+
* Uploads an image for a product.
|
811
|
+
* @summary Upload an image for a product
|
812
|
+
* @param {BetaApiUploadProductImageRequest} requestParameters Request parameters.
|
813
|
+
|
814
|
+
* @throws {RequiredError}
|
815
|
+
*/
|
816
|
+
uploadProductImage(requestParameters) {
|
817
|
+
return localVarFp.uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(axios, basePath));
|
818
|
+
},
|
571
819
|
};
|
572
820
|
};
|
573
821
|
exports.BetaApiFactory = BetaApiFactory;
|
@@ -601,7 +849,7 @@ class BetaApi extends base_1.BaseAPI {
|
|
601
849
|
return (0, exports.BetaApiFp)(this.configuration).convertLeadToDeal(requestParameters.id, requestParameters.ConvertLeadToDealRequest).then((request) => request(this.axios, this.basePath));
|
602
850
|
}
|
603
851
|
/**
|
604
|
-
* Removes an installment from a deal. Only available in
|
852
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
605
853
|
* @summary Delete an installment from a deal
|
606
854
|
* @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
|
607
855
|
|
@@ -611,6 +859,17 @@ class BetaApi extends base_1.BaseAPI {
|
|
611
859
|
deleteInstallment(requestParameters) {
|
612
860
|
return (0, exports.BetaApiFp)(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(this.axios, this.basePath));
|
613
861
|
}
|
862
|
+
/**
|
863
|
+
* Deletes the image of a product.
|
864
|
+
* @summary Delete an image of a product
|
865
|
+
* @param {BetaApiDeleteProductImageRequest} requestParameters Request parameters.
|
866
|
+
|
867
|
+
* @throws {RequiredError}
|
868
|
+
* @memberof BetaApi
|
869
|
+
*/
|
870
|
+
deleteProductImage(requestParameters) {
|
871
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
872
|
+
}
|
614
873
|
/**
|
615
874
|
* Returns information about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Lead ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.
|
616
875
|
* @summary Get Deal conversion status (BETA)
|
@@ -623,7 +882,7 @@ class BetaApi extends base_1.BaseAPI {
|
|
623
882
|
return (0, exports.BetaApiFp)(this.configuration).getDealConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
624
883
|
}
|
625
884
|
/**
|
626
|
-
* Lists installments attached to a list of deals. Only available in
|
885
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
627
886
|
* @summary List installments added to a list of deals
|
628
887
|
* @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
|
629
888
|
|
@@ -645,7 +904,18 @@ class BetaApi extends base_1.BaseAPI {
|
|
645
904
|
return (0, exports.BetaApiFp)(this.configuration).getLeadConversionStatus(requestParameters.id, requestParameters.conversion_id).then((request) => request(this.axios, this.basePath));
|
646
905
|
}
|
647
906
|
/**
|
648
|
-
*
|
907
|
+
* Retrieves the image of a product. The public URL has a limited lifetime of 7 days.
|
908
|
+
* @summary Get image of a product
|
909
|
+
* @param {BetaApiGetProductImageRequest} requestParameters Request parameters.
|
910
|
+
|
911
|
+
* @throws {RequiredError}
|
912
|
+
* @memberof BetaApi
|
913
|
+
*/
|
914
|
+
getProductImage(requestParameters) {
|
915
|
+
return (0, exports.BetaApiFp)(this.configuration).getProductImage(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
916
|
+
}
|
917
|
+
/**
|
918
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
649
919
|
* @summary Add an installment to a deal
|
650
920
|
* @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
|
651
921
|
|
@@ -656,7 +926,7 @@ class BetaApi extends base_1.BaseAPI {
|
|
656
926
|
return (0, exports.BetaApiFp)(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
657
927
|
}
|
658
928
|
/**
|
659
|
-
* Edits an installment added to a deal. Only available in
|
929
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
660
930
|
* @summary Update an installment added to a deal
|
661
931
|
* @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
|
662
932
|
|
@@ -666,5 +936,27 @@ class BetaApi extends base_1.BaseAPI {
|
|
666
936
|
updateInstallment(requestParameters) {
|
667
937
|
return (0, exports.BetaApiFp)(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
668
938
|
}
|
939
|
+
/**
|
940
|
+
* Updates the image of a product.
|
941
|
+
* @summary Update an image for a product
|
942
|
+
* @param {BetaApiUpdateProductImageRequest} requestParameters Request parameters.
|
943
|
+
|
944
|
+
* @throws {RequiredError}
|
945
|
+
* @memberof BetaApi
|
946
|
+
*/
|
947
|
+
updateProductImage(requestParameters) {
|
948
|
+
return (0, exports.BetaApiFp)(this.configuration).updateProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
949
|
+
}
|
950
|
+
/**
|
951
|
+
* Uploads an image for a product.
|
952
|
+
* @summary Upload an image for a product
|
953
|
+
* @param {BetaApiUploadProductImageRequest} requestParameters Request parameters.
|
954
|
+
|
955
|
+
* @throws {RequiredError}
|
956
|
+
* @memberof BetaApi
|
957
|
+
*/
|
958
|
+
uploadProductImage(requestParameters) {
|
959
|
+
return (0, exports.BetaApiFp)(this.configuration).uploadProductImage(requestParameters.id, requestParameters.data).then((request) => request(this.axios, this.basePath));
|
960
|
+
}
|
669
961
|
}
|
670
962
|
exports.BetaApi = BetaApi;
|
@@ -117,7 +117,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
117
117
|
*/
|
118
118
|
deleteDealProduct: (id: number, product_attachment_id: number) => Promise<RequestArgs>;
|
119
119
|
/**
|
120
|
-
* Removes an installment from a deal. Only available in
|
120
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
121
121
|
* @summary Delete an installment from a deal
|
122
122
|
* @param {number} id The ID of the deal
|
123
123
|
* @param {number} installment_id The ID of the installment
|
@@ -243,7 +243,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
243
243
|
*/
|
244
244
|
getDealsProducts: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
|
245
245
|
/**
|
246
|
-
* Lists installments attached to a list of deals. Only available in
|
246
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
247
247
|
* @summary List installments added to a list of deals
|
248
248
|
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
249
249
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
@@ -264,7 +264,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
264
264
|
*/
|
265
265
|
postAdditionalDiscount: (id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody) => Promise<RequestArgs>;
|
266
266
|
/**
|
267
|
-
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in
|
267
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
268
268
|
* @summary Add an installment to a deal
|
269
269
|
* @param {number} id The ID of the deal
|
270
270
|
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
@@ -318,7 +318,7 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
|
|
318
318
|
*/
|
319
319
|
updateDealProduct: (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest) => Promise<RequestArgs>;
|
320
320
|
/**
|
321
|
-
* Edits an installment added to a deal. Only available in
|
321
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
322
322
|
* @summary Update an installment added to a deal
|
323
323
|
* @param {number} id The ID of the deal
|
324
324
|
* @param {number} installment_id The ID of the installment
|
@@ -403,7 +403,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
403
403
|
*/
|
404
404
|
deleteDealProduct(id: number, product_attachment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteDealProductResponse>>;
|
405
405
|
/**
|
406
|
-
* Removes an installment from a deal. Only available in
|
406
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
407
407
|
* @summary Delete an installment from a deal
|
408
408
|
* @param {number} id The ID of the deal
|
409
409
|
* @param {number} installment_id The ID of the installment
|
@@ -529,7 +529,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
529
529
|
*/
|
530
530
|
getDealsProducts(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealsProductsResponse>>;
|
531
531
|
/**
|
532
|
-
* Lists installments attached to a list of deals. Only available in
|
532
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
533
533
|
* @summary List installments added to a list of deals
|
534
534
|
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
535
535
|
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
@@ -550,7 +550,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
550
550
|
*/
|
551
551
|
postAdditionalDiscount(id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAdditionalDiscountResponse>>;
|
552
552
|
/**
|
553
|
-
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in
|
553
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
554
554
|
* @summary Add an installment to a deal
|
555
555
|
* @param {number} id The ID of the deal
|
556
556
|
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
@@ -604,7 +604,7 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
|
|
604
604
|
*/
|
605
605
|
updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealProductResponse>>;
|
606
606
|
/**
|
607
|
-
* Edits an installment added to a deal. Only available in
|
607
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
608
608
|
* @summary Update an installment added to a deal
|
609
609
|
* @param {number} id The ID of the deal
|
610
610
|
* @param {number} installment_id The ID of the installment
|
@@ -684,7 +684,7 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
684
684
|
*/
|
685
685
|
deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
|
686
686
|
/**
|
687
|
-
* Removes an installment from a deal. Only available in
|
687
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
688
688
|
* @summary Delete an installment from a deal
|
689
689
|
* @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
690
690
|
|
@@ -764,7 +764,7 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
764
764
|
*/
|
765
765
|
getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
|
766
766
|
/**
|
767
|
-
* Lists installments attached to a list of deals. Only available in
|
767
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
768
768
|
* @summary List installments added to a list of deals
|
769
769
|
* @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
|
770
770
|
|
@@ -780,7 +780,7 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
780
780
|
*/
|
781
781
|
postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
|
782
782
|
/**
|
783
|
-
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in
|
783
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
784
784
|
* @summary Add an installment to a deal
|
785
785
|
* @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
|
786
786
|
|
@@ -820,7 +820,7 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
|
|
820
820
|
*/
|
821
821
|
updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
|
822
822
|
/**
|
823
|
-
* Edits an installment added to a deal. Only available in
|
823
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
824
824
|
* @summary Update an installment added to a deal
|
825
825
|
* @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
826
826
|
|
@@ -1678,7 +1678,7 @@ export declare class DealsApi extends BaseAPI {
|
|
1678
1678
|
*/
|
1679
1679
|
deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
|
1680
1680
|
/**
|
1681
|
-
* Removes an installment from a deal. Only available in
|
1681
|
+
* Removes an installment from a deal. Only available in Growth and above plans.
|
1682
1682
|
* @summary Delete an installment from a deal
|
1683
1683
|
* @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
1684
1684
|
|
@@ -1768,7 +1768,7 @@ export declare class DealsApi extends BaseAPI {
|
|
1768
1768
|
*/
|
1769
1769
|
getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
|
1770
1770
|
/**
|
1771
|
-
* Lists installments attached to a list of deals. Only available in
|
1771
|
+
* Lists installments attached to a list of deals. Only available in Growth and above plans.
|
1772
1772
|
* @summary List installments added to a list of deals
|
1773
1773
|
* @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
|
1774
1774
|
|
@@ -1786,7 +1786,7 @@ export declare class DealsApi extends BaseAPI {
|
|
1786
1786
|
*/
|
1787
1787
|
postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
|
1788
1788
|
/**
|
1789
|
-
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in
|
1789
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Growth and above plans.
|
1790
1790
|
* @summary Add an installment to a deal
|
1791
1791
|
* @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
|
1792
1792
|
|
@@ -1831,7 +1831,7 @@ export declare class DealsApi extends BaseAPI {
|
|
1831
1831
|
*/
|
1832
1832
|
updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
|
1833
1833
|
/**
|
1834
|
-
* Edits an installment added to a deal. Only available in
|
1834
|
+
* Edits an installment added to a deal. Only available in Growth and above plans.
|
1835
1835
|
* @summary Update an installment added to a deal
|
1836
1836
|
* @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
1837
1837
|
|