Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eltinMeli authored Jun 19, 2024
2 parents 07588a2 + c6aad23 commit 4b08c5d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Releases

## VERSION 2.0.10
- Update braces from 3.0.2 to 3.0.3
- Fix the properties street_number to string
- Include TransactionDetailsRequest in Create Payment

## VERSION 2.0.9
- Add sponsor_id to PaymentCreateRequest

## VERSION 2.0.7
- Add barcode, digitable_line, verification_code to TransactionDetails

Expand Down
30 changes: 16 additions & 14 deletions 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.8",
"version": "2.0.10",
"description": "Mercadopago SDK for Node.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/clients/commonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export declare type Identification = {
export declare type Address = {
zip_code?: string;
street_name?: string;
street_number?: number;
street_number?: string;
};

export declare type Items = {
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 @@ -36,6 +36,8 @@ export declare type PaymentCreateRequest = {
transaction_amount?: number,
payer?: PayerRequest,
point_of_interaction?: PointOfInteractionRequest,
sponsor_id?: number,
transaction_details?: TransactionDetailsRequest
};

export declare type PayerRequest = {
Expand Down Expand Up @@ -92,3 +94,7 @@ export declare type AdditionalInfo = {
shipments?: Shipments,
};

export declare type TransactionDetailsRequest = {
financial_institution?: string,
};

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.8';
static SDK_VERSION = '2.0.10';

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

0 comments on commit 4b08c5d

Please sign in to comment.