@otr-app/shared-backend-generated-client 2.5.32 → 2.5.33
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/caseTransferController.service.ts +64 -0
- package/dist/angular/model/calculateTransferFeeDifferenceResponse.ts +17 -0
- package/dist/angular/model/models.ts +1 -0
- package/dist/angular/model/transferCaseRequest.ts +1 -0
- package/dist/otrBackendService.js +42 -0
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CaseTransferControllerApi.d.ts +7 -0
- package/dist/typescript/api/CaseTransferControllerApi.js +31 -0
- package/dist/typescript/model/CalculateTransferFeeDifferenceResponse.d.ts +14 -0
- package/dist/typescript/model/CalculateTransferFeeDifferenceResponse.js +12 -0
- package/dist/typescript/model/TransferCaseRequest.d.ts +1 -0
- package/dist/typescript/model/models.d.ts +1 -0
- package/dist/typescript/model/models.js +1 -0
- package/dist/typescript-fetch/apis/CaseTransferControllerApi.d.ts +13 -1
- package/dist/typescript-fetch/apis/CaseTransferControllerApi.js +32 -1
- package/dist/typescript-fetch/models/CalculateTransferFeeDifferenceResponse.d.ts +27 -0
- package/dist/typescript-fetch/models/CalculateTransferFeeDifferenceResponse.js +36 -0
- package/dist/typescript-fetch/models/TransferCaseRequest.d.ts +6 -0
- package/dist/typescript-fetch/models/TransferCaseRequest.js +2 -0
- package/dist/typescript-fetch/models/index.d.ts +1 -0
- package/dist/typescript-fetch/models/index.js +1 -0
- package/dist/typescript-open-api/otr-backend.d.ts +70 -0
- package/package.json +1 -1
|
@@ -18,6 +18,8 @@ import { HttpClient, HttpHeaders, HttpParams,
|
|
|
18
18
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
19
19
|
import { Observable } from 'rxjs';
|
|
20
20
|
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { CalculateTransferFeeDifferenceResponse } from '../model/calculateTransferFeeDifferenceResponse';
|
|
21
23
|
// @ts-ignore
|
|
22
24
|
import { CaseTransferResponse } from '../model/caseTransferResponse';
|
|
23
25
|
// @ts-ignore
|
|
@@ -93,6 +95,68 @@ export class CaseTransferControllerService {
|
|
|
93
95
|
return httpParams;
|
|
94
96
|
}
|
|
95
97
|
|
|
98
|
+
/**
|
|
99
|
+
* calculateTransferFeeDifference
|
|
100
|
+
* @param caseId caseId
|
|
101
|
+
* @param lawfirmId lawfirmId
|
|
102
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
103
|
+
* @param reportProgress flag to report request and response progress.
|
|
104
|
+
*/
|
|
105
|
+
public calculateTransferFeeDifferenceUsingGET(caseId: string, lawfirmId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<CalculateTransferFeeDifferenceResponse>;
|
|
106
|
+
public calculateTransferFeeDifferenceUsingGET(caseId: string, lawfirmId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<CalculateTransferFeeDifferenceResponse>>;
|
|
107
|
+
public calculateTransferFeeDifferenceUsingGET(caseId: string, lawfirmId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<CalculateTransferFeeDifferenceResponse>>;
|
|
108
|
+
public calculateTransferFeeDifferenceUsingGET(caseId: string, lawfirmId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
109
|
+
if (caseId === null || caseId === undefined) {
|
|
110
|
+
throw new Error('Required parameter caseId was null or undefined when calling calculateTransferFeeDifferenceUsingGET.');
|
|
111
|
+
}
|
|
112
|
+
if (lawfirmId === null || lawfirmId === undefined) {
|
|
113
|
+
throw new Error('Required parameter lawfirmId was null or undefined when calling calculateTransferFeeDifferenceUsingGET.');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let localVarHeaders = this.defaultHeaders;
|
|
117
|
+
|
|
118
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
119
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
120
|
+
// to determine the Accept header
|
|
121
|
+
const httpHeaderAccepts: string[] = [
|
|
122
|
+
'*/*'
|
|
123
|
+
];
|
|
124
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
125
|
+
}
|
|
126
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
127
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
131
|
+
if (localVarHttpContext === undefined) {
|
|
132
|
+
localVarHttpContext = new HttpContext();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
137
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
138
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
139
|
+
responseType_ = 'text';
|
|
140
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
141
|
+
responseType_ = 'json';
|
|
142
|
+
} else {
|
|
143
|
+
responseType_ = 'blob';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/transfer/${this.configuration.encodeParam({name: "lawfirmId", value: lawfirmId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/calculate-fee-difference`;
|
|
148
|
+
return this.httpClient.request<CalculateTransferFeeDifferenceResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
149
|
+
{
|
|
150
|
+
context: localVarHttpContext,
|
|
151
|
+
responseType: <any>responseType_,
|
|
152
|
+
withCredentials: this.configuration.withCredentials,
|
|
153
|
+
headers: localVarHeaders,
|
|
154
|
+
observe: observe,
|
|
155
|
+
reportProgress: reportProgress
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
96
160
|
/**
|
|
97
161
|
* getTransferHistory
|
|
98
162
|
* @param caseId caseId
|
|
@@ -0,0 +1,17 @@
|
|
|
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 CalculateTransferFeeDifferenceResponse {
|
|
15
|
+
totalClientCostDifferenceInCents?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -73,6 +73,7 @@ export * from './blogEvent';
|
|
|
73
73
|
export * from './blogMetadata';
|
|
74
74
|
export * from './booking';
|
|
75
75
|
export * from './bookingCancelation';
|
|
76
|
+
export * from './calculateTransferFeeDifferenceResponse';
|
|
76
77
|
export * from './callContact';
|
|
77
78
|
export * from './cancelBillingSubscriptionResponse';
|
|
78
79
|
export * from './cancelCaseRequest';
|
|
@@ -4232,6 +4232,48 @@ angular.module('otrBackendService', [])
|
|
|
4232
4232
|
|
|
4233
4233
|
return deferred.promise;
|
|
4234
4234
|
};
|
|
4235
|
+
/**
|
|
4236
|
+
* calculateTransferFeeDifference
|
|
4237
|
+
* @method
|
|
4238
|
+
* @name OtrService#calculateTransferFeeDifferenceUsingGET
|
|
4239
|
+
* @param {object} parameters - method options and parameters
|
|
4240
|
+
* @param {string} parameters.caseId - caseId
|
|
4241
|
+
* @param {integer} parameters.lawfirmId - lawfirmId
|
|
4242
|
+
*/
|
|
4243
|
+
OtrService.prototype.calculateTransferFeeDifferenceUsingGET = function(parameters) {
|
|
4244
|
+
if (parameters === undefined) {
|
|
4245
|
+
parameters = {};
|
|
4246
|
+
}
|
|
4247
|
+
var deferred = $q.defer();
|
|
4248
|
+
var domain = this.domain,
|
|
4249
|
+
path = '/api/v1/cases/{caseId}/transfer/{lawfirmId}/calculate-fee-difference';
|
|
4250
|
+
var body = {},
|
|
4251
|
+
queryParameters = {},
|
|
4252
|
+
headers = {},
|
|
4253
|
+
form = {};
|
|
4254
|
+
|
|
4255
|
+
headers['Accept'] = ['*/*'];
|
|
4256
|
+
|
|
4257
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
4258
|
+
|
|
4259
|
+
if (parameters['caseId'] === undefined) {
|
|
4260
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
4261
|
+
return deferred.promise;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
path = path.replace('{lawfirmId}', parameters['lawfirmId']);
|
|
4265
|
+
|
|
4266
|
+
if (parameters['lawfirmId'] === undefined) {
|
|
4267
|
+
deferred.reject(new Error('Missing required parameter: lawfirmId'));
|
|
4268
|
+
return deferred.promise;
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4272
|
+
|
|
4273
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4274
|
+
|
|
4275
|
+
return deferred.promise;
|
|
4276
|
+
};
|
|
4235
4277
|
/**
|
|
4236
4278
|
* getCaseUsersByCase
|
|
4237
4279
|
* @method
|