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 3.4.1 to 3.5.4

lib/api/withdrawal-accounts.js

26

lib/api/payments.js

@@ -280,3 +280,29 @@ /**

return promise;
},
/**
* Gets tracking info for a payment.
* @param {Object} params Parameters object
* @param {String} params.id Id of the payment that should be tracked
* @return {Promise} Promise; if fulfilled returns object, which contains requested payment tracking info; if rejected returns APIerror.
*/
getPaymentTrackingInfo: function (params) {
params = params || {};
if (!params.hasOwnProperty('id')) {
throw new Error('id is required');
}
var url = '/v2/payments/' + params.id + '/tracking_info';
var qs = Object.assign({}, params);
delete qs.id;
var promise = client.request({
url: url,
method: 'GET',
qs: qs
});
return promise;
}
};

1

lib/currency-cloud.js

@@ -29,2 +29,3 @@ /**

vans: require('./api/vans'),
withdrawalAccounts: require('./api/withdrawal-accounts'),
onBehalfOf: client.onBehalfOf,

@@ -31,0 +32,0 @@ APIerror: error.APIerror,

2

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

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

@@ -13,4 +13,11 @@ [![npm](https://img.shields.io/npm/v/currency-cloud.svg)](https://www.npmjs.com/package/currency-cloud) [![Travis](https://travis-ci.org/CurrencyCloud/currencycloud-js.svg?branch=master)](https://github.com/CurrencyCloud/currencycloud-js) [![David](https://david-dm.org/CurrencyCloud/currencycloud-js.svg)](https://github.com/CurrencyCloud/currencycloud-js)

## Supported Node versions
The least supported Node version is 6.0.0.
The current least supported Node version is 6.0.0.
**2020-10-12 : Deprecation Notice.** Support for the following EOL Node.js versions will be dropped in January 2021
6, 7, 8, 9, 11
After this date, the SDK will no longer be tested against these versions.
Production applications should only use Active LTS or Maintenance LTS Node.js releases. Users should upgrade to the latest
stable version of [Node.js](https://nodejs.org/en/about/releases/)
# Usage

@@ -17,0 +24,0 @@ The following example retrieves all tradeable currencies list:

@@ -423,2 +423,21 @@ 'use strict';

});
});
describe('getPaymentTrackingInfo', function () {
it('successfully gets Tracking Info for payment', function (done) {
currencyCloud.payments.getPaymentTrackingInfo({
id:"46ed4827-7b6f-4491-a06f-b548d5a7512d"
})
.then(function (res) {
expect(res).is.not.empty;
expect(res).to.have.property('uetr').that.eql("46ed4827-7b6f-4491-a06f-b548d5a7512d");
expect(res).to.have.property('transactionStatus').to.have.property('status').that.eql("processing");
expect(res).to.have.property('transactionStatus').to.have.property('reason').that.eql("transferred_and_tracked");
expect(res).to.have.property('initiationTime').that.eql("2019-07-09T13:20:30+00:00");
expect(res).to.have.property('lastUpdateTime').that.eql("2019-07-10T15:39:08+00:00");
expect(res).to.have.property('paymentEvents').that.has.length(7);
done();
})
.catch(done);
});
});
});

@@ -530,2 +530,15 @@ 'use strict';

withdrawalAccounts: {
schema: new JSONschema({
id: 'UUID',
accountId: 'UUID',
accountName: 'string',
accountHolderName : 'string',
accountHolderDob: 'date',
routingCode: 'string',
accountNumber: 'string',
currency: 'string',
})
},
pagination: {

@@ -532,0 +545,0 @@ schema: new JSONschema({

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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