From e2f630676d2c2c651717a7223d74252dc73d4367 Mon Sep 17 00:00:00 2001 From: edmarSoaress Date: Wed, 17 Apr 2024 17:30:55 -0300 Subject: [PATCH 1/6] adding sponsor id (#316) --- src/clients/payment/create/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clients/payment/create/types.ts b/src/clients/payment/create/types.ts index e95fc77..33d21b5 100644 --- a/src/clients/payment/create/types.ts +++ b/src/clients/payment/create/types.ts @@ -36,6 +36,7 @@ export declare type PaymentCreateRequest = { transaction_amount?: number, payer?: PayerRequest, point_of_interaction?: PointOfInteractionRequest, + sponsor_id?: number, }; export declare type PayerRequest = { From b3237014622e9dce074ed4f75c6817957d51a4b8 Mon Sep 17 00:00:00 2001 From: edmarSoaress Date: Wed, 17 Apr 2024 17:41:48 -0300 Subject: [PATCH 2/6] new release 2.0.9 (#317) --- CHANGELOG.MD | 3 +++ package.json | 2 +- src/utils/config/index.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index b2eb065..efb2763 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,8 @@ # Releases +## VERSION 2.0.9 +- Add sponsor_id to PaymentCreateRequest + ## VERSION 2.0.7 - Add barcode, digitable_line, verification_code to TransactionDetails diff --git a/package.json b/package.json index 6c496a9..e2354aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.0.8", + "version": "2.0.9", "description": "Mercadopago SDK for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 9eccdb6..9eb604d 100644 --- a/src/utils/config/index.ts +++ b/src/utils/config/index.ts @@ -5,7 +5,7 @@ export class AppConfig { static readonly BASE_URL = 'https://api.mercadopago.com'; static readonly PRODUCT_ID = 'bc32b6ntrpp001u8nhkg'; - static SDK_VERSION = '2.0.8'; + static SDK_VERSION = '2.0.9'; static readonly Headers = { AUTHORIZATION: 'Authorization', From a840e1e04ec2fba0d3367a5f0b33c16cab699616 Mon Sep 17 00:00:00 2001 From: Danielen Cestari Nunes Date: Fri, 26 Apr 2024 17:27:28 -0300 Subject: [PATCH 3/6] uptade TransactionDetailsRequest --- src/clients/payment/create/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clients/payment/create/types.ts b/src/clients/payment/create/types.ts index 33d21b5..080e763 100644 --- a/src/clients/payment/create/types.ts +++ b/src/clients/payment/create/types.ts @@ -37,6 +37,7 @@ export declare type PaymentCreateRequest = { payer?: PayerRequest, point_of_interaction?: PointOfInteractionRequest, sponsor_id?: number, + transaction_details?: TransactionDetailsRequest }; export declare type PayerRequest = { @@ -93,3 +94,7 @@ export declare type AdditionalInfo = { shipments?: Shipments, }; +export declare type TransactionDetailsRequest = { + financial_institution?: string, +}; + From 327f6499df6e688087858c11a502c6ab01b1423a Mon Sep 17 00:00:00 2001 From: Danielen Cestari Nunes Date: Fri, 17 May 2024 14:28:53 -0300 Subject: [PATCH 4/6] [FIX] - type in street_number/address (#325) * fix address for payment * fix type --- src/clients/commonTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/commonTypes.ts b/src/clients/commonTypes.ts index 731a44c..b98f4e7 100644 --- a/src/clients/commonTypes.ts +++ b/src/clients/commonTypes.ts @@ -7,7 +7,7 @@ export declare type Identification = { export declare type Address = { zip_code?: string; street_name?: string; - street_number?: number; + street_number?: string; }; export declare type Items = { From 6f495bcdbb9c7cbc989d365416ef8476f9f2ac00 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:04:30 -0300 Subject: [PATCH 5/6] Bump braces from 3.0.2 to 3.0.3 (#330) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f652e6..33700d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.0.8", + "version": "2.0.9", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1463,12 +1463,23 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" + }, + "dependencies": { + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + } } }, "browserslist": { @@ -1993,15 +2004,6 @@ "flat-cache": "^3.0.4" } }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", From c6aad23542e8f8a5ac5628c2fcc3a9fb0c0a1867 Mon Sep 17 00:00:00 2001 From: Danielen Cestari Nunes Date: Wed, 19 Jun 2024 10:33:08 -0300 Subject: [PATCH 6/6] Bump version to 2.0.10 (#331) * bump to version 2.0.10 * bump --- CHANGELOG.MD | 5 +++++ package.json | 2 +- src/utils/config/index.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index efb2763..eab1bcf 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,10 @@ # Releases +## VERSION 2.0.10 +- Update braces from 3.0.2 to 3.0.3 +- Fix the properties street_number to string +- Include TransactionDetailsRequest in Create Payment + ## VERSION 2.0.9 - Add sponsor_id to PaymentCreateRequest diff --git a/package.json b/package.json index e2354aa..3002e3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.0.9", + "version": "2.0.10", "description": "Mercadopago SDK for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 9eb604d..19d8cd0 100644 --- a/src/utils/config/index.ts +++ b/src/utils/config/index.ts @@ -5,7 +5,7 @@ export class AppConfig { static readonly BASE_URL = 'https://api.mercadopago.com'; static readonly PRODUCT_ID = 'bc32b6ntrpp001u8nhkg'; - static SDK_VERSION = '2.0.9'; + static SDK_VERSION = '2.0.10'; static readonly Headers = { AUTHORIZATION: 'Authorization',