diff --git a/apigee/credito-tarjeta.json b/apigee/credito-tarjeta.json index 8669c18..451b0e3 100644 --- a/apigee/credito-tarjeta.json +++ b/apigee/credito-tarjeta.json @@ -572,8 +572,51 @@ } ] } + }, + "/v2/credito/bolsillos/pago/credito": { + "get": { + "tags": [ + "cols-credito-bolsillo" + ], + "summary": "Saldo de la tarjeta débito.", + "description": "Saldo de la tarjeta débito.", + "operationId": "consultaPagoCredito.v2", + "parameters": [ + { + "name": "numTarjeta", + "in": "query", + "description": "Numero de la tarjeta.", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/consultaPagoCreditoResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } } - }, "externalDocs": { "description": "Encontrar más información en EnterpriseArchitect", @@ -581,6 +624,124 @@ }, "components": { "schemas": { + "consultaPagoCreditoResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "consultaPagoCredito": { + "type": "array", + "items": { + "$ref": "#/components/schemas/consultaPagoCredito" + } + } + } + }, + "consultaPagoCredito": { + "type": "object", + "properties": { + "tarjeta": { + "$ref": "#/components/schemas/tarjetaConsultaPagoCredito" + } + } + }, + "pagoConsultaPagoCredito": { + "type": "object", + "properties": { + "cuota": { + "type": "string", + "description": "Valor de la cuota fija." + }, + "fechaLimite": { + "type": "string", + "format": "date-time", + "description": "Fecha limite de pago." + }, + "fechaUltimo": { + "type": "string", + "format": "date-time", + "description": "Fecha de ultimo pago." + }, + "ultimo": { + "type": "string", + "description": "Valor de ultimo pago." + }, + "minimo": { + "type": "object", + "properties":{ + "valor": { + "type": "string", + "description": "Valor minimo a pagar." + } + } + }, + "total": { + "type": "object", + "properties":{ + "valor": { + "type": "string", + "description": "Valor total a pagar." + } + } + } + } + }, + "moraConsultaPagoCredito": { + "type": "object", + "properties": { + "capital": { + "type": "string", + "description": "Capital de mora." + }, + "saldo": { + "type": "string", + "description": "Saldo de mora." + } + } + }, + "proximaFacturaConsultaPagoCredito": { + "type": "object", + "properties": { + "fecha": { + "type": "string", + "format": "date-time", + "description": "Fecha de proxima factura." + }, + "valor": { + "type": "string", + "description": "Valor de proxima factura." + } + } + }, + "tarjetaConsultaPagoCredito": { + "type": "object", + "properties": { + "fechaCorte": { + "type": "string", + "format": "date-time", + "description": "Fecha de corte de la tarjeta." + }, + "pago": { + "$ref": "#/components/schemas/pagoConsultaPagoCredito" + }, + "mora": { + "$ref": "#/components/schemas/moraConsultaPagoCredito" + }, + "proximaFactura": { + "$ref": "#/components/schemas/proximaFacturaConsultaPagoCredito" + } + } + }, "resultado": { "type": "object", "properties": {