diff --git a/API/Bill.php b/API/Bill.php new file mode 100644 index 0000000..840fe55 --- /dev/null +++ b/API/Bill.php @@ -0,0 +1,16 @@ + mixed) $a + * @return O + * @throws DFE + */ + function put($id, array $a) {return $this->p([$id, $a]);} +} \ No newline at end of file diff --git a/API/Client.php b/API/Client.php index 142da00..d4314f3 100644 --- a/API/Client.php +++ b/API/Client.php @@ -5,6 +5,9 @@ final class Client extends \Df\API\Client { /** * 2017-09-03 + * [QIWI Wallet] An example of a response to + * «PUT https://api.qiwi.com/api/v2/prv/{prv_id}/bills/{bill_id}» + * https://mage2.pro/t/4447 * @override * @see \Df\API\Client::_construct() * @used-by \Df\API\Client::__construct() @@ -12,11 +15,6 @@ final class Client extends \Df\API\Client { protected function _construct() { parent::_construct(); $this->resJson(); - /** - * [QIWI Wallet] An example of a response to - * «PUT https://api.qiwi.com/api/v2/prv/{prv_id}/bills/{bill_id}» - * https://mage2.pro/t/4447 - */ $this->addFilterRes(function($v) {return $v['response'];}); } diff --git a/composer.json b/composer.json index 5a5359b..e7d5962 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/qiwi" - ,"version": "0.0.9" + ,"version": "0.1.0" ,"description": "The «Visa QIWI Wallet» (QIWI Кошелёк) payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/qiwi" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=2.11.9"} + ,"require": {"mage2pro/core": ">=2.11.10"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Qiwi\\": ""}} ,"keywords": [ "API"