@otr-app/shared-backend-generated-client 2.3.166 → 2.3.167
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 +11 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/caseCounterOfferController.service.ts +438 -0
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/acceptCaseCounterRequest.ts +21 -0
- package/dist/angular/model/actionByEntityModel.ts +4 -1
- package/dist/angular/model/caseActionDomain.ts +4 -1
- package/dist/angular/model/caseActionRequestModel.ts +4 -1
- package/dist/angular/model/caseCounterOfferModel.ts +27 -0
- package/dist/angular/model/caseCounterOption.ts +18 -0
- package/dist/angular/model/caseCounterOptionModel.ts +26 -0
- package/dist/angular/model/counterOption.ts +26 -0
- package/dist/angular/model/declineCaseCounterRequest.ts +18 -0
- package/dist/angular/model/getCaseActionTypesResponse.ts +4 -1
- package/dist/angular/model/getCaseCounterOptionsResponse.ts +18 -0
- package/dist/angular/model/getCaseResponse.ts +2 -0
- package/dist/angular/model/getCounterOfferResponse.ts +28 -0
- package/dist/angular/model/initiateCaseCounterRequest.ts +20 -0
- package/dist/angular/model/initiateCaseCounterResponse.ts +28 -0
- package/dist/angular/model/models.ts +10 -0
- package/dist/otrBackendService.js +211 -0
- package/dist/otrBackendService.min.js +7 -6
- package/dist/typescript/api/CaseCounterOfferControllerApi.d.ts +55 -0
- package/dist/typescript/api/CaseCounterOfferControllerApi.js +178 -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/model/AcceptCaseCounterRequest.d.ts +18 -0
- package/dist/typescript/model/AcceptCaseCounterRequest.js +13 -0
- package/dist/typescript/model/ActionByEntityModel.d.ts +3 -0
- package/dist/typescript/model/ActionByEntityModel.js +3 -0
- package/dist/typescript/model/CaseActionDomain.d.ts +3 -0
- package/dist/typescript/model/CaseActionDomain.js +3 -0
- package/dist/typescript/model/CaseActionRequestModel.d.ts +3 -0
- package/dist/typescript/model/CaseActionRequestModel.js +3 -0
- package/dist/typescript/model/CaseCounterOfferModel.d.ts +24 -0
- package/dist/typescript/model/CaseCounterOfferModel.js +13 -0
- package/dist/typescript/model/CaseCounterOption.d.ts +15 -0
- package/dist/typescript/model/CaseCounterOption.js +13 -0
- package/dist/typescript/model/CaseCounterOptionModel.d.ts +21 -0
- package/dist/typescript/model/CaseCounterOptionModel.js +22 -0
- package/dist/typescript/model/CounterOption.d.ts +21 -0
- package/dist/typescript/model/CounterOption.js +22 -0
- package/dist/typescript/model/DeclineCaseCounterRequest.d.ts +15 -0
- package/dist/typescript/model/DeclineCaseCounterRequest.js +13 -0
- package/dist/typescript/model/GetCaseActionTypesResponse.d.ts +3 -0
- package/dist/typescript/model/GetCaseActionTypesResponse.js +3 -0
- package/dist/typescript/model/GetCaseCounterOptionsResponse.d.ts +15 -0
- package/dist/typescript/model/GetCaseCounterOptionsResponse.js +13 -0
- package/dist/typescript/model/GetCaseResponse.d.ts +1 -0
- package/dist/typescript/model/GetCounterOfferResponse.d.ts +25 -0
- package/dist/typescript/model/GetCounterOfferResponse.js +13 -0
- package/dist/typescript/model/InitiateCaseCounterRequest.d.ts +17 -0
- package/dist/typescript/model/InitiateCaseCounterRequest.js +13 -0
- package/dist/typescript/model/InitiateCaseCounterResponse.d.ts +25 -0
- package/dist/typescript/model/InitiateCaseCounterResponse.js +13 -0
- package/dist/typescript/model/models.d.ts +10 -0
- package/dist/typescript/model/models.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
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 CaseCounterOptionModel {
|
|
15
|
+
type?: CaseCounterOptionModel.TypeEnum;
|
|
16
|
+
value?: string;
|
|
17
|
+
}
|
|
18
|
+
export namespace CaseCounterOptionModel {
|
|
19
|
+
export type TypeEnum = 'HIGHER_FEE' | 'WAIVE_MBG';
|
|
20
|
+
export const TypeEnum = {
|
|
21
|
+
HigherFee: 'HIGHER_FEE' as TypeEnum,
|
|
22
|
+
WaiveMbg: 'WAIVE_MBG' as TypeEnum
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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 CounterOption {
|
|
15
|
+
counterOptionType?: CounterOption.CounterOptionTypeEnum;
|
|
16
|
+
value?: string;
|
|
17
|
+
}
|
|
18
|
+
export namespace CounterOption {
|
|
19
|
+
export type CounterOptionTypeEnum = 'HIGHER_FEE' | 'WAIVE_MBG';
|
|
20
|
+
export const CounterOptionTypeEnum = {
|
|
21
|
+
HigherFee: 'HIGHER_FEE' as CounterOptionTypeEnum,
|
|
22
|
+
WaiveMbg: 'WAIVE_MBG' as CounterOptionTypeEnum
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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 DeclineCaseCounterRequest {
|
|
15
|
+
noteToClient?: string;
|
|
16
|
+
noteToOtr?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -15,9 +15,12 @@ export interface GetCaseActionTypesResponse {
|
|
|
15
15
|
caseActionTypes?: Array<GetCaseActionTypesResponse.CaseActionTypesEnum>;
|
|
16
16
|
}
|
|
17
17
|
export namespace GetCaseActionTypesResponse {
|
|
18
|
-
export type CaseActionTypesEnum = 'CASE_ACCEPT' | 'CASE_DECLINE' | 'CITATION_DATA_EXTRACTED' | 'COURT_DATE_REMOVED' | 'COURT_DATE_SCHEDULED' | 'DISCOVERY_RECEIVED' | 'DISCOVERY_REQUESTED' | 'DISPUTE_FILED' | 'FAILED_PAYMENT_ATTEMPT' | 'NOTICE_OF_APPEARANCE_FILED' | 'OTHER' | 'OVERDUE_BALANCE_PAID' | 'REVIEWED_BY_LAWFIRM' | 'SOCIAL_MEDIA_ASK' | 'TICKET_MAILED_TO_COURT';
|
|
18
|
+
export type CaseActionTypesEnum = 'CASE_ACCEPT' | 'CASE_COUNTER_ACCEPTED' | 'CASE_COUNTER_DECLINED' | 'CASE_COUNTER_INITIATED' | 'CASE_DECLINE' | 'CITATION_DATA_EXTRACTED' | 'COURT_DATE_REMOVED' | 'COURT_DATE_SCHEDULED' | 'DISCOVERY_RECEIVED' | 'DISCOVERY_REQUESTED' | 'DISPUTE_FILED' | 'FAILED_PAYMENT_ATTEMPT' | 'NOTICE_OF_APPEARANCE_FILED' | 'OTHER' | 'OVERDUE_BALANCE_PAID' | 'REVIEWED_BY_LAWFIRM' | 'SOCIAL_MEDIA_ASK' | 'TICKET_MAILED_TO_COURT';
|
|
19
19
|
export const CaseActionTypesEnum = {
|
|
20
20
|
CaseAccept: 'CASE_ACCEPT' as CaseActionTypesEnum,
|
|
21
|
+
CaseCounterAccepted: 'CASE_COUNTER_ACCEPTED' as CaseActionTypesEnum,
|
|
22
|
+
CaseCounterDeclined: 'CASE_COUNTER_DECLINED' as CaseActionTypesEnum,
|
|
23
|
+
CaseCounterInitiated: 'CASE_COUNTER_INITIATED' as CaseActionTypesEnum,
|
|
21
24
|
CaseDecline: 'CASE_DECLINE' as CaseActionTypesEnum,
|
|
22
25
|
CitationDataExtracted: 'CITATION_DATA_EXTRACTED' as CaseActionTypesEnum,
|
|
23
26
|
CourtDateRemoved: 'COURT_DATE_REMOVED' as CaseActionTypesEnum,
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { CaseCounterOption } from './caseCounterOption';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetCaseCounterOptionsResponse {
|
|
16
|
+
counterOptions?: Array<CaseCounterOption>;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CaseCounterOfferModel } from './caseCounterOfferModel';
|
|
12
13
|
import { CaseModel } from './caseModel';
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
export interface GetCaseResponse {
|
|
17
|
+
caseCounter?: CaseCounterOfferModel;
|
|
16
18
|
chanceOfSuccess?: number;
|
|
17
19
|
projectedInsuranceCostInCents?: number;
|
|
18
20
|
theCase?: CaseModel;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { CaseCounterOptionModel } from './caseCounterOptionModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface GetCounterOfferResponse {
|
|
16
|
+
counterOfferAmountInCents?: number;
|
|
17
|
+
counterOfferDateUtc?: string;
|
|
18
|
+
counterOfferId?: number;
|
|
19
|
+
counterOfferStatus?: string;
|
|
20
|
+
counterOptions?: Array<CaseCounterOptionModel>;
|
|
21
|
+
createdByUserId?: number;
|
|
22
|
+
createdByUserRoleId?: number;
|
|
23
|
+
lawfirmCaseId?: number;
|
|
24
|
+
noteToClient?: string;
|
|
25
|
+
noteToOtr?: string;
|
|
26
|
+
refundPercentage?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { CounterOption } from './counterOption';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface InitiateCaseCounterRequest {
|
|
16
|
+
counterOptions?: Array<CounterOption>;
|
|
17
|
+
noteToClient?: string;
|
|
18
|
+
noteToOtr?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { CaseCounterOptionModel } from './caseCounterOptionModel';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface InitiateCaseCounterResponse {
|
|
16
|
+
counterOfferAmountInCents?: number;
|
|
17
|
+
counterOfferDateUtc?: string;
|
|
18
|
+
counterOfferId?: number;
|
|
19
|
+
counterOfferStatus?: string;
|
|
20
|
+
counterOptions?: Array<CaseCounterOptionModel>;
|
|
21
|
+
createdByUserId?: number;
|
|
22
|
+
createdByUserRoleId?: number;
|
|
23
|
+
lawfirmCaseId?: number;
|
|
24
|
+
noteToClient?: string;
|
|
25
|
+
noteToOtr?: string;
|
|
26
|
+
refundPercentage?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './acceptCaseCounterRequest';
|
|
1
2
|
export * from './accountLevelFee';
|
|
2
3
|
export * from './accountLevelFeeRequest';
|
|
3
4
|
export * from './accountLevelFeeResponse';
|
|
@@ -77,6 +78,9 @@ export * from './caseActionRequestModel';
|
|
|
77
78
|
export * from './caseAlert';
|
|
78
79
|
export * from './caseBookingsStats';
|
|
79
80
|
export * from './caseChargeResponsePojo';
|
|
81
|
+
export * from './caseCounterOfferModel';
|
|
82
|
+
export * from './caseCounterOption';
|
|
83
|
+
export * from './caseCounterOptionModel';
|
|
80
84
|
export * from './caseCreationRequest';
|
|
81
85
|
export * from './caseDeclineCategory';
|
|
82
86
|
export * from './caseDeclineCategoryReasonsModel';
|
|
@@ -125,6 +129,7 @@ export * from './contactTimelineResponse';
|
|
|
125
129
|
export * from './convertPdfToImageModel';
|
|
126
130
|
export * from './convertPdfToImageRequest';
|
|
127
131
|
export * from './convertPdfToImageResponse';
|
|
132
|
+
export * from './counterOption';
|
|
128
133
|
export * from './countryDomain';
|
|
129
134
|
export * from './countryRegion';
|
|
130
135
|
export * from './countyDomain';
|
|
@@ -170,6 +175,7 @@ export * from './dashboardCaseModel';
|
|
|
170
175
|
export * from './dashboardCitationModel';
|
|
171
176
|
export * from './dashboardCourtModel';
|
|
172
177
|
export * from './dashboardStatusModel';
|
|
178
|
+
export * from './declineCaseCounterRequest';
|
|
173
179
|
export * from './declineCategory';
|
|
174
180
|
export * from './declineReason';
|
|
175
181
|
export * from './defaultClassModel';
|
|
@@ -239,6 +245,7 @@ export * from './getCaseActionResponse';
|
|
|
239
245
|
export * from './getCaseActionTimelineResponse';
|
|
240
246
|
export * from './getCaseActionTypesResponse';
|
|
241
247
|
export * from './getCaseCostsAttorneyResponse';
|
|
248
|
+
export * from './getCaseCounterOptionsResponse';
|
|
242
249
|
export * from './getCaseDeclineReasonTypesResponse';
|
|
243
250
|
export * from './getCaseDocumentResponse';
|
|
244
251
|
export * from './getCaseFromCitationResponse';
|
|
@@ -264,6 +271,7 @@ export * from './getClientConfirmedUnpaidCasesResponse';
|
|
|
264
271
|
export * from './getCompetitionResponseModel';
|
|
265
272
|
export * from './getCountOfMatchingUsersRequest';
|
|
266
273
|
export * from './getCountOfMatchingUsersResponse';
|
|
274
|
+
export * from './getCounterOfferResponse';
|
|
267
275
|
export * from './getCountiesResponse';
|
|
268
276
|
export * from './getCountryListResponse';
|
|
269
277
|
export * from './getCountryRegionsResponse';
|
|
@@ -368,6 +376,8 @@ export * from './incomingEmailRequest';
|
|
|
368
376
|
export * from './incomingHeader';
|
|
369
377
|
export * from './initiateCaseAndChargeCustomerRequest';
|
|
370
378
|
export * from './initiateCaseAndChargeCustomerResponse';
|
|
379
|
+
export * from './initiateCaseCounterRequest';
|
|
380
|
+
export * from './initiateCaseCounterResponse';
|
|
371
381
|
export * from './insertCaseLineItemResponse';
|
|
372
382
|
export * from './insertInvoiceLineItemRequest';
|
|
373
383
|
export * from './inviteHouseholdMateRequest';
|
|
@@ -992,6 +992,32 @@ angular.module('otrBackendService', [])
|
|
|
992
992
|
|
|
993
993
|
return deferred.promise;
|
|
994
994
|
};
|
|
995
|
+
/**
|
|
996
|
+
* getCaseCounterOptions
|
|
997
|
+
* @method
|
|
998
|
+
* @name OtrService#getCaseCounterOptionsUsingGET
|
|
999
|
+
* @param {object} parameters - method options and parameters
|
|
1000
|
+
*/
|
|
1001
|
+
OtrService.prototype.getCaseCounterOptionsUsingGET = function(parameters) {
|
|
1002
|
+
if (parameters === undefined) {
|
|
1003
|
+
parameters = {};
|
|
1004
|
+
}
|
|
1005
|
+
var deferred = $q.defer();
|
|
1006
|
+
var domain = this.domain,
|
|
1007
|
+
path = '/api/v1/cases/counter-options';
|
|
1008
|
+
var body = {},
|
|
1009
|
+
queryParameters = {},
|
|
1010
|
+
headers = {},
|
|
1011
|
+
form = {};
|
|
1012
|
+
|
|
1013
|
+
headers['Accept'] = ['*/*'];
|
|
1014
|
+
|
|
1015
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1016
|
+
|
|
1017
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1018
|
+
|
|
1019
|
+
return deferred.promise;
|
|
1020
|
+
};
|
|
995
1021
|
/**
|
|
996
1022
|
* getDeclinedCases
|
|
997
1023
|
* @method
|
|
@@ -1820,6 +1846,191 @@ angular.module('otrBackendService', [])
|
|
|
1820
1846
|
|
|
1821
1847
|
return deferred.promise;
|
|
1822
1848
|
};
|
|
1849
|
+
/**
|
|
1850
|
+
* getCounterOffer
|
|
1851
|
+
* @method
|
|
1852
|
+
* @name OtrService#getCounterOfferUsingGET
|
|
1853
|
+
* @param {object} parameters - method options and parameters
|
|
1854
|
+
* @param {string} parameters.caseId - caseId
|
|
1855
|
+
*/
|
|
1856
|
+
OtrService.prototype.getCounterOfferUsingGET = function(parameters) {
|
|
1857
|
+
if (parameters === undefined) {
|
|
1858
|
+
parameters = {};
|
|
1859
|
+
}
|
|
1860
|
+
var deferred = $q.defer();
|
|
1861
|
+
var domain = this.domain,
|
|
1862
|
+
path = '/api/v1/cases/{caseId}/counters';
|
|
1863
|
+
var body = {},
|
|
1864
|
+
queryParameters = {},
|
|
1865
|
+
headers = {},
|
|
1866
|
+
form = {};
|
|
1867
|
+
|
|
1868
|
+
headers['Accept'] = ['*/*'];
|
|
1869
|
+
|
|
1870
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
1871
|
+
|
|
1872
|
+
if (parameters['caseId'] === undefined) {
|
|
1873
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
1874
|
+
return deferred.promise;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1878
|
+
|
|
1879
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1880
|
+
|
|
1881
|
+
return deferred.promise;
|
|
1882
|
+
};
|
|
1883
|
+
/**
|
|
1884
|
+
* initiateCaseCounter
|
|
1885
|
+
* @method
|
|
1886
|
+
* @name OtrService#initiateCaseCounterUsingPOST
|
|
1887
|
+
* @param {object} parameters - method options and parameters
|
|
1888
|
+
* @param {string} parameters.caseId - caseId
|
|
1889
|
+
* @param {} parameters.request - request
|
|
1890
|
+
*/
|
|
1891
|
+
OtrService.prototype.initiateCaseCounterUsingPOST = function(parameters) {
|
|
1892
|
+
if (parameters === undefined) {
|
|
1893
|
+
parameters = {};
|
|
1894
|
+
}
|
|
1895
|
+
var deferred = $q.defer();
|
|
1896
|
+
var domain = this.domain,
|
|
1897
|
+
path = '/api/v1/cases/{caseId}/counters';
|
|
1898
|
+
var body = {},
|
|
1899
|
+
queryParameters = {},
|
|
1900
|
+
headers = {},
|
|
1901
|
+
form = {};
|
|
1902
|
+
|
|
1903
|
+
headers['Accept'] = ['*/*'];
|
|
1904
|
+
headers['Content-Type'] = ['application/json'];
|
|
1905
|
+
|
|
1906
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
1907
|
+
|
|
1908
|
+
if (parameters['caseId'] === undefined) {
|
|
1909
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
1910
|
+
return deferred.promise;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
if (parameters['request'] !== undefined) {
|
|
1914
|
+
body = parameters['request'];
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
if (parameters['request'] === undefined) {
|
|
1918
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
1919
|
+
return deferred.promise;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1923
|
+
|
|
1924
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1925
|
+
|
|
1926
|
+
return deferred.promise;
|
|
1927
|
+
};
|
|
1928
|
+
/**
|
|
1929
|
+
* acceptCaseCounter
|
|
1930
|
+
* @method
|
|
1931
|
+
* @name OtrService#acceptCaseCounterUsingPUT
|
|
1932
|
+
* @param {object} parameters - method options and parameters
|
|
1933
|
+
* @param {string} parameters.caseId - caseId
|
|
1934
|
+
* @param {integer} parameters.counterId - counterId
|
|
1935
|
+
* @param {} parameters.request - request
|
|
1936
|
+
*/
|
|
1937
|
+
OtrService.prototype.acceptCaseCounterUsingPUT = function(parameters) {
|
|
1938
|
+
if (parameters === undefined) {
|
|
1939
|
+
parameters = {};
|
|
1940
|
+
}
|
|
1941
|
+
var deferred = $q.defer();
|
|
1942
|
+
var domain = this.domain,
|
|
1943
|
+
path = '/api/v1/cases/{caseId}/counters/{counterId}/accept';
|
|
1944
|
+
var body = {},
|
|
1945
|
+
queryParameters = {},
|
|
1946
|
+
headers = {},
|
|
1947
|
+
form = {};
|
|
1948
|
+
|
|
1949
|
+
headers['Accept'] = ['*/*'];
|
|
1950
|
+
headers['Content-Type'] = ['application/json'];
|
|
1951
|
+
|
|
1952
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
1953
|
+
|
|
1954
|
+
if (parameters['caseId'] === undefined) {
|
|
1955
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
1956
|
+
return deferred.promise;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
path = path.replace('{counterId}', parameters['counterId']);
|
|
1960
|
+
|
|
1961
|
+
if (parameters['counterId'] === undefined) {
|
|
1962
|
+
deferred.reject(new Error('Missing required parameter: counterId'));
|
|
1963
|
+
return deferred.promise;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
if (parameters['request'] !== undefined) {
|
|
1967
|
+
body = parameters['request'];
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
if (parameters['request'] === undefined) {
|
|
1971
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
1972
|
+
return deferred.promise;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1976
|
+
|
|
1977
|
+
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1978
|
+
|
|
1979
|
+
return deferred.promise;
|
|
1980
|
+
};
|
|
1981
|
+
/**
|
|
1982
|
+
* declineCaseCounter
|
|
1983
|
+
* @method
|
|
1984
|
+
* @name OtrService#declineCaseCounterUsingPUT
|
|
1985
|
+
* @param {object} parameters - method options and parameters
|
|
1986
|
+
* @param {string} parameters.caseId - caseId
|
|
1987
|
+
* @param {integer} parameters.counterId - counterId
|
|
1988
|
+
* @param {} parameters.request - request
|
|
1989
|
+
*/
|
|
1990
|
+
OtrService.prototype.declineCaseCounterUsingPUT = function(parameters) {
|
|
1991
|
+
if (parameters === undefined) {
|
|
1992
|
+
parameters = {};
|
|
1993
|
+
}
|
|
1994
|
+
var deferred = $q.defer();
|
|
1995
|
+
var domain = this.domain,
|
|
1996
|
+
path = '/api/v1/cases/{caseId}/counters/{counterId}/decline';
|
|
1997
|
+
var body = {},
|
|
1998
|
+
queryParameters = {},
|
|
1999
|
+
headers = {},
|
|
2000
|
+
form = {};
|
|
2001
|
+
|
|
2002
|
+
headers['Accept'] = ['*/*'];
|
|
2003
|
+
headers['Content-Type'] = ['application/json'];
|
|
2004
|
+
|
|
2005
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
2006
|
+
|
|
2007
|
+
if (parameters['caseId'] === undefined) {
|
|
2008
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
2009
|
+
return deferred.promise;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
path = path.replace('{counterId}', parameters['counterId']);
|
|
2013
|
+
|
|
2014
|
+
if (parameters['counterId'] === undefined) {
|
|
2015
|
+
deferred.reject(new Error('Missing required parameter: counterId'));
|
|
2016
|
+
return deferred.promise;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
if (parameters['request'] !== undefined) {
|
|
2020
|
+
body = parameters['request'];
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
if (parameters['request'] === undefined) {
|
|
2024
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
2025
|
+
return deferred.promise;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
2029
|
+
|
|
2030
|
+
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
2031
|
+
|
|
2032
|
+
return deferred.promise;
|
|
2033
|
+
};
|
|
1823
2034
|
/**
|
|
1824
2035
|
* setCourtDateForCase
|
|
1825
2036
|
* @method
|