pipedrive 24.1.1 → 24.2.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.
Files changed (75) hide show
  1. package/dist/esm/versions/v1/models/additional-data.d.ts +38 -0
  2. package/dist/esm/versions/v1/models/additional-data.js +14 -0
  3. package/dist/esm/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
  4. package/dist/esm/versions/v1/models/index.d.ts +1 -1
  5. package/dist/esm/versions/v1/models/index.js +1 -1
  6. package/dist/esm/versions/v2/api/activities-api.d.ts +34 -2
  7. package/dist/esm/versions/v2/api/activities-api.js +25 -5
  8. package/dist/esm/versions/v2/api/beta-api.d.ts +288 -2
  9. package/dist/esm/versions/v2/api/beta-api.js +337 -5
  10. package/dist/esm/versions/v2/api/deals-api.d.ts +254 -0
  11. package/dist/esm/versions/v2/api/deals-api.js +312 -0
  12. package/dist/esm/versions/v2/models/add-ainstallment-response.d.ts +29 -0
  13. package/dist/esm/versions/v2/models/add-ainstallment-response.js +14 -0
  14. package/dist/esm/versions/v2/models/add-installment-request-body.d.ts +33 -0
  15. package/dist/esm/versions/v2/models/add-installment-request-body.js +14 -0
  16. package/dist/esm/versions/v2/models/delete-installment-response-data.d.ts +23 -0
  17. package/dist/esm/versions/v2/models/delete-installment-response-data.js +14 -0
  18. package/dist/esm/versions/v2/models/delete-installment-response.d.ts +29 -0
  19. package/dist/esm/versions/v2/models/delete-installment-response.js +14 -0
  20. package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
  21. package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.js +14 -0
  22. package/dist/esm/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
  23. package/dist/esm/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
  24. package/dist/esm/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
  25. package/dist/esm/versions/v2/models/get-installments-response-data-inner.js +14 -0
  26. package/dist/esm/versions/v2/models/get-installments-response.d.ts +29 -0
  27. package/dist/esm/versions/v2/models/get-installments-response.js +14 -0
  28. package/dist/esm/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
  29. package/dist/esm/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
  30. package/dist/esm/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
  31. package/dist/esm/versions/v2/models/get-stages-response.d.ts +6 -0
  32. package/dist/esm/versions/v2/models/index.d.ts +9 -0
  33. package/dist/esm/versions/v2/models/index.js +9 -0
  34. package/dist/esm/versions/v2/models/update-installment-request-body.d.ts +33 -0
  35. package/dist/esm/versions/v2/models/update-installment-request-body.js +14 -0
  36. package/dist/esm/versions/v2/models/update-installment-response.d.ts +29 -0
  37. package/dist/esm/versions/v2/models/update-installment-response.js +14 -0
  38. package/dist/versions/v1/models/additional-data.d.ts +38 -0
  39. package/dist/versions/v1/models/additional-data.js +15 -0
  40. package/dist/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
  41. package/dist/versions/v1/models/index.d.ts +1 -1
  42. package/dist/versions/v1/models/index.js +1 -1
  43. package/dist/versions/v2/api/activities-api.d.ts +34 -2
  44. package/dist/versions/v2/api/activities-api.js +25 -5
  45. package/dist/versions/v2/api/beta-api.d.ts +288 -2
  46. package/dist/versions/v2/api/beta-api.js +337 -5
  47. package/dist/versions/v2/api/deals-api.d.ts +254 -0
  48. package/dist/versions/v2/api/deals-api.js +312 -0
  49. package/dist/versions/v2/models/add-ainstallment-response.d.ts +29 -0
  50. package/dist/versions/v2/models/add-ainstallment-response.js +15 -0
  51. package/dist/versions/v2/models/add-installment-request-body.d.ts +33 -0
  52. package/dist/versions/v2/models/add-installment-request-body.js +15 -0
  53. package/dist/versions/v2/models/delete-installment-response-data.d.ts +23 -0
  54. package/dist/versions/v2/models/delete-installment-response-data.js +15 -0
  55. package/dist/versions/v2/models/delete-installment-response.d.ts +29 -0
  56. package/dist/versions/v2/models/delete-installment-response.js +15 -0
  57. package/dist/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
  58. package/dist/versions/v2/models/get-activities-response-all-of-additional-data.js +15 -0
  59. package/dist/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
  60. package/dist/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
  61. package/dist/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
  62. package/dist/versions/v2/models/get-installments-response-data-inner.js +15 -0
  63. package/dist/versions/v2/models/get-installments-response.d.ts +29 -0
  64. package/dist/versions/v2/models/get-installments-response.js +15 -0
  65. package/dist/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
  66. package/dist/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
  67. package/dist/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
  68. package/dist/versions/v2/models/get-stages-response.d.ts +6 -0
  69. package/dist/versions/v2/models/index.d.ts +9 -0
  70. package/dist/versions/v2/models/index.js +9 -0
  71. package/dist/versions/v2/models/update-installment-request-body.d.ts +33 -0
  72. package/dist/versions/v2/models/update-installment-request-body.js +15 -0
  73. package/dist/versions/v2/models/update-installment-response.d.ts +29 -0
  74. package/dist/versions/v2/models/update-installment-response.js +15 -0
  75. package/package.json +1 -1
