UNPKG

@cafecafe/afip.ts

Version:
146 lines (145 loc) 6.66 kB
import { Client } from "soap"; import { SoapAsyncFunc } from "../../../types"; export interface IdummyInput { } export interface IdummyOutput { return: PersonaServiceA13PortTypes.Ireturn; } export interface IgetIdPersonaListByDocumentoInput { /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ documento: string; } export interface IgetIdPersonaListByDocumentoOutput { idPersonaListReturn: PersonaServiceA13PortTypes.IidPersonaListReturn; } export interface IgetPersonaInput { /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; } export interface IgetPersonaOutput { personaReturn: PersonaServiceA13PortTypes.IpersonaReturn; } export interface IPersonaServiceA13PortSoap extends Client { dummy: (input: IdummyInput, cb: (err: any | null, result: IdummyOutput, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; dummyAsync: SoapAsyncFunc<IdummyInput, IdummyOutput>; getIdPersonaListByDocumento: (input: IgetIdPersonaListByDocumentoInput, cb: (err: any | null, result: IgetIdPersonaListByDocumentoOutput, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; getIdPersonaListByDocumentoAsync: SoapAsyncFunc<IgetIdPersonaListByDocumentoInput, IgetIdPersonaListByDocumentoOutput>; getPersona: (input: IgetPersonaInput, cb: (err: any | null, result: IgetPersonaOutput, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; getPersonaAsync: SoapAsyncFunc<IgetPersonaInput, IgetPersonaOutput>; } export declare namespace PersonaServiceA13PortTypes { interface Ireturn { /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ appserver: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ authserver: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ dbserver: string; } interface Imetadata { /** http://a13.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaHora: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ servidor: string; } interface IidPersonaListReturn { /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; metadata: PersonaServiceA13PortTypes.Imetadata; } interface Idomicilio { /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ calle: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ codigoPostal: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ datoAdicional: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionProvincia: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ direccion: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ estadoDomicilio: string; /** http://a13.soap.ws.server.puc.sr/#xs:int(undefined) */ idProvincia: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ localidad: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ manzana: string; /** http://a13.soap.ws.server.puc.sr/#xs:int(undefined) */ numero: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ oficinaDptoLocal: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ piso: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ sector: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoDatoAdicional: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoDomicilio: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ torre: string; } interface Ipersona { /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ apellido: string; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ claveInactivaAsociada: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionActividadPrincipal: string; domicilio: PersonaServiceA13PortTypes.Idomicilio[]; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ estadoClave: string; /** http://a13.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaContratoSocial: string; /** http://a13.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaFallecimiento: string; /** http://a13.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaNacimiento: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ formaJuridica: string; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ idActividadPrincipal: number; /** http://a13.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; /** http://a13.soap.ws.server.puc.sr/#xs:int(undefined) */ mesCierre: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ nombre: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ numeroDocumento: string; /** http://a13.soap.ws.server.puc.sr/#xs:int(undefined) */ periodoActividadPrincipal: number; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ razonSocial: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoClave: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoDocumento: string; /** http://a13.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoPersona: string; } interface IpersonaReturn { metadata: PersonaServiceA13PortTypes.Imetadata; persona: PersonaServiceA13PortTypes.Ipersona; } }