@otr-app/shared-backend-generated-client 2.4.87 → 2.4.89

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.
@@ -533,22 +533,19 @@ export class CasePaymentControllerService {
533
533
  /**
534
534
  * getPaymentPlanOptions
535
535
  * @param caseId caseId
536
- * @param feeInCents feeInCents
537
536
  * @param lawfirmId lawfirmId
537
+ * @param feeInCents feeInCents
538
538
  * @param userId userId
539
539
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
540
540
  * @param reportProgress flag to report request and response progress.
541
541
  */
542
- public getPaymentPlanOptionsUsingGET(caseId: string, feeInCents: number, lawfirmId: number, userId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetAvailablePaymentPlansResponse>;
543
- public getPaymentPlanOptionsUsingGET(caseId: string, feeInCents: number, lawfirmId: number, userId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetAvailablePaymentPlansResponse>>;
544
- public getPaymentPlanOptionsUsingGET(caseId: string, feeInCents: number, lawfirmId: number, userId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetAvailablePaymentPlansResponse>>;
545
- public getPaymentPlanOptionsUsingGET(caseId: string, feeInCents: number, lawfirmId: number, userId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
542
+ public getPaymentPlanOptionsUsingGET(caseId: string, lawfirmId: number, feeInCents?: number, userId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetAvailablePaymentPlansResponse>;
543
+ public getPaymentPlanOptionsUsingGET(caseId: string, lawfirmId: number, feeInCents?: number, userId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetAvailablePaymentPlansResponse>>;
544
+ public getPaymentPlanOptionsUsingGET(caseId: string, lawfirmId: number, feeInCents?: number, userId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetAvailablePaymentPlansResponse>>;
545
+ public getPaymentPlanOptionsUsingGET(caseId: string, lawfirmId: number, feeInCents?: number, userId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
546
546
  if (caseId === null || caseId === undefined) {
547
547
  throw new Error('Required parameter caseId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
548
548
  }
549
- if (feeInCents === null || feeInCents === undefined) {
550
- throw new Error('Required parameter feeInCents was null or undefined when calling getPaymentPlanOptionsUsingGET.');
551
- }
552
549
  if (lawfirmId === null || lawfirmId === undefined) {
553
550
  throw new Error('Required parameter lawfirmId was null or undefined when calling getPaymentPlanOptionsUsingGET.');
554
551
  }
@@ -173,6 +173,63 @@ export class RecurringBillingControllerService {
173
173
  );
174
174
  }
175
175
 
176
+ /**
177
+ * clearBillingProductOptions
178
+ * @param caseId caseId
179
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
180
+ * @param reportProgress flag to report request and response progress.
181
+ */
182
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
183
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
184
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
185
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
186
+ if (caseId === null || caseId === undefined) {
187
+ throw new Error('Required parameter caseId was null or undefined when calling clearBillingProductOptionsUsingDELETE.');
188
+ }
189
+
190
+ let localVarHeaders = this.defaultHeaders;
191
+
192
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
193
+ if (localVarHttpHeaderAcceptSelected === undefined) {
194
+ // to determine the Accept header
195
+ const httpHeaderAccepts: string[] = [
196
+ ];
197
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
+ }
199
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
200
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
201
+ }
202
+
203
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
204
+ if (localVarHttpContext === undefined) {
205
+ localVarHttpContext = new HttpContext();
206
+ }
207
+
208
+
209
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
210
+ if (localVarHttpHeaderAcceptSelected) {
211
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
212
+ responseType_ = 'text';
213
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
214
+ responseType_ = 'json';
215
+ } else {
216
+ responseType_ = 'blob';
217
+ }
218
+ }
219
+
220
+ let localVarPath = `/api/v1/billing/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/products`;
221
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
222
+ {
223
+ context: localVarHttpContext,
224
+ responseType: <any>responseType_,
225
+ withCredentials: this.configuration.withCredentials,
226
+ headers: localVarHeaders,
227
+ observe: observe,
228
+ reportProgress: reportProgress
229
+ }
230
+ );
231
+ }
232
+
176
233
  /**
177
234
  * createBillingSubscription
178
235
  * @param userId userId
@@ -9,35 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { InvoiceLineItemModel } from './invoiceLineItemModel';
12
13
 
13
14
 
14
15
  export interface CasePaymentBreakdownItemModel {
15
16
  amount?: number;
16
17
  friendlyTitle?: string;
17
- type?: CasePaymentBreakdownItemModel.TypeEnum;
18
+ type?: InvoiceLineItemModel;
18
19
  }
19
- export namespace CasePaymentBreakdownItemModel {
20
- export type TypeEnum = 'ACCIDENT_FEE' | 'BASE_LEGAL_FEE' | 'BOND_FEE' | 'BOOKING_FEE' | 'CDL_FEE' | 'COURT_FEE' | 'DISPUTE_FEE' | 'FINE_PAYMENT' | 'FTA_FEE' | 'INITIAL_SUBSCRIPTION_FEE' | 'LATE_FEE' | 'MBG_REFUND' | 'MVS_FEE' | 'OTHER' | 'OTR_CREDIT' | 'OTR_SUBSCRIPTION_CREDIT' | 'PAYMENT_PLAN_SERVICE_FEE' | 'WARRANT_FEE';
21
- export const TypeEnum = {
22
- AccidentFee: 'ACCIDENT_FEE' as TypeEnum,
23
- BaseLegalFee: 'BASE_LEGAL_FEE' as TypeEnum,
24
- BondFee: 'BOND_FEE' as TypeEnum,
25
- BookingFee: 'BOOKING_FEE' as TypeEnum,
26
- CdlFee: 'CDL_FEE' as TypeEnum,
27
- CourtFee: 'COURT_FEE' as TypeEnum,
28
- DisputeFee: 'DISPUTE_FEE' as TypeEnum,
29
- FinePayment: 'FINE_PAYMENT' as TypeEnum,
30
- FtaFee: 'FTA_FEE' as TypeEnum,
31
- InitialSubscriptionFee: 'INITIAL_SUBSCRIPTION_FEE' as TypeEnum,
32
- LateFee: 'LATE_FEE' as TypeEnum,
33
- MbgRefund: 'MBG_REFUND' as TypeEnum,
34
- MvsFee: 'MVS_FEE' as TypeEnum,
35
- Other: 'OTHER' as TypeEnum,
36
- OtrCredit: 'OTR_CREDIT' as TypeEnum,
37
- OtrSubscriptionCredit: 'OTR_SUBSCRIPTION_CREDIT' as TypeEnum,
38
- PaymentPlanServiceFee: 'PAYMENT_PLAN_SERVICE_FEE' as TypeEnum,
39
- WarrantFee: 'WARRANT_FEE' as TypeEnum
40
- };
41
- }
42
-
43
20
 
@@ -568,6 +568,40 @@ angular.module('otrBackendService', [])
568
568
 
569
569
  return deferred.promise;
570
570
  };
571
+ /**
572
+ * clearBillingProductOptions
573
+ * @method
574
+ * @name OtrService#clearBillingProductOptionsUsingDELETE
575
+ * @param {object} parameters - method options and parameters
576
+ * @param {string} parameters.caseId - caseId
577
+ */
578
+ OtrService.prototype.clearBillingProductOptionsUsingDELETE = function(parameters) {
579
+ if (parameters === undefined) {
580
+ parameters = {};
581
+ }
582
+ var deferred = $q.defer();
583
+ var domain = this.domain,
584
+ path = '/api/v1/billing/cases/{caseId}/products';
585
+ var body = {},
586
+ queryParameters = {},
587
+ headers = {},
588
+ form = {};
589
+
590
+ headers['Accept'] = ['*/*'];
591
+
592
+ path = path.replace('{caseId}', parameters['caseId']);
593
+
594
+ if (parameters['caseId'] === undefined) {
595
+ deferred.reject(new Error('Missing required parameter: caseId'));
596
+ return deferred.promise;
597
+ }
598
+
599
+ queryParameters = mergeQueryParams(parameters, queryParameters);
600
+
601
+ this.request('DELETE', domain + path, parameters, body, headers, queryParameters, form, deferred);
602
+
603
+ return deferred.promise;
604
+ };
571
605
  /**
572
606
  * saveBillingProductOption
573
607
  * @method
@@ -3112,11 +3146,6 @@ angular.module('otrBackendService', [])
3112
3146
  queryParameters['feeInCents'] = parameters['feeInCents'];
3113
3147
  }
3114
3148
 
3115
- if (parameters['feeInCents'] === undefined) {
3116
- deferred.reject(new Error('Missing required parameter: feeInCents'));
3117
- return deferred.promise;
3118
- }
3119
-
3120
3149
  if (parameters['lawfirmId'] !== undefined) {
3121
3150
  queryParameters['lawfirmId'] = parameters['lawfirmId'];
3122
3151
  }