Skip to content
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

[Feature] network_transaction_data in forward_data #356

Merged
merged 9 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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.1.2
VickieAranha marked this conversation as resolved.
Show resolved Hide resolved
- Include `network_transaction_date` in ForwardData in Payment
andreagostinho-meli marked this conversation as resolved.
Show resolved Hide resolved

## 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.1.2",
VickieAranha marked this conversation as resolved.
Show resolved Hide resolved
"description": "Mercadopago SDK for Node.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/clients/payment/create/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export declare type PayerRequest = {

export declare type ForwardDataRequest = {
sub_merchant?: SubMerchant,
network_transaction_data?: NetworkTransactionData,

VickieAranha marked this conversation as resolved.
Show resolved Hide resolved
}

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.1.2';
VickieAranha marked this conversation as resolved.
Show resolved Hide resolved

static readonly Headers = {
AUTHORIZATION: 'Authorization',
Expand Down
Loading