@otr-app/shared-backend-generated-client 2.4.85 → 2.4.86

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 (26) hide show
  1. package/dist/angular/.openapi-generator/FILES +1 -1
  2. package/dist/angular/api/casePaymentController.service.ts +7 -12
  3. package/dist/angular/api/recurringBillingController.service.ts +77 -0
  4. package/dist/angular/model/models.ts +1 -1
  5. package/dist/angular/model/saveBillingProductOptionRequest.ts +28 -0
  6. package/dist/otrBackendService.js +56 -8
  7. package/dist/otrBackendService.min.js +7 -7
  8. package/dist/typescript/api/CasePaymentControllerApi.d.ts +2 -2
  9. package/dist/typescript/api/CasePaymentControllerApi.js +4 -8
  10. package/dist/typescript/api/RecurringBillingControllerApi.d.ts +8 -0
  11. package/dist/typescript/api/RecurringBillingControllerApi.js +37 -0
  12. package/dist/typescript/model/SaveBillingProductOptionRequest.d.ts +23 -0
  13. package/dist/typescript/model/SaveBillingProductOptionRequest.js +22 -0
  14. package/dist/typescript/model/models.d.ts +1 -1
  15. package/dist/typescript/model/models.js +1 -1
  16. package/dist/typescript-fetch/apis/CasePaymentControllerApi.d.ts +7 -7
  17. package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +9 -12
  18. package/dist/typescript-fetch/apis/RecurringBillingControllerApi.d.ts +14 -1
  19. package/dist/typescript-fetch/apis/RecurringBillingControllerApi.js +36 -1
  20. package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.d.ts +38 -0
  21. package/dist/typescript-fetch/models/SaveBillingProductOptionRequest.js +48 -0
  22. package/dist/typescript-fetch/models/index.d.ts +1 -1
  23. package/dist/typescript-fetch/models/index.js +1 -1
  24. package/package.json +1 -1
  25. package/dist/typescript-fetch/models/SaveCasePlanRequest.d.ts +0 -44
  26. package/dist/typescript-fetch/models/SaveCasePlanRequest.js +0 -50
@@ -732,8 +732,8 @@ model/sNSNotificationRequest.ts
732
732
  model/sSLCertificateResponse.ts
733
733
  model/saveAgentBookingRequest.ts
734
734
  model/saveAgentBookingResponse.ts
735
+ model/saveBillingProductOptionRequest.ts
735
736
  model/saveCaseNotesRequest.ts
736
- model/saveCasePlanRequest.ts
737
737
  model/saveCaseUserRequest.ts
738
738
  model/saveCoachingCardRequest.ts
739
739
  model/saveCoachingCardUserRequest.ts
@@ -35,8 +35,6 @@ import { GetStripeChargesResponse } from '../model/getStripeChargesResponse';
35
35
  // @ts-ignore
36
36
  import { ListCostItemsForCustomerResponse } from '../model/listCostItemsForCustomerResponse';
37
37
  // @ts-ignore
38
- import { SaveCasePlanRequest } from '../model/saveCasePlanRequest';
39
- // @ts-ignore
40
38
  import { ScheduleNewPaymentRequest } from '../model/scheduleNewPaymentRequest';
41
39
  // @ts-ignore
42
40
  import { UpdateCasePaymentRequest } from '../model/updateCasePaymentRequest';
@@ -806,25 +804,22 @@ export class CasePaymentControllerService {
806
804
  }
807
805
 
808
806
  /**
809
- * saveCasePlan
807
+ * saveCasePaymentPlan
810
808
  * @param caseId caseId
811
809
  * @param paymentPlanTypeId paymentPlanTypeId
812
810
  * @param request request
813
811
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
814
812
  * @param reportProgress flag to report request and response progress.
815
813
  */
816
- public saveCasePlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePlanRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
817
- public saveCasePlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePlanRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
818
- public saveCasePlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePlanRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
819
- public saveCasePlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePlanRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
814
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
815
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
816
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
817
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request?: object, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
820
818
  if (caseId === null || caseId === undefined) {
821
- throw new Error('Required parameter caseId was null or undefined when calling saveCasePlanUsingPOST.');
819
+ throw new Error('Required parameter caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
822
820
  }
823
821
  if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
824
- throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePlanUsingPOST.');
825
- }
826
- if (request === null || request === undefined) {
827
- throw new Error('Required parameter request was null or undefined when calling saveCasePlanUsingPOST.');
822
+ throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
828
823
  }
