cityworks 1.0.6 → 2.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.
@@ -1,348 +1,406 @@
1
- export declare class CaseFinancial {
2
- /**
3
- * @hidden
4
- */
5
- cw: any;
6
- /**
7
- * @hidden
8
- */
9
- constructor(cw: Object);
10
- /**
11
- * Adds a fee to the case specified by the CaObectId.
12
- *
13
- * @category Case Fees
14
- * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
15
- * @param {number} feeSetupId - The fee setup id for the fee to add to the case.
16
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
17
- * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
18
- */
19
- addFee(caObjectId: number, feeSetupId: number, options?: Object): Promise<unknown>;
20
- /**
21
- * Add Case Fee Payment. Adds a payment to the case fee specified by caObjectId.
22
- *
23
- * @category Case Payments
24
- * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
25
- * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
26
- * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
27
- */
28
- addPayment(caObjectId: number, options: Object): Promise<unknown>;
29
- /**
30
- * Add Case Payment Refund. Refunds a payment on the case payment specified by caPaymentId.
31
- *
32
- * @category Case Payment Refunds
33
- * @param {number} caPaymentId - The Case Payment ID for the case payment which to refund
34
- * @param {number} refundAmount - The amount to refund
35
- * @param {string} comment - A comment to append to the refund
36
- * @return {Object} Returns Promise that represents an object describing the newly-added payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
37
- */
38
- addRefund(caPaymentId: number, refundAmount: number, comment: string): Promise<unknown>;
39
- /**
40
- * Add Case Deposit Payment. Adds a payment to the case deposit specified by CaDepositId.
41
- *
42
- * @category Case Payments
43
- * @param {number} caDepositId - The Case Deposit ID for the case deposit to which to add the fee
44
- * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
45
- * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
46
- */
47
- addDepositPayment(caDepositId: number, options: Object): Promise<unknown>;
48
- /**
49
- * Adds a deposit to the case specified by the CaObectId.
50
- *
51
- * @category Case Deposits
52
- * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
53
- * @param {number} depositId - The deposit setup id for the deposit to add to the case.
54
- * @param {number} [amount] - The amount of the deposit (optional)
55
- * @param {string} [comment] - Comment text to add to the deposit (optional)
56
- * @return {Object} Returns Promise that represents an object describing the newly-added deposit. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
57
- */
58
- addDeposit(caObjectId: number, depositId: number, amount?: number, comment?: string): Promise<unknown>;
59
- /**
60
- * Adds an instrument to the case specified by the CaObectId.
61
- *
62
- * @category Case Instruments
63
- * @param {number} caObjectId - The Case Object ID for the case to which to add the instrument
64
- * @param {number} instTypeId - The instrument type id for the instrument being added to the case.
65
- * @param {number} amount - The amount of the instrument
66
- * @param {Date} dateExpire - The datetime for the instrument to expire.
67
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument for more options.
68
- * @return {Object} Returns Promise that represents an object describing the newly-added instrument. See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument
69
- */
70
- addInstrument(caObjectId: number, instTypeId: number, amount: number, dateExpire: Date, options?: Object): Promise<unknown>;
71
- /**
72
- * Updates a fee specified by the CaFeeId.
73
- *
74
- * @category Case Fees
75
- * @param {number} caFeeId - The Fee ID for the specific instance of the fee you wish to update
76
- * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
77
- * @return {Object} Returns Promise that represents an object describing the updated fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
78
- */
79
- updateFee(caFeeId: number, options?: Object): Promise<unknown>;
80
- /**
81
- * Void a refund.
82
- *
83
- * @category Case Refund Payment
84
- * @param {number} caPaymentRefundId - The Refund ID for the specific refund to void
85
- * @param {String} voided - A string. No clue.
86
- * @return {Object} Returns Promise that represents an object describing the voided refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
87
- */
88
- voidRefund(caPaymentRefundId: number, voided: string): Promise<unknown>;
89
- /**
90
- * Adds Default Case Fees. Adds fees to the case specified by the CaObectId and BusCaseId.
91
- *
92
- * @category Case Fees
93
- * @param {number} caObjectId - The Case Object ID for the case to which to add the default fees
94
- * @param {number} busCaseId - The business case ID whose default fees should be added to the case
95
- * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
96
- */
97
- addDefaultFees(caObjectId: number, busCaseId: number): Promise<unknown>;
98
- /**
99
- * Adds Default Case Deposits. Adds deposits to the case specified by the CaObectId and BusCaseId.
100
- *
101
- * @category Case Deposits
102
- * @param {number} caObjectId - The Case Object ID for the case to which to add the default deposits
103
- * @param {number} busCaseId - The business case ID whose default deposits should be added to the case
104
- * @return {Object} Returns Promise that represents a collection of Deposit Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
105
- */
106
- addDefaultDeposits(caObjectId: number, busCaseId: number): Promise<unknown>;
107
- /**
108
- * Gets the fees from the case specified by the CaObectId.
109
- *
110
- * @category Case Fees
111
- * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
112
- * @return {Object} Returns Promise that represents a collection of Case Fees.
113
- */
114
- getFees(caObjectId: number): Promise<unknown>;
115
- /**
116
- * Get Case Deposit by Case ObjectId.
117
- *
118
- * @category Case Deposits
119
- * @param {number} caObjectId - The Case Object ID for the case to which to get the deposits
120
- * @return {Object} Returns Promise that represents a collection of Case Deposits.
121
- */
122
- getDeposits(caObjectId: number): Promise<unknown>;
123
- /**
124
- * Get Case Payments by Case ObjectId
125
- *
126
- * @category Case Payments
127
- * @param {number} caObjectId - The Case Object ID for the case to which to get the payments
128
- * @return {Object} Returns Promise that represents a collection of Case Payments.
129
- */
130
- getPayments(caObjectId: number): Promise<unknown>;
131
- /**
132
- * Gets the instruments from the case specified by the CaObectId.
133
- *
134
- * @category Case Instruments
135
- * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
136
- * @return {Object} Returns Promise that represents a collection of Case Instruments.
137
- */
138
- getInstruments(caObjectId: number): Promise<unknown>;
139
- /**
140
- * Delete the fee specified by the caFeeId.
141
- *
142
- * @category Case Fees
143
- * @param {number} caFeeId - The Case Fee ID which should be deleted
144
- * @return {Object} Returns Promise that represents a Case Fee object.
145
- */
146
- deleteFee(caFeeId: number): Promise<unknown>;
147
- /**
148
- * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
149
- *
150
- * @category Case Fees
151
- * @param {number} caObjectId - The Case Object ID whose fees should be deleted
152
- * @return {Object} Returns Promise that represents a number (?)
153
- */
154
- deleteFeesByCaseId(caObjectId: number): Promise<unknown>;
155
- /**
156
- * Delete a Case Payment by Id. Delete a specific case payment by CaPaymentId.
157
- *
158
- * @category Case Payments
159
- * @param {number} caPaymentId - The Case Payment ID which should be deleted
160
- * @return {Object} Returns Promise that represents a Case Payment object.
161
- */
162
- deletePayment(caFeeId: number): Promise<unknown>;
163
- /**
164
- * Delete Case Payment Refund. Removes a refund on a payment.
165
- *
166
- * @category Case Payment Refunds
167
- * @param {number} caPaymentRefundId - The Case Payment ID for the case payment which to refund
168
- * @return {Object} Returns Promise that represents an object describing the deleted payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
169
- */
170
- deleteRefund(caPaymentRefundId: number): Promise<unknown>;
171
- /**
172
- * Delete Case Payments by Case ObjectId. Delete from the system all payments associated to a specific case as specified by the case id (CaObjectId)
173
- *
174
- * @category Case Payments
175
- * @param {number} caObjectId - The Case Object ID whose payments should be deleted
176
- * @return {Object} Returns Promise that represents a number (?)
177
- */
178
- deletePaymentsByCaseId(caObjectId: number): Promise<unknown>;
179
- /**
180
- * Delete the fee specified by the caFeeId.
181
- *
182
- * @category Case Deposits
183
- * @param {number} caDepositId - The Case Deposit ID which should be deleted
184
- * @return {Object} Returns Promise that represents a collection of Case Deposits.
185
- */
186
- deleteDeposit(caDepositId: number): Promise<unknown>;
187
- /**
188
- * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
189
- *
190
- * @category Case Deposits
191
- * @param {number} caObjectId - The Case Object ID whose fees should be deleted
192
- * @return {Object} Returns Promise that represents a number (?)
193
- */
194
- deleteDepositsByCaseId(caObjectId: number): Promise<unknown>;
195
- /**
196
- * Delete the instrument specified by the caInstrumentId.
197
- *
198
- * @category Case Instruments
199
- * @param {number} caInstrumentId - The Case Instrument ID which should be deleted
200
- * @return {Object} Returns Promise that represents a Case Instrument.
201
- */
202
- deleteInstrument(caInstrumentId: number): Promise<unknown>;
203
- /**
204
- * Delete Case Instruments by Case ObjectId. Delete from the system all Instruments linked to a specific Case as specified by the Case Id parameter (CaObjectId).
205
- *
206
- * @category Case Instruments
207
- * @param {number} caObjectId - The Case Object ID whose instruments should be deleted
208
- * @return {Object} Returns Promise that represents a number (?)
209
- */
210
- deleteInstrumentsByCaseId(caObjectId: number): Promise<unknown>;
211
- /**
212
- * Search for Case Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
213
- *
214
- * @category Case Fees
215
- * @param {Object} filters - The parameter(s) to search by
216
- * @return {Object} Returns Promise that represents an Array of case fee IDs
217
- */
218
- searchFees(filters: Object): Promise<unknown>;
219
- /**
220
- * Search for Case Payments. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
221
- *
222
- * @category Case Payments
223
- * @param {Object} filters - The filters to search for matched Case Payments
224
- * @return {Object} Returns Promise that represents an Array of case payment IDs
225
- */
226
- searchPayments(filters: Object): Promise<unknown>;
227
- /**
228
- * Search for Case Payment Refunds. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
229
- *
230
- * @category Case Payment Refunds
231
- * @param {Object} filters - The filters to search for matched Case Payments.
232
- * @return {Object} Returns Promise that represents an Array of case payment refund IDs
233
- */
234
- searchRefunds(filters: Object): Promise<unknown>;
235
- /**
236
- * Search for Case Deposits. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
237
- *
238
- * @category Case Deposits
239
- * @param {Object} filters - The parameters to search by.
240
- * @return {Object} Returns Promise that represents an Array of case fee IDs
241
- */
242
- searchDeposits(filters: Object): Promise<unknown>;
243
- /**
244
- * Get All Fee Templates
245
- *
246
- * @category Case Fees
247
- * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
248
- */
249
- getAllFeeTemplates(): Promise<unknown>;
250
- /**
251
- * Search for Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
252
- *
253
- * @category Case Fees
254
- * @param {Object} filters - The parameters to search by
255
- * @return {Object} Returns Promise that represents an Array of case fee IDs
256
- */
257
- searchFeeTemplates(filters: Object): Promise<unknown>;
258
- /**
259
- * Search for Case Instruments. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
260
- *
261
- * @category Case Instruments
262
- * @param {Object} filters - The parameters to search by (AddressLine1, Amount, CaInstrumentId, CityName, CommentText, Company, ContactEmail, ContactName, ContactPhone, CountryCode, InstTypeId, SerialNumber, StateCode, ZipCode)
263
- * @return {Object} Returns Promise that represents an Array of case instrument IDs
264
- */
265
- searchCaseInstruments(filters: Object): Promise<unknown>;
266
- /**
267
- * Get the Defined Instruments
268
- *
269
- * @category Instruments
270
- * @param {Object} options - the options to filter the instruments returned by
271
- * @return {Object} Returns Promise that represents an Array of CaInstrumentItem
272
- */
273
- getInstrumentList(options: Object): Promise<unknown>;
274
- /**
275
- * Adds a release to a case instrument specified by the caInstrumentId. Must provide either amountReleased OR percentReleased
276
- *
277
- * @category Case Instrument Releases
278
- * @param {number} caInstrumentId - The Case Instrument ID to which to add the instrument release
279
- * @param {number} releasedBy - UserID to attach to the release.
280
- * @param {Date} dateReleased - The date of the release
281
- * @param {number} [amountReleased] - The amount to be released
282
- * @param {number} [percentReleased] - OR the percent to be released
283
- * @param {string} [comment] - Comment to attach to the release
284
- * @return {Object} Returns Promise that represents an object describing the newly-added instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
285
- */
286
- addCaseInstrumentRelease(caInstrumentId: number, releasedBy: number, dateReleased: Date, amountReleased?: number, percentReleased?: number, comment?: string): Promise<unknown>;
287
- /**
288
- * Deletes a release specified by the caInstReleasesId.
289
- *
290
- * @category Case Instrument Releases
291
- * @param {number} caInstReleasesId - The Case Instrument Release ID to delete
292
- * @return {Object} Returns Promise that represents an object describing the deleted instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
293
- */
294
- deleteCaseInstrumentRelease(caInstReleasesId: number): Promise<unknown>;
295
- /**
296
- * Search for Case Instrument Releases. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
297
- *
298
- * @category Case Instrument Releases
299
- * @param {Object} filters - Specify at least one of the following: AmountReleased, CaInstReleasesId, CaInstrumentId, CommentText, PercentReleased, ReleasedBy
300
- * @return {Object} Returns Promise that represents an Array of Case Instruments resulting from the search
301
- */
302
- searchCaseInstrumentReleases(filters: Object): Promise<unknown>;
303
- /**
304
- * Get All Fees
305
- *
306
- * @category Fees
307
- * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
308
- */
309
- fees(): Promise<unknown>;
310
- /**
311
- * Search for Fees. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
312
- *
313
- * @category Fees
314
- * @param {Object} filters - Specify at least one.
315
- * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
316
- */
317
- searchAvailableFees(filters: {
318
- AccountCode?: string;
319
- FeeCode?: string;
320
- FeeDesc?: string;
321
- FeeSetupId?: number;
322
- FeeTypeId?: number;
323
- }): Promise<unknown>;
324
- /**
325
- * Get all tender types configured
326
- *
327
- * @category Tender Types
328
- * @return {Object} Returns Promise that represents a collection of tender type objects. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
329
- */
330
- getTenderTypes(): Promise<unknown>;
331
- /**
332
- * Adds a tender type configuration
333
- *
334
- * @category Tender Types
335
- * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
336
- * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
337
- */
338
- addTenderType(options: Object): Promise<unknown>;
339
- /**
340
- * Update a tender type configuration
341
- *
342
- * @category Tender Types
343
- * @param {number} tenderTypeId - ID of the tender type to update
344
- * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
345
- * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
346
- */
347
- updateTenderType(tenderTypeId: number, options: Object): Promise<unknown>;
348
- }
1
+ export declare class CaseFinancial {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: Object);
10
+ /**
11
+ * Adds a fee to the case specified by the CaObectId.
12
+ *
13
+ * @category Case Fees
14
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
15
+ * @param {number} feeSetupId - The fee setup id for the fee to add to the case.
16
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
17
+ * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
18
+ */
19
+ addFee(caObjectId: number, feeSetupId: number, options?: Object): Promise<unknown>;
20
+ /**
21
+ * Add Case Fee Payment. Adds a payment to the case fee specified by caObjectId.
22
+ *
23
+ * @category Case Payments
24
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
25
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
26
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
27
+ */
28
+ addPayment(caObjectId: number, options: Object): Promise<unknown>;
29
+ /**
30
+ * Make a Payment. Adds a payment to the case fee(s) specified.
31
+ *
32
+ * @category Case Payments
33
+ * @param {Array<Array<string>>} payments - The Case Object ID for the case to which to add the fee
34
+ * @param {Array<number>} caseFees - Fees this payment should be applied to. Array of CaFeeIds values.
35
+ * @param {stringName:string,AddressLine1?:string,AddressLine2?:string,AddressLine3?:string,CityName?:string,CommentText?:string,Email?:string,FaxNumber?:string,PhoneHome?:string,PhoneMobile?:string,PhoneWork?:string,PhoneWorkExt?:string,StateCode?:string,WebSiteUrl?:string,ZipCode?:string,CountryCode?:string} payerInfo - Payer info for the payment being made.
36
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment.
37
+ */
38
+ makePayment(payments: Array<Array<string>>, caseFees: Array<number>, payerInfo?: {
39
+ stringName: string;
40
+ AddressLine1?: string;
41
+ AddressLine2?: string;
42
+ AddressLine3?: string;
43
+ CityName?: string;
44
+ CommentText?: string;
45
+ Email?: string;
46
+ FaxNumber?: string;
47
+ PhoneHome?: string;
48
+ PhoneMobile?: string;
49
+ PhoneWork?: string;
50
+ PhoneWorkExt?: string;
51
+ StateCode?: string;
52
+ WebSiteUrl?: string;
53
+ ZipCode?: string;
54
+ CountryCode?: string;
55
+ }): Promise<unknown>;
56
+ /**
57
+ * Add Case Payment Refund. Refunds a payment on the case payment specified by caPaymentId.
58
+ *
59
+ * @category Case Payment Refunds
60
+ * @param {number} caPaymentId - The Case Payment ID for the case payment which to refund
61
+ * @param {number} refundAmount - The amount to refund
62
+ * @param {string} comment - A comment to append to the refund
63
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
64
+ */
65
+ addRefund(caPaymentId: number, refundAmount: number, comment: string): Promise<unknown>;
66
+ /**
67
+ * Add Case Deposit Payment. Adds a payment to the case deposit specified by CaDepositId.
68
+ *
69
+ * @category Case Payments
70
+ * @param {number} caDepositId - The Case Deposit ID for the case deposit to which to add the fee
71
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
72
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
73
+ */
74
+ addDepositPayment(caDepositId: number, options: Object): Promise<unknown>;
75
+ /**
76
+ * Adds a deposit to the case specified by the CaObectId.
77
+ *
78
+ * @category Case Deposits
79
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
80
+ * @param {number} depositId - The deposit setup id for the deposit to add to the case.
81
+ * @param {number} [amount] - The amount of the deposit (optional)
82
+ * @param {string} [comment] - Comment text to add to the deposit (optional)
83
+ * @return {Object} Returns Promise that represents an object describing the newly-added deposit. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
84
+ */
85
+ addDeposit(caObjectId: number, depositId: number, amount?: number, comment?: string): Promise<unknown>;
86
+ /**
87
+ * Adds an instrument to the case specified by the CaObectId.
88
+ *
89
+ * @category Case Instruments
90
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the instrument
91
+ * @param {number} instTypeId - The instrument type id for the instrument being added to the case.
92
+ * @param {number} amount - The amount of the instrument
93
+ * @param {Date} dateExpire - The datetime for the instrument to expire.
94
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument for more options.
95
+ * @return {Object} Returns Promise that represents an object describing the newly-added instrument. See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument
96
+ */
97
+ addInstrument(caObjectId: number, instTypeId: number, amount: number, dateExpire: Date, options?: Object): Promise<unknown>;
98
+ /**
99
+ * Updates a fee specified by the CaFeeId.
100
+ *
101
+ * @category Case Fees
102
+ * @param {number} caFeeId - The Fee ID for the specific instance of the fee you wish to update
103
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
104
+ * @return {Object} Returns Promise that represents an object describing the updated fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
105
+ */
106
+ updateFee(caFeeId: number, options?: Object): Promise<unknown>;
107
+ /**
108
+ * Void a refund.
109
+ *
110
+ * @category Case Refund Payment
111
+ * @param {number} caPaymentRefundId - The Refund ID for the specific refund to void
112
+ * @param {String} voided - A string. No clue.
113
+ * @return {Object} Returns Promise that represents an object describing the voided refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
114
+ */
115
+ voidRefund(caPaymentRefundId: number, voided: string): Promise<unknown>;
116
+ /**
117
+ * Adds Default Case Fees. Adds fees to the case specified by the CaObectId and BusCaseId.
118
+ *
119
+ * @category Case Fees
120
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the default fees
121
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
122
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
123
+ */
124
+ addDefaultFees(caObjectId: number, busCaseId: number): Promise<unknown>;
125
+ /**
126
+ * Adds Default Case Deposits. Adds deposits to the case specified by the CaObectId and BusCaseId.
127
+ *
128
+ * @category Case Deposits
129
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the default deposits
130
+ * @param {number} busCaseId - The business case ID whose default deposits should be added to the case
131
+ * @return {Object} Returns Promise that represents a collection of Deposit Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
132
+ */
133
+ addDefaultDeposits(caObjectId: number, busCaseId: number): Promise<unknown>;
134
+ /**
135
+ * Gets the fees from the case specified by the CaObectId.
136
+ *
137
+ * @category Case Fees
138
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
139
+ * @return {Object} Returns Promise that represents a collection of Case Fees.
140
+ */
141
+ getFees(caObjectId: number): Promise<unknown>;
142
+ /**
143
+ * Get Case Deposit by Case ObjectId.
144
+ *
145
+ * @category Case Deposits
146
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the deposits
147
+ * @return {Object} Returns Promise that represents a collection of Case Deposits.
148
+ */
149
+ getDeposits(caObjectId: number): Promise<unknown>;
150
+ /**
151
+ * Get Case Payments by Case ObjectId
152
+ *
153
+ * @category Case Payments
154
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the payments
155
+ * @return {Object} Returns Promise that represents a collection of Case Payments.
156
+ */
157
+ getPayments(caObjectId: number): Promise<unknown>;
158
+ /**
159
+ * Gets the instruments from the case specified by the CaObectId.
160
+ *
161
+ * @category Case Instruments
162
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
163
+ * @return {Object} Returns Promise that represents a collection of Case Instruments.
164
+ */
165
+ getInstruments(caObjectId: number): Promise<unknown>;
166
+ /**
167
+ * Delete the fee specified by the caFeeId.
168
+ *
169
+ * @category Case Fees
170
+ * @param {number} caFeeId - The Case Fee ID which should be deleted
171
+ * @return {Object} Returns Promise that represents a Case Fee object.
172
+ */
173
+ deleteFee(caFeeId: number): Promise<unknown>;
174
+ /**
175
+ * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
176
+ *
177
+ * @category Case Fees
178
+ * @param {number} caObjectId - The Case Object ID whose fees should be deleted
179
+ * @return {Object} Returns Promise that represents a number (?)
180
+ */
181
+ deleteFeesByCaseId(caObjectId: number): Promise<unknown>;
182
+ /**
183
+ * Delete a Case Payment by Id. Delete a specific case payment by CaPaymentId.
184
+ *
185
+ * @category Case Payments
186
+ * @param {number} caPaymentId - The Case Payment ID which should be deleted
187
+ * @return {Object} Returns Promise that represents a Case Payment object.
188
+ */
189
+ deletePayment(caFeeId: number): Promise<unknown>;
190
+ /**
191
+ * Delete Case Payment Refund. Removes a refund on a payment.
192
+ *
193
+ * @category Case Payment Refunds
194
+ * @param {number} caPaymentRefundId - The Case Payment ID for the case payment which to refund
195
+ * @return {Object} Returns Promise that represents an object describing the deleted payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
196
+ */
197
+ deleteRefund(caPaymentRefundId: number): Promise<unknown>;
198
+ /**
199
+ * Delete Case Payments by Case ObjectId. Delete from the system all payments associated to a specific case as specified by the case id (CaObjectId)
200
+ *
201
+ * @category Case Payments
202
+ * @param {number} caObjectId - The Case Object ID whose payments should be deleted
203
+ * @return {Object} Returns Promise that represents a number (?)
204
+ */
205
+ deletePaymentsByCaseId(caObjectId: number): Promise<unknown>;
206
+ /**
207
+ * Delete the fee specified by the caFeeId.
208
+ *
209
+ * @category Case Deposits
210
+ * @param {number} caDepositId - The Case Deposit ID which should be deleted
211
+ * @return {Object} Returns Promise that represents a collection of Case Deposits.
212
+ */
213
+ deleteDeposit(caDepositId: number): Promise<unknown>;
214
+ /**
215
+ * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
216
+ *
217
+ * @category Case Deposits
218
+ * @param {number} caObjectId - The Case Object ID whose fees should be deleted
219
+ * @return {Object} Returns Promise that represents a number (?)
220
+ */
221
+ deleteDepositsByCaseId(caObjectId: number): Promise<unknown>;
222
+ /**
223
+ * Delete the instrument specified by the caInstrumentId.
224
+ *
225
+ * @category Case Instruments
226
+ * @param {number} caInstrumentId - The Case Instrument ID which should be deleted
227
+ * @return {Object} Returns Promise that represents a Case Instrument.
228
+ */
229
+ deleteInstrument(caInstrumentId: number): Promise<unknown>;
230
+ /**
231
+ * Delete Case Instruments by Case ObjectId. Delete from the system all Instruments linked to a specific Case as specified by the Case Id parameter (CaObjectId).
232
+ *
233
+ * @category Case Instruments
234
+ * @param {number} caObjectId - The Case Object ID whose instruments should be deleted
235
+ * @return {Object} Returns Promise that represents a number (?)
236
+ */
237
+ deleteInstrumentsByCaseId(caObjectId: number): Promise<unknown>;
238
+ /**
239
+ * Search for Case Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
240
+ *
241
+ * @category Case Fees
242
+ * @param {Object} filters - The parameter(s) to search by
243
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
244
+ */
245
+ searchFees(filters: Object): Promise<unknown>;
246
+ /**
247
+ * Search for Case Payments. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
248
+ *
249
+ * @category Case Payments
250
+ * @param {Object} filters - The filters to search for matched Case Payments
251
+ * @return {Object} Returns Promise that represents an Array of case payment IDs
252
+ */
253
+ searchPayments(filters: Object): Promise<unknown>;
254
+ /**
255
+ * Search for Case Payment Refunds. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
256
+ *
257
+ * @category Case Payment Refunds
258
+ * @param {Object} filters - The filters to search for matched Case Payments.
259
+ * @return {Object} Returns Promise that represents an Array of case payment refund IDs
260
+ */
261
+ searchRefunds(filters: Object): Promise<unknown>;
262
+ /**
263
+ * Get the Escrow Fees for a specific case template (BusCaseId).
264
+ *
265
+ * @category Case Escrow
266
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
267
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
268
+ */
269
+ getEscrowFees(busCaseId: number): Promise<unknown>;
270
+ /**
271
+ * Add an Escrow Payment. Adds a payment to the case.
272
+ *
273
+ * @category Case Escrow
274
+ * @param {number} escrowPaymentItems - The escrow payment items to add to the case (See: /{subdirectory}/apidocs/#/data-type-info;dataType=EscrowPaymentItem)
275
+ * @return {Object} Returns Promise that represents a collection of Escrow Paymnent Items that were added.
276
+ */
277
+ addEscrowPayment(escrowPaymentItems: Array<Object>): Promise<unknown>;
278
+ /**
279
+ * Search for Escrow Payments
280
+ *
281
+ * @category Case Escrow
282
+ * @param {number} caObectId - The business case ID whose default fees should be added to the case
283
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
284
+ */
285
+ /**
286
+ * Get the Escrow Fees for a specific case template (BusCaseId).
287
+ *
288
+ * @category Case Escrow
289
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
290
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
291
+ */
292
+ updateEscrowPayment(busCaseId: number): Promise<unknown>;
293
+ /**
294
+ * Search for Case Deposits. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
295
+ *
296
+ * @category Case Deposits
297
+ * @param {Object} filters - The parameters to search by.
298
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
299
+ */
300
+ searchDeposits(filters: Object): Promise<unknown>;
301
+ /**
302
+ * Get All Fee Templates
303
+ *
304
+ * @category Case Fees
305
+ * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
306
+ */
307
+ getAllFeeTemplates(): Promise<unknown>;
308
+ /**
309
+ * Search for Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
310
+ *
311
+ * @category Case Fees
312
+ * @param {Object} filters - The parameters to search by
313
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
314
+ */
315
+ searchFeeTemplates(filters: Object): Promise<unknown>;
316
+ /**
317
+ * Search for Case Instruments. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
318
+ *
319
+ * @category Case Instruments
320
+ * @param {Object} filters - The parameters to search by (AddressLine1, Amount, CaInstrumentId, CityName, CommentText, Company, ContactEmail, ContactName, ContactPhone, CountryCode, InstTypeId, SerialNumber, StateCode, ZipCode)
321
+ * @return {Object} Returns Promise that represents an Array of case instrument IDs
322
+ */
323
+ searchCaseInstruments(filters: Object): Promise<unknown>;
324
+ /**
325
+ * Get the Defined Instruments
326
+ *
327
+ * @category Instruments
328
+ * @param {Object} options - the options to filter the instruments returned by
329
+ * @return {Object} Returns Promise that represents an Array of CaInstrumentItem
330
+ */
331
+ getInstrumentList(options: Object): Promise<unknown>;
332
+ /**
333
+ * Adds a release to a case instrument specified by the caInstrumentId. Must provide either amountReleased OR percentReleased
334
+ *
335
+ * @category Case Instrument Releases
336
+ * @param {number} caInstrumentId - The Case Instrument ID to which to add the instrument release
337
+ * @param {number} releasedBy - UserID to attach to the release.
338
+ * @param {Date} dateReleased - The date of the release
339
+ * @param {number} [amountReleased] - The amount to be released
340
+ * @param {number} [percentReleased] - OR the percent to be released
341
+ * @param {string} [comment] - Comment to attach to the release
342
+ * @return {Object} Returns Promise that represents an object describing the newly-added instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
343
+ */
344
+ addCaseInstrumentRelease(caInstrumentId: number, releasedBy: number, dateReleased: Date, amountReleased?: number, percentReleased?: number, comment?: string): Promise<unknown>;
345
+ /**
346
+ * Deletes a release specified by the caInstReleasesId.
347
+ *
348
+ * @category Case Instrument Releases
349
+ * @param {number} caInstReleasesId - The Case Instrument Release ID to delete
350
+ * @return {Object} Returns Promise that represents an object describing the deleted instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
351
+ */
352
+ deleteCaseInstrumentRelease(caInstReleasesId: number): Promise<unknown>;
353
+ /**
354
+ * Search for Case Instrument Releases. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
355
+ *
356
+ * @category Case Instrument Releases
357
+ * @param {Object} filters - Specify at least one of the following: AmountReleased, CaInstReleasesId, CaInstrumentId, CommentText, PercentReleased, ReleasedBy
358
+ * @return {Object} Returns Promise that represents an Array of Case Instruments resulting from the search
359
+ */
360
+ searchCaseInstrumentReleases(filters: Object): Promise<unknown>;
361
+ /**
362
+ * Get All Fees
363
+ *
364
+ * @category Fees
365
+ * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
366
+ */
367
+ fees(): Promise<unknown>;
368
+ /**
369
+ * Search for Fees. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
370
+ *
371
+ * @category Fees
372
+ * @param {Object} filters - Specify at least one.
373
+ * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
374
+ */
375
+ searchAvailableFees(filters: {
376
+ AccountCode?: string;
377
+ FeeCode?: string;
378
+ FeeDesc?: string;
379
+ FeeSetupId?: number;
380
+ FeeTypeId?: number;
381
+ }): Promise<unknown>;
382
+ /**
383
+ * Get all tender types configured
384
+ *
385
+ * @category Tender Types
386
+ * @return {Object} Returns Promise that represents a collection of tender type objects. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
387
+ */
388
+ getTenderTypes(): Promise<unknown>;
389
+ /**
390
+ * Adds a tender type configuration
391
+ *
392
+ * @category Tender Types
393
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
394
+ * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
395
+ */
396
+ addTenderType(options: Object): Promise<unknown>;
397
+ /**
398
+ * Update a tender type configuration
399
+ *
400
+ * @category Tender Types
401
+ * @param {number} tenderTypeId - ID of the tender type to update
402
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
403
+ * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
404
+ */
405
+ updateTenderType(tenderTypeId: number, options: Object): Promise<unknown>;
406
+ }