@otr-app/shared-backend-generated-client 2.4.81 → 2.4.83

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.
@@ -733,6 +733,7 @@ model/sSLCertificateResponse.ts
733
733
  model/saveAgentBookingRequest.ts
734
734
  model/saveAgentBookingResponse.ts
735
735
  model/saveCaseNotesRequest.ts
736
+ model/saveCasePaymentPlanRequest.ts
736
737
  model/saveCaseUserRequest.ts
737
738
  model/saveCoachingCardRequest.ts
738
739
  model/saveCoachingCardUserRequest.ts
@@ -35,6 +35,8 @@ import { GetStripeChargesResponse } from '../model/getStripeChargesResponse';
35
35
  // @ts-ignore
36
36
  import { ListCostItemsForCustomerResponse } from '../model/listCostItemsForCustomerResponse';
37
37
  // @ts-ignore
38
+ import { SaveCasePaymentPlanRequest } from '../model/saveCasePaymentPlanRequest';
39
+ // @ts-ignore
38
40
  import { ScheduleNewPaymentRequest } from '../model/scheduleNewPaymentRequest';
39
41
  // @ts-ignore
40
42
  import { UpdateCasePaymentRequest } from '../model/updateCasePaymentRequest';
@@ -807,30 +809,22 @@ export class CasePaymentControllerService {
807
809
  * saveCasePaymentPlan
808
810
  * @param caseId caseId
809
811
  * @param paymentPlanTypeId paymentPlanTypeId
810
- * @param period period
811
- * @param productId productId
812
+ * @param request request
812
813
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
813
814
  * @param reportProgress flag to report request and response progress.
814
815
  */
815
- public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListCostItemsForCustomerResponse>;
816
- public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListCostItemsForCustomerResponse>>;
817
- public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListCostItemsForCustomerResponse>>;
818
- public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
816
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePaymentPlanRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
817
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePaymentPlanRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
818
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePaymentPlanRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
819
+ public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, request: SaveCasePaymentPlanRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
819
820
  if (caseId === null || caseId === undefined) {
820
821
  throw new Error('Required parameter caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
821
822
  }
822
823
  if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
823
824
  throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
824
825
  }
825
-
826
- let localVarQueryParameters = new HttpParams({encoder: this.encoder});
827
- if (period !== undefined && period !== null) {
828
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
829
- <any>period, 'period');
830
- }
831
- if (productId !== undefined && productId !== null) {
832
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
833
- <any>productId, 'productId');
826
+ if (request === null || request === undefined) {
827
+ throw new Error('Required parameter request was null or undefined when calling saveCasePaymentPlanUsingPOST.');
834
828
  }
835
829
 
836
830
  let localVarHeaders = this.defaultHeaders;
@@ -839,7 +833,6 @@ export class CasePaymentControllerService {
839
833
  if (localVarHttpHeaderAcceptSelected === undefined) {
840
834
  // to determine the Accept header
841
835
  const httpHeaderAccepts: string[] = [
842
- '*/*'
843
836
  ];
844
837
  localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
845
838
  }
@@ -853,6 +846,15 @@ export class CasePaymentControllerService {
853
846
  }
854
847
 
855
848
 
849
+ // to determine the Content-Type header
850
+ const consumes: string[] = [
851
+ 'application/json'
852
+ ];
853
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
854
+ if (httpContentTypeSelected !== undefined) {
855
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
856
+ }
857
+
856
858
  let responseType_: 'text' | 'json' | 'blob' = 'json';
857
859
  if (localVarHttpHeaderAcceptSelected) {
858
860
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -865,10 +867,10 @@ export class CasePaymentControllerService {
865
867
  }
866
868
 
867
869
  let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/payment-plans/${this.configuration.encodeParam({name: "paymentPlanTypeId", value: paymentPlanTypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
868
- return this.httpClient.request<ListCostItemsForCustomerResponse>('post', `${this.configuration.basePath}${localVarPath}`,
870
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
869
871
  {
870
872
  context: localVarHttpContext,
871
- params: localVarQueryParameters,
873
+ body: request,
872
874
  responseType: <any>responseType_,
873
875
  withCredentials: this.configuration.withCredentials,
874
876
  headers: localVarHeaders,
@@ -608,6 +608,7 @@ export * from './sSLCertificateResponse';
608
608
  export * from './saveAgentBookingRequest';
609
609
  export * from './saveAgentBookingResponse';
610
610
  export * from './saveCaseNotesRequest';
611
+ export * from './saveCasePaymentPlanRequest';
611
612
  export * from './saveCaseUserRequest';
612
613
  export * from './saveCoachingCardRequest';
613
614
  export * from './saveCoachingCardUserRequest';
@@ -0,0 +1,29 @@
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 SaveCasePaymentPlanRequest {
15
+ interval?: SaveCasePaymentPlanRequest.IntervalEnum;
16
+ productId?: string;
17
+ }
18
+ export namespace SaveCasePaymentPlanRequest {
19
+ export type IntervalEnum = 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY';
20
+ export const IntervalEnum = {
21
+ Daily: 'DAILY' as IntervalEnum,
22
+ Monthly: 'MONTHLY' as IntervalEnum,
23
+ Quarterly: 'QUARTERLY' as IntervalEnum,
24
+ Weekly: 'WEEKLY' as IntervalEnum,
25
+ Yearly: 'YEARLY' as IntervalEnum
26
+ };
27
+ }
28
+
29
+
@@ -3142,8 +3142,7 @@ angular.module('otrBackendService', [])
3142
3142
  * @param {object} parameters - method options and parameters
3143
3143
  * @param {string} parameters.caseId - caseId
3144
3144
  * @param {string} parameters.paymentPlanTypeId - paymentPlanTypeId
3145
- * @param {string} parameters.period - period
3146
- * @param {string} parameters.productId - productId
3145
+ * @param {} parameters.request - request
3147
3146
  */
3148
3147
  OtrService.prototype.saveCasePaymentPlanUsingPOST = function(parameters) {
3149
3148
  if (parameters === undefined) {
@@ -3174,12 +3173,13 @@ angular.module('otrBackendService', [])
3174
3173
  return deferred.promise;
3175
3174
  }
3176
3175
 
3177
- if (parameters['period'] !== undefined) {
3178
- queryParameters['period'] = parameters['period'];
3176
+ if (parameters['request'] !== undefined) {
3177
+ body = parameters['request'];
3179
3178
  }
3180
3179
 
3181
- if (parameters['productId'] !== undefined) {
3182
- queryParameters['productId'] = parameters['productId'];
3180
+ if (parameters['request'] === undefined) {
3181
+ deferred.reject(new Error('Missing required parameter: request'));
3182
+ return deferred.promise;
3183
3183
  }
3184
3184
 
3185
3185
  queryParameters = mergeQueryParams(parameters, queryParameters);