From 1db513bf004ae983494e5ba05bc6cb2d5fa5281c Mon Sep 17 00:00:00 2001 From: Cristian Camargo Date: Thu, 11 Apr 2019 21:49:32 +0000 Subject: [PATCH] Update credito-tarjeta.json --- apigee/credito-tarjeta.json | 504 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 500 insertions(+), 4 deletions(-) diff --git a/apigee/credito-tarjeta.json b/apigee/credito-tarjeta.json index ae22c78..725ac9f 100644 --- a/apigee/credito-tarjeta.json +++ b/apigee/credito-tarjeta.json @@ -200,6 +200,156 @@ } ] } + }, + "/v2/credito/bolsillos/estado": { + "get": { + "tags": [ + "cols-credito-bolsillo" + ], + "summary": "Consulta estado de bolsillo.", + "description": "Obtener informacion del estado del bolsillo.", + "operationId": "consultaEstadoBolsillo", + "parameters": [ + { + "name": "numTarjeta", + "in": "query", + "description": "Numero de la tarjeta del cliente.", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/consultaEstadoBolsilloResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, + "/v2/credito/bolsillos/tarjetas": { + "get": { + "tags": [ + "cols-credito-bolsillo" + ], + "summary": "Consulta tarjetas del cliente.", + "description": "Obtener informacion de las tarjetas del cliente.", + "operationId": "consultaTarjetaDocumento", + "parameters": [ + { + "name": "tipoId", + "in": "query", + "description": "Tipo de documento de identificacion.", + "required": true, + "schema": { + "type": "number" + } + }, + { + "name": "numId", + "in": "query", + "description": "Numero del documento de identificacion.", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/consultaTarjetaDocumentoResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, + "/v2/credito/bolsillos/pago": { + "get": { + "tags": [ + "cols-credito-bolsillo" + ], + "summary": "Consulta pago del bolsillo de la tarjeta.", + "description": "Obtener informacion del pago del bolsillo de la tarjeta.", + "operationId": "consultaPagoBolsillo", + "parameters": [ + { + "name": "numTarjeta", + "in": "query", + "description": "Numero de la tarjeta del cliente.", + "required": true, + "schema": { + "type": "number" + } + }, + { + "name": "codBolsillo", + "in": "query", + "description": "Codigo de bolsillo.", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/consultaPagoBolsilloResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } } }, "externalDocs": { @@ -224,6 +374,232 @@ "name": "resultado" } }, + "estado": { + "type": "object", + "properties": { + "codigo": { + "type": "number", + "description": "Codigo del estado." + }, + "descripcion": { + "type": "string", + "description": "Descripcion del estado." + } + }, + "xml": { + "name": "estado" + } + }, + "bolsillo": { + "type": "object", + "properties": { + "codigo": { + "type": "number", + "description": "Codigo del bolsillo." + }, + "estado": { + "$ref":"#/components/schemas/estado" + } + }, + "xml": { + "name": "bolsillo" + } + }, + "diferido": { + "type": "object", + "properties": { + "ajuste": { + "type": "number", + "description": "Diferido vencido facturado ajuste." + }, + "avance": { + "type": "number", + "description": "Diferido vencido facturado avance." + }, + "compra": { + "type": "number", + "description": "Diferido vencido facturado compra." + }, + "venta": { + "type": "number", + "description": "Diferido vendido facturado." + } + }, + "xml": { + "name": "diferido" + } + }, + "interes": { + "type": "object", + "properties": { + "valor": { + "type": "number", + "description": "Valor del interes por el pago minimo." + }, + "pendiente": { + "type": "number", + "description": "Valor de intereses pendientes por cobros." + } + }, + "xml": { + "name": "interes" + } + }, + "mora": { + "type": "object", + "properties": { + "capital": { + "type": "number", + "description": "Valor del capital en mora." + }, + "saldo": { + "type": "number", + "description": "Valor del saldo de mora." + } + }, + "xml": { + "name": "mora" + } + }, + "minimo": { + "type": "object", + "properties": { + "valor": { + "type": "number", + "description": "Valor del pago minimo." + }, + "cuotaManejo": { + "type": "number", + "description": "Valor de la cuota de manejo." + }, + "cargoNoDiferido": { + "type": "number", + "description": "Cargos no diferidos." + }, + "diferido": { + "$ref":"#/components/schemas/diferido" + }, + "interes": { + "$ref":"#/components/schemas/interes" + }, + "mora": { + "$ref":"#/components/schemas/mora" + } + }, + "xml": { + "name": "minimo" + } + }, + "total": { + "type": "object", + "properties": { + "valor": { + "type": "number", + "description": "Valor del pago total." + }, + "avanceMes": { + "type": "number", + "description": "Total de avances totales no pagados en el mes." + }, + "deudores": { + "type": "number", + "description": "Total de dudores." + }, + "venta": { + "type": "number", + "description": "Total de ventas al mes no pagas." + }, + "diferido": { + "$ref":"#/components/schemas/diferido" + } + }, + "xml": { + "name": "total" + } + }, + + "pago": { + "type": "object", + "properties": { + "ultimo": { + "type": "string", + "description": "Valor del ultimo pago." + }, + "fechaUltimo": { + "type": "string", + "format":"date-time", + "description": "Fecha de ultimo pago." + }, + "minimo": { + "$ref":"#/components/schemas/minimo" + }, + "total": { + "$ref":"#/components/schemas/total" + } + }, + "xml": { + "name": "pago" + } + }, + "tarjetaCompleto": { + "type": "object", + "properties": { + "tipo": { + "type": "string", + "description": "Tipo de la tarjeta" + }, + "descripcion": { + "type": "string", + "description": "Descripcion del tipo de la tarjeta" + }, + "numero": { + "type": "number", + "description": "Numero de la tarjeta" + }, + "cupo": { + "type": "number", + "description": "Cupo de la tarjeta." + }, + "saldo": { + "type": "number", + "description": "Saldo disponible de la tarjeta." + }, + "cuota": { + "type": "number", + "description": "Valor de la cuota de la tarjeta." + }, + "fechaActivacion": { + "type": "string", + "format":"date-time", + "description": "Fecha de activacion de la tarjeta" + }, + "fechaCorte": { + "type": "string", + "format":"date-time", + "description": "Fecha de corte de la tarjeta" + }, + "fechaLimite": { + "type": "string", + "format":"date-time", + "description": "Fecha de limite de pago de la tarjeta" + }, + "estado": { + "$ref":"#/components/schemas/estado" + }, + "bolsillo": { + "$ref":"#/components/schemas/bolsillo" + }, + "pago": { + "$ref":"#/components/schemas/pago" + }, + "mora": { + "$ref":"#/components/schemas/mora" + } + }, + "xml": { + "name": "tarjetaCompleto" + } + }, "tarjeta": { "type": "object", "properties": { @@ -231,17 +607,24 @@ "type": "string", "description": "Tipo de tarjeta" }, + "descripcion": { + "type": "string", + "description": "Descripcion del tipo de tarjeta" + }, "numero": { "type": "string", "description": "Numero de tarjeta" }, - "activacion": { + "fechaActivacion": { "type": "string", + "format":"date-time", "description": "Fecha de activacion de tarjeta" }, - "descripcion": { - "type": "string", - "description": "Descripcion del tipo de tarjeta" + "estado": { + "$ref":"#/components/schemas/estado" + }, + "bolsillo": { + "$ref":"#/components/schemas/bolsillo" } }, "xml": { @@ -564,6 +947,119 @@ "name": "obtenerMovimiento" } }, + "obtenerTarjeta": { + "type": "object", + "properties": { + "tarjeta": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/tarjeta" + } + }, + "fechaActual": { + "type": "string", + "description": "Fecha del dia de la consulta." + } + }, + "xml": { + "name": "obtenerTarjeta" + } + }, + "obtenerEstadoBolsillo": { + "type": "object", + "properties": { + "tarjeta": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/tarjeta" + } + } + }, + "xml": { + "name": "obtenerEstadoBolsillo" + } + }, + "consultaPagoBolsillo": { + "type": "object", + "properties": { + "tarjeta": { + "$ref": "#/components/schemas/tarjetaCompleto" + } + }, + "xml": { + "name": "consultaPagoBolsillo" + } + }, + "consultaPagoBolsilloResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "consultaPagoBolsillo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/consultaPagoBolsillo" + } + } + } + }, + "consultaTarjetaDocumentoResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerTarjeta": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerTarjeta" + } + } + } + }, + + "consultaEstadoBolsilloResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerEstadoBolsillo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerEstadoBolsillo" + } + } + } + }, "obtenerCupoResponse": { "type": "object", "required": [ -- libgit2 0.26.0