New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

be-api-client

Package Overview
Dependencies
Maintainers
12
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-api-client - npm Package Compare versions

Comparing version

to
0.0.72

32

index.js

@@ -361,2 +361,6 @@ const httpContext = require('express-http-context')

async function getIssuanceDetail(issuanceId){
return await doGet('/issuances/'+issuanceId)
}
async function addRedemption(country, legalEntity, currency, account, amountRequestedToRedeem, requestedById, beneficiaryName){

@@ -383,16 +387,8 @@ const form = {

async function addPayment(receivingBank, sendingBank, reference, originalSwiftMessage, debtorDetails, creditorDetails, sendingAmount, sendingCurrency, receivingCurrency, rate) {
const body = {
receivingBank,
sendingBank,
reference,
originalSwiftMessage,
debtorDetails,
creditorDetails,
sendingAmount,
sendingCurrency,
receivingCurrency,
rate
}
return await doPost('/payments', body)
async function addPayment(paymentsProperties) {
/*
* Expects "receivingBank", "sendingBank", "reference", "originalSwiftMessage", "debtorDetails", "creditorDetails", "sendingCurrency", "receivingCurrency", "rate".
* Optionally add either "sendingAmount" or "receivingAmount".
*/
return await doPost('/payments', paymentsProperties)
}

@@ -408,2 +404,6 @@

async function getPaymentDetail(paymentId){
return await doGet('/payments/'+paymentId)
}
return {

@@ -446,2 +446,3 @@ isAPIRunning,

getIssuances,
getIssuanceDetail,
addRedemption,

@@ -452,3 +453,4 @@ getRedemptions,

getPayments,
updatePayment
updatePayment,
getPaymentDetail
}

@@ -455,0 +457,0 @@ }

{
"name": "be-api-client",
"version": "0.0.71",
"version": "0.0.72",
"description": "A node.js client for the be-api.",

@@ -25,9 +25,10 @@ "engines": {

"asn1": "0.2.3",
"express-http-context": "^1.2.2",
"fast-deep-equal": "2.0.1",
"fast-json-stable-stringify": "2.0.0",
"json-schema-traverse": "0.4.1",
"uri-js": "4.2.2",
"request": "^2.88.0",
"request-promise-native": "^1.0.5"
"request-promise-native": "^1.0.7",
"uri-js": "4.2.2"
}
}