@otr-app/shared-backend-generated-client 2.4.77 → 2.4.79

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 (28) hide show
  1. package/dist/angular/.openapi-generator/FILES +2 -0
  2. package/dist/angular/api/caseCounterOfferController.service.ts +80 -0
  3. package/dist/angular/model/casePaymentModel.ts +1 -0
  4. package/dist/angular/model/generateCounterOfferCasePaymentsRequest.ts +17 -0
  5. package/dist/angular/model/generateCounterOfferCasePaymentsResponse.ts +23 -0
  6. package/dist/angular/model/models.ts +2 -0
  7. package/dist/otrBackendService.js +53 -0
  8. package/dist/otrBackendService.min.js +7 -7
  9. package/dist/typescript/api/CaseCounterOfferControllerApi.d.ts +8 -0
  10. package/dist/typescript/api/CaseCounterOfferControllerApi.js +37 -0
  11. package/dist/typescript/model/CasePaymentModel.d.ts +1 -0
  12. package/dist/typescript/model/GenerateCounterOfferCasePaymentsRequest.d.ts +14 -0
  13. package/dist/typescript/model/GenerateCounterOfferCasePaymentsRequest.js +12 -0
  14. package/dist/typescript/model/GenerateCounterOfferCasePaymentsResponse.d.ts +19 -0
  15. package/dist/typescript/model/GenerateCounterOfferCasePaymentsResponse.js +12 -0
  16. package/dist/typescript/model/models.d.ts +2 -0
  17. package/dist/typescript/model/models.js +2 -0
  18. package/dist/typescript-fetch/apis/CaseCounterOfferControllerApi.d.ts +14 -1
  19. package/dist/typescript-fetch/apis/CaseCounterOfferControllerApi.js +37 -1
  20. package/dist/typescript-fetch/models/CasePaymentModel.d.ts +6 -0
  21. package/dist/typescript-fetch/models/CasePaymentModel.js +2 -0
  22. package/dist/typescript-fetch/models/GenerateCounterOfferCasePaymentsRequest.d.ts +27 -0
  23. package/dist/typescript-fetch/models/GenerateCounterOfferCasePaymentsRequest.js +36 -0
  24. package/dist/typescript-fetch/models/GenerateCounterOfferCasePaymentsResponse.d.ts +52 -0
  25. package/dist/typescript-fetch/models/GenerateCounterOfferCasePaymentsResponse.js +45 -0
  26. package/dist/typescript-fetch/models/index.d.ts +2 -0
  27. package/dist/typescript-fetch/models/index.js +2 -0
  28. package/package.json +1 -1
@@ -377,6 +377,8 @@ model/freshdeskAttachmentReq.ts
377
377
  model/freshdeskAttachmentRes.ts
378
378
  model/freshdeskTicketReferenceDomain.ts
379
379
  model/freshdeskWebhookRequest.ts
380
+ model/generateCounterOfferCasePaymentsRequest.ts
381
+ model/generateCounterOfferCasePaymentsResponse.ts
380
382
  model/generateTemplateRequest.ts
381
383
  model/genericAdminListRequest.ts
382
384
  model/geoRatesRequest.ts
@@ -23,6 +23,10 @@ import { AcceptCaseCounterRequest } from '../model/acceptCaseCounterRequest';
23
23
  // @ts-ignore
24
24
  import { DeclineCaseCounterRequest } from '../model/declineCaseCounterRequest';
25
25
  // @ts-ignore
26
+ import { GenerateCounterOfferCasePaymentsRequest } from '../model/generateCounterOfferCasePaymentsRequest';
27
+ // @ts-ignore
28
+ import { GenerateCounterOfferCasePaymentsResponse } from '../model/generateCounterOfferCasePaymentsResponse';
29
+ // @ts-ignore
26
30
  import { GetCaseCounterOptionsResponse } from '../model/getCaseCounterOptionsResponse';
27
31
  // @ts-ignore
28
32
  import { GetCounterOfferResponse } from '../model/getCounterOfferResponse';
@@ -248,6 +252,82 @@ export class CaseCounterOfferControllerService {
248
252
  );
249
253
  }
250
254
 
