From f6b716a369a775d28b86cc6072e0db998c89121b Mon Sep 17 00:00:00 2001 From: meliguilhermefernandes <“guilherme.jfernandes@mercadolivre.com”> Date: Thu, 14 Dec 2023 16:59:58 -0300 Subject: [PATCH] Add transaction_id to pix --- CHANGELOG.MD | 3 +++ package-lock.json | 2 +- package.json | 2 +- src/clients/payment/commonTypes.ts | 1 + src/clients/payment/search/types.ts | 13 +------------ src/utils/config/index.ts | 2 +- 6 files changed, 8 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index e1715a5..bda4df9 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,8 @@ # Releases +## VERSION 2.0.6 +- Add transaction_id to TransactionDetails + ## VERSION 2.0.5 - Add Point of Interaction to the root and Address to Payer - Refactoring e2e tests, createCardToken and createEmailTestUser diff --git a/package-lock.json b/package-lock.json index 5c7cc8c..a138fb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.0.2", + "version": "2.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 15b83f2..6868ecc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mercadopago", - "version": "2.0.5", + "version": "2.0.6", "description": "Mercadopago SDK for Node.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/clients/payment/commonTypes.ts b/src/clients/payment/commonTypes.ts index 02ffe0c..7a0ed90 100644 --- a/src/clients/payment/commonTypes.ts +++ b/src/clients/payment/commonTypes.ts @@ -95,6 +95,7 @@ export declare type TransactionDetails = { installment_amount?: number; financial_institution?: string; payable_deferral_period?: any; + transaction_id?: string; } export declare type FeeDetails = { diff --git a/src/clients/payment/search/types.ts b/src/clients/payment/search/types.ts index 3fc6153..dc4645b 100644 --- a/src/clients/payment/search/types.ts +++ b/src/clients/payment/search/types.ts @@ -1,6 +1,7 @@ import type { Identification } from '@src/clients/commonTypes'; import type { MercadoPagoConfig } from '@src/mercadoPagoConfig'; import type { Options, SearchOptions } from '@src/types'; +import type { TransactionDetails } from '@src/clients/payment/commonTypes'; export declare type PaymentSearchClient = { options?: PaymentSearchOptions, @@ -63,18 +64,6 @@ export declare type Payer = { type: string; }; -export declare type TransactionDetails = { - net_received_amount: number; - total_paid_amount: number; - overpaid_amount: number; - external_resource_url: string; - installment_amount: number; - financial_institution: string; - payment_method_reference_id: string; - payable_deferral_period: string; - acquirer_reference: string; -}; - export declare type PaymentSearchPaging = { total: number; limit: number; diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 1c3ab9e..7138904 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.5'; + static SDK_VERSION = '2.0.6'; static readonly Headers = { AUTHORIZATION: 'Authorization',