UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

48 lines (47 loc) 2.05 kB
import { Environment } from '../ngx-services.models'; import { HttpClient } from '@angular/common/http'; import { QueryParams } from './models/api.models'; import { Observable } from 'rxjs'; import { BillingPaCustomerOut, DistrictsOut, ParishesOut, ProvincesOut } from './models/api-billing-pa.types'; import * as i0 from "@angular/core"; export declare class ApiBillingPaService { private environments; private http; constructor(environments: Environment, http: HttpClient); /** * Retrieves the URL for the Billing Pa API from the environment configurations. * * @return {string} The URL of the Billing Pa API. */ get url(): string; /** * Retrieves a list of districts based on query parameters. * * @param {QueryParams} params - Query parameters for filtering the districts. * @returns {Observable<DistrictsOut>} The list of districts. */ getDistricts(params: QueryParams): Observable<DistrictsOut>; /** * Retrieves a list of parishes based on query parameters. * * @param {QueryParams} params - Query parameters for filtering the parishes. * @returns {Observable<ParishesOut>} The list of parishes. */ getParishes(params: QueryParams): Observable<ParishesOut>; /** * Retrieves a list of provinces based on query parameters. * * @param {QueryParams} params - Query parameters for filtering the provinces. * @returns {Observable<ProvincesOut>} The list of provinces. */ getProvinces(params: QueryParams): Observable<ProvincesOut>; /** * Retrieves the details of a customer based on query parameters. * * @param {QueryParams} params - Query parameters for get customer. * @return {Observable<BillingPaCustomerOut>} An observable that emits customer data. */ getValidateCustomer(params: QueryParams): Observable<BillingPaCustomerOut>; static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingPaService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApiBillingPaService>; }