description
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install uw-zeea --save
# Inuka 40-40-20 LGA Group Loan
const { default: UW } = require('uw-zeea');
const { GLLGA } = UW;
const uw = new GLLGA({
loanRequirement: 30000,
awbToInstallment: 91,
# | 'NEGATIVE','FAIR','GOOD','VERY_GOOD','EXCELLENT'
creditOfficerAssessment: 'GOOD',
# creditScore can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE
# creditScore: "NO-SCORE", (removed)
# groupType can be DISABLED, YOUTH, WOMEN
groupType: "DISABLED",
noOfMemberScorePer: 0,
existingCapitalToLoan: 6,
# industryCode can be | '000001' // Natural Resources extraction and Agriculture, '000002' // ' Manufacturing and Construction','000003' // 'Services and Trade',
# '000004' // 'Knowledge and Information Based Services', '000000'; // Others
industryCode: "000002",
# noOfEmployee: 6, Removed
noOfMember: 52,
registrationDate: new Date('2022-10-10'), #(Optional)
# repaymentType 'WEEKLY','MONTHLY,
repaymentType: 'WEEKLY',
# transactionMethod 'CASH','OTHER,
transactionMethod: 'CASH',
});
console.log(uw.interestRate);
console.log(uw.scorecard);
console.log(uw.isEligibile());
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
console.log(uw.loans);
# Inuka Individual Loans
const { default: UW } = require('uw-zeea');
const { ILINUKA } = UW;
const uw = new ILINUKA({
loanRequirement: 30000,
awbToInstallment: 91,
# | 'NEGATIVE','FAIR','GOOD','VERY_GOOD','EXCELLENT'
creditOfficerAssessment: 'GOOD',
# creditScore can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE
creditScore: "NO-SCORE",
# industryCode can be | '000001' // Natural Resources extraction and Agriculture, '000002' // ' Manufacturing and Construction','000003' // 'Services and Trade',
# '000004' // 'Knowledge and Information Based Services', '000000'; // Others
industryCode: "000002",
noOfEmployee: 6,
registrationDate: new Date('2022-10-10'), #(Optional)
colateralValueToLoan: 10,
# maritalStatus can be 'MARRIED_WITH_NO_DEPENDENT', MARRIED_WITH_DEPENDENT, UNMARRIED_WITH_DEPENDENT, UNMARRIED_WITH_NO_DEPENDENT, OTHERS
maritalStatus: 'MARRIED_WITH_DEPENDENT',
# taxClarianceCertificate 'YES','NO,
taxClarianceCertificate: 'YES',
# repaymentType 'WEEKLY','MONTHLY,
repaymentType: 'WEEKLY',
# transactionMethod 'CASH','OTHER,
transactionMethod: 'CASH',
});
console.log(uw.interestRate);
console.log(uw.scorecard);
console.log(uw.isEligibile());
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
console.log(uw.loans);
# Inuka Corporative Society Group Loans
const { default: UW } = require('uw-zeea');
const { GLLGAINUKA } = UW;
const uw = new GLLGAINUKA({
loanRequirement: 30000,
awbToInstallment: 91,
# | 'NEGATIVE','FAIR','GOOD','VERY_GOOD','EXCELLENT'
creditOfficerAssessment: 'GOOD',
# creditScore can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE
# creditScore: "NO-SCORE", (Removed)
noOfMemberScorePer: 0, # Member credit score per
existingCapitalToLoan: 6,
# industryCode can be | '000001' // Natural Resources extraction and Agriculture, '000002' // ' Manufacturing and Construction','000003' // 'Services and Trade',
# '000004' // 'Knowledge and Information Based Services', '000000'; // Others
industryCode: "000002",
# noOfEmployee: 6, (Removed)
noOfMember: 52,
registrationDate: new Date('2022-10-10'), #(Optional)
# repaymentType 'WEEKLY','MONTHLY,
repaymentType: 'WEEKLY',
# transactionMethod 'CASH','OTHER,
transactionMethod: 'CASH',
});
console.log(uw.interestRate);
console.log(uw.scorecard);
console.log(uw.isEligibile());
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
console.log(uw.loans);
# Inuka Solidarity Loans
const { default: UW } = require('uw-zeea');
const { SOLIDARITY } = UW;
const uw = new SOLIDARITY({
loanRequirement: 30000,
awbToInstallment: 91,
# | 'NEGATIVE','FAIR','GOOD','VERY_GOOD','EXCELLENT'
creditOfficerAssessment: 'GOOD',
# creditScore can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE
creditScore: "NO-SCORE",
# industryCode can be | '000001' // Natural Resources extraction and Agriculture, '000002' // ' Manufacturing and Construction','000003' // 'Services and Trade',
# '000004' // 'Knowledge and Information Based Services', '000000'; // Others
industryCode: "000002",
noOfEmployee: 6,
registrationDate: new Date('2022-10-10'), #(Optional)
# colateralValueToLoan: 10, (Removed)
# maritalStatus can be 'MARRIED_WITH_NO_DEPENDENT', MARRIED_WITH_DEPENDENT, UNMARRIED_WITH_DEPENDENT, UNMARRIED_WITH_NO_DEPENDENT, OTHERS
maritalStatus: 'MARRIED_WITH_DEPENDENT',
# taxClarianceCertificate 'YES','NO,
taxClarianceCertificate: 'YES',
# repaymentType 'WEEKLY','MONTHLY,
repaymentType: 'WEEKLY',
# transactionMethod 'CASH','OTHER,
transactionMethod: 'CASH',
});
console.log(uw.interestRate);
console.log(uw.scorecard);
console.log(uw.isEligibile());
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
console.log(uw.loans);
# Z-MSME Loans
const { default: UW } = require('uw-zeea');
const { ZMSME } = UW;
const uw = new ZMSME({
loanRequirement: 30000,
# maritalStatus can be 'MARRIED_WITH_NO_DEPENDENT', MARRIED_WITH_DEPENDENT, UNMARRIED_WITH_DEPENDENT, UNMARRIED_WITH_NO_DEPENDENT, OTHERS
maritalStatus: 'MARRIED_WITH_DEPENDENT',
# | 'NEGATIVE','FAIR','GOOD','VERY_GOOD','EXCELLENT'
creditOfficerAssessment: 'GOOD',
awbToInstallment: 91,
# creditScore can be 'NO-SCORE', RISK, SEVERE, PRIME, ULTIMATE, ELITE
creditScore: "NO-SCORE",
colateralValueToLoan: 10,
# industryCode can be | '000001' // Natural Resources extraction and Agriculture, '000002' // ' Manufacturing and Construction', '000003' // 'Services and Trade',
# '000004' // 'Knowledge and Information Based Services', '000000'; // Others
industryCode: "000002",
# taxClarianceCertificate 'YES','NO,
taxClarianceCertificate: 'YES',
noOfEmployee: 6,
registrationDate: new Date('2022-10-10'), #(Optional)
# repaymentType 'WEEKLY','MONTHLY,
repaymentType: 'WEEKLY',
# transactionMethod 'CASH','OTHER,
transactionMethod: 'CASH',
# transactionMethod 'MICRO','MEDIUM','SMALL',,'OTHER,
industryType: 'MICRO',
});
console.log(uw.interestRate);
console.log(uw.scorecard);
console.log(uw.isEligibile());
# Tenure in days can be passed
console.log(uw.isEligibile(loanAmount, tenureInDays));
console.log(uw.loans);
npm install
npm test
To get better vision about the response structure for 4.x.x series and 5.x.x series check the following link. HTTP response structure
None
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- mocha: simple, flexible, fun test framework
- sinon: JavaScript test spies, stubs and mocks.
MIT