UNPKG

facturajs

Version:

Comunicación con los web services de AFIP utilizando nodejs.

33 lines (32 loc) • 1.01 kB
import { IConfigService } from '../IConfigService'; import { WsServicesNames } from '../SoapMethods'; interface IRemoteMethodParams { Auth?: Record<string, unknown>; params?: Record<string, unknown>; } export declare class AfipSoap { private config; private tokensAliasServices; private urls; constructor(config: IConfigService); private getTlsRequestOptions; private getTokens; private retrieveTokens; private saveCredentialsCache; private static getCredentialsCacheAll; private static isErrnoException; private getLoginXml; private signService; private static getNetworkHour; private getKeys; private getCert; private getPrivateKey; private getSoapClient; private getAfipEnvironment; private getTokensFromNetwork; private isExpired; private getTokensFromCache; execMethod(service: WsServicesNames, method: string, params: IRemoteMethodParams): Promise<unknown>; private static throwOnError; } export {};