UNPKG

@cafecafe/afip.ts

Version:
301 lines (300 loc) 13.6 kB
import { Client } from "soap"; import { SoapAsyncFunc } from "../../../types"; export interface IgetPersonaInput { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; } export interface IgetPersonaOutput { personaReturn: PersonaServiceA5PortTypes.IpersonaReturn; } export interface IgetPersonaListInput { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; } export interface IgetPersonaListOutput { personaListReturn: PersonaServiceA5PortTypes.IpersonaListReturn; } export interface IgetPersona_v2Input { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; } export interface IgetPersona_v2Output { personaReturn: PersonaServiceA5PortTypes.IpersonaReturn; } export interface IdummyInput { } export interface IdummyOutput { return: PersonaServiceA5PortTypes.Ireturn; } export interface IgetPersonaList_v2Input { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ token: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ sign: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ cuitRepresentada: number; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number[]; } export interface IgetPersonaList_v2Output { personaListReturn: PersonaServiceA5PortTypes.IpersonaListReturn; } export interface IPersonaServiceA5PortSoap extends Client { 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>; getPersonaList: (input: IgetPersonaListInput, cb: (err: any | null, result: IgetPersonaListOutput, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; getPersonaListAsync: SoapAsyncFunc<IgetPersonaListInput, IgetPersonaListOutput>; getPersona_v2: (input: IgetPersona_v2Input, cb: (err: any | null, result: IgetPersona_v2Output, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; getPersona_v2Async: SoapAsyncFunc<IgetPersona_v2Input, IgetPersona_v2Output>; 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>; getPersonaList_v2: (input: IgetPersonaList_v2Input, cb: (err: any | null, result: IgetPersonaList_v2Output, raw: string, soapHeader: { [k: string]: any; }) => any, options?: any, extraHeaders?: any) => void; getPersonaList_v2Async: SoapAsyncFunc<IgetPersonaList_v2Input, IgetPersonaList_v2Output>; } export declare namespace PersonaServiceA5PortTypes { interface Icaracterizacion { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionCaracterizacion: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idCaracterizacion: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface Idependencia { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ codPostal: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionDependencia: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionProvincia: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ direccion: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idDependencia: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idProvincia: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ localidad: string; } interface IdomicilioFiscal { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ codPostal: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ datoAdicional: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionProvincia: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ direccion: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idProvincia: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ localidad: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoDatoAdicional: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoDomicilio: string; } interface IdatosGenerales { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ apellido: string; caracterizacion: PersonaServiceA5PortTypes.Icaracterizacion[]; dependencia: PersonaServiceA5PortTypes.Idependencia; domicilioFiscal: PersonaServiceA5PortTypes.IdomicilioFiscal; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ estadoClave: string; /** http://a5.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaContratoSocial: string; /** http://a5.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaFallecimiento: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ mesCierre: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ nombre: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ razonSocial: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoClave: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoPersona: string; } interface Iactividad { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionActividad: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idActividad: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ nomenclador: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ orden: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface IactividadMonotributista { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionActividad: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idActividad: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ nomenclador: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ orden: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface IcategoriaMonotributo { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionCategoria: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idCategoria: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idImpuesto: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface IcomponenteDeSociedad { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ apellidoPersonaAsociada: string; /** http://a5.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ ffRelacion: string; /** http://a5.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ ffVencimiento: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersonaAsociada: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ nombrePersonaAsociada: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ razonSocialPersonaAsociada: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoComponente: string; } interface Iimpuesto { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionImpuesto: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idImpuesto: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface IdatosMonotributo { actividad: PersonaServiceA5PortTypes.Iactividad[]; actividadMonotributista: PersonaServiceA5PortTypes.IactividadMonotributista; categoriaMonotributo: PersonaServiceA5PortTypes.IcategoriaMonotributo; componenteDeSociedad: PersonaServiceA5PortTypes.IcomponenteDeSociedad[]; impuesto: PersonaServiceA5PortTypes.Iimpuesto[]; } interface IcategoriaAutonomo { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionCategoria: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idCategoria: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idImpuesto: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; } interface Iregimen { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ descripcionRegimen: string; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idImpuesto: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ idRegimen: number; /** http://a5.soap.ws.server.puc.sr/#xs:int(undefined) */ periodo: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ tipoRegimen: string; } interface IdatosRegimenGeneral { actividad: PersonaServiceA5PortTypes.Iactividad[]; categoriaAutonomo: PersonaServiceA5PortTypes.IcategoriaAutonomo; impuesto: PersonaServiceA5PortTypes.Iimpuesto[]; regimen: PersonaServiceA5PortTypes.Iregimen[]; } interface IerrorConstancia { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ apellido: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ error: string; /** http://a5.soap.ws.server.puc.sr/#xs:long(undefined) */ idPersona: number; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ nombre: string; } interface IerrorMonotributo { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ error: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ mensaje: string; } interface IerrorRegimenGeneral { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ error: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ mensaje: string; } interface Imetadata { /** http://a5.soap.ws.server.puc.sr/#xs:dateTime(undefined) */ fechaHora: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ servidor: string; } interface IpersonaReturn { datosGenerales: PersonaServiceA5PortTypes.IdatosGenerales; datosMonotributo: PersonaServiceA5PortTypes.IdatosMonotributo; datosRegimenGeneral: PersonaServiceA5PortTypes.IdatosRegimenGeneral; errorConstancia: PersonaServiceA5PortTypes.IerrorConstancia; errorMonotributo: PersonaServiceA5PortTypes.IerrorMonotributo; errorRegimenGeneral: PersonaServiceA5PortTypes.IerrorRegimenGeneral; metadata: PersonaServiceA5PortTypes.Imetadata; } interface Ipersona { datosGenerales: PersonaServiceA5PortTypes.IdatosGenerales; datosMonotributo: PersonaServiceA5PortTypes.IdatosMonotributo; datosRegimenGeneral: PersonaServiceA5PortTypes.IdatosRegimenGeneral; errorConstancia: PersonaServiceA5PortTypes.IerrorConstancia; errorMonotributo: PersonaServiceA5PortTypes.IerrorMonotributo; errorRegimenGeneral: PersonaServiceA5PortTypes.IerrorRegimenGeneral; } interface IpersonaListReturn { metadata: PersonaServiceA5PortTypes.Imetadata; persona: PersonaServiceA5PortTypes.Ipersona[]; } interface Ireturn { /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ appserver: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ authserver: string; /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */ dbserver: string; } }