Skip to content

[Feature] network_transaction_data in forward_data #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading