be-api-client
Advanced tools
Comparing version 0.0.56 to 0.0.57
55
index.js
@@ -231,7 +231,6 @@ const rp = require('request-promise-native') | ||
async function addUser(id, role, ethAccountAddress, fullName){ | ||
async function addUser(id, role, ethAccountAddress){ | ||
const form = { | ||
id, | ||
role, | ||
fullName, | ||
ethAccountAddress | ||
@@ -245,3 +244,3 @@ } | ||
} | ||
async function getUsers(){ | ||
@@ -287,2 +286,42 @@ return await doGet('/users') | ||
async function addQuote( | ||
baseCurrency, | ||
termCurrency, | ||
priceIncludingMarkup, | ||
minAmount, | ||
maxAmount, | ||
holdingPeriodValue, | ||
holdingPeriodUnits, | ||
mode, | ||
permission, | ||
entityId, | ||
contractId | ||
){ | ||
const form = { | ||
baseCurrency, | ||
termCurrency, | ||
priceIncludingMarkup, | ||
minAmount, | ||
maxAmount, | ||
holdingPeriodValue, | ||
holdingPeriodUnits, | ||
mode, | ||
permission, | ||
entityId, | ||
contractId | ||
} | ||
return await doPost('/quotes', form) | ||
} | ||
async function getQuotes() { | ||
return await doGet('/quotes') | ||
} | ||
async function updateQuote(quoteId, priceIncludingMarkup){ | ||
form = { | ||
priceIncludingMarkup | ||
} | ||
return await doPut(`/quotes/${quoteId}`, form) | ||
} | ||
async function addInstruction(country, legalEntity, currency, account, amountRequestedToTokenize, requestedBy){ | ||
@@ -345,2 +384,6 @@ const form = { | ||
async function updatePayment(paymentId, fieldsToUpdate){ | ||
return await doPut('/payments/'+paymentId, fieldsToUpdate) | ||
} | ||
return { | ||
@@ -377,2 +420,5 @@ isAPIRunning, | ||
getInstructions, | ||
addQuote, | ||
getQuotes, | ||
updateQuote, | ||
updateIssuance, | ||
@@ -383,3 +429,4 @@ getIssuances, | ||
addPayment, | ||
getPayments | ||
getPayments, | ||
updatePayment | ||
} | ||
@@ -386,0 +433,0 @@ } |
{ | ||
"name": "be-api-client", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "A node.js client for the be-api.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/AdharaProjects/be-api-client.git" | ||
"url": "git+https://github.com/AdharaProjects/be-api.git" | ||
}, | ||
@@ -17,5 +17,5 @@ "author": "Ryno Beyers", | ||
"bugs": { | ||
"url": "https://github.com/AdharaProjects/be-api-client/issues" | ||
"url": "https://github.com/AdharaProjects/be-api/issues" | ||
}, | ||
"homepage": "https://github.com/AdharaProjects/be-api-client#readme", | ||
"homepage": "https://github.com/AdharaProjects/be-api#readme", | ||
"dependencies": { | ||
@@ -22,0 +22,0 @@ "ajv": "6.5.5", |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11414
383