@otr-app/shared-backend-generated-client 2.4.88 → 2.4.89

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.
@@ -173,6 +173,63 @@ export class RecurringBillingControllerService {
173
173
  );
174
174
  }
175
175
 
176
+ /**
177
+ * clearBillingProductOptions
178
+ * @param caseId caseId
179
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
180
+ * @param reportProgress flag to report request and response progress.
181
+ */
182
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
183
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
184
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
185
+ public clearBillingProductOptionsUsingDELETE(caseId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
186
+ if (caseId === null || caseId === undefined) {
187
+ throw new Error('Required parameter caseId was null or undefined when calling clearBillingProductOptionsUsingDELETE.');
188
+ }
189
+
190
+ let localVarHeaders = this.defaultHeaders;
191
+
192
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
193
+ if (localVarHttpHeaderAcceptSelected === undefined) {
194
+ // to determine the Accept header
195
+ const httpHeaderAccepts: string[] = [
196
+ ];
197
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
+ }
199
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
200
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
201
+ }
202
+
203
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
204
+ if (localVarHttpContext === undefined) {
205
+ localVarHttpContext = new HttpContext();
206
+ }
207
+
208
+
209
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
210
+ if (localVarHttpHeaderAcceptSelected) {
211
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
212
+ responseType_ = 'text';
213
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
214
+ responseType_ = 'json';
215
+ } else {
216
+ responseType_ = 'blob';
217
+ }
218
+ }
219
+
220
+ let localVarPath = `/api/v1/billing/cases/${this.configuration.encodeParam({name: "caseId", value: caseId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/products`;
221
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
222
+ {
223
+ context: localVarHttpContext,
224
+ responseType: <any>responseType_,
225
+ withCredentials: this.configuration.withCredentials,
226
+ headers: localVarHeaders,
227
+ observe: observe,
228
+ reportProgress: reportProgress
229
+ }
230
+ );
231
+ }
232
+
176
233
  /**
177
234
  * createBillingSubscription
178
235
  * @param userId userId
@@ -568,6 +568,40 @@ angular.module('otrBackendService', [])
568
568
 
569
569
  return deferred.promise;
570
570
  };
571
+ /**
572
+ * clearBillingProductOptions
573
+ * @method
574
+ * @name OtrService#clearBillingProductOptionsUsingDELETE
575
+ * @param {object} parameters - method options and parameters
576
+ * @param {string} parameters.caseId - caseId
577
+ */
578
+ OtrService.prototype.clearBillingProductOptionsUsingDELETE = function(parameters) {
579
+ if (parameters === undefined) {
580
+ parameters = {};
581
+ }
582
+ var deferred = $q.defer();
583
+ var domain = this.domain,
584
+ path = '/api/v1/billing/cases/{caseId}/products';
585
+ var body = {},
586
+ queryParameters = {},
587
+ headers = {},
588
+ form = {};
589
+
590
+ headers['Accept'] = ['*/*'];
591
+
592
+ path = path.replace('{caseId}', parameters['caseId']);
593
+
594
+ if (parameters['caseId'] === undefined) {
595
+ deferred.reject(new Error('Missing required parameter: caseId'));
596
+ return deferred.promise;
597
+ }
598
+
599
+ queryParameters = mergeQueryParams(parameters, queryParameters);
600
+
601
+ this.request('DELETE', domain + path, parameters, body, headers, queryParameters, form, deferred);
602
+
603
+ return deferred.promise;
604
+ };
571
605
  /**
572
606
  * saveBillingProductOption
573
607
  * @method