@otr-app/shared-backend-generated-client 2.4.80 → 2.4.82
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 +75 -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 +48 -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,80 @@ 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?: undefined, context?: HttpContext}): Observable<any>;
|
|
816
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
817
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
818
|
+
public saveCasePaymentPlanUsingPOST(caseId: string, paymentPlanTypeId: string, period?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', productId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, 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
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
844
|
+
}
|
|
845
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
846
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
850
|
+
if (localVarHttpContext === undefined) {
|
|
851
|
+
localVarHttpContext = new HttpContext();
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
856
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
857
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
858
|
+
responseType_ = 'text';
|
|
859
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
860
|
+
responseType_ = 'json';
|
|
861
|
+
} else {
|
|
862
|
+
responseType_ = 'blob';
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
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})}`;
|
|
867
|
+
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
868
|
+
{
|
|
869
|
+
context: localVarHttpContext,
|
|
870
|
+
params: localVarQueryParameters,
|
|
871
|
+
responseType: <any>responseType_,
|
|
872
|
+
withCredentials: this.configuration.withCredentials,
|
|
873
|
+
headers: localVarHeaders,
|
|
874
|
+
observe: observe,
|
|
875
|
+
reportProgress: reportProgress
|
|
876
|
+
}
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
|
|
805
880
|
/**
|
|
806
881
|
* scheduleNewPayment
|
|
807
882
|
* @param caseId caseId
|
|
@@ -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
|