UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

42 lines (41 loc) 2.3 kB
import { Environment } from '../ngx-services.models'; import { HttpClient } from '@angular/common/http'; import { QueryParams } from './models/api.models'; import { Observable } from 'rxjs'; import { InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut } from './models/api-cash-operations.types'; import * as i0 from "@angular/core"; export declare class ApiCashOperationsService { private environments; private http; constructor(environments: Environment, http: HttpClient); /** * Retrieves the URL for the cash operations API from the environment configurations. * * @return {string} The URL of the cash operations API. */ get url(): string; /** * Creates a new installation country reference currency. * * @param {InstallationCountryReferenceCurrencyIn} body - The data for the new reference currency. * @returns {Observable<InstallationCountryReferenceCurrencyOut>} The created reference currency. */ postInstallationCountryReferenceCurrency(body: InstallationCountryReferenceCurrencyIn): Observable<InstallationCountryReferenceCurrencyOut>; /** * Updates an existing installation country reference currency. * * @param {number} id - The ID of the reference currency to update. * @param {InstallationCountryReferenceCurrencyIn} body - The updated data for the reference currency. * @returns {Observable<InstallationCountryReferenceCurrencyOut>} The updated reference currency. */ putInstallationCountryReferenceCurrency(id: number, body: InstallationCountryReferenceCurrencyIn): Observable<InstallationCountryReferenceCurrencyOut>; /** * Retrieves a list of installation country reference currencies based on query parameters. * * @param {QueryParams} params - Query parameters for filtering the currencies. * @returns {Observable<InstallationCountryReferenceCurrenciesOut>} The list of reference currencies. */ getInstallationCompanyCountryCurrencies(params: QueryParams): Observable<InstallationCountryReferenceCurrenciesOut>; static ɵfac: i0.ɵɵFactoryDeclaration<ApiCashOperationsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApiCashOperationsService>; }