@experteam-mx/ngx-services
Version:
Angular common services for Experteam apps
63 lines (62 loc) • 3.51 kB
TypeScript
import { Environment } from '../ngx-services.models';
import { HttpClient } from '@angular/common/http';
import { QueryParams } from './models/api.models';
import { Observable } from 'rxjs';
import { CashValueSummaryOut, InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut, OpeningTransferenceIn, OpeningTransferenceOut, ReceiptFileOut } 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>;
/**
* Retrieves the cash value summary for a specific opening ID.
*
* @param {number} id - The ID of the opening for which to retrieve the cash value summary.
* @returns {Observable<CashValueSummaryOut>} An observable that emits the cash value summary data.
*/
getOpeningCashValueSummary(id: number): Observable<CashValueSummaryOut>;
/**
* Creates a new opening transference record.
*
* @param {OpeningTransferenceIn} body - The data to create the new opening transference.
* @returns {Observable<OpeningTransferenceOut>} An observable that emits the newly created opening transference.
*/
postOpeningTransferences(body: OpeningTransferenceIn): Observable<OpeningTransferenceOut>;
/**
* Retrieves the receipt file associated with the given opening transference ID.
*
* @param {number} id - The ID of the opening transference whose receipt is to be retrieved.
* @returns {Observable<ReceiptFileOut>} An observable that emits the receipt file data.
*/
getOpeningTransferenceReceipt(id: number): Observable<ReceiptFileOut>;
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCashOperationsService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCashOperationsService>;
}