@otr-app/shared-backend-generated-client 2.3.44 → 2.3.46
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.
- package/dist/angular/.openapi-generator/FILES +1 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/lawfirmFeeCoverageController.service.ts +12 -4
- package/dist/angular/api/legalServicesController.service.ts +154 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/caseCreationRequest.ts +9 -0
- package/dist/angular/model/geoRatesRequest.ts +9 -0
- package/dist/angular/model/getLawfirmFeeCoverageModel.ts +10 -0
- package/dist/otrBackendService.js +51 -0
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/LawfirmFeeCoverageControllerApi.d.ts +2 -1
- package/dist/typescript/api/LawfirmFeeCoverageControllerApi.js +5 -1
- package/dist/typescript/api/LegalServicesControllerApi.d.ts +27 -0
- package/dist/typescript/api/LegalServicesControllerApi.js +60 -0
- package/dist/typescript/api/api.d.ts +3 -1
- package/dist/typescript/api/api.js +3 -1
- package/dist/typescript/api.module.js +1 -0
- package/dist/typescript/api.module.ts +1 -0
- package/dist/typescript/model/CaseCreationRequest.d.ts +7 -0
- package/dist/typescript/model/CaseCreationRequest.js +9 -0
- package/dist/typescript/model/GeoRatesRequest.d.ts +7 -0
- package/dist/typescript/model/GeoRatesRequest.js +9 -0
- package/dist/typescript/model/GetLawfirmFeeCoverageModel.d.ts +8 -0
- package/dist/typescript/model/GetLawfirmFeeCoverageModel.js +9 -0
- package/package.json +1 -1
|
@@ -59,6 +59,7 @@ api/lawfirmStorefrontController.service.ts
|
|
|
59
59
|
api/lawfirmSurchargeController.service.ts
|
|
60
60
|
api/lawfirmTransactionsController.service.ts
|
|
61
61
|
api/lawyerController.service.ts
|
|
62
|
+
api/legalServicesController.service.ts
|
|
62
63
|
api/lineItemController.service.ts
|
|
63
64
|
api/listCasesController.service.ts
|
|
64
65
|
api/mediaCreationController.service.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -112,6 +112,8 @@ export * from './lawfirmTransactionsController.service';
|
|
|
112
112
|
import { LawfirmTransactionsControllerService } from './lawfirmTransactionsController.service';
|
|
113
113
|
export * from './lawyerController.service';
|
|
114
114
|
import { LawyerControllerService } from './lawyerController.service';
|
|
115
|
+
export * from './legalServicesController.service';
|
|
116
|
+
import { LegalServicesControllerService } from './legalServicesController.service';
|
|
115
117
|
export * from './lineItemController.service';
|
|
116
118
|
import { LineItemControllerService } from './lineItemController.service';
|
|
117
119
|
export * from './listCasesController.service';
|
|
@@ -190,4 +192,4 @@ export * from './verificationController.service';
|
|
|
190
192
|
import { VerificationControllerService } from './verificationController.service';
|
|
191
193
|
export * from './violationPenaltyController.service';
|
|
192
194
|
import { ViolationPenaltyControllerService } from './violationPenaltyController.service';
|
|
193
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseStatusControllerService, CaseTransferControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
195
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseStatusControllerService, CaseTransferControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, TrafficViolationControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationPenaltyControllerService];
|
|
@@ -381,17 +381,24 @@ export class LawfirmFeeCoverageControllerService {
|
|
|
381
381
|
/**
|
|
382
382
|
* getLawfirmFeeCoverage
|
|
383
383
|
* @param lawfirmId lawfirmId
|
|
384
|
+
* @param legalServiceType legalServiceType
|
|
384
385
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
385
386
|
* @param reportProgress flag to report request and response progress.
|
|
386
387
|
*/
|
|
387
|
-
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetLawfirmFeeCoverageResponse>;
|
|
388
|
-
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetLawfirmFeeCoverageResponse>>;
|
|
389
|
-
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetLawfirmFeeCoverageResponse>>;
|
|
390
|
-
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
388
|
+
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, legalServiceType?: 'DEFER' | 'FIGHT', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetLawfirmFeeCoverageResponse>;
|
|
389
|
+
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, legalServiceType?: 'DEFER' | 'FIGHT', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetLawfirmFeeCoverageResponse>>;
|
|
390
|
+
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, legalServiceType?: 'DEFER' | 'FIGHT', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetLawfirmFeeCoverageResponse>>;
|
|
391
|
+
public getLawfirmFeeCoverageUsingGET(lawfirmId: string, legalServiceType?: 'DEFER' | 'FIGHT', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
391
392
|
if (lawfirmId === null || lawfirmId === undefined) {
|
|
392
393
|
throw new Error('Required parameter lawfirmId was null or undefined when calling getLawfirmFeeCoverageUsingGET.');
|
|
393
394
|
}
|
|
394
395
|
|
|
396
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
397
|
+
if (legalServiceType !== undefined && legalServiceType !== null) {
|
|
398
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
399
|
+
<any>legalServiceType, 'legalServiceType');
|
|
400
|
+
}
|
|
401
|
+
|
|
395
402
|
let localVarHeaders = this.defaultHeaders;
|
|
396
403
|
|
|
397
404
|
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
@@ -427,6 +434,7 @@ export class LawfirmFeeCoverageControllerService {
|
|
|
427
434
|
return this.httpClient.request<GetLawfirmFeeCoverageResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
428
435
|
{
|
|
429
436
|
context: localVarHttpContext,
|
|
437
|
+
params: localVarQueryParameters,
|
|
430
438
|
responseType: <any>responseType_,
|
|
431
439
|
withCredentials: this.configuration.withCredentials,
|
|
432
440
|
headers: localVarHeaders,
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
17
|
+
} from '@angular/common/http';
|
|
18
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
19
|
+
import { Observable } from 'rxjs';
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { Configuration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class LegalServicesControllerService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new Configuration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
44
|
+
basePath = basePath[0];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (typeof basePath !== 'string') {
|
|
48
|
+
basePath = this.basePath;
|
|
49
|
+
}
|
|
50
|
+
this.configuration.basePath = basePath;
|
|
51
|
+
}
|
|
52
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
58
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
59
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
60
|
+
} else {
|
|
61
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
62
|
+
}
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return httpParams;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (typeof value === "object") {
|
|
72
|
+
if (Array.isArray(value)) {
|
|
73
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
74
|
+
} else if (value instanceof Date) {
|
|
75
|
+
if (key != null) {
|
|
76
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
77
|
+
} else {
|
|
78
|
+
throw Error("key may not be null if value is Date");
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
82
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
83
|
+
}
|
|
84
|
+
} else if (key != null) {
|
|
85
|
+
httpParams = httpParams.append(key, value);
|
|
86
|
+
} else {
|
|
87
|
+
throw Error("key may not be null if value is not object or array");
|
|
88
|
+
}
|
|
89
|
+
return httpParams;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* selectLegalService
|
|
94
|
+
* @param citationId citationId
|
|
95
|
+
* @param serviceId serviceId
|
|
96
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
97
|
+
* @param reportProgress flag to report request and response progress.
|
|
98
|
+
*/
|
|
99
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<object>;
|
|
100
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<object>>;
|
|
101
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<object>>;
|
|
102
|
+
public selectLegalServiceUsingPUT(citationId: number, serviceId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
103
|
+
if (citationId === null || citationId === undefined) {
|
|
104
|
+
throw new Error('Required parameter citationId was null or undefined when calling selectLegalServiceUsingPUT.');
|
|
105
|
+
}
|
|
106
|
+
if (serviceId === null || serviceId === undefined) {
|
|
107
|
+
throw new Error('Required parameter serviceId was null or undefined when calling selectLegalServiceUsingPUT.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let localVarHeaders = this.defaultHeaders;
|
|
111
|
+
|
|
112
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
113
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
114
|
+
// to determine the Accept header
|
|
115
|
+
const httpHeaderAccepts: string[] = [
|
|
116
|
+
'*/*'
|
|
117
|
+
];
|
|
118
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
119
|
+
}
|
|
120
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
121
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
125
|
+
if (localVarHttpContext === undefined) {
|
|
126
|
+
localVarHttpContext = new HttpContext();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
131
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
132
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
133
|
+
responseType_ = 'text';
|
|
134
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
135
|
+
responseType_ = 'json';
|
|
136
|
+
} else {
|
|
137
|
+
responseType_ = 'blob';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
let localVarPath = `/api/v1/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/legal-services/${this.configuration.encodeParam({name: "serviceId", value: serviceId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
|
|
142
|
+
return this.httpClient.request<object>('put', `${this.configuration.basePath}${localVarPath}`,
|
|
143
|
+
{
|
|
144
|
+
context: localVarHttpContext,
|
|
145
|
+
responseType: <any>responseType_,
|
|
146
|
+
withCredentials: this.configuration.withCredentials,
|
|
147
|
+
headers: localVarHeaders,
|
|
148
|
+
observe: observe,
|
|
149
|
+
reportProgress: reportProgress
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
}
|
|
@@ -59,6 +59,7 @@ import { LawfirmStorefrontControllerService } from './api/lawfirmStorefrontContr
|
|
|
59
59
|
import { LawfirmSurchargeControllerService } from './api/lawfirmSurchargeController.service';
|
|
60
60
|
import { LawfirmTransactionsControllerService } from './api/lawfirmTransactionsController.service';
|
|
61
61
|
import { LawyerControllerService } from './api/lawyerController.service';
|
|
62
|
+
import { LegalServicesControllerService } from './api/legalServicesController.service';
|
|
62
63
|
import { LineItemControllerService } from './api/lineItemController.service';
|
|
63
64
|
import { ListCasesControllerService } from './api/listCasesController.service';
|
|
64
65
|
import { MediaCreationControllerService } from './api/mediaCreationController.service';
|
|
@@ -14,7 +14,16 @@
|
|
|
14
14
|
export interface CaseCreationRequest {
|
|
15
15
|
courtDate?: string;
|
|
16
16
|
forcePredeterminedLawfirmId?: boolean;
|
|
17
|
+
legalServiceType?: CaseCreationRequest.LegalServiceTypeEnum;
|
|
17
18
|
predeterminedLawfirmId?: number;
|
|
18
19
|
setQuoteExpirationOn?: boolean;
|
|
19
20
|
}
|
|
21
|
+
export namespace CaseCreationRequest {
|
|
22
|
+
export type LegalServiceTypeEnum = 'DEFER' | 'FIGHT';
|
|
23
|
+
export const LegalServiceTypeEnum = {
|
|
24
|
+
Defer: 'DEFER' as LegalServiceTypeEnum,
|
|
25
|
+
Fight: 'FIGHT' as LegalServiceTypeEnum
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
20
29
|
|
|
@@ -16,7 +16,16 @@ export interface GeoRatesRequest {
|
|
|
16
16
|
courtDate?: string;
|
|
17
17
|
courtId?: string;
|
|
18
18
|
isCDL?: boolean;
|
|
19
|
+
legalServiceType?: GeoRatesRequest.LegalServiceTypeEnum;
|
|
19
20
|
violationCount?: number;
|
|
20
21
|
violations?: Array<ViolationInputRequest>;
|
|
21
22
|
}
|
|
23
|
+
export namespace GeoRatesRequest {
|
|
24
|
+
export type LegalServiceTypeEnum = 'DEFER' | 'FIGHT';
|
|
25
|
+
export const LegalServiceTypeEnum = {
|
|
26
|
+
Defer: 'DEFER' as LegalServiceTypeEnum,
|
|
27
|
+
Fight: 'FIGHT' as LegalServiceTypeEnum
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
|
|
@@ -19,6 +19,16 @@ export interface GetLawfirmFeeCoverageModel {
|
|
|
19
19
|
courtName?: string;
|
|
20
20
|
fees?: Array<GetLawfirmFeeModel>;
|
|
21
21
|
isDeleted?: boolean;
|
|
22
|
+
legalServiceId?: number;
|
|
23
|
+
legalServiceType?: GetLawfirmFeeCoverageModel.LegalServiceTypeEnum;
|
|
22
24
|
regionCode?: string;
|
|
23
25
|
}
|
|
26
|
+
export namespace GetLawfirmFeeCoverageModel {
|
|
27
|
+
export type LegalServiceTypeEnum = 'DEFER' | 'FIGHT';
|
|
28
|
+
export const LegalServiceTypeEnum = {
|
|
29
|
+
Defer: 'DEFER' as LegalServiceTypeEnum,
|
|
30
|
+
Fight: 'FIGHT' as LegalServiceTypeEnum
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
|
|
@@ -4038,6 +4038,49 @@ angular.module('otrBackendService', [])
|
|
|
4038
4038
|
|
|
4039
4039
|
return deferred.promise;
|
|
4040
4040
|
};
|
|
4041
|
+
/**
|
|
4042
|
+
* selectLegalService
|
|
4043
|
+
* @method
|
|
4044
|
+
* @name OtrService#selectLegalServiceUsingPUT
|
|
4045
|
+
* @param {object} parameters - method options and parameters
|
|
4046
|
+
* @param {integer} parameters.citationId - citationId
|
|
4047
|
+
* @param {integer} parameters.serviceId - serviceId
|
|
4048
|
+
*/
|
|
4049
|
+
OtrService.prototype.selectLegalServiceUsingPUT = function(parameters) {
|
|
4050
|
+
if (parameters === undefined) {
|
|
4051
|
+
parameters = {};
|
|
4052
|
+
}
|
|
4053
|
+
var deferred = $q.defer();
|
|
4054
|
+
var domain = this.domain,
|
|
4055
|
+
path = '/api/v1/citations/{citationId}/legal-services/{serviceId}';
|
|
4056
|
+
var body = {},
|
|
4057
|
+
queryParameters = {},
|
|
4058
|
+
headers = {},
|
|
4059
|
+
form = {};
|
|
4060
|
+
|
|
4061
|
+
headers['Accept'] = ['*/*'];
|
|
4062
|
+
headers['Content-Type'] = ['application/json'];
|
|
4063
|
+
|
|
4064
|
+
path = path.replace('{citationId}', parameters['citationId']);
|
|
4065
|
+
|
|
4066
|
+
if (parameters['citationId'] === undefined) {
|
|
4067
|
+
deferred.reject(new Error('Missing required parameter: citationId'));
|
|
4068
|
+
return deferred.promise;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
path = path.replace('{serviceId}', parameters['serviceId']);
|
|
4072
|
+
|
|
4073
|
+
if (parameters['serviceId'] === undefined) {
|
|
4074
|
+
deferred.reject(new Error('Missing required parameter: serviceId'));
|
|
4075
|
+
return deferred.promise;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4079
|
+
|
|
4080
|
+
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4081
|
+
|
|
4082
|
+
return deferred.promise;
|
|
4083
|
+
};
|
|
4041
4084
|
/**
|
|
4042
4085
|
* setLockForCitation
|
|
4043
4086
|
* @method
|
|
@@ -15469,6 +15512,7 @@ angular.module('otrBackendService', [])
|
|
|
15469
15512
|
* @name OtrService#getLawfirmFeeCoverageUsingGET
|
|
15470
15513
|
* @param {object} parameters - method options and parameters
|
|
15471
15514
|
* @param {string} parameters.lawfirmId - lawfirmId
|
|
15515
|
+
* @param {string} parameters.legalServiceType - legalServiceType
|
|
15472
15516
|
*/
|
|
15473
15517
|
OtrService.prototype.getLawfirmFeeCoverageUsingGET = function(parameters) {
|
|
15474
15518
|
if (parameters === undefined) {
|
|
@@ -15491,6 +15535,13 @@ angular.module('otrBackendService', [])
|
|
|
15491
15535
|
return deferred.promise;
|
|
15492
15536
|
}
|
|
15493
15537
|
|
|
15538
|
+
/** set default value **/
|
|
15539
|
+
queryParameters['legalServiceType'] = FIGHT;
|
|
15540
|
+
|
|
15541
|
+
if (parameters['legalServiceType'] !== undefined) {
|
|
15542
|
+
queryParameters['legalServiceType'] = parameters['legalServiceType'];
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15494
15545
|
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
15495
15546
|
|
|
15496
15547
|
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|