@otr-app/shared-backend-generated-client 2.3.67 → 2.3.69

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 (42) hide show
  1. package/dist/angular/.openapi-generator/FILES +8 -0
  2. package/dist/angular/api/legalServicesController.service.ts +84 -8
  3. package/dist/angular/model/caseCreationRequest.ts +1 -9
  4. package/dist/angular/model/geoRatesRequest.ts +1 -9
  5. package/dist/angular/model/matchCaseViolationPenaltyModel.ts +40 -0
  6. package/dist/angular/model/matchCitationModel.ts +32 -0
  7. package/dist/angular/model/matchInnerCaseModel.ts +34 -0
  8. package/dist/angular/model/matchLegalServiceModel.ts +49 -0
  9. package/dist/angular/model/matchLegalServicesRequest.ts +37 -0
  10. package/dist/angular/model/matchLegalServicesResponse.ts +19 -0
  11. package/dist/angular/model/matchingFieldValue.ts +27 -0
  12. package/dist/angular/model/models.ts +8 -0
  13. package/dist/angular/model/reviewCommentModel.ts +1 -0
  14. package/dist/angular/model/violationModel.ts +87 -0
  15. package/dist/otrBackendService.js +54 -9
  16. package/dist/otrBackendService.min.js +5 -5
  17. package/dist/typescript/api/LegalServicesControllerApi.d.ts +10 -2
  18. package/dist/typescript/api/LegalServicesControllerApi.js +38 -7
  19. package/dist/typescript/model/CaseCreationRequest.d.ts +1 -7
  20. package/dist/typescript/model/CaseCreationRequest.js +0 -9
  21. package/dist/typescript/model/GeoRatesRequest.d.ts +1 -7
  22. package/dist/typescript/model/GeoRatesRequest.js +0 -9
  23. package/dist/typescript/model/MatchCaseViolationPenaltyModel.d.ts +35 -0
  24. package/dist/typescript/model/MatchCaseViolationPenaltyModel.js +35 -0
  25. package/dist/typescript/model/MatchCitationModel.d.ts +25 -0
  26. package/dist/typescript/model/MatchCitationModel.js +13 -0
  27. package/dist/typescript/model/MatchInnerCaseModel.d.ts +27 -0
  28. package/dist/typescript/model/MatchInnerCaseModel.js +22 -0
  29. package/dist/typescript/model/MatchLegalServiceModel.d.ts +42 -0
  30. package/dist/typescript/model/MatchLegalServiceModel.js +31 -0
  31. package/dist/typescript/model/MatchLegalServicesRequest.d.ts +31 -0
  32. package/dist/typescript/model/MatchLegalServicesRequest.js +26 -0
  33. package/dist/typescript/model/MatchLegalServicesResponse.d.ts +16 -0
  34. package/dist/typescript/model/MatchLegalServicesResponse.js +13 -0
  35. package/dist/typescript/model/MatchingFieldValue.d.ts +22 -0
  36. package/dist/typescript/model/MatchingFieldValue.js +23 -0
  37. package/dist/typescript/model/ReviewCommentModel.d.ts +1 -0
  38. package/dist/typescript/model/ViolationModel.d.ts +82 -0
  39. package/dist/typescript/model/ViolationModel.js +77 -0
  40. package/dist/typescript/model/models.d.ts +8 -0
  41. package/dist/typescript/model/models.js +8 -0
  42. package/package.json +1 -1
@@ -523,9 +523,16 @@ model/markActionAsDeletedResponse.ts
523
523
  model/markCaseAsResolvedRequest.ts
524
524
  model/markCaseAsResolvedResponse.ts
525
525
  model/matchCaseResponse.ts
526
+ model/matchCaseViolationPenaltyModel.ts
527
+ model/matchCitationModel.ts
526
528
  model/matchCitationResponse.ts
529
+ model/matchInnerCaseModel.ts
527
530
  model/matchInnerCaseResponse.ts
528
531
  model/matchLawfirmCaseResponse.ts
532
+ model/matchLegalServiceModel.ts
533
+ model/matchLegalServicesRequest.ts
534
+ model/matchLegalServicesResponse.ts
535
+ model/matchingFieldValue.ts
529
536
  model/mediaItemModel.ts
530
537
  model/mergeStatusReport.ts
531
538
  model/mergeTableChange.ts
@@ -756,6 +763,7 @@ model/violation.ts
756
763
  model/violationClassificationModel.ts
757
764
  model/violationInput.ts
