@saritasa/renewaire-frontend-sdk 0.232.0 → 0.234.0

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.232.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.234.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.232.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.234.0 --save
5
5
  ```
@@ -4276,6 +4276,44 @@ class ProjectDiscountsApiService extends BaseService {
4276
4276
  reportProgress: reportProgress,
4277
4277
  });
4278
4278
  }
4279
+ projectDiscountsDeleteProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4280
+ const projectDiscountId = requestParameters?.projectDiscountId;
4281
+ if (projectDiscountId === null || projectDiscountId === undefined) {
4282
+ throw new Error("Required parameter projectDiscountId was null or undefined when calling projectDiscountsDeleteProjectDiscount.");
4283
+ }
4284
+ let localVarHeaders = this.defaultHeaders;
4285
+ // authentication (Bearer) required
4286
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4287
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4288
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4289
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4290
+ }
4291
+ const localVarHttpContext = options?.context ?? new HttpContext();
4292
+ const localVarTransferCache = options?.transferCache ?? true;
4293
+ let responseType_ = "json";
4294
+ if (localVarHttpHeaderAcceptSelected) {
4295
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4296
+ responseType_ = "text";
4297
+ }
4298
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4299
+ responseType_ = "json";
4300
+ }
4301
+ else {
4302
+ responseType_ = "blob";
4303
+ }
4304
+ }
4305
+ let localVarPath = `/api/project-discounts/${this.configuration.encodeParam({ name: "projectDiscountId", value: projectDiscountId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
4306
+ const { basePath, withCredentials } = this.configuration;
4307
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
4308
+ context: localVarHttpContext,
4309
+ responseType: responseType_,
4310
+ ...(withCredentials ? { withCredentials } : {}),
4311
+ headers: localVarHeaders,
4312
+ observe: observe,
4313
+ transferCache: localVarTransferCache,
4314
+ reportProgress: reportProgress,
4315
+ });
4316
+ }
4279
4317
  projectDiscountsUpdateProjectDiscount(requestParameters, observe = "body", reportProgress = false, options) {
4280
4318
  const projectDiscountId = requestParameters?.projectDiscountId;
4281
4319
  if (projectDiscountId === null || projectDiscountId === undefined) {