@otr-app/shared-backend-generated-client 2.4.79 → 2.4.81
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/api/casePaymentController.service.ts +76 -0
- package/dist/angular/api/caseReferralCodeController.service.ts +61 -0
- package/dist/otrBackendService.js +95 -0
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CasePaymentControllerApi.d.ts +9 -0
- package/dist/typescript/api/CasePaymentControllerApi.js +39 -0
- package/dist/typescript/api/CaseReferralCodeControllerApi.d.ts +7 -0
- package/dist/typescript/api/CaseReferralCodeControllerApi.js +31 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.d.ts +25 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +49 -0
- package/dist/typescript-fetch/apis/CaseReferralCodeControllerApi.d.ts +12 -0
- package/dist/typescript-fetch/apis/CaseReferralCodeControllerApi.js +30 -0
- package/package.json +1 -1
|
@@ -326,6 +326,7 @@ export class CasePaymentControllerService {
|
|
|
326
326
|
* @param productId productId
|
|
327
327
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
328
328
|
* @param reportProgress flag to report request and response progress.
|
|
329
|
+
* @deprecated
|
|
329
330
|
*/
|
|
330
331
|
public generateCasePaymentPlanUsingGET(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListCostItemsForCustomerResponse>;
|
|
331
332
|
public generateCasePaymentPlanUsingGET(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListCostItemsForCustomerResponse>>;
|
|
@@ -802,6 +803,81 @@ export class CasePaymentControllerService {
|
|
|
802
803
|
);
|
|
803
804
|
}
|
|
804
805
|
|
|
806
|
+
/**
|
|
807
|
+
* saveCasePaymentPlan
|
|
808
|
+
* @param caseId caseId
|
|
809
|
+
* @param paymentPlanTypeId paymentPlanTypeId
|
|
810
|
+
* @param period period
|
|
811
|
+
* @param productId productId
|
|
812
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
813
|
+
* @param reportProgress flag to report request and response progress.
|
|
814
|
+
*/
|
|
815
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListCostItemsForCustomerResponse>;
|
|
816
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListCostItemsForCustomerResponse>>;
|
|
817
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListCostItemsForCustomerResponse>>;
|
|
818
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
819
|
+
if (caseId === null || caseId === undefined) {
|
|
820
|
+
throw new Error('Required parameter caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
821
|
+
}
|
|
822
|
+
if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
|
|
823
|
+
throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
827
|
+
if (period !== undefined && period !== null) {
|
|
828
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
829
|
+
<any>period, 'period');
|
|
830
|
+
}
|
|
831
|
+
if (productId !== undefined && productId !== null) {
|
|
832
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
833
|
+
<any>productId, 'productId');
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
let localVarHeaders = this.defaultHeaders;
|
|
837
|
+
|
|
838
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
839
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
840
|
+
// to determine the Accept header
|
|
841
|
+
const httpHeaderAccepts: string[] = [
|
|
842
|
+
'*/*'
|
|
843
|
+
];
|
|
844
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
845
|
+
}
|
|
846
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
847
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
851
|
+
if (localVarHttpContext === undefined) {
|
|
852
|
+
localVarHttpContext = new HttpContext();
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
857
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
858
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
859
|
+
responseType_ = 'text';
|
|
860
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
861
|
+
responseType_ = 'json';
|
|
862
|
+
} else {
|
|
863
|
+
responseType_ = 'blob';
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
let localVarPath = `/api/v1/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/payment-plans/${this.configuration.encodeParam({name: "paymentPlanTypeId", value: paymentPlanTypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
868
|
+
return this.httpClient.request<ListCostItemsForCustomerResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
869
|
+
{
|
|
870
|
+
context: localVarHttpContext,
|
|
871
|
+
params: localVarQueryParameters,
|
|
872
|
+
responseType: <any>responseType_,
|
|
873
|
+
withCredentials: this.configuration.withCredentials,
|
|
874
|
+
headers: localVarHeaders,
|
|
875
|
+
observe: observe,
|
|
876
|
+
reportProgress: reportProgress
|
|
877
|
+
}
|
|
878
|
+
);
|
|
879
|
+
}
|
|
880
|
+
|
|
805
881
|
/**
|
|
806
882
|
* scheduleNewPayment
|
|
807
883
|
* @param caseId caseId
|
|
@@ -215,4 +215,65 @@ export class CaseReferralCodeControllerService {
|
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/**
|
|
219
|
+
* removeReferralCodeFromCaseV2
|
|
220
|
+
* @param caseId caseId
|
|
221
|
+
* @param codeId codeId
|
|
222
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
223
|
+
* @param reportProgress flag to report request and response progress.
|
|
224
|
+
*/
|
|
225
|
+
public removeReferralCodeFromCaseV2UsingDELETE(caseId: string, codeId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
|
|
226
|
+
public removeReferralCodeFromCaseV2UsingDELETE(caseId: string, codeId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
227
|
+
public removeReferralCodeFromCaseV2UsingDELETE(caseId: string, codeId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
228
|
+
public removeReferralCodeFromCaseV2UsingDELETE(caseId: string, codeId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
|
|
229
|
+
if (caseId === null || caseId === undefined) {
|
|
230
|
+
throw new Error('Required parameter caseId was null or undefined when calling removeReferralCodeFromCaseV2UsingDELETE.');
|
|
231
|
+
}
|
|
232
|
+
if (codeId === null || codeId === undefined) {
|
|
233
|
+
throw new Error('Required parameter codeId was null or undefined when calling removeReferralCodeFromCaseV2UsingDELETE.');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let localVarHeaders = this.defaultHeaders;
|
|
237
|
+
|
|
238
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
239
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
240
|
+
// to determine the Accept header
|
|
241
|
+
const httpHeaderAccepts: string[] = [
|
|
242
|
+
];
|
|
243
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
244
|
+
}
|
|
245
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
246
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
250
|
+
if (localVarHttpContext === undefined) {
|
|
251
|
+
localVarHttpContext = new HttpContext();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
256
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
257
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
258
|
+
responseType_ = 'text';
|
|
259
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
260
|
+
responseType_ = 'json';
|
|
261
|
+
} else {
|
|
262
|
+
responseType_ = 'blob';
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let localVarPath = `/api/v2/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/referralcode/${this.configuration.encodeParam({name: "codeId", value: codeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
267
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
|
268
|
+
{
|
|
269
|
+
context: localVarHttpContext,
|
|
270
|
+
responseType: <any>responseType_,
|
|
271
|
+
withCredentials: this.configuration.withCredentials,
|
|
272
|
+
headers: localVarHeaders,
|
|
273
|
+
observe: observe,
|
|
274
|
+
reportProgress: reportProgress
|
|
275
|
+
}
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
|
|
218
279
|
}
|
|
@@ -3135,6 +3135,59 @@ angular.module('otrBackendService', [])
|
|
|
3135
3135
|
|
|
3136
3136
|
return deferred.promise;
|
|
3137
3137
|
};
|
|
3138
|
+
/**
|
|
3139
|
+
* saveCasePaymentPlan
|
|
3140
|
+
* @method
|
|
3141
|
+
* @name OtrService#saveCasePaymentPlanUsingPOST
|
|
3142
|
+
* @param {object} parameters - method options and parameters
|
|
3143
|
+
* @param {string} parameters.caseId - caseId
|
|
3144
|
+
* @param {string} parameters.paymentPlanTypeId - paymentPlanTypeId
|
|
3145
|
+
* @param {string} parameters.period - period
|
|
3146
|
+
* @param {string} parameters.productId - productId
|
|
3147
|
+
*/
|
|
3148
|
+
OtrService.prototype.saveCasePaymentPlanUsingPOST = function(parameters) {
|
|
3149
|
+
if (parameters === undefined) {
|
|
3150
|
+
parameters = {};
|
|
3151
|
+
}
|
|
3152
|
+
var deferred = $q.defer();
|
|
3153
|
+
var domain = this.domain,
|
|
3154
|
+
path = '/api/v1/cases/{caseId}/payment-plans/{paymentPlanTypeId}';
|
|
3155
|
+
var body = {},
|
|
3156
|
+
queryParameters = {},
|
|
3157
|
+
headers = {},
|
|
3158
|
+
form = {};
|
|
3159
|
+
|
|
3160
|
+
headers['Accept'] = ['*/*'];
|
|
3161
|
+
headers['Content-Type'] = ['application/json'];
|
|
3162
|
+
|
|
3163
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
3164
|
+
|
|
3165
|
+
if (parameters['caseId'] === undefined) {
|
|
3166
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
3167
|
+
return deferred.promise;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
path = path.replace('{paymentPlanTypeId}', parameters['paymentPlanTypeId']);
|
|
3171
|
+
|
|
3172
|
+
if (parameters['paymentPlanTypeId'] === undefined) {
|
|
3173
|
+
deferred.reject(new Error('Missing required parameter: paymentPlanTypeId'));
|
|
3174
|
+
return deferred.promise;
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
if (parameters['period'] !== undefined) {
|
|
3178
|
+
queryParameters['period'] = parameters['period'];
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
if (parameters['productId'] !== undefined) {
|
|
3182
|
+
queryParameters['productId'] = parameters['productId'];
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
3186
|
+
|
|
3187
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
3188
|
+
|
|
3189
|
+
return deferred.promise;
|
|
3190
|
+
};
|
|
3138
3191
|
/**
|
|
3139
3192
|
* getCasePayments
|
|
3140
3193
|
* @method
|
|
@@ -18174,6 +18227,48 @@ angular.module('otrBackendService', [])
|
|
|
18174
18227
|
|
|
18175
18228
|
return deferred.promise;
|
|
18176
18229
|
};
|
|
18230
|
+
/**
|
|
18231
|
+
* removeReferralCodeFromCaseV2
|
|
18232
|
+
* @method
|
|
18233
|
+
* @name OtrService#removeReferralCodeFromCaseV2UsingDELETE
|
|
18234
|
+
* @param {object} parameters - method options and parameters
|
|
18235
|
+
* @param {string} parameters.caseId - caseId
|
|
18236
|
+
* @param {string} parameters.codeId - codeId
|
|
18237
|
+
*/
|
|
18238
|
+
OtrService.prototype.removeReferralCodeFromCaseV2UsingDELETE = function(parameters) {
|
|
18239
|
+
if (parameters === undefined) {
|
|
18240
|
+
parameters = {};
|
|
18241
|
+
}
|
|
18242
|
+
var deferred = $q.defer();
|
|
18243
|
+
var domain = this.domain,
|
|
18244
|
+
path = '/api/v2/cases/{caseId}/referralcode/{codeId}';
|
|
18245
|
+
var body = {},
|
|
18246
|
+
queryParameters = {},
|
|
18247
|
+
headers = {},
|
|
18248
|
+
form = {};
|
|
18249
|
+
|
|
18250
|
+
headers['Accept'] = ['*/*'];
|
|
18251
|
+
|
|
18252
|
+
path = path.replace('{caseId}', parameters['caseId']);
|
|
18253
|
+
|
|
18254
|
+
if (parameters['caseId'] === undefined) {
|
|
18255
|
+
deferred.reject(new Error('Missing required parameter: caseId'));
|
|
18256
|
+
return deferred.promise;
|
|
18257
|
+
}
|
|
18258
|
+
|
|
18259
|
+
path = path.replace('{codeId}', parameters['codeId']);
|
|
18260
|
+
|
|
18261
|
+
if (parameters['codeId'] === undefined) {
|
|
18262
|
+
deferred.reject(new Error('Missing required parameter: codeId'));
|
|
18263
|
+
return deferred.promise;
|
|
18264
|
+
}
|
|
18265
|
+
|
|
18266
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
18267
|
+
|
|
18268
|
+
this.request('DELETE', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
18269
|
+
|
|
18270
|
+
return deferred.promise;
|
|
18271
|
+
};
|
|
18177
18272
|
/**
|
|
18178
18273
|
* toggleDeleteCitation
|
|
18179
18274
|
* @method
|