@experteam-mx/ngx-services 18.9.1 → 18.9.3

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.
@@ -259,6 +259,35 @@ class ApiBillingPaService {
259
259
  params
260
260
  }).pipe(map(({ data }) => data));
261
261
  }
262
+ /**
263
+ * RRetrieves the list of billing configurations to locations
264
+ *
265
+ * @return {Observable<BillingConfigsOut>} An observable that emits an array of billing configurations to locations
266
+ */
267
+ getConfigs() {
268
+ return this.http.get(`${this.url}/location/configs`)
269
+ .pipe(map(({ data }) => data));
270
+ }
271
+ /**
272
+ * Retrieves the details of a location in billing configurations
273
+ *
274
+ * @param {number} id - The id of the location to fetch.
275
+ * @return {Observable<BillingConfigOut>} An observable that emits the location billing configuration data.
276
+ */
277
+ getConfig(id) {
278
+ return this.http.get(`${this.url}/locations/${id}`)
279
+ .pipe(map(({ data }) => data));
280
+ }
281
+ /**
282
+ * Sends a POST request to create a new billing configuration location.
283
+ *
284
+ * @param {BillingConfigIn} body - The billing configuration to location data to be sent in the request body.
285
+ * @return {Observable<BillingConfigOut>} An observable emitting the created billing configuration to location data.
286
+ */
287
+ postConfigs(body) {
288
+ return this.http.post(`${this.url}/locations`, body)
289
+ .pipe(map(({ data }) => data));
290
+ }
262
291
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
263
292
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
264
293
  }
@@ -1038,7 +1067,7 @@ class ApiCompaniesService {
1038
1067
  * @return {Observable<SupplyEntitiesOut>} An observable containing the processed supply entities data.
1039
1068
  */
1040
1069
  putSupplyEntities(body) {
1041
- return this.http.post(`${this.url}/accounts`, body)
1070
+ return this.http.put(`${this.url}/supply-entities`, body)
1042
1071
  .pipe(map(({ data }) => data));
1043
1072
  }
1044
1073
  /**