@@ -12,22 +12,28 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosInstance } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { AddAInstallmentResponse } from '../models';
15
16
  import { AddAdditionalDiscountRequestBody } from '../models';
16
17
  import { AddAdditionalDiscountResponse } from '../models';
17
18
  import { AddDealProductRequest } from '../models';
18
19
  import { AddDealProductResponse } from '../models';
19
20
  import { AddDealRequest } from '../models';
21
+ import { AddInstallmentRequestBody } from '../models';
20
22
  import { DeleteAdditionalDiscountResponse } from '../models';
21
23
  import { DeleteDealProductResponse } from '../models';
22
24
  import { DeleteDealResponse } from '../models';
25
+ import { DeleteInstallmentResponse } from '../models';
23
26
  import { GetAdditionalDiscountsResponse } from '../models';
24
27
  import { GetDealSearchResponse } from '../models';
25
28
  import { GetDealsProductsResponse } from '../models';
26
29
  import { GetDealsResponse } from '../models';
30
+ import { GetInstallmentsResponse } from '../models';
27
31
  import { UpdateAdditionalDiscountRequestBody } from '../models';
28
32
  import { UpdateAdditionalDiscountResponse } from '../models';
29
33
  import { UpdateDealProductRequest } from '../models';
30
34
  import { UpdateDealRequest } from '../models';
35
+ import { UpdateInstallmentRequestBody } from '../models';
36
+ import { UpdateInstallmentResponse } from '../models';
31
37
  import { UpsertDealResponse } from '../models';
32
38
  /**
33
39
  * DealsApi - axios parameter creator
@@ -77,6 +83,15 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
77
83
  * @throws {RequiredError}
78
84
  */
79
85
  deleteDealProduct: (id: number, product_attachment_id: number) => Promise<RequestArgs>;
86
+ /**
87
+ * Removes an installment from a deal. Only available in Advanced and above plans.
88
+ * @summary Delete an installment from a deal
89
+ * @param {number} id The ID of the deal
90
+ * @param {number} installment_id The ID of the installment
91
+
92
+ * @throws {RequiredError}
93
+ */
94
+ deleteInstallment: (id: number, installment_id: number) => Promise<RequestArgs>;
80
95
  /**
81
96
  * Lists discounts attached to a deal.
82
97
  * @summary List discounts added to a deal
@@ -142,6 +157,18 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
142
157
  * @throws {RequiredError}
143
158
  */
144
159
  getDealsProducts: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
160
+ /**
161
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
162
+ * @summary List installments added to a list of deals
163
+ * @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.
164
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
165
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
166
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
167
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
168
+
169
+ * @throws {RequiredError}
170
+ */
171
+ getInstallments: (deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc') => Promise<RequestArgs>;
145
172
  /**
146
173
  * Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
147
174
  * @summary Add a discount to a deal
@@ -151,6 +178,15 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
151
178
  * @throws {RequiredError}
152
179
  */
153
180
  postAdditionalDiscount: (id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody) => Promise<RequestArgs>;
181
+ /**
182
+ * 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 Advanced and above plans.
183
+ * @summary Add an installment to a deal
184
+ * @param {number} id The ID of the deal
185
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
186
+
187
+ * @throws {RequiredError}
188
+ */
189
+ postInstallment: (id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody) => Promise<RequestArgs>;
154
190
  /**
155
191
  * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
156
192
  * @summary Search deals
@@ -196,6 +232,16 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
196
232
  * @throws {RequiredError}
197
233
  */
198
234
  updateDealProduct: (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest) => Promise<RequestArgs>;
235
+ /**
236
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
237
+ * @summary Update an installment added to a deal
238
+ * @param {number} id The ID of the deal
239
+ * @param {number} installment_id The ID of the installment
240
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
241
+
242
+ * @throws {RequiredError}
243
+ */
244
+ updateInstallment: (id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody) => Promise<RequestArgs>;
199
245
  };
