From 5347f3c260ffdd1d458c79cf89b8123c637d68c5 Mon Sep 17 00:00:00 2001 From: pablorsk Date: Thu, 1 Apr 2021 15:51:40 -0300 Subject: [PATCH] v1.1 auto commit --- CHANGELOG.md | 5 +++++ composer.json | 5 +++-- src/MercadoPagoOrder.php | 3 ++- src/MercadoPagoPos.php | 2 +- tests/MercadoPagoQrTest.php | 2 +- tests/image/mercadopago-qr-code.png | Bin 2156 -> 1978 bytes 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfbfb13..6da22c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.0] - 2021-03-15 + +### Changed +- dx-php updated to 2.2.3, with latest change from MercadoPago team. + ## [1.0.3] - 2021-03-15 ### Changed diff --git a/composer.json b/composer.json index f1d7235..31a1c18 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "name": "reyesoft/mercadopago", "description": "This library helps to make payments through MercadoPago, even with QR", "type": "library", + "version": "1.1.0", "keywords": ["qrcode", "payments", "mercadopago api", "reyesoft"], "homepage": "https://github.com/reyesoft/mercadopago", "license": "MIT", @@ -18,7 +19,7 @@ "php": ">=7.2", "endroid/qr-code": "^3.2", "ext-gd": "*", - "pablorsk/dx-php": "1.7.3" + "pablorsk/dx-php": "2.2.3" }, "require-dev": { "reyesoft/ci": "1.2.0", @@ -35,7 +36,7 @@ }, "autoload-dev": { "psr-4": { - "MercadoPagoQr\\Tests\\": "tests/" + "Tests\\": "tests/" } }, "scripts": { diff --git a/src/MercadoPagoOrder.php b/src/MercadoPagoOrder.php index eb8af09..e30b83c 100644 --- a/src/MercadoPagoOrder.php +++ b/src/MercadoPagoOrder.php @@ -10,7 +10,8 @@ namespace MercadoPagoQr; -use MercadoPago\InstoreOrder; + +use MercadoPago\Entities\InstoreOrder; /** * @see https://www.mercadopago.com.ar/developers/en/guides/instore-payments/qr-payments/qr-pos/ "Order object" diff --git a/src/MercadoPagoPos.php b/src/MercadoPagoPos.php index 982c620..79cdc3f 100644 --- a/src/MercadoPagoPos.php +++ b/src/MercadoPagoPos.php @@ -11,7 +11,7 @@ namespace MercadoPagoQr; use Endroid\QrCode\QrCode; -use MercadoPago\Pos as Pos; +use MercadoPago\Entities\Pos as Pos; /** * @see https://www.mercadopago.com.ar/developers/en/guides/instore-payments/qr-payments/qr-pos/ "Create QR" diff --git a/tests/MercadoPagoQrTest.php b/tests/MercadoPagoQrTest.php index 8acb50e..f230b21 100644 --- a/tests/MercadoPagoQrTest.php +++ b/tests/MercadoPagoQrTest.php @@ -8,7 +8,7 @@ declare(strict_types=1); -namespace MercadoPagoQr\Tests; +namespace Tests; use MercadoPago\SDK; use MercadoPagoQr\MercadoPagoPos; diff --git a/tests/image/mercadopago-qr-code.png b/tests/image/mercadopago-qr-code.png index f096a6a2787dea49fb7d3a7ac0b43b04993393a7..450a455916f15a6dd66cccd7f834651d732fd7e0 100644 GIT binary patch literal 1978 zcmah~dr;D86a{lcE6s*{%;>O-QLhxjr&6HH(ZDeC#4Af*Oh>L`%DW?XJJsKkj@pcjlXW&bjB_TXHZoNPo52 zY7hvdAG|-{5C{bJ`5L-fnvCDaU7t0NUi$u{86c2B$JYSga5OLnfgqUR0N=y-+Y2J-(K7*WnU%r$N6|dQVBDv8WZl(01J>NBdg9_7Dl&O~0pOx_HsWWx!KzQoe%^}YW z?c#Ky&P95r?b>VOwJtb={crv=tEL-B zbeZd3F0`teCW=x=w>mXO$twx3?S*0k_1j_B&P9d!6)H;kgVmjtnfR6l$tB&)6GI{A z!>?F?!ydV<&zkOk$&&2*WJDfVkvhk^`^WOgDxOD6dMfe(!z%h+8Tbb`y(pc5+! zm3-9(HF@jEq>o^h2sWWfS&1<@B04&u!41dhgf2n>>dZ{|mQr>QAMM&jUu2M}$Dn9o z(~_mEPuf#u`b&rhBU-@mK2pW8ab2-BuotH|^;74GvO~(4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