From 83c1cf26276ca6b9c9ee8b39f900b3b63ef1c775 Mon Sep 17 00:00:00 2001 From: Cristian_Camargo Date: Tue, 28 May 2019 20:22:39 +0000 Subject: [PATCH] Update afiliaciones-afiliado.json, Agregado servicio de validador Empresa --- apigee/afiliaciones-afiliado.json | 456 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 454 insertions(+), 2 deletions(-) diff --git a/apigee/afiliaciones-afiliado.json b/apigee/afiliaciones-afiliado.json index 5590811..1eecb82 100644 --- a/apigee/afiliaciones-afiliado.json +++ b/apigee/afiliaciones-afiliado.json @@ -28,9 +28,13 @@ "name": "cols-afiliaciones-afiliado", "description": "Consulta de los servicios de afiliaciones." }, - { + { "name": "cols-afiliaciones-validador", "description": "Consulta de afiliaciones a través del validador." + }, + { + "name": "cols-afiliaciones-validadorempresas", + "description": "Consulta de afiliaciones para validar empresas." } ], "paths": { @@ -538,7 +542,61 @@ } ] } - } + }, + "/v2/afiliaciones/validadorempresas": { + "get": { + "tags": [ + "cols-afiliaciones-validadorempresas" + ], + "summary": "Información del afiliado ", + "description": "Retorna la información detallada de una empresa.", + "operationId": "validadorEmpresas", + "parameters": [ + + { + "name": "tipoId", + "in": "query", + "description": "
Tipos de identificación
TipoID Descripción
CO1C Cédula
CO1N Nit
CO1E Cédula de extranjería
CO1T Tarjeta de identidad
CO1L Registro Civil
CO1P Pasaporte
CO1D Carnet Diplomático
CO1S Sin identificación del exterior
CO1V Permiso Especial de Permanencia
CO1X Tarjeta de extranjería
", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "numeroId", + "in": "query", + "description": "Numero de documento.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/validadorEmpresaResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, }, "externalDocs": { "description": "Encontrar más información en EnterpriseArchitect", @@ -546,6 +604,400 @@ }, "components": { "schemas": { + "validadorEmpresaResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "estado":{ + "type":"string", + "description":"Estado del servicio" + }, + "mensaje":{ + "type":"string", + "description":"Mensaje del servicio" + }, + "data": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/afiliadoValidadorEmpresa" + } + } + } + }, + "afiliadoValidadorEmpresa": { + "type": "object", + "properties": { + "contribuyente": { + "$ref": "#/components/schemas/validadorEmpresa" + } + } + }, + "telefonoValidadorEmpresa": { + "type": "object", + "properties": { + "fijo":{ + "type":"string", + "description":"Telefono fijo" + }, + "celular":{ + "type":"string", + "description":"Telefono celular" + }, + } + }, + "direccionValidadorEmpresa": { + "type": "object", + "properties": { + "pais":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion del pais" + }, + "nombre":{ + "type":"string", + "description":"Nombre del pais" + }, + } + }, + "departamento":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion del departamento" + }, + "nombre":{ + "type":"string", + "description":"Nombre del departamento" + }, + } + }, + "ciudad":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion de la ciudad" + }, + "nombre":{ + "type":"string", + "description":"Nombre de la ciudad" + }, + } + }, + "localidad":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion de la localidad" + }, + "nombre":{ + "type":"string", + "description":"Nombre de la localidad" + }, + } + }, + "direccionPrincipal":{ + "type":"string", + "description":"Direccion principal" + }, + "barrio":{ + "type":"string", + "description":"Barrio" + }, + "direccionSecundaria":{ + "type":"string", + "description":"Direccion secundaria" + }, + } + }, + "representanteLegal":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion" + }, + "tipoDocumento":{ + "type":"string", + "description":"Tipo de documento del representanteLegal" + }, + "numeroDocumento":{ + "type":"string", + "description":"Numero de documento del representanteLegal" + }, + "nombre":{ + "type":"string", + "description":"Nombre del representanteLegal" + }, + "primerNombre":{ + "type":"string", + "description":"Primer nombre del representanteLegal" + }, + "segundoNombre":{ + "type":"string", + "description":"Segundo nombre del representanteLegal" + }, + "primerApellido":{ + "type":"string", + "description":"Primer apellido del representanteLegal" + }, + "segundoApellido":{ + "type":"string", + "description":"Segundo apellido del representanteLegal" + }, + "idPosicion":{ + "type":"string", + "description":"Numero de identificacion de la posicion del representanteLegal" + }, + } + }, + "contactoAdministrador":{ + "type":"object", + "properties":{ + "tipoDocumento":{ + "type":"string", + "description":"Tipo de documento del contacto administrador" + }, + "numeroDocumento":{ + "type":"string", + "description":"Numero de documento del contacto administrador" + }, + "nombre":{ + "type":"string", + "description":"Nombre del contacto administrador" + }, + } + }, + "actividadEconomica":{ + "type":"object", + "properties":{ + "codigo":{ + "type":"string", + "description":"Codigo de actividad economica" + }, + "descripcion":{ + "type":"string", + "description":"Descripcion de actividad economica" + }, + "agrupacion":{ + "type":"string", + "description":"Agrupacion de actividad economica" + }, + } + }, + "claseValidadorEmpresa":{ + "type":"object", + "properties":{ + "id":{ + "type":"string", + "description":"Numero de identificacion de clase" + }, + "descripcion":{ + "type":"string", + "description":"Descripcion de clase" + } + } + }, + "detalleAportantes":{ + "type":"object", + "properties":{ + "tipoContrato":{ + "type":"string", + "description":"Tipo de contrato" + }, + "descripcionContrato":{ + "type":"string", + "description":"Descripcion del contrato" + }, + "claseInterlocutor":{ + "type":"string", + "description":"Clase de interlocutor" + }, + "descripcionInterlocutor":{ + "type":"string", + "description":"Descripcion de interlocutor" + }, + "estado":{ + "type":"object", + "properties":{ + "estadoId":{ + "type":"string", + "description":"Estado id" + }, + "fechaInicio":{ + "type":"string", + "description":"Fecha de inicio" + }, + "fechaFin":{ + "type":"string", + "description":"Fecha de fin" + }, + } + }, + "numeroCotizantes":{ + "type":"string", + "description":"Numero de cotizantes" + }, + "numeroConyuges":{ + "type":"string", + "description":"Numero de conyugues" + }, + "numeroPacs":{ + "type":"string", + "description":"Numero de pacs" + }, + "retiro":{ + "type":"object", + "properties":{ + "motivo":{ + "type":"string", + "description":"Motivo de retiro" + }, + "descripcion":{ + "type":"string", + "description":"Descripcion de retiro" + } + } + }, + "modalidad":{ + "type":"object", + "properties":{ + "nombre":{ + "type":"string", + "description":"Nombre de modalidad" + }, + "descripcion":{ + "type":"string", + "description":"Descripcion de modalidad" + } + } + }, + "pago":{ + "type":"object", + "properties":{ + "via":{ + "type":"string", + "description":"Via de pago" + }, + "descripcion":{ + "type":"string", + "description":"Descripcion de pago" + } + } + }, + "ultimoCicloPagado":{ + "type":"string", + "description":"Ultimo ciclo pagado" + }, + "fechaInicioAporte":{ + "type":"string", + "description":"Fecha de inicio aporte" + }, + "distribucionId":{ + "type":"string", + "description":"Distribucion Id" + }, + "pagoAportesId":{ + "type":"string", + "description":"Id de pago de aportes" + } + } + }, + "validadorEmpresa": { + "type": "object", + "properties": { + "nombre":{ + "type":"string", + "description":"Nombre del contribuyente" + }, + "numeroDocumento":{ + "type":"string", + "description":"Número de documento del contribuyente" + }, + "tipoDocumento":{ + "type":"string", + "description":"Tipo de documento del contribuyente" + }, + "telefono":{ + "$ref": "#/components/schemas/telefonoValidadorEmpresa" + }, + "direccion":{ + "$ref": "#/components/schemas/direccionValidadorEmpresa" + }, + "correoElectronico":{ + "type":"string", + "description":"Correo electronico del contribuyente" + }, + "sitioWebEmpresa":{ + "type":"string", + "description":"Pagina web del contribuyente" + }, + "representanteLegal":{ + "$ref": "#/components/schemas/representanteLegal" + }, + "contactoAdministrador":{ + "$ref": "#/components/schemas/contactoAdministrador" + }, + "nombreSujetoDerecho":{ + "type":"string", + "description":"Nombre sujeto derecho" + }, + "formaJuridica":{ + "type":"string", + "description":"Forma juridica" + }, + "actividadEconomica":{ + "$ref": "#/components/schemas/actividadEconomica" + }, + "clase":{ + "$ref": "#/components/schemas/claseValidadorEmpresa" + }, + "leyMiPyme":{ + "type":"string", + "description":"leyMiPyme" + }, + "fechaAfiliacion":{ + "type":"string", + "description":"Fecha de afiliacion" + }, + "idAlcaldia":{ + "type":"string", + "description":"Numero de identificacion de alcaldia" + }, + "idOficinaColsubsidio":{ + "type":"string", + "description":"Numero de identificacion de oficina Colsubsidio" + }, + "localidad":{ + "type":"string", + "description":"Localidad" + }, + "tipoPersona":{ + "type":"string", + "description":"Tipo de persona" + }, + "tipoContribuyente":{ + "type":"string", + "description":"Tipo de contribuyente" + }, + "fechaInicio":{ + "type":"string", + "description":"Fecha de inicio" + }, + "detalleAportantes": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/detalleAportantes" + } + } + } + }, "validadorEmpleadorResponse": { "type": "object", "required": [ -- libgit2 0.26.0