@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.
@@ -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
@@ -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