From 3ba1484c0000a7e62a48b972280bc11da9d3c76c Mon Sep 17 00:00:00 2001 From: Danilo Elias Da Silva Date: Mon, 2 Sep 2019 15:57:32 -0300 Subject: [PATCH] Adding taxes in preferences --- lib/models/preferencesModel.js | 14 ++++++++++++++ package.json | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/models/preferencesModel.js b/lib/models/preferencesModel.js index 161754b8..f88d50eb 100644 --- a/lib/models/preferencesModel.js +++ b/lib/models/preferencesModel.js @@ -258,6 +258,20 @@ module.exports = { type: 'integer' } } + }, + taxes: { + type: 'array', + items: { + type: 'object', + properties: { + type: { + enum: ['IVA', 'INC'] + }, + value: { + type: 'number' + } + } + } } } }; diff --git a/package.json b/package.json index e4c86d3a..f054101c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "1.0.24", + "version": "1.1.0", "description": "Mercadopago SDK for Node.js", "main": "index.js", "scripts": { @@ -31,7 +31,7 @@ "chai": "3.5.0", "chai-as-promised": "6.0.0", "coveralls": "2.11.15", - "eslint": "3.13.1", + "eslint": ">=4.18.2", "eslint-config-airbnb-base": "11.0.1", "eslint-plugin-import": "2.2.0", "istanbul": "0.4.5",