200
246
  /**
201
247
  * DealsApi - functional programming interface
@@ -245,6 +291,15 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
245
291
  * @throws {RequiredError}
246
292
  */
247
293
  deleteDealProduct(id: number, product_attachment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteDealProductResponse>>;
294
+ /**
295
+ * Removes an installment from a deal. Only available in Advanced and above plans.
296
+ * @summary Delete an installment from a deal
297
+ * @param {number} id The ID of the deal
298
+ * @param {number} installment_id The ID of the installment
299
+
300
+ * @throws {RequiredError}
301
+ */
302
+ deleteInstallment(id: number, installment_id: number): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<DeleteInstallmentResponse>>;
248
303
  /**
249
304
  * Lists discounts attached to a deal.
250
305
  * @summary List discounts added to a deal
@@ -310,6 +365,18 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
310
365
  * @throws {RequiredError}
311
366
  */
312
367
  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>>;
368
+ /**
369
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
370
+ * @summary List installments added to a list of deals
371
+ * @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.
372
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
373
+ * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
374
+ * @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
375
+ * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
376
+
377
+ * @throws {RequiredError}
378
+ */
379
+ getInstallments(deal_ids: Array<number>, cursor?: string, limit?: number, sort_by?: 'id' | 'billing_date' | 'deal_id', sort_direction?: 'asc' | 'desc'): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetInstallmentsResponse>>;
313
380
  /**
314
381
  * Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
315
382
  * @summary Add a discount to a deal
@@ -319,6 +386,15 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
319
386
  * @throws {RequiredError}
320
387
  */
321
388
  postAdditionalDiscount(id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAdditionalDiscountResponse>>;
389
+ /**
390
+ * 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 Advanced and above plans.
391
+ * @summary Add an installment to a deal
392
+ * @param {number} id The ID of the deal
393
+ * @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
394
+
395
+ * @throws {RequiredError}
396
+ */
397
+ postInstallment(id: number, AddInstallmentRequestBody?: AddInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddAInstallmentResponse>>;
322
398
  /**
323
399
  * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
324
400
  * @summary Search deals
@@ -364,6 +440,16 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
364
440
  * @throws {RequiredError}
365
441
  */
366
442
  updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AddDealProductResponse>>;
443
+ /**
444
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
445
+ * @summary Update an installment added to a deal
446
+ * @param {number} id The ID of the deal
447
+ * @param {number} installment_id The ID of the installment
448
+ * @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
449
+
450
+ * @throws {RequiredError}
451
+ */
452
+ updateInstallment(id: number, installment_id: number, UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<UpdateInstallmentResponse>>;
367
453
  };
368
454
  /**
369
455
  * DealsApi - factory interface
@@ -410,6 +496,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
410
496
  * @throws {RequiredError}
411
497
  */
412
498
  deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
499
+ /**
500
+ * Removes an installment from a deal. Only available in Advanced and above plans.
501
+ * @summary Delete an installment from a deal
502
+ * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
503
+
504
+ * @throws {RequiredError}
505
+ */
506
+ deleteInstallment(requestParameters: DealsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
413
507
  /**
414
508
  * Lists discounts attached to a deal.
415
509
  * @summary List discounts added to a deal
@@ -450,6 +544,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
450
544
  * @throws {RequiredError}
451
545
  */
452
546
  getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
547
+ /**
548
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
549
+ * @summary List installments added to a list of deals
550
+ * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
551
+
552
+ * @throws {RequiredError}
553
+ */
554
+ getInstallments(requestParameters: DealsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
453
555
  /**
454
556
  * Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
455
557
  * @summary Add a discount to a deal
@@ -458,6 +560,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
458
560
  * @throws {RequiredError}
459
561
  */
460
562
  postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
563
+ /**
564
+ * 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 Advanced and above plans.
565
+ * @summary Add an installment to a deal
566
+ * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
567
+
568
+ * @throws {RequiredError}
569
+ */
570
+ postInstallment(requestParameters: DealsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
461
571
  /**
462
572
  * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
463
573
  * @summary Search deals
@@ -490,6 +600,14 @@ export declare const DealsApiFactory: (configuration?: Configuration, basePath?:
490
600
  * @throws {RequiredError}
491
601
  */
492
602
  updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
603
+ /**
604
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
605
+ * @summary Update an installment added to a deal
606
+ * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
607
+
608
+ * @throws {RequiredError}
609
+ */
610
+ updateInstallment(requestParameters: DealsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
493
611
  };
494
612
  /**
495
613
  * Request parameters for addDeal operation in DealsApi.
@@ -574,6 +692,25 @@ export interface DealsApiDeleteDealProductRequest {
574
692
  */
575
693
  readonly product_attachment_id: number;
576
694
  }
695
+ /**
696
+ * Request parameters for deleteInstallment operation in DealsApi.
697
+ * @export
698
+ * @interface DealsApiDeleteInstallmentRequest
699
+ */
700
+ export interface DealsApiDeleteInstallmentRequest {
701
+ /**
702
+ * The ID of the deal
703
+ * @type {number}
704
+ * @memberof DealsApiDeleteInstallment
705
+ */
706
+ readonly id: number;
707
+ /**
708
+ * The ID of the installment
709
+ * @type {number}
710
+ * @memberof DealsApiDeleteInstallment
711
+ */
712
+ readonly installment_id: number;
713
+ }
577
714
  /**
578
715
  * Request parameters for getAdditionalDiscounts operation in DealsApi.
579
716
  * @export
@@ -789,6 +926,43 @@ export interface DealsApiGetDealsProductsRequest {
789
926
  */
790
927
  readonly sort_direction?: 'asc' | 'desc';
791
928
  }
929
+ /**
930
+ * Request parameters for getInstallments operation in DealsApi.
931
+ * @export
932
+ * @interface DealsApiGetInstallmentsRequest
933
+ */
934
+ export interface DealsApiGetInstallmentsRequest {
935
+ /**
936
+ * 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.
937
+ * @type {Array<number>}
938
+ * @memberof DealsApiGetInstallments
939
+ */
940
+ readonly deal_ids: Array<number>;
941
+ /**
942
+ * For pagination, the marker (an opaque string value) representing the first item on the next page
943
+ * @type {string}
944
+ * @memberof DealsApiGetInstallments
945
+ */
946
+ readonly cursor?: string;
947
+ /**
948
+ * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
949
+ * @type {number}
950
+ * @memberof DealsApiGetInstallments
951
+ */
952
+ readonly limit?: number;
953
+ /**
954
+ * The field to sort by. Supported fields: &#x60;id&#x60;, &#x60;billing_date&#x60;, &#x60;deal_id&#x60;.
955
+ * @type {'id' | 'billing_date' | 'deal_id'}
956
+ * @memberof DealsApiGetInstallments
957
+ */
958
+ readonly sort_by?: 'id' | 'billing_date' | 'deal_id';
959
+ /**
960
+ * The sorting direction. Supported values: &#x60;asc&#x60;, &#x60;desc&#x60;.
961
+ * @type {'asc' | 'desc'}
962
+ * @memberof DealsApiGetInstallments
963
+ */
964
+ readonly sort_direction?: 'asc' | 'desc';
965
+ }
792
966
  /**
793
967
  * Request parameters for postAdditionalDiscount operation in DealsApi.
794
968
  * @export
@@ -808,6 +982,25 @@ export interface DealsApiPostAdditionalDiscountRequest {
808
982
  */
809
983
  readonly AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody;
810
984
  }
985
+ /**
986
+ * Request parameters for postInstallment operation in DealsApi.
987
+ * @export
988
+ * @interface DealsApiPostInstallmentRequest
989
+ */
990
+ export interface DealsApiPostInstallmentRequest {
991
+ /**
992
+ * The ID of the deal
993
+ * @type {number}
994
+ * @memberof DealsApiPostInstallment
995
+ */
996
+ readonly id: number;
997
+ /**
998
+ *
999
+ * @type {AddInstallmentRequestBody}
1000
+ * @memberof DealsApiPostInstallment
1001
+ */
1002
+ readonly AddInstallmentRequestBody?: AddInstallmentRequestBody;
1003
+ }
811
1004
  /**
812
1005
  * Request parameters for searchDeals operation in DealsApi.
813
1006
  * @export
@@ -938,6 +1131,31 @@ export interface DealsApiUpdateDealProductRequest {
938
1131
  */
939
1132
  readonly UpdateDealProductRequest?: UpdateDealProductRequest;
940
1133
  }
1134
+ /**
1135
+ * Request parameters for updateInstallment operation in DealsApi.
1136
+ * @export
1137
+ * @interface DealsApiUpdateInstallmentRequest
1138
+ */
1139
+ export interface DealsApiUpdateInstallmentRequest {
1140
+ /**
1141
+ * The ID of the deal
1142
+ * @type {number}
1143
+ * @memberof DealsApiUpdateInstallment
1144
+ */
1145
+ readonly id: number;
1146
+ /**
1147
+ * The ID of the installment
1148
+ * @type {number}
1149
+ * @memberof DealsApiUpdateInstallment
1150
+ */
1151
+ readonly installment_id: number;
1152
+ /**
1153
+ *
1154
+ * @type {UpdateInstallmentRequestBody}
1155
+ * @memberof DealsApiUpdateInstallment
1156
+ */
1157
+ readonly UpdateInstallmentRequestBody?: UpdateInstallmentRequestBody;
1158
+ }
941
1159
  /**
942
1160
  * DealsApi - object-oriented interface
943
1161
  * @export
@@ -990,6 +1208,15 @@ export declare class DealsApi extends BaseAPI {
990
1208
  * @memberof DealsApi
991
1209
  */
992
1210
  deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest): Promise<DeleteDealProductResponse>;
1211
+ /**
1212
+ * Removes an installment from a deal. Only available in Advanced and above plans.
1213
+ * @summary Delete an installment from a deal
1214
+ * @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
1215
+
1216
+ * @throws {RequiredError}
1217
+ * @memberof DealsApi
1218
+ */
1219
+ deleteInstallment(requestParameters: DealsApiDeleteInstallmentRequest): Promise<DeleteInstallmentResponse>;
993
1220
  /**
994
1221
  * Lists discounts attached to a deal.
995
1222
  * @summary List discounts added to a deal
@@ -1035,6 +1262,15 @@ export declare class DealsApi extends BaseAPI {
1035
1262
  * @memberof DealsApi
1036
1263
  */
1037
1264
  getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest): Promise<GetDealsProductsResponse>;
