Se agrega el servicio actualizarMembresia.

parent 2ca69671
......@@ -27,9 +27,49 @@
{
"name": "cols-recreacionyturismo-afiliados",
"description": "Informacion de afiliados."
},
{
"name": "cols-recreacionyturismo-gestionclientes",
"description": "Servicios para el manejo de clientes y sus membresías"
}
],
"paths": {
"/api/v1/recreacionyturismo/hoteles/gestionclientes/membresias":{
"put": {
"tags": [
"cols-recreacionyturismo-gestionclientes"
],
"summary": "Actualiza el estado de una membresía",
"description": "Dado un número de cliente le actualiza el estaedo de su membresia",
"operationId": "actualizarMembresia.v1",
"responses": {
"200": {
"description": "Operación exitosa",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actualizarMembresiaResponse"
}
}
}
},
"400": {
"description": "Solicitud inválida"
}
},
"security": [
{
"apigee_auth": [
"write:apigee",
"read:apigee"
]
}
],
"requestBody": {
"$ref": "#/components/requestBodies/actualizarMembresiaRequestBody"
}
}
},
"/v1/recreacionyturismo/afiliados/clientes": {
"post": {
"tags": [
......@@ -1122,7 +1162,7 @@
}
},
"direccionTitularDocumento":{
"direccionTitularDocumento":{
"type": "object",
"properties": {
"tipo":{
......@@ -2254,6 +2294,14 @@
}
}
},
"actualizarMembresiaRequest": {
"type": "object",
"properties": {
"membresia": {
"$ref": "#/components/schemas/membresia"
}
}
},
"consultarDatosClienteResponse": {
"type": "object",
"required": [
......@@ -2300,6 +2348,23 @@
}
}
},
"actualizarMembresiaResponse": {
"type": "object",
"required": [
"resultado"
],
"properties": {
"resultado": {
"type": "array",
"xml": {
"name": "resultado"
},
"items": {
"$ref": "#/components/schemas/resultado"
}
}
}
},
"obtenerCliente": {
"type": "object",
"properties": {
......@@ -2552,6 +2617,19 @@
}
}
},
"membresia": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Identificador de la membresia"
},
"estado": {
"type": "string",
"description": "<table border='1' width='10px'> <thead> <tr> <td colspan='2'><center>Tipos de estado</center></td> </tr> </thead> <tr> <th>Id</th> <th>Descripción</th> </tr> <tr> <td>ACTIVO</td> <td>Activa la membresía</td> </tr> <tr> <td>INACTIVO</td> <td>Inactiva la membresía</td></tr> </table>"
}
}
},
"consultaCotizacionIdResponse": {
"type": "object",
"required": [
......@@ -3502,6 +3580,17 @@
"description": "Informacion para registrar clientes",
"required": true
},
"actualizarMembresiaRequestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/actualizarMembresiaRequest"
}
}
},
"description": "Informacion para registrar clientes",
"required": true
},
"inscribirMembresiaRequestBody": {
"content": {
"application/json": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment