Skip to content

Commit

Permalink
Merge pull request #356 from mercadopago/fix/responde-nodes
Browse files Browse the repository at this point in the history
[Feature] network_transaction_data in forward_data
  • Loading branch information
VickieAranha authored Jan 2, 2025
2 parents e0a97ac + 3a74712 commit d43e5ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/clients/payment/create/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d43e5ac

Please sign in to comment.