758
765
  model/violationInputRequest.ts
766
+ model/violationModel.ts
759
767
  model/violationPenaltyResponse.ts
760
768
  model/violationResponse.ts
761
769
  model/zoneId.ts
@@ -18,6 +18,10 @@ import { HttpClient, HttpHeaders, HttpParams,
18
18
  import { CustomHttpParameterCodec } from '../encoder';
19
19
  import { Observable } from 'rxjs';
20
20
 
21
+ // @ts-ignore
22
+ import { MatchLegalServicesRequest } from '../model/matchLegalServicesRequest';
23
+ // @ts-ignore
24
+ import { MatchLegalServicesResponse } from '../model/matchLegalServicesResponse';
21
25
 
22
26
  // @ts-ignore
23
27
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -89,22 +93,94 @@ export class LegalServicesControllerService {
89
93
  return httpParams;
90
94
  }
91
95
 
96
+ /**
97
+ * createLegalServices
98
+ * @param citationId citationId
99
+ * @param request request
100
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
101
+ * @param reportProgress flag to report request and response progress.
102
+ */
103
+ public createLegalServicesUsingPOST(citationId: number, request: MatchLegalServicesRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<MatchLegalServicesResponse>;
104
+ public createLegalServicesUsingPOST(citationId: number, request: MatchLegalServicesRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<MatchLegalServicesResponse>>;
105
+ public createLegalServicesUsingPOST(citationId: number, request: MatchLegalServicesRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<MatchLegalServicesResponse>>;
106
+ public createLegalServicesUsingPOST(citationId: number, request: MatchLegalServicesRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
107
+ if (citationId === null || citationId === undefined) {
108
+ throw new Error('Required parameter citationId was null or undefined when calling createLegalServicesUsingPOST.');
109
+ }
110
+ if (request === null || request === undefined) {
111
+ throw new Error('Required parameter request was null or undefined when calling createLegalServicesUsingPOST.');
112
+ }
113
+
114
+ let localVarHeaders = this.defaultHeaders;
115
+
116
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
117
+ if (localVarHttpHeaderAcceptSelected === undefined) {
118
+ // to determine the Accept header
119
+ const httpHeaderAccepts: string[] = [
120
+ '*/*'
121
+ ];
122
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
123
+ }
124
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
125
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
126
+ }
127
+
128
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
129
+ if (localVarHttpContext === undefined) {
130
+ localVarHttpContext = new HttpContext();
131
+ }
132
+
133
+
134
+ // to determine the Content-Type header
135
+ const consumes: string[] = [
136
+ 'application/json'
137
+ ];
138
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
139
+ if (httpContentTypeSelected !== undefined) {
140
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
141
+ }
142
+
143
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
144
+ if (localVarHttpHeaderAcceptSelected) {
145
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
146
+ responseType_ = 'text';
147
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
148
+ responseType_ = 'json';
149
+ } else {
150
+ responseType_ = 'blob';
151
+ }
152
+ }
153
+
154
+ let localVarPath = `/api/v1/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/legal-services`;
155
+ return this.httpClient.request<MatchLegalServicesResponse>('post', `${this.configuration.basePath}${localVarPath}`,
156
+ {
157
+ context: localVarHttpContext,
158
+ body: request,
159
+ responseType: <any>responseType_,
160
+ withCredentials: this.configuration.withCredentials,
161
+ headers: localVarHeaders,
162
+ observe: observe,
163
+ reportProgress: reportProgress
164
+ }
165
+ );
166
+ }
167
+
92
168
  /**
93
169
  * selectLegalService
94
170
  * @param citationId citationId
95
- * @param serviceId serviceId
171
+ * @param lawfirmCaseId lawfirmCaseId
96
172
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
97
173
  * @param reportProgress flag to report request and response progress.
98
174
  */
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> {
175
+ public selectLegalServiceUsingPUT(citationId: number, lawfirmCaseId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<object>;
176
+ public selectLegalServiceUsingPUT(citationId: number, lawfirmCaseId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<object>>;
177
+ public selectLegalServiceUsingPUT(citationId: number, lawfirmCaseId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<object>>;
178
+ public selectLegalServiceUsingPUT(citationId: number, lawfirmCaseId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
103
179
  if (citationId === null || citationId === undefined) {
104
180
  throw new Error('Required parameter citationId was null or undefined when calling selectLegalServiceUsingPUT.');
105
181
  }
106
- if (serviceId === null || serviceId === undefined) {
107
- throw new Error('Required parameter serviceId was null or undefined when calling selectLegalServiceUsingPUT.');
182
+ if (lawfirmCaseId === null || lawfirmCaseId === undefined) {
183
+ throw new Error('Required parameter lawfirmCaseId was null or undefined when calling selectLegalServiceUsingPUT.');
108
184
  }
109
185
 
110
186
  let localVarHeaders = this.defaultHeaders;
@@ -138,7 +214,7 @@ export class LegalServicesControllerService {
138
214
  }
139
215
  }
140
216
 
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"})}`;
217
+ let localVarPath = `/api/v1/citations/${this.configuration.encodeParam({name: "citationId", value: citationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/select-legal-service/${this.configuration.encodeParam({name: "lawfirmCaseId", value: lawfirmCaseId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`;
142
218
  return this.httpClient.request<object>('put', `${this.configuration.basePath}${localVarPath}`,
143
219
  {
144
220
  context: localVarHttpContext,
@@ -14,16 +14,8 @@
14
14
  export interface CaseCreationRequest {
15
15
  courtDate?: string;
16
16
  forcePredeterminedLawfirmId?: boolean;
17
- legalServiceType?: CaseCreationRequest.LegalServiceTypeEnum;
17
+ legalServiceId?: number;
18
18
  predeterminedLawfirmId?: number;
19
19
  setQuoteExpirationOn?: boolean;
20
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
-
29
21
 
@@ -16,16 +16,8 @@ export interface GeoRatesRequest {
16
16
  courtDate?: string;
17
17
  courtId?: string;
18
18
  isCDL?: boolean;
19
- legalServiceType?: GeoRatesRequest.LegalServiceTypeEnum;
19
+ legalServiceId?: number;
20
20
  violationCount?: number;
21
21
  violations?: Array<ViolationInputRequest>;
22
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
-
31
23
 
@@ -0,0 +1,40 @@
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 MatchCaseViolationPenaltyModel {
15
+ penaltyFriendlyDescription?: string;
16
+ penaltyType?: MatchCaseViolationPenaltyModel.PenaltyTypeEnum;
17
+ penaltyValue?: string;
18
+ }
19
+ export namespace MatchCaseViolationPenaltyModel {
20
+ export type PenaltyTypeEnum = 'DEMERIT_POINTS' | 'INCARCERATION_MAX_DAYS' | 'INCARCERATION_MIN_DAYS' | 'INSURANCE_POINTS' | 'INSURANCE_RATE_INCREASE' | 'LICENSE_REVOCATION_MAX_DAYS' | 'LICENSE_REVOCATION_MIN_DAYS' | 'LICENSE_SUSPENSION_MAX_DAYS' | 'LICENSE_SUSPENSION_MIN_DAYS' | 'MANDATORY_COURT_APPEARANCE' | 'MANDATORY_COURT_APPEARANCE_WITH_ATTORNEY' | 'MAX_BAIL_AMOUNT' | 'MIN_BAIL_AMOUNT' | 'PROBATION_IN_DAYS' | 'TOTAL_BAIL_AMOUNT';
21
+ export const PenaltyTypeEnum = {
22
+ DemeritPoints: 'DEMERIT_POINTS' as PenaltyTypeEnum,
23
+ IncarcerationMaxDays: 'INCARCERATION_MAX_DAYS' as PenaltyTypeEnum,
24
+ IncarcerationMinDays: 'INCARCERATION_MIN_DAYS' as PenaltyTypeEnum,
25
+ InsurancePoints: 'INSURANCE_POINTS' as PenaltyTypeEnum,
26
+ InsuranceRateIncrease: 'INSURANCE_RATE_INCREASE' as PenaltyTypeEnum,
27
+ LicenseRevocationMaxDays: 'LICENSE_REVOCATION_MAX_DAYS' as PenaltyTypeEnum,
28
+ LicenseRevocationMinDays: 'LICENSE_REVOCATION_MIN_DAYS' as PenaltyTypeEnum,
29
+ LicenseSuspensionMaxDays: 'LICENSE_SUSPENSION_MAX_DAYS' as PenaltyTypeEnum,
30
+ LicenseSuspensionMinDays: 'LICENSE_SUSPENSION_MIN_DAYS' as PenaltyTypeEnum,
31
+ MandatoryCourtAppearance: 'MANDATORY_COURT_APPEARANCE' as PenaltyTypeEnum,
32
+ MandatoryCourtAppearanceWithAttorney: 'MANDATORY_COURT_APPEARANCE_WITH_ATTORNEY' as PenaltyTypeEnum,
33
+ MaxBailAmount: 'MAX_BAIL_AMOUNT' as PenaltyTypeEnum,
34
+ MinBailAmount: 'MIN_BAIL_AMOUNT' as PenaltyTypeEnum,
35
+ ProbationInDays: 'PROBATION_IN_DAYS' as PenaltyTypeEnum,
36
+ TotalBailAmount: 'TOTAL_BAIL_AMOUNT' as PenaltyTypeEnum
37
+ };
38
+ }
39
+
40
+
@@ -0,0 +1,32 @@
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 { CourtDomain } from './courtDomain';
13
+ import { AddressDomain } from './addressDomain';
14
+ import { ViolationModel } from './violationModel';
15
+ import { PureDate } from './pureDate';
16
+ import { Timestamp } from './timestamp';
17
+
18
+
19
+ export interface MatchCitationModel {
20
+ address?: AddressDomain;
21
+ citationId?: number;
22
+ citationIssueDate?: PureDate;
23
+ citationIssueDateUtc?: Timestamp;
24
+ court?: CourtDomain;
25
+ fineAmount?: number;
26
+ involvesAccident?: boolean;
27
+ isDeleted?: boolean;
28
+ ticketImageUrl?: string;
29
+ ticketNumber?: string;
30
+ violations?: Array<ViolationModel>;
31
+ }
32
+
@@ -0,0 +1,34 @@
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 { MatchCitationModel } from './matchCitationModel';
13
+ import { MatchLegalServiceModel } from './matchLegalServiceModel';
14
+ import { MatchCaseViolationPenaltyModel } from './matchCaseViolationPenaltyModel';
15
+
16
+
17
+ export interface MatchInnerCaseModel {
18
+ caseId?: string;
19
+ citation?: MatchCitationModel;
20
+ lawfirmCodeApplied?: boolean;
21
+ legalServices?: Array<MatchLegalServiceModel>;
22
+ maxPenalties?: Array<MatchCaseViolationPenaltyModel>;
23
+ referralCodeOwner?: MatchInnerCaseModel.ReferralCodeOwnerEnum;
24
+ userId?: number;
25
+ }
26
+ export namespace MatchInnerCaseModel {
27
+ export type ReferralCodeOwnerEnum = 'LAWFIRM' | 'OTR';
28
+ export const ReferralCodeOwnerEnum = {
29
+ Lawfirm: 'LAWFIRM' as ReferralCodeOwnerEnum,
30
+ Otr: 'OTR' as ReferralCodeOwnerEnum
31
+ };
32
+ }
33
+
34
+
@@ -0,0 +1,49 @@
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 MatchLegalServiceModel {
15
+ chanceOfSuccess?: number;
16
+ isSelected?: boolean;
17
+ lawfirmCaseId?: number;
18
+ lawfirmId?: number;
19
+ lawfirmName?: string;
20
+ legalServiceId?: number;
21
+ legalServiceName?: string;
22
+ legalServiceType?: MatchLegalServiceModel.LegalServiceTypeEnum;
23
+ legalVertical?: MatchLegalServiceModel.LegalVerticalEnum;
24
+ matchExpirationDateUtc?: string;
25
+ obfuscatedPictureUrl?: string;
26
+ profilePictureUrl?: string;
27
+ refundEligibility?: MatchLegalServiceModel.RefundEligibilityEnum;
28
+ refundMessage?: string;
29
+ refundPercentage?: number;
30
+ totalClientCostInCents?: number;
31
+ }
32
+ export namespace MatchLegalServiceModel {
33
+ export type LegalServiceTypeEnum = 'DEFER' | 'FIGHT';
34
+ export const LegalServiceTypeEnum = {
35
+ Defer: 'DEFER' as LegalServiceTypeEnum,
36
+ Fight: 'FIGHT' as LegalServiceTypeEnum
37
+ };
38
+ export type LegalVerticalEnum = 'TRAFFIC';
39
+ export const LegalVerticalEnum = {
40
+ Traffic: 'TRAFFIC' as LegalVerticalEnum
41
+ };
42
+ export type RefundEligibilityEnum = 'FULL_REFUND' | 'NO_REFUND';
43
+ export const RefundEligibilityEnum = {
44
+ FullRefund: 'FULL_REFUND' as RefundEligibilityEnum,
45
+ NoRefund: 'NO_REFUND' as RefundEligibilityEnum
46
+ };
47
+ }
48
+
49
+
@@ -0,0 +1,37 @@
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 { MatchingFieldValue } from './matchingFieldValue';
13
+
14
+
15
+ export interface MatchLegalServicesRequest {
16
+ courtDate?: string;
17
+ forcePredeterminedLawfirmId?: boolean;
18
+ legalServiceType?: MatchLegalServicesRequest.LegalServiceTypeEnum;
19
+ legalServicesMatchingRules?: Array<MatchingFieldValue>;
20
+ legalServicesResultLimit: number;
21
+ legalVertical: MatchLegalServicesRequest.LegalVerticalEnum;
22
+ predeterminedLawfirmId?: number;
23
+ setQuoteExpirationOn?: boolean;
24
+ }
25
+ export namespace MatchLegalServicesRequest {
26
+ export type LegalServiceTypeEnum = 'DEFER' | 'FIGHT';
27
+ export const LegalServiceTypeEnum = {
28
+ Defer: 'DEFER' as LegalServiceTypeEnum,
29
+ Fight: 'FIGHT' as LegalServiceTypeEnum
30
+ };
31
+ export type LegalVerticalEnum = 'TRAFFIC';
32
+ export const LegalVerticalEnum = {
33
+ Traffic: 'TRAFFIC' as LegalVerticalEnum
34
+ };
35
+ }
36
+
37
+
@@ -0,0 +1,19 @@
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 { MatchInnerCaseModel } from './matchInnerCaseModel';
13
+
14
+
15
+ export interface MatchLegalServicesResponse {
16
+ projectedInsuranceCostInCents?: number;
17
+ theCase?: MatchInnerCaseModel;
18
+ }
19
+
@@ -0,0 +1,27 @@
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 MatchingFieldValue {
15
+ matchingField?: MatchingFieldValue.MatchingFieldEnum;
16
+ value?: string;
17
+ }
18
+ export namespace MatchingFieldValue {
19
+ export type MatchingFieldEnum = 'COURT_ID' | 'VIOLATION_CLASSIFICATION_ID' | 'VIOLATION_ID';
20
+ export const MatchingFieldEnum = {
21
+ CourtId: 'COURT_ID' as MatchingFieldEnum,
22
+ ViolationClassificationId: 'VIOLATION_CLASSIFICATION_ID' as MatchingFieldEnum,
23
+ ViolationId: 'VIOLATION_ID' as MatchingFieldEnum
24
+ };
25
+ }
26
+
27
+
@@ -416,9 +416,16 @@ export * from './markActionAsDeletedResponse';
416
416
  export * from './markCaseAsResolvedRequest';
417
417
  export * from './markCaseAsResolvedResponse';
418
418
  export * from './matchCaseResponse';
419
+ export * from './matchCaseViolationPenaltyModel';
420
+ export * from './matchCitationModel';
419
421
  export * from './matchCitationResponse';
422
+ export * from './matchInnerCaseModel';
420
423
  export * from './matchInnerCaseResponse';
421
424
  export * from './matchLawfirmCaseResponse';
425
+ export * from './matchLegalServiceModel';
426
+ export * from './matchLegalServicesRequest';
427
+ export * from './matchLegalServicesResponse';
428
+ export * from './matchingFieldValue';
422
429
  export * from './mediaItemModel';
423
430
  export * from './mergeStatusReport';
424
431
  export * from './mergeTableChange';
@@ -648,6 +655,7 @@ export * from './violation';
648
655
  export * from './violationClassificationModel';
649
656
  export * from './violationInput';
650
657
  export * from './violationInputRequest';
658
+ export * from './violationModel';
651
659
  export * from './violationPenaltyResponse';
652
660
  export * from './violationResponse';
653
661
  export * from './zoneId';
@@ -16,6 +16,7 @@ export interface ReviewCommentModel {
16
16
  commentDateUtc?: string;
17
17
  copy?: string;
18
18
  id?: number;
19
+ profilePictureSignedUrl?: string;
19
20
  profilePictureUrl?: string;
20
21
  }
21
22
 
@@ -0,0 +1,87 @@
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 { MatchCaseViolationPenaltyModel } from './matchCaseViolationPenaltyModel';
13
+
14
+
15
+ export interface ViolationModel {
16
+ criminal?: boolean;
17
+ penalties?: Array<MatchCaseViolationPenaltyModel>;
18
+ trafficViolationDesc?: string;
19
+ trafficViolationTypeId?: number;
20
+ violationClassification?: ViolationModel.ViolationClassificationEnum;
21
+ violationCode?: string;
22
+ wobblerToCriminal?: boolean;
23
+ }
24
+ export namespace ViolationModel {
25
+ export type ViolationClassificationEnum = 'CLASS_1_FELONY' | 'CLASS_1_MISDEMEANOR' | 'CLASS_2_FELONY' | 'CLASS_2_MISDEMEANOR' | 'CLASS_3_FELONY' | 'CLASS_3_MISDEMEANOR' | 'CLASS_4_FELONY' | 'CLASS_4_MISDEMEANOR' | 'CLASS_5_FELONY' | 'CLASS_6_FELONY' | 'CLASS_A1_MISDEMEANOR' | 'CLASS_A_FELONY' | 'CLASS_A_INFRACTION' | 'CLASS_A_MISDEMEANOR' | 'CLASS_A_VIOLATION' | 'CLASS_B_FELONY' | 'CLASS_B_INFRACTION' | 'CLASS_B_MISDEMEANOR' | 'CLASS_B_VIOLATION' | 'CLASS_C_FELONY' | 'CLASS_C_INFRACTION' | 'CLASS_C_MISDEMEANOR' | 'CLASS_C_VIOLATION' | 'CLASS_D_FELONY' | 'CLASS_D_MISDEMEANOR' | 'CLASS_D_VIOLATION' | 'CLASS_E_FELONY' | 'CLASS_F_FELONY' | 'CLASS_H_FELONY' | 'DISORDERLY_PERSONS_OFFENSE' | 'FELONY' | 'FELONY_1ST_DEGREE' | 'FELONY_2ND_DEGREE' | 'FELONY_3RD_DEGREE' | 'FELONY_4TH_DEGREE' | 'FELONY_5TH_DEGREE' | 'GROSS_MISDEMEANOR' | 'HIGH_AND_AGGRAVATED_MISDEMEANOR' | 'INFRACTION' | 'LEVEL_4_FELONY' | 'LEVEL_5_FELONY' | 'LEVEL_6_FELONY' | 'MINOR_MISDEMEANOR' | 'MISDEMEANOR' | 'MISDEMEANOR_1ST_DEGREE' | 'MISDEMEANOR_2ND_DEGREE' | 'MISDEMEANOR_3RD_DEGREE' | 'MISDEMEANOR_4TH_DEGREE' | 'MISDEMEANOR_WITH_REFUND' | 'NON_MOVING' | 'NON_REPORTABLE' | 'PETTY_MISDEMEANOR' | 'QUASI_CRIMINAL' | 'SUMMARY_OFFENSE' | 'SUMMARY_OFFENSE_NO_REFUND' | 'WOBBLER_TO_FELONY' | 'WOBBLER_TO_MISDEMEANOR';
26
+ export const ViolationClassificationEnum = {
27
+ Class1Felony: 'CLASS_1_FELONY' as ViolationClassificationEnum,
28
+ Class1Misdemeanor: 'CLASS_1_MISDEMEANOR' as ViolationClassificationEnum,
29
+ Class2Felony: 'CLASS_2_FELONY' as ViolationClassificationEnum,
30
+ Class2Misdemeanor: 'CLASS_2_MISDEMEANOR' as ViolationClassificationEnum,
31
+ Class3Felony: 'CLASS_3_FELONY' as ViolationClassificationEnum,
32
+ Class3Misdemeanor: 'CLASS_3_MISDEMEANOR' as ViolationClassificationEnum,
33
+ Class4Felony: 'CLASS_4_FELONY' as ViolationClassificationEnum,
34
+ Class4Misdemeanor: 'CLASS_4_MISDEMEANOR' as ViolationClassificationEnum,
35
+ Class5Felony: 'CLASS_5_FELONY' as ViolationClassificationEnum,
36
+ Class6Felony: 'CLASS_6_FELONY' as ViolationClassificationEnum,
37
+ ClassA1Misdemeanor: 'CLASS_A1_MISDEMEANOR' as ViolationClassificationEnum,
38
+ ClassAFelony: 'CLASS_A_FELONY' as ViolationClassificationEnum,
39
+ ClassAInfraction: 'CLASS_A_INFRACTION' as ViolationClassificationEnum,
40
+ ClassAMisdemeanor: 'CLASS_A_MISDEMEANOR' as ViolationClassificationEnum,
41
+ ClassAViolation: 'CLASS_A_VIOLATION' as ViolationClassificationEnum,
42
+ ClassBFelony: 'CLASS_B_FELONY' as ViolationClassificationEnum,
43
+ ClassBInfraction: 'CLASS_B_INFRACTION' as ViolationClassificationEnum,
44
+ ClassBMisdemeanor: 'CLASS_B_MISDEMEANOR' as ViolationClassificationEnum,
45
+ ClassBViolation: 'CLASS_B_VIOLATION' as ViolationClassificationEnum,
46
+ ClassCFelony: 'CLASS_C_FELONY' as ViolationClassificationEnum,
47
+ ClassCInfraction: 'CLASS_C_INFRACTION' as ViolationClassificationEnum,
48
+ ClassCMisdemeanor: 'CLASS_C_MISDEMEANOR' as ViolationClassificationEnum,
49
+ ClassCViolation: 'CLASS_C_VIOLATION' as ViolationClassificationEnum,
50
+ ClassDFelony: 'CLASS_D_FELONY' as ViolationClassificationEnum,
51
+ ClassDMisdemeanor: 'CLASS_D_MISDEMEANOR' as ViolationClassificationEnum,
52
+ ClassDViolation: 'CLASS_D_VIOLATION' as ViolationClassificationEnum,
53
+ ClassEFelony: 'CLASS_E_FELONY' as ViolationClassificationEnum,
54
+ ClassFFelony: 'CLASS_F_FELONY' as ViolationClassificationEnum,
55
+ ClassHFelony: 'CLASS_H_FELONY' as ViolationClassificationEnum,
56
+ DisorderlyPersonsOffense: 'DISORDERLY_PERSONS_OFFENSE' as ViolationClassificationEnum,
57
+ Felony: 'FELONY' as ViolationClassificationEnum,
58
+ Felony1StDegree: 'FELONY_1ST_DEGREE' as ViolationClassificationEnum,
59
+ Felony2NdDegree: 'FELONY_2ND_DEGREE' as ViolationClassificationEnum,
60
+ Felony3RdDegree: 'FELONY_3RD_DEGREE' as ViolationClassificationEnum,
61
+ Felony4ThDegree: 'FELONY_4TH_DEGREE' as ViolationClassificationEnum,
62
+ Felony5ThDegree: 'FELONY_5TH_DEGREE' as ViolationClassificationEnum,
63
+ GrossMisdemeanor: 'GROSS_MISDEMEANOR' as ViolationClassificationEnum,
64
+ HighAndAggravatedMisdemeanor: 'HIGH_AND_AGGRAVATED_MISDEMEANOR' as ViolationClassificationEnum,
65
+ Infraction: 'INFRACTION' as ViolationClassificationEnum,
66
+ Level4Felony: 'LEVEL_4_FELONY' as ViolationClassificationEnum,
67
+ Level5Felony: 'LEVEL_5_FELONY' as ViolationClassificationEnum,
68
+ Level6Felony: 'LEVEL_6_FELONY' as ViolationClassificationEnum,
69
+ MinorMisdemeanor: 'MINOR_MISDEMEANOR' as ViolationClassificationEnum,
70
+ Misdemeanor: 'MISDEMEANOR' as ViolationClassificationEnum,
71
+ Misdemeanor1StDegree: 'MISDEMEANOR_1ST_DEGREE' as ViolationClassificationEnum,
72
+ Misdemeanor2NdDegree: 'MISDEMEANOR_2ND_DEGREE' as ViolationClassificationEnum,
73
+ Misdemeanor3RdDegree: 'MISDEMEANOR_3RD_DEGREE' as ViolationClassificationEnum,
74
+ Misdemeanor4ThDegree: 'MISDEMEANOR_4TH_DEGREE' as ViolationClassificationEnum,
75
+ MisdemeanorWithRefund: 'MISDEMEANOR_WITH_REFUND' as ViolationClassificationEnum,
76
+ NonMoving: 'NON_MOVING' as ViolationClassificationEnum,
77
+ NonReportable: 'NON_REPORTABLE' as ViolationClassificationEnum,
78
+ PettyMisdemeanor: 'PETTY_MISDEMEANOR' as ViolationClassificationEnum,
79
+ QuasiCriminal: 'QUASI_CRIMINAL' as ViolationClassificationEnum,
80
+ SummaryOffense: 'SUMMARY_OFFENSE' as ViolationClassificationEnum,
81
+ SummaryOffenseNoRefund: 'SUMMARY_OFFENSE_NO_REFUND' as ViolationClassificationEnum,
82
+ WobblerToFelony: 'WOBBLER_TO_FELONY' as ViolationClassificationEnum,
83
+ WobblerToMisdemeanor: 'WOBBLER_TO_MISDEMEANOR' as ViolationClassificationEnum
84
+ };
85
+ }
86
+
87
+
@@ -4074,20 +4074,20 @@ angular.module('otrBackendService', [])
4074
4074
  return deferred.promise;
4075
4075
  };
4076
4076
  /**
4077
- * selectLegalService
4077
+ * createLegalServices
4078
4078
  * @method
4079
- * @name OtrService#selectLegalServiceUsingPUT
4079
+ * @name OtrService#createLegalServicesUsingPOST
4080
4080
  * @param {object} parameters - method options and parameters
4081
4081
  * @param {integer} parameters.citationId - citationId
4082
- * @param {integer} parameters.serviceId - serviceId
4082
+ * @param {} parameters.request - request
4083
4083
  */
4084
- OtrService.prototype.selectLegalServiceUsingPUT = function(parameters) {
4084
+ OtrService.prototype.createLegalServicesUsingPOST = function(parameters) {
4085
4085
  if (parameters === undefined) {
4086
4086
  parameters = {};
4087
4087
  }
4088
4088
  var deferred = $q.defer();
4089
4089
  var domain = this.domain,
4090
- path = '/api/v1/citations/{citationId}/legal-services/{serviceId}';
4090
+ path = '/api/v1/citations/{citationId}/legal-services';
4091
4091
  var body = {},
4092
4092
  queryParameters = {},
4093
4093
  headers = {},
@@ -4103,16 +4103,18 @@ angular.module('otrBackendService', [])
4103
4103
  return deferred.promise;
4104
4104
  }
4105
4105
 
4106
- path = path.replace('{serviceId}', parameters['serviceId']);
4106
+ if (parameters['request'] !== undefined) {
4107
+ body = parameters['request'];
4108
+ }
4107
4109
 
4108
- if (parameters['serviceId'] === undefined) {
4109
- deferred.reject(new Error('Missing required parameter: serviceId'));
4110
+ if (parameters['request'] === undefined) {
4111
+ deferred.reject(new Error('Missing required parameter: request'));
4110
4112
  return deferred.promise;
4111
4113
  }
4112
4114
 
4113
4115
  queryParameters = mergeQueryParams(parameters, queryParameters);
4114
4116
 
4115
- this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
4117
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
4116
4118
 
4117
4119
  return deferred.promise;
4118
4120
  };
@@ -4289,6 +4291,49 @@ angular.module('otrBackendService', [])
4289
4291
 
4290
4292
  return deferred.promise;
4291
4293
  };
4294
+ /**
4295
+ * selectLegalService
4296
+ * @method
4297
+ * @name OtrService#selectLegalServiceUsingPUT
4298
+ * @param {object} parameters - method options and parameters
4299
+ * @param {integer} parameters.citationId - citationId
4300
+ * @param {integer} parameters.lawfirmCaseId - lawfirmCaseId
4301
+ */
4302
+ OtrService.prototype.selectLegalServiceUsingPUT = function(parameters) {
4303
+ if (parameters === undefined) {
4304
+ parameters = {};
4305
+ }
4306
+ var deferred = $q.defer();
4307
+ var domain = this.domain,
4308
+ path = '/api/v1/citations/{citationId}/select-legal-service/{lawfirmCaseId}';
4309
+ var body = {},
4310
+ queryParameters = {},
4311
+ headers = {},
4312
+ form = {};
4313
+
4314
+ headers['Accept'] = ['*/*'];
4315
+ headers['Content-Type'] = ['application/json'];
4316
+
4317
+ path = path.replace('{citationId}', parameters['citationId']);
4318
+
4319
+ if (parameters['citationId'] === undefined) {
4320
+ deferred.reject(new Error('Missing required parameter: citationId'));
4321
+ return deferred.promise;
4322
+ }
4323
+
4324
+ path = path.replace('{lawfirmCaseId}', parameters['lawfirmCaseId']);
4325
+
4326
+ if (parameters['lawfirmCaseId'] === undefined) {
4327
+ deferred.reject(new Error('Missing required parameter: lawfirmCaseId'));
4328
+ return deferred.promise;
4329
+ }
4330
+
4331
+ queryParameters = mergeQueryParams(parameters, queryParameters);
4332
+
4333
+ this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
4334
+
4335
+ return deferred.promise;
4336
+ };
4292
4337
  /**
4293
4338
  * getTicketReviewInfo
4294
4339
  * @method