255
+ /**
256
+ * generateCounterOfferCasePayments
257
+ * @param caseId caseId
258
+ * @param counterId counterId
259
+ * @param request request
260
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
261
+ * @param reportProgress flag to report request and response progress.
262
+ */
263
+ public generateCounterOfferCasePaymentsUsingPOST(caseId: string, counterId: number, request: GenerateCounterOfferCasePaymentsRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GenerateCounterOfferCasePaymentsResponse>;
264
+ public generateCounterOfferCasePaymentsUsingPOST(caseId: string, counterId: number, request: GenerateCounterOfferCasePaymentsRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GenerateCounterOfferCasePaymentsResponse>>;
265
+ public generateCounterOfferCasePaymentsUsingPOST(caseId: string, counterId: number, request: GenerateCounterOfferCasePaymentsRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GenerateCounterOfferCasePaymentsResponse>>;
266
+ public generateCounterOfferCasePaymentsUsingPOST(caseId: string, counterId: number, request: GenerateCounterOfferCasePaymentsRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
267
+ if (caseId === null || caseId === undefined) {
268
+ throw new Error('Required parameter caseId was null or undefined when calling generateCounterOfferCasePaymentsUsingPOST.');
269
+ }
270
+ if (counterId === null || counterId === undefined) {
271
+ throw new Error('Required parameter counterId was null or undefined when calling generateCounterOfferCasePaymentsUsingPOST.');
272
+ }
273
+ if (request === null || request === undefined) {
274
+ throw new Error('Required parameter request was null or undefined when calling generateCounterOfferCasePaymentsUsingPOST.');
275
+ }
276
+
277
+ let localVarHeaders = this.defaultHeaders;
278
+
279
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
280
+ if (localVarHttpHeaderAcceptSelected === undefined) {
281
+ // to determine the Accept header
282
+ const httpHeaderAccepts: string[] = [
283
+ '*/*'
284
+ ];
285
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
286
+ }
287
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
288
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
289
+ }
290
+
291
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
292
+ if (localVarHttpContext === undefined) {
293
+ localVarHttpContext = new HttpContext();
294
+ }
295
+
296
+
297
+ // to determine the Content-Type header
298
+ const consumes: string[] = [
299
+ 'application/json'
300
+ ];
301
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
302
+ if (httpContentTypeSelected !== undefined) {
303
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
304
+ }
305
+
306
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
307
+ if (localVarHttpHeaderAcceptSelected) {
308
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
309
+ responseType_ = 'text';
310
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
311
+ responseType_ = 'json';
312
+ } else {
313
+ responseType_ = 'blob';
314
+ }
315
+ }
316
+
317
+ let localVarPath = `/api/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/counters/${this.configuration.encodeParam({name: "counterId", value: counterId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/generate-payment-plan`;
318
+ return this.httpClient.request<GenerateCounterOfferCasePaymentsResponse>('post', `${this.configuration.basePath}${localVarPath}`,
319
+ {
320
+ context: localVarHttpContext,
321
+ body: request,
322
+ responseType: <any>responseType_,
323
+ withCredentials: this.configuration.withCredentials,
324
+ headers: localVarHeaders,
325
+ observe: observe,
326
+ reportProgress: reportProgress
327
+ }
328
+ );
329
+ }
330
+
251
331
  /**
252
332
  * getCaseCounterOptions
253
333
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -13,6 +13,7 @@ import { CasePaymentBreakdownItemModel } from './casePaymentBreakdownItemModel';
13
13
 
14
14
 
15
15
  export interface CasePaymentModel {
16
+ authorizationDateUtc?: string;
16
17
  captureDateUtc?: string;
17
18
  dueDate?: string;
18
19
  dueNow?: boolean;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export interface GenerateCounterOfferCasePaymentsRequest {
15
+ paymentPlanTypeId?: string;
16
+ }
17
+
@@ -0,0 +1,23 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { LineItemModel } from './lineItemModel';
13
+ import { CasePaymentModel } from './casePaymentModel';
14
+
15
+
16
+ export interface GenerateCounterOfferCasePaymentsResponse {
17
+ clientBaseCostInCents?: number;
18
+ clientTotalCostInCents?: number;
19
+ futurePayments?: Array<CasePaymentModel>;
20
+ lineItems?: Array<LineItemModel>;
21
+ totalRefCodeAdjustmentInCents?: number;
22
+ }
23
+
@@ -253,6 +253,8 @@ export * from './freshdeskAttachmentReq';
253
253
  export * from './freshdeskAttachmentRes';
254
254
  export * from './freshdeskTicketReferenceDomain';
255
255
  export * from './freshdeskWebhookRequest';
256
+ export * from './generateCounterOfferCasePaymentsRequest';
257
+ export * from './generateCounterOfferCasePaymentsResponse';
256
258
  export * from './generateTemplateRequest';
257
259
  export * from './genericAdminListRequest';
258
260
  export * from './geoRatesRequest';
@@ -173,6 +173,59 @@ angular.module('otrBackendService', [])
173
173
 
174
174
  return deferred.promise;
175
175
  };
176
+ /**
177
+ * generateCounterOfferCasePayments
178
+ * @method
179
+ * @name OtrService#generateCounterOfferCasePaymentsUsingPOST
180
+ * @param {object} parameters - method options and parameters
181
+ * @param {string} parameters.caseId - caseId
182
+ * @param {integer} parameters.counterId - counterId
183
+ * @param {} parameters.request - request
184
+ */
185
+ OtrService.prototype.generateCounterOfferCasePaymentsUsingPOST = function(parameters) {
186
+ if (parameters === undefined) {
187
+ parameters = {};
188
+ }
189
+ var deferred = $q.defer();
190
+ var domain = this.domain,
191
+ path = '/api/cases/{caseId}/counters/{counterId}/generate-payment-plan';
192
+ var body = {},
193
+ queryParameters = {},
194
+ headers = {},
195
+ form = {};
196
+
197
+ headers['Accept'] = ['*/*'];
198
+ headers['Content-Type'] = ['application/json'];
199
+
200
+ path = path.replace('{caseId}', parameters['caseId']);
201
+
202
+ if (parameters['caseId'] === undefined) {
203
+ deferred.reject(new Error('Missing required parameter: caseId'));
204
+ return deferred.promise;
205
+ }
206
+
207
+ path = path.replace('{counterId}', parameters['counterId']);
208
+
209
+ if (parameters['counterId'] === undefined) {
210
+ deferred.reject(new Error('Missing required parameter: counterId'));
211
+ return deferred.promise;
212
+ }
213
+
214
+ if (parameters['request'] !== undefined) {
215
+ body = parameters['request'];
216
+ }
217
+
218
+ if (parameters['request'] === undefined) {
219
+ deferred.reject(new Error('Missing required parameter: request'));
220
+ return deferred.promise;
221
+ }
222
+
223
+ queryParameters = mergeQueryParams(parameters, queryParameters);
224
+
225
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
226
+
227
+ return deferred.promise;
228
+ };
176
229
  /**
177
230
  * listActivityFeed
178
231
  * @method