1265
+ /**
1266
+ * Lists installments attached to a list of deals. Only available in Advanced and above plans.
1267
+ * @summary List installments added to a list of deals
1268
+ * @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
1269
+
1270
+ * @throws {RequiredError}
1271
+ * @memberof DealsApi
1272
+ */
1273
+ getInstallments(requestParameters: DealsApiGetInstallmentsRequest): Promise<GetInstallmentsResponse>;
1038
1274
  /**
1039
1275
  * Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
1040
1276
  * @summary Add a discount to a deal
@@ -1044,6 +1280,15 @@ export declare class DealsApi extends BaseAPI {
1044
1280
  * @memberof DealsApi
1045
1281
  */
1046
1282
  postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest): Promise<AddAdditionalDiscountResponse>;
1283
+ /**
1284
+ * 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 Advanced and above plans.
1285
+ * @summary Add an installment to a deal
1286
+ * @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
1287
+
1288
+ * @throws {RequiredError}
1289
+ * @memberof DealsApi
1290
+ */
1291
+ postInstallment(requestParameters: DealsApiPostInstallmentRequest): Promise<AddAInstallmentResponse>;
1047
1292
  /**
1048
1293
  * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
1049
1294
  * @summary Search deals
@@ -1080,4 +1325,13 @@ export declare class DealsApi extends BaseAPI {
1080
1325
  * @memberof DealsApi
1081
1326
  */
1082
1327
  updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest): Promise<AddDealProductResponse>;
1328
+ /**
1329
+ * Edits an installment added to a deal. Only available in Advanced and above plans.
1330
+ * @summary Update an installment added to a deal
1331
+ * @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
1332
+
1333
+ * @throws {RequiredError}
1334
+ * @memberof DealsApi
1335
+ */
1336
+ updateInstallment(requestParameters: DealsApiUpdateInstallmentRequest): Promise<UpdateInstallmentResponse>;
1083
1337
  }