Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 17, 2017
1 parent ba53e8e commit 40301db
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Response.php → Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
*
* @final Unable to use the PHP «final» keyword here because of the M2 code generation.
*/
class Response extends \Df\Framework\W\Response {
class Result extends \Df\Framework\W\Result {
/**
* 2017-10-02
* @override
* @see \Df\Framework\W\Response::__toString()
* @see \Df\Framework\W\Result::__toString()
* @used-by render()
* @used-by \Df\Payment\W\Action::execute()
* @return string
Expand Down
2 changes: 1 addition & 1 deletion W/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class Reader extends \Df\Payment\W\Reader {
* }
* 2017-10-03
* We need to distinguish the notifications not only for a payment title decoration,
* but primarily for \Dfe\YandexKassa\Response::__toString():
* but primarily for \Dfe\YandexKassa\Result::__toString():
* a response's root tag should start with the notification type.
* @override
* @see \Df\Payment\W\Reader::kt()
Expand Down
12 changes: 6 additions & 6 deletions W/Responder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace Dfe\YandexKassa\W;
use Dfe\YandexKassa\Response;
use Dfe\YandexKassa\Result;
/**
* 2017-10-02
* @method Event e()
Expand All @@ -12,17 +12,17 @@ final class Responder extends \Df\Payment\W\Responder {
* @see \Df\Payment\W\Responder::error()
* @used-by \Df\Payment\W\Responder::setError()
* @param \Exception $e
* @return Response
* @return Result
*/
protected function error(\Exception $e) {return Response::i($this->e(), $e);}
protected function error(\Exception $e) {return Result::i($this->e(), $e);}

/**
* 2017-10-02
* @override
* @see \Df\Payment\W\Responder::notForUs()
* @used-by \Df\Payment\W\Responder::setNotForUs()
* @param string|null $message [optional]
* @return Response
* @return Result
*/
protected function notForUs($message = null) {return $this->success();}

Expand All @@ -32,7 +32,7 @@ protected function notForUs($message = null) {return $this->success();}
* @see \Df\Payment\W\Responder::success()
* @used-by notForUs()
* @used-by \Df\Payment\W\Responder::get()
* @return Response
* @return Result
*/
protected function success() {return Response::i($this->e());}
protected function success() {return Result::i($this->e());}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/yandex-kassa"
,"version": "1.0.2"
,"version": "1.0.3"
,"description": "Yandex.Kassa (Яндекс.Касса, Yandex.Checkout) integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/yandex-kassa"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.3.16"}
,"require": {"mage2pro/core": ">=3.3.18"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\YandexKassa\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit 40301db

Please sign in to comment.