829
824
 
830
825
  let localVarHeaders = this.defaultHeaders;
@@ -30,6 +30,8 @@ import { ListBillingProductsResponse } from '../model/listBillingProductsRespons
30
30
  import { ListBillingSubscriptionsResponse } from '../model/listBillingSubscriptionsResponse';
31
31
  // @ts-ignore
32
32
  import { ListSubscriptionInvoicesResponse } from '../model/listSubscriptionInvoicesResponse';
33
+ // @ts-ignore
34
+ import { SaveBillingProductOptionRequest } from '../model/saveBillingProductOptionRequest';
33
35
 
34
36
  // @ts-ignore
35
37
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -456,4 +458,79 @@ export class RecurringBillingControllerService {
456
458
  );
457
459
  }
458
460
 
461
+ /**
462
+ * saveBillingProductOption
463
+ * @param caseId caseId
464
+ * @param productId productId
465
+ * @param request request
466
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
467
+ * @param reportProgress flag to report request and response progress.
468
+ */
469
+ public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
470
+ public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
471
+ public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
472
+ public saveBillingProductOptionUsingPOST(caseId: string, productId: string, request: SaveBillingProductOptionRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
473
+ if (caseId === null || caseId === undefined) {
474
+ throw new Error('Required parameter caseId was null or undefined when calling saveBillingProductOptionUsingPOST.');
475
+ }
476
+ if (productId === null || productId === undefined) {
477
+ throw new Error('Required parameter productId was null or undefined when calling saveBillingProductOptionUsingPOST.');
478
+ }
479
+ if (request === null || request === undefined) {
480
+ throw new Error('Required parameter request was null or undefined when calling saveBillingProductOptionUsingPOST.');
481
+ }
482
+
483
+ let localVarHeaders = this.defaultHeaders;
484
+
485
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
486
+ if (localVarHttpHeaderAcceptSelected === undefined) {
487
+ // to determine the Accept header
488
+ const httpHeaderAccepts: string[] = [
489
+ ];
490
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
491
+ }
492
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
493
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
494
+ }
495
+
496
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
497
+ if (localVarHttpContext === undefined) {
498
+ localVarHttpContext = new HttpContext();
499
+ }
500
+
501
+
502
+ // to determine the Content-Type header
503
+ const consumes: string[] = [
504
+ 'application/json'
505
+ ];
506
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
507
+ if (httpContentTypeSelected !== undefined) {
508
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
509
+ }
510
+
511
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
512
+ if (localVarHttpHeaderAcceptSelected) {
513
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
514
+ responseType_ = 'text';
515
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
516
+ responseType_ = 'json';
517
+ } else {
518
+ responseType_ = 'blob';
519
+ }
520
+ }
521
+
522
+ let localVarPath = `/api/v1/billing/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/products/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
523
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
524
+ {
525
+ context: localVarHttpContext,
526
+ body: request,
527
+ responseType: <any>responseType_,
528
+ withCredentials: this.configuration.withCredentials,
529
+ headers: localVarHeaders,
530
+ observe: observe,
531
+ reportProgress: reportProgress
532
+ }
533
+ );
534
+ }
535
+
459
536
  }
@@ -607,8 +607,8 @@ export * from './sNSNotificationRequest';
607
607
  export * from './sSLCertificateResponse';
608
608
  export * from './saveAgentBookingRequest';
609
609
  export * from './saveAgentBookingResponse';
610
+ export * from './saveBillingProductOptionRequest';
610
611
  export * from './saveCaseNotesRequest';
611
- export * from './saveCasePlanRequest';
612
612
  export * from './saveCaseUserRequest';
613
613
  export * from './saveCoachingCardRequest';
614
614
  export * from './saveCoachingCardUserRequest';
@@ -0,0 +1,28 @@
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 SaveBillingProductOptionRequest {
15
+ interval?: SaveBillingProductOptionRequest.IntervalEnum;
16
+ }
17
+ export namespace SaveBillingProductOptionRequest {
18
+ export type IntervalEnum = 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY';
19
+ export const IntervalEnum = {
20
+ Daily: 'DAILY' as IntervalEnum,
21
+ Monthly: 'MONTHLY' as IntervalEnum,
22
+ Quarterly: 'QUARTERLY' as IntervalEnum,
23
+ Weekly: 'WEEKLY' as IntervalEnum,
24
+ Yearly: 'YEARLY' as IntervalEnum
25
+ };
26
+ }
27
+
28
+
@@ -568,6 +568,59 @@ angular.module('otrBackendService', [])
568
568
 
569
569
  return deferred.promise;
570
570
  };
571
+ /**
572
+ * saveBillingProductOption
573
+ * @method
574
+ * @name OtrService#saveBillingProductOptionUsingPOST
575
+ * @param {object} parameters - method options and parameters
576
+ * @param {string} parameters.caseId - caseId
577
+ * @param {string} parameters.productId - productId
578
+ * @param {} parameters.request - request
579
+ */
580
+ OtrService.prototype.saveBillingProductOptionUsingPOST = function(parameters) {
581
+ if (parameters === undefined) {
582
+ parameters = {};
583
+ }
584
+ var deferred = $q.defer();
585
+ var domain = this.domain,
586
+ path = '/api/v1/billing/cases/{caseId}/products/{productId}';
587
+ var body = {},
588
+ queryParameters = {},
589
+ headers = {},
590
+ form = {};
591
+
592
+ headers['Accept'] = ['*/*'];
593
+ headers['Content-Type'] = ['application/json'];
594
+
595
+ path = path.replace('{caseId}', parameters['caseId']);
596
+
597
+ if (parameters['caseId'] === undefined) {
598
+ deferred.reject(new Error('Missing required parameter: caseId'));
599
+ return deferred.promise;
600
+ }
601
+
602
+ path = path.replace('{productId}', parameters['productId']);
603
+
604
+ if (parameters['productId'] === undefined) {
605
+ deferred.reject(new Error('Missing required parameter: productId'));
606
+ return deferred.promise;
607
+ }
608
+
609
+ if (parameters['request'] !== undefined) {
610
+ body = parameters['request'];
611
+ }
612
+
613
+ if (parameters['request'] === undefined) {
614
+ deferred.reject(new Error('Missing required parameter: request'));
615
+ return deferred.promise;
616
+ }
617
+
618
+ queryParameters = mergeQueryParams(parameters, queryParameters);
619
+
620
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
621
+
622
+ return deferred.promise;
623
+ };
571
624
  /**
572
625
  * listBillingProducts
573
626
  * @method
@@ -3136,15 +3189,15 @@ angular.module('otrBackendService', [])
3136
3189
  return deferred.promise;
3137
3190
  };
3138
3191
  /**
3139
- * saveCasePlan
3192
+ * saveCasePaymentPlan
3140
3193
  * @method
3141
- * @name OtrService#saveCasePlanUsingPOST
3194
+ * @name OtrService#saveCasePaymentPlanUsingPOST
3142
3195
  * @param {object} parameters - method options and parameters
3143
3196
  * @param {string} parameters.caseId - caseId
3144
3197
  * @param {string} parameters.paymentPlanTypeId - paymentPlanTypeId
3145
3198
  * @param {} parameters.request - request
3146
3199
  */
3147
- OtrService.prototype.saveCasePlanUsingPOST = function(parameters) {
3200
+ OtrService.prototype.saveCasePaymentPlanUsingPOST = function(parameters) {
3148
3201
  if (parameters === undefined) {
3149
3202
  parameters = {};
3150
3203
  }
@@ -3177,11 +3230,6 @@ angular.module('otrBackendService', [])
3177
3230
  body = parameters['request'];
3178
3231
  }
3179
3232
 
3180
- if (parameters['request'] === undefined) {
3181
- deferred.reject(new Error('Missing required parameter: request'));
3182
- return deferred.promise;
3183
- }
3184
-
3185
3233
  queryParameters = mergeQueryParams(parameters, queryParameters);
3186
3234
 
3187
3235
  this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);