Skip to content

Commit

Permalink
Merge 5919c41 into 19e34d3
Browse files Browse the repository at this point in the history
  • Loading branch information
itssadon committed Sep 10, 2019
2 parents 19e34d3 + 5919c41 commit c94acec
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 59 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
* verify
* accountPayment
* validateAccount
* disburse
* disbursement
* transfer
* resource
* resources
* supportedChargableBanks
* banks
* accountName
Expand All @@ -67,6 +67,11 @@
* cardCharge
* accountCharge
* personlizedAccount
* loansAndInvestments
* createProfile
* updateProfile
* listProfiles
* viewProfile


## Tests
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ function GladePay(merchantId, merchantKey, mode = false) {

const resources = {
payment: require("./resources/payment"),
disburse: require("./resources/disburse"),
resource: require("./resources/resource")
disbursement: require("./resources/disbursement"),
resources: require("./resources/resources"),
loansAndInvestments: require("./resources/loans_and_investments")
};

GladePay.prototype = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gladepay-node",
"version": "0.5.0",
"version": "0.6.1",
"description": "A NodeJS library that simplifies payment with Gladepay APIs",
"main": "index.js",
"scripts": {
Expand Down
File renamed without changes.
110 changes: 56 additions & 54 deletions resources/loans_and_investments.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,65 @@
var route = "";

module.exports = {
/**
* Create Client Profile
*/
createProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"data*",
"verify_bvn"
],
data: {
"action": "create",
"status": "pending_approval"
}
},
client: {
/**
* Create Client Profile
*/
createProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"data*",
"verify_bvn"
],
data: {
"action": "create",
"status": "pending_approval"
}
},

/**
* Update Client Profile
*/
updateProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"client_id*",
"data*"
],
data: {
"action": "update"
}
},
/**
* Update Client Profile
*/
updateProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"client_id*",
"data*"
],
data: {
"action": "update"
}
},

/**
* List of all profiles created
*/
listProfiles: {
method: "put",
route: [route, ""].join("/client"),
params: [
"offset",
"limit"
],
data: {
"action": "list"
}
},
/**
* List of all profiles created
*/
listProfiles: {
method: "put",
route: [route, ""].join("/client"),
params: [
"offset",
"limit"
],
data: {
"action": "list"
}
},

/**
* View details of a profile
*/
viewProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"client_id*"
],
data: {
"action": "view"
/**
* View details of a profile
*/
viewProfile: {
method: "put",
route: [route, ""].join("/client"),
params: [
"client_id*"
],
data: {
"action": "view"
}
}
}
};
File renamed without changes.

0 comments on commit c94acec

Please sign in to comment.