Skip to content

Commit

Permalink
Add transaction_id to pix
Browse files Browse the repository at this point in the history
  • Loading branch information
meliguilhermefernandes committed Dec 14, 2023
1 parent 6b0ec44 commit f6b716a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.0.5",
"version": "2.0.6",
"description": "Mercadopago SDK for Node.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/clients/payment/commonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
13 changes: 1 addition & 12 deletions src/clients/payment/search/types.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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;
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.0.5';
static SDK_VERSION = '2.0.6';

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

0 comments on commit f6b716a

Please sign in to comment.