diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 12bce94e..9bbdde16 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,8 @@ # Releases + +## VERSION 2.2.0 +- Include `network_transaction_data` in `forward_data` in Payment + ## VERSION 2.1.1 - Fix `X-Expand-Responde-Nodes` header to request options diff --git a/package.json b/package.json index 70e0286c..a5abdc9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.1.1", + "version": "2.2.0", "description": "Mercadopago SDK for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/clients/payment/create/types.ts b/src/clients/payment/create/types.ts index 3a20497a..2a1c3977 100644 --- a/src/clients/payment/create/types.ts +++ b/src/clients/payment/create/types.ts @@ -56,6 +56,11 @@ export declare type PayerRequest = { export declare type ForwardDataRequest = { sub_merchant?: SubMerchant, + network_transaction_data?: NetworkTransactionData, +} + +export declare type NetworkTransactionData = { + network_transaction_id?: string, } export declare interface AddressRequest extends Address { diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index b62fdf68..7c285fdd 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.1.1'; + static SDK_VERSION = '2.2.0'; static readonly Headers = { AUTHORIZATION: 'Authorization',