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

currency-cloud

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-cloud - npm Package Compare versions

Comparing version 1.14.1 to 1.15.0

25

lib/api/reference.js

@@ -126,3 +126,26 @@ /**

return promise;
},
/**
* Gets valid purpose codes for a given currency.
* @param {Object} params Parameters object
* @param {String} params.currency Currency for the payment to be created, required
* @return {Promise} Promise; if fulfilled returns object, which contains valid purpose codes; if rejected returns APIerror.
*/
getPaymentPurposeCodes: function (params) {
params = params || {};
if (!params.hasOwnProperty('currency')) {
throw new Error('currency is required');
}
var url = '/v2/reference/payment_purpose_codes';
var promise = client.request({
url: url,
method: 'GET',
qs: params
});
return promise;
}
};
};

2

package.json
{
"name": "currency-cloud",
"description": "Currencycloud API v2 JavaScript client",
"version": "1.14.1",
"version": "1.15.0",
"author": "Currencycloud",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc