Skip to content

Commit

Permalink
Merge f864529 into 607b58e
Browse files Browse the repository at this point in the history
  • Loading branch information
itssadon committed Sep 10, 2019
2 parents 607b58e + f864529 commit 45cc069
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
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.4.0",
"version": "0.5.0",
"description": "A NodeJS library that simplifies payment with Gladepay APIs",
"main": "index.js",
"scripts": {
Expand Down
65 changes: 65 additions & 0 deletions resources/loans_and_investments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
"use strict";

var route = "";

module.exports = {
/**
* 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"
}
},

/**
* 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"
}
}
};

0 comments on commit 45cc069

Please sign in to comment.