1.1.4 • Published 4 years ago

honey-lending-eligibility v1.1.4

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

honey-lending-eligibility

Service responsible for determining user eligiblity for Honey Pay products

Responsibilities

General Eligibility

  • Check whether user is generally eligible. This includes whether user is in enabled state, correct store, etc.

Financial Eligiblity

  • Check whether user is financially eligible. This includes whether credit limit amount is within bounds, if user is repeat borrower, how many other loans user had, etc.

Swagger

Routes

  • When adding or updating a route, please update src/config/swagger.yaml.
  • Online Swagger Editor is available here.
  • View all routes at /api-routes

Client Generation

In order to generate a client based on the routes: 1. Install Swagger Client. 2. Instantiate and use client:

import Swagger from 'swagger-client';

const swaggerClient = await new Swagger('http://localhost:8080/api-docs/swagger.json');
const lendingEligibilityClient = swaggerClient.apis;