UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

40 lines (39 loc) 1.83 kB
import { Environment } from '../ngx-services.models'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { QueryParams } from './models/api.models'; import { FiscalRegimensAcceptedOut, FiscalRegimensOut, PostalCodesOut } from './models/api-billing-mx.types'; import * as i0 from "@angular/core"; export declare class ApiBillingMxService { private environments; private http; constructor(environments: Environment, http: HttpClient); /** * Retrieves the URL for the shipments API from the environment configurations. * * @return {string} The URL of the shipments API. */ get url(): string; /** * Fetches the tax regimen data from the server. * * @return {Observable<FiscalRegimensOut>} An observable that emits the fiscal regimen data. */ getFiscalRegimens(): Observable<FiscalRegimensOut>; /** * Fetches a paginated list of CFDIs (Comprobante Fiscal Digital por Internet) based on the provided fiscal regimen. * * @param {number} fiscalRegimen - The fiscal regimen identifier to filter the CFDIs. * @return {Observable<FiscalRegimensAcceptedOut>} An observable containing the paginated list of CFDIs. */ getFiscalRegimensAccepted(fiscalRegimen: number): Observable<FiscalRegimensAcceptedOut>; /** * Fetches and validates postal code data from the server. * * @param {QueryParams} params - Query parameters used to filter the postal code data. * @return {Observable<PostalCodesOut>} - An observable emitting the validated postal code data. */ getPostalCodes(params: QueryParams): Observable<PostalCodesOut>; static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingMxService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApiBillingMxService>; }