From e8ec8226e708dbdb4b566ed9e2f34fd8a5c5bf6b Mon Sep 17 00:00:00 2001 From: Lucas Mantovani Date: Mon, 24 Jan 2022 10:43:28 -0300 Subject: [PATCH 1/3] Fix AuthorizedPayment endpoint mapping --- src/MercadoPago/Entities/AuthorizedPayment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MercadoPago/Entities/AuthorizedPayment.php b/src/MercadoPago/Entities/AuthorizedPayment.php index cffe1eab..152ba948 100644 --- a/src/MercadoPago/Entities/AuthorizedPayment.php +++ b/src/MercadoPago/Entities/AuthorizedPayment.php @@ -11,10 +11,10 @@ /** * Authorized Payments Class * - * @RestMethod(resource="/authorized_payment", method="create") - * @RestMethod(resource="/authorized_payment/:id", method="read") - * @RestMethod(resource="/authorized_payment/search", method="search") - * @RestMethod(resource="/authorized_payment/:id", method="update") + * @RestMethod(resource="/authorized_payments", method="create") + * @RestMethod(resource="/authorized_payments/:id", method="read") + * @RestMethod(resource="/authorized_payments/search", method="search") + * @RestMethod(resource="/authorized_payments/:id", method="update") */ class AuthorizedPayment extends Entity From a0d5905e7cc9f4eb565fa65a05a6e1819df2b00a Mon Sep 17 00:00:00 2001 From: Lucas Mantovani Date: Mon, 24 Jan 2022 13:33:45 -0300 Subject: [PATCH 2/3] Remove invalid endpoints --- src/MercadoPago/Entities/AuthorizedPayment.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/MercadoPago/Entities/AuthorizedPayment.php b/src/MercadoPago/Entities/AuthorizedPayment.php index 152ba948..8bb186b6 100644 --- a/src/MercadoPago/Entities/AuthorizedPayment.php +++ b/src/MercadoPago/Entities/AuthorizedPayment.php @@ -11,10 +11,8 @@ /** * Authorized Payments Class * - * @RestMethod(resource="/authorized_payments", method="create") * @RestMethod(resource="/authorized_payments/:id", method="read") * @RestMethod(resource="/authorized_payments/search", method="search") - * @RestMethod(resource="/authorized_payments/:id", method="update") */ class AuthorizedPayment extends Entity From 153f4672367cff8f28e6019652406aa526f7ca72 Mon Sep 17 00:00:00 2001 From: Lucas Mantovani Date: Mon, 24 Jan 2022 15:05:37 -0300 Subject: [PATCH 3/3] Increase version to 2.4.5 --- README.md | 2 +- composer.json | 2 +- docs/classes/MercadoPago-Version.html | 2 +- src/MercadoPago/Version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9820bcf..6292181f 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ First time using Mercado Pago? Create your [Mercado Pago account](https://www.me 1. Download [Composer](https://getcomposer.org/doc/00-intro.md) if not already installed 2. On your project directory run on the command line -`composer require "mercadopago/dx-php:2.4.4"` for PHP7 or `composer require "mercadopago/dx-php:1.12.3"` for PHP5.6. +`composer require "mercadopago/dx-php:2.4.5"` for PHP7 or `composer require "mercadopago/dx-php:1.12.3"` for PHP5.6. 3. Copy the access_token in the [credentials](https://www.mercadopago.com/mlb/account/credentials) section of the page and replace YOUR_ACCESS_TOKEN with it. diff --git a/composer.json b/composer.json index ecd722db..a828cb9b 100755 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "homepage": "https://github.com/mercadopago/sdk-php", "license": "MIT", - "version": "2.4.4", + "version": "2.4.5", "config": { "platform": { "php": "7.1" diff --git a/docs/classes/MercadoPago-Version.html b/docs/classes/MercadoPago-Version.html index 4c67b8c2..d1540f54 100644 --- a/docs/classes/MercadoPago-Version.html +++ b/docs/classes/MercadoPago-Version.html @@ -168,7 +168,7 @@

public static mixed $_VERSION - = '2.4.4' + = '2.4.5' diff --git a/src/MercadoPago/Version.php b/src/MercadoPago/Version.php index 6d38b3e5..857c0879 100755 --- a/src/MercadoPago/Version.php +++ b/src/MercadoPago/Version.php @@ -4,5 +4,5 @@ class Version { public static - $_VERSION = '2.4.4'; + $_VERSION = '2.4.5'; }