Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 3, 2017
1 parent 9e4c552 commit f688976
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion API/Bill.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
<?php
namespace Dfe\Qiwi\API;
use Df\API\Operation as O;
use Df\Core\Exception as DFE;
use Zend_Http_Client as Z;
// 2017-09-03
/** @method static Bill s() */
final class Bill extends \Df\API\Facade {}
final class Bill extends \Df\API\Facade {
/**
* 2017-09-03
* «4.6. Refunds», page 13.
* «4.6. Возврат средств по оплаченному счету», страница 13.
* `[QIWI Wallet] The REST API specification (v.2.12)`, https://mage2.pro/t/3745
* https://github.com/QIWI-API/pull-payments-docs/blob/40d48cf0/_pull-payments-api_en.html.md#refunds
* https://github.com/QIWI-API/pull-payments-docs/blob/40d48cf0/_pull-payments-api_ru.html.md#Возврат-оплаченного-счета-refund
* https://developer.qiwi.com/ru/pull-payments/index.html#refund
* @param string $id
* @param string $refundId
* @return O
* @throws DFE
*/
function refund($id, $refundId) {return $this->p($id, Z::PUT, "bills/$id/refund/$refundId");}
}
2 changes: 1 addition & 1 deletion API/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final protected function responseValidatorC() {return \Dfe\Qiwi\API\Validator::c
* @used-by \Df\API\Client::_p()
* @return string
*/
protected function uriBase() {return "https://api.qiwi.com/api/v2/prv/{$this->s()->merchantID()}/bills";}
protected function uriBase() {return "https://api.qiwi.com/api/v2/prv/{$this->s()->merchantID()}";}

/**
* 2017-09-03
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/qiwi"
,"version": "0.1.1"
,"version": "0.1.2"
,"description": "The «Visa QIWI Wallet» (QIWI Кошелёк) payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/qiwi"
Expand Down

0 comments on commit f688976

Please sign in to comment.