@otr-app/shared-backend-generated-client 2.4.80 → 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/otrBackendService.js +53 -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-fetch/apis/CasePaymentControllerApi.d.ts +25 -0
- package/dist/typescript-fetch/apis/CasePaymentControllerApi.js +49 -0
- package/package.json +1 -1
|
@@ -94,6 +94,15 @@ export declare class CasePaymentControllerApi {
|
|
|
94
94
|
* @param productId productId
|
|
95
95
|
*/
|
|
96
96
|
listCostItemsForCustomerUsingGET(caseId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.ListCostItemsForCustomerResponse>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary saveCasePaymentPlan
|
|
100
|
+
* @param caseId caseId
|
|
101
|
+
* @param paymentPlanTypeId paymentPlanTypeId
|
|
102
|
+
* @param period period
|
|
103
|
+
* @param productId productId
|
|
104
|
+
*/
|
|
105
|
+
saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.ListCostItemsForCustomerResponse>;
|
|
97
106
|
/**
|
|
98
107
|
*
|
|
99
108
|
* @summary scheduleNewPayment
|
|
@@ -356,6 +356,45 @@ export class CasePaymentControllerApi {
|
|
|
356
356
|
}
|
|
357
357
|
return this.$http(httpRequestParams);
|
|
358
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary saveCasePaymentPlan
|
|
362
|
+
* @param caseId caseId
|
|
363
|
+
* @param paymentPlanTypeId paymentPlanTypeId
|
|
364
|
+
* @param period period
|
|
365
|
+
* @param productId productId
|
|
366
|
+
*/
|
|
367
|
+
saveCasePaymentPlanUsingPOST(caseId, paymentPlanTypeId, period, productId, extraHttpRequestParams) {
|
|
368
|
+
const localVarPath = this.basePath + '/api/v1/cases/{caseId}/payment-plans/{paymentPlanTypeId}'
|
|
369
|
+
.replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)))
|
|
370
|
+
.replace('{' + 'paymentPlanTypeId' + '}', encodeURIComponent(String(paymentPlanTypeId)));
|
|
371
|
+
let queryParameters = {};
|
|
372
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
373
|
+
// verify required parameter 'caseId' is not null or undefined
|
|
374
|
+
if (caseId === null || caseId === undefined) {
|
|
375
|
+
throw new Error('Required parameter caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
376
|
+
}
|
|
377
|
+
// verify required parameter 'paymentPlanTypeId' is not null or undefined
|
|
378
|
+
if (paymentPlanTypeId === null || paymentPlanTypeId === undefined) {
|
|
379
|
+
throw new Error('Required parameter paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
380
|
+
}
|
|
381
|
+
if (period !== undefined) {
|
|
382
|
+
queryParameters['period'] = period;
|
|
383
|
+
}
|
|
384
|
+
if (productId !== undefined) {
|
|
385
|
+
queryParameters['productId'] = productId;
|
|
386
|
+
}
|
|
387
|
+
let httpRequestParams = {
|
|
388
|
+
method: 'POST',
|
|
389
|
+
url: localVarPath,
|
|
390
|
+
params: queryParameters,
|
|
391
|
+
headers: headerParams
|
|
392
|
+
};
|
|
393
|
+
if (extraHttpRequestParams) {
|
|
394
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
395
|
+
}
|
|
396
|
+
return this.$http(httpRequestParams);
|
|
397
|
+
}
|
|
359
398
|
/**
|
|
360
399
|
*
|
|
361
400
|
* @summary scheduleNewPayment
|
|
@@ -57,6 +57,12 @@ export interface ListCostItemsForCustomerUsingGETRequest {
|
|
|
57
57
|
period?: ListCostItemsForCustomerUsingGETPeriodEnum;
|
|
58
58
|
productId?: string;
|
|
59
59
|
}
|
|
60
|
+
export interface SaveCasePaymentPlanUsingPOSTRequest {
|
|
61
|
+
caseId: string;
|
|
62
|
+
paymentPlanTypeId: string;
|
|
63
|
+
period?: SaveCasePaymentPlanUsingPOSTPeriodEnum;
|
|
64
|
+
productId?: string;
|
|
65
|
+
}
|
|
60
66
|
export interface ScheduleNewPaymentUsingPOSTRequest {
|
|
61
67
|
caseId: string;
|
|
62
68
|
request: ScheduleNewPaymentRequest;
|
|
@@ -157,6 +163,14 @@ export declare class CasePaymentControllerApi extends runtime.BaseAPI {
|
|
|
157
163
|
* listCostItemsForCustomer
|
|
158
164
|
*/
|
|
159
165
|
listCostItemsForCustomerUsingGET(requestParameters: ListCostItemsForCustomerUsingGETRequest): Promise<ListCostItemsForCustomerResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* saveCasePaymentPlan
|
|
168
|
+
*/
|
|
169
|
+
saveCasePaymentPlanUsingPOSTRaw(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<runtime.ApiResponse<ListCostItemsForCustomerResponse>>;
|
|
170
|
+
/**
|
|
171
|
+
* saveCasePaymentPlan
|
|
172
|
+
*/
|
|
173
|
+
saveCasePaymentPlanUsingPOST(requestParameters: SaveCasePaymentPlanUsingPOSTRequest): Promise<ListCostItemsForCustomerResponse>;
|
|
160
174
|
/**
|
|
161
175
|
* scheduleNewPayment
|
|
162
176
|
*/
|
|
@@ -212,6 +226,17 @@ export declare enum ListCostItemsForCustomerUsingGETPeriodEnum {
|
|
|
212
226
|
WEEKLY = "WEEKLY",
|
|
213
227
|
YEARLY = "YEARLY"
|
|
214
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* @export
|
|
231
|
+
* @enum {string}
|
|
232
|
+
*/
|
|
233
|
+
export declare enum SaveCasePaymentPlanUsingPOSTPeriodEnum {
|
|
234
|
+
DAILY = "DAILY",
|
|
235
|
+
MONTHLY = "MONTHLY",
|
|
236
|
+
QUARTERLY = "QUARTERLY",
|
|
237
|
+
WEEKLY = "WEEKLY",
|
|
238
|
+
YEARLY = "YEARLY"
|
|
239
|
+
}
|
|
215
240
|
/**
|
|
216
241
|
* @export
|
|
217
242
|
* @enum {string}
|
|
@@ -363,6 +363,43 @@ export class CasePaymentControllerApi extends runtime.BaseAPI {
|
|
|
363
363
|
return yield response.value();
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* saveCasePaymentPlan
|
|
368
|
+
*/
|
|
369
|
+
saveCasePaymentPlanUsingPOSTRaw(requestParameters) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
|
|
372
|
+
throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
373
|
+
}
|
|
374
|
+
if (requestParameters.paymentPlanTypeId === null || requestParameters.paymentPlanTypeId === undefined) {
|
|
375
|
+
throw new runtime.RequiredError('paymentPlanTypeId', 'Required parameter requestParameters.paymentPlanTypeId was null or undefined when calling saveCasePaymentPlanUsingPOST.');
|
|
376
|
+
}
|
|
377
|
+
const queryParameters = {};
|
|
378
|
+
if (requestParameters.period !== undefined) {
|
|
379
|
+
queryParameters['period'] = requestParameters.period;
|
|
380
|
+
}
|
|
381
|
+
if (requestParameters.productId !== undefined) {
|
|
382
|
+
queryParameters['productId'] = requestParameters.productId;
|
|
383
|
+
}
|
|
384
|
+
const headerParameters = {};
|
|
385
|
+
const response = yield this.request({
|
|
386
|
+
path: `/api/v1/cases/{caseId}/payment-plans/{paymentPlanTypeId}`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))).replace(`{${"paymentPlanTypeId"}}`, encodeURIComponent(String(requestParameters.paymentPlanTypeId))),
|
|
387
|
+
method: 'POST',
|
|
388
|
+
headers: headerParameters,
|
|
389
|
+
query: queryParameters,
|
|
390
|
+
});
|
|
391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListCostItemsForCustomerResponseFromJSON(jsonValue));
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* saveCasePaymentPlan
|
|
396
|
+
*/
|
|
397
|
+
saveCasePaymentPlanUsingPOST(requestParameters) {
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
const response = yield this.saveCasePaymentPlanUsingPOSTRaw(requestParameters);
|
|
400
|
+
return yield response.value();
|
|
401
|
+
});
|
|
402
|
+
}
|
|
366
403
|
/**
|
|
367
404
|
* scheduleNewPayment
|
|
368
405
|
*/
|
|
@@ -517,6 +554,18 @@ export var ListCostItemsForCustomerUsingGETPeriodEnum;
|
|
|
517
554
|
ListCostItemsForCustomerUsingGETPeriodEnum["WEEKLY"] = "WEEKLY";
|
|
518
555
|
ListCostItemsForCustomerUsingGETPeriodEnum["YEARLY"] = "YEARLY";
|
|
519
556
|
})(ListCostItemsForCustomerUsingGETPeriodEnum || (ListCostItemsForCustomerUsingGETPeriodEnum = {}));
|
|
557
|
+
/**
|
|
558
|
+
* @export
|
|
559
|
+
* @enum {string}
|
|
560
|
+
*/
|
|
561
|
+
export var SaveCasePaymentPlanUsingPOSTPeriodEnum;
|
|
562
|
+
(function (SaveCasePaymentPlanUsingPOSTPeriodEnum) {
|
|
563
|
+
SaveCasePaymentPlanUsingPOSTPeriodEnum["DAILY"] = "DAILY";
|
|
564
|
+
SaveCasePaymentPlanUsingPOSTPeriodEnum["MONTHLY"] = "MONTHLY";
|
|
565
|
+
SaveCasePaymentPlanUsingPOSTPeriodEnum["QUARTERLY"] = "QUARTERLY";
|
|
566
|
+
SaveCasePaymentPlanUsingPOSTPeriodEnum["WEEKLY"] = "WEEKLY";
|
|
567
|
+
SaveCasePaymentPlanUsingPOSTPeriodEnum["YEARLY"] = "YEARLY";
|
|
568
|
+
})(SaveCasePaymentPlanUsingPOSTPeriodEnum || (SaveCasePaymentPlanUsingPOSTPeriodEnum = {}));
|
|
520
569
|
/**
|
|
521
570
|
* @export
|
|
522
571
|
* @enum {string}
|