Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 3, 2017
1 parent 3a0d3cd commit f01c185
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
16 changes: 16 additions & 0 deletions API/Bill.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
namespace Dfe\Qiwi\API;
use Df\API\Operation as O;
use Df\Core\Exception as DFE;
// 2017-09-03
/** @method static Bill s() */
final class Bill extends \Df\API\Facade {
/**
* 2017-09-03
* @param string $id
* @param array(string => mixed) $a
* @return O
* @throws DFE
*/
function put($id, array $a) {return $this->p([$id, $a]);}
}
8 changes: 3 additions & 5 deletions API/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
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()
*/
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'];});
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit f01c185

Please sign in to comment.