diff --git a/package.json b/package.json index 118abea..4882af6 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/resources/loans_and_investments.js b/resources/loans_and_investments.js new file mode 100644 index 0000000..63f6afe --- /dev/null +++ b/resources/loans_and_investments.js @@ -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" + } + } +}; \ No newline at end of file