From 1afe983a7f48dba70fea7fa22b67b2b18d1385b1 Mon Sep 17 00:00:00 2001 From: Cristian_Camargo Date: Wed, 29 May 2019 21:09:12 +0000 Subject: [PATCH] Update credito-creditos.json --- apigee/credito-creditos.json | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/apigee/credito-creditos.json b/apigee/credito-creditos.json index 6f6d64c..60334e4 100644 --- a/apigee/credito-creditos.json +++ b/apigee/credito-creditos.json @@ -38,6 +38,50 @@ } ], "paths": { + "/v2/credito/bolsillos/pago": { + "get": { + "tags": [ + "cols-credito-obligaciones" + ], + "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" + ] + } + ] + } + }, "/v2/credito/obligaciones/{obligacionId}": { "get": { "tags": [ @@ -204,6 +248,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": { + "credito": { + "$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": { -- libgit2 0.26.0