diff --git a/apigee/recreacionyturismo-afiliados.json b/apigee/recreacionyturismo-afiliados.json index 1e8573e..d3047c9 100644 --- a/apigee/recreacionyturismo-afiliados.json +++ b/apigee/recreacionyturismo-afiliados.json @@ -98,7 +98,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/registrarDatosClienteResponse" + "$ref": "#/components/schemas/consultarDatosClienteResponse" } } } @@ -1018,6 +1018,29 @@ } } }, + "consultarDatosClienteResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerCliente": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerCliente" + } + } + } + }, "registrarDatosClienteResponse": { "type": "object", "required": [ @@ -1044,9 +1067,153 @@ "obtenerCliente": { "type": "object", "properties": { + "fechaCreacion": { + "type": "string", + "format": "date-time", + "description": "Fecha de creacion" + }, + "fechaActualizacion": { + "type": "string", + "format": "date-time", + "description": "Fecha de actualizacion" + }, + "fechaSistema": { + "type": "string", + "format": "date-time", + "description": "Fecha del sistema" + }, + "comentario": { + "type": "string", + "description": "Comentario" + }, + "regional": { + "type": "string", + "description": "Comentario regional" + }, + "request": { + "type": "string", + "description": "Request" + }, + "encontrado": { + "type": "string", + "description": "Encontrado" + }, "cliente": { - "$ref": "#/components/schemas/cliente" + "$ref": "#/components/schemas/consultaCliente" + }, + "empresa": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/empresa" + } + } + } + }, + "consultaCliente": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id del cliente" + }, + "idDato ": { + "type": "string", + "description": "Id del dato" + }, + "idEvento": { + "type": "string", + "description": "Id del evento" + }, + "tipo": { + "type": "string", + "description": "Tipo" + }, + "fechaNacimiento": { + "type": "string", + "format": "date-time", + "description": "Fecha de nacimiento cliente" + }, + "correoElectronico": { + "type": "string", + "description": "Correo electronico del cliente" + }, + "telefono": { + "type": "string", + "description": "Telefono del cliente" + }, + "carnet": { + "type": "string", + "description": "Carnet del cliente" }, + "foto": { + "type": "string", + "description": "Foto del cliente" + }, + "estado": { + "type": "string", + "description": "Estado del cliente" + }, + "titular": { + "type": "string", + "description": "Titular" + }, + "documento": { + "$ref": "#/components/schemas/documento" + }, + "nombre": { + "$ref": "#/components/schemas/nombre" + }, + "genero": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Género de la persona: * 0) FEMENINO * 1) MASCULINO", + "enum": [ + 0, + 1 + ] + }, + "estado": { + "type": "boolean", + "description": "Estado del genero" + }, + } + }, + "categoria": { + "$ref": "#/components/schemas/categoria" + }, + "direccion": { + "type": "object", + "properties": { + "direccionPrincipal": { + "type": "string", + "description": "direccion principal" + } + } + } + } + }, + "empresa": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Id de la empresa" + }, + "documento": { + "type": "object", + "properties": { + "numero": { + "type": "string", + "description": "Numero de identificacion de la empresa" + } + } + }, + "nombre": { + "type": "string", + "description": "Numbre de la empresa" + } } }, "documento": {