shonubijerry/quick-credit

View on GitHub
server/dummy/loans.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @fileOverview - This module holds dummy data for loans
 * @exports - loans object
 */
const loans = [
  {
    id: 1,
    user: 'shonubijerry@gmail.com',
    createdOn: '01/05/2019 2:16:17 PM',
    status: 'approved',
    repaid: true,
    tenor: '5',
    amount: 40000.00,
    paymentInstallment: 8400.00,
    balance: 0.00,
    interest: 2000.00,
  },
  {
    id: 2,
    user: 'adeade@gmail.com',
    createdOn: '01/04/2019 2:16:17 PM',
    status: 'approved',
    repaid: false,
    tenor: '7',
    amount: 80000,
    paymentInstallment: 12000.00,
    balance: 84000.00,
    interest: 4000.00,
  },
  {
    id: 3,
    user: 'chiboy155@gmail.com',
    createdOn: '01/05/2019 2:17:34 PM',
    status: 'pending',
    repaid: false,
    tenor: '4',
    amount: 310080.00,
    paymentInstallment: 81600.00,
    balance: 326400.00,
    interest: 16320.00,
  },
  {
    id: 4,
    user: 'adeade@gmail.com',
    createdOn: '01/05/2019 3:40:18 PM',
    status: 'pending',
    repaid: false,
    tenor: '7',
    amount: 60000.00,
    paymentInstallment: 9000.00,
    balance: 0.00,
    interest: 3000.00,
  },
  {
    id: 5,
    user: 'adenekan2017@gmail.com',
    createdOn: '02/05/2019 8:46:52 AM',
    status: 'approved',
    repaid: false,
    tenor: '8',
    amount: 89600.00,
    paymentInstallment: 11760.00,
    balance: 11760.00,
    interest: 4480.00,
  },
];

export default loans;