diff --git a/README.md b/README.md index c0f9bcb..5e060b8 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ ebanx.request(params, function(error, reply) { ``` ## Changelog +* **1.6.0**: New api endpoints. * **1.5.0**: Implemented dynamic object construction for request * **1.4.1**: Corrected indentation * **1.4.0**: Added documentBalance operation diff --git a/lib/Config.js b/lib/Config.js index 1430820..b4ed92c 100644 --- a/lib/Config.js +++ b/lib/Config.js @@ -17,9 +17,9 @@ Config.prototype = { getEndPoint : function() { if (this.getTestMode()) { - return 'https://sandbox.ebanx.com/'; + return 'https://sandbox.ebanxpay.com/'; } else { - return 'https://api.ebanx.com/'; + return 'https://api.ebanxpay.com/'; } } }; diff --git a/package.json b/package.json index 82c558a..0cb249c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Heitor Dolinski (http://www.ebanx.com/)", "license": "ISC", "name": "ebanx", - "version": "1.5.0", + "version": "1.6.0", "homepage": "https://github.com/ebanx-integration/ebanx-nodejs", "description": "Provides access to EBANX API", "main": "index.js", diff --git a/tests/ConfigTest.js b/tests/ConfigTest.js index 7f117ff..372950b 100644 --- a/tests/ConfigTest.js +++ b/tests/ConfigTest.js @@ -25,11 +25,11 @@ describe('Configuration', function() { }) it('EndPoint return for testMode false and true', function(done) { - expect(utils.getEndPoint()).to.be.equal("https://sandbox.ebanx.com/"); + expect(utils.getEndPoint()).to.be.equal("https://sandbox.ebanxpay.com/"); eb.configure({ testMode : false }) - expect(utils.getEndPoint()).to.be.equal("https://api.ebanx.com/"); + expect(utils.getEndPoint()).to.be.equal("https://api.ebanxpay.com/"); done(); }) }); \ No newline at end of file diff --git a/tests/ebanxTest.js b/tests/ebanxTest.js index adff807..cd334df 100644 --- a/tests/ebanxTest.js +++ b/tests/ebanxTest.js @@ -21,10 +21,10 @@ exports.testTestMode = function(test) { }; exports.testEndPoint = function(test) { - test.equal( utils.getEndPoint(), "https://sandbox.ebanx.com/"); + test.equal( utils.getEndPoint(), "https://sandbox.ebanxpay.com/"); eb.configure({ testMode : false }); - test.equal( utils.getEndPoint(), "https://api.ebanx.com/"); + test.equal( utils.getEndPoint(), "https://api.ebanxpay.com/"); test.done(); }; \ No newline at end of file