UNPKG

verifik

Version:

This library is a wrap of the official API found in docs.verifik.co

78 lines (73 loc) 1.92 kB
const list = [{ "baseCategory": "identity", "code": "venezuela_api_identity_lookup", "country": "Venezuela", "dependencies": [{ "field": "documentType", "type": "String", "required": true, "enum": [ "CCVE" ], "default": null, "min": null, "max": null }, { "field": "documentNumber", "type": "String", "required": true, "enum": null, "default": null, "min": null, "max": null } ], "description": "Metodo para consultar el nombre de un ciudadano Venezolano", "feeType": "hybrid", "group": "apiRequest", "name": "CONSULTAR NOMBRES VENEZUELA", "price": 0.019, "url": "v2/ve/consultarNombres" }, { "baseCategory": "identity", "code": "venezuela_api_identity_lookup", "country": "Venezuela", "dependencies": [{ "field": "documentType", "type": "String", "required": true, "enum": [ "CCVE" ], "default": null, "min": null, "max": null }, { "field": "documentNumber", "type": "String", "required": true, "enum": null, "default": null, "min": null, "max": null } ], "description": "Metodo para consultar el nombre de un ciudadano Venezolano", "feeType": "hybrid", "group": "apiRequest", "name": "CONSULTAR NOMBRES VENEZUELA", "price": 0.019, "url": "v2/ve/cedula" }]; const mapping = {}; for (let index = 0; index < list.length; index++) { const feature = list[index]; const url = feature.url.split('v2/')[1]; mapping[url] = feature; } module.exports = { list, mapping, };