Skip to content

Commit

Permalink
0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 10, 2017
1 parent a322ab5 commit f3ada41
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
23 changes: 7 additions & 16 deletions API/Validator/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,11 @@ final class JSON extends \Df\API\Response\Validator {
/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::message()
* @used-by \Df\API\Response\Validator::validate()
* @see \Df\API\IException::long()
* @used-by \Df\API\Client::p()
* @return string
*/
protected function message() {return dfa_deep($this->r(), 'error/message');}

/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::rs()
* @used-by \Df\API\Response\Validator::validate()
* @return string
*/
protected function rs() {
function long() {
/** @var array(string => mixed) $e */
$e = dfa($this->r(), 'error');
// 2017-06-30 It correctly works even if the key does not exist in the array.
Expand All @@ -44,11 +35,11 @@ protected function rs() {
/**
* 2017-07-06
* @override
* @see \Df\API\Response\Validator::title()
* @used-by \Df\API\Response\Validator::validate()
* @see \Df\API\IException::short()
* @used-by \Df\API\Client::p()
* @return string
*/
protected function title() {return 'Dynamics 365 Web';}
function short() {return dfa_deep($this->r(), 'error/message');}

/**
* 2017-07-06
Expand All @@ -57,5 +48,5 @@ protected function title() {return 'Dynamics 365 Web';}
* @used-by \Df\API\Response\Validator::validate()
* @return bool
*/
protected function valid() {return !dfa($this->r(), 'error');}
function valid() {return !dfa($this->r(), 'error');}
}
2 changes: 1 addition & 1 deletion T/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class OAuth extends TestCase {
function t00() {}

/**
* @test 2017-07-08
* 2017-07-08
* «Discover the OAuth endpoint URL»
* https://msdn.microsoft.com/en-us/library/dn531009.aspx#bkmk_oauth_discovery
*/
Expand Down
2 changes: 1 addition & 1 deletion T/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function pricelevels() {$this->p();}
/** 2017-07-01 */
function productpricelevels() {$this->o(F::productpricelevels(S::s()->priceList()));}

/** 2017-07-02 */
/** @test 2017-07-02 */
function priceList() {echo S::s()->priceList();}

/** 2017-07-02 */
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/dynamics365"
,"version": "0.2.2"
,"version": "0.2.3"
,"description": "The «Microsoft Dynamics 365» extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/dynamics365"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.7.40"}
,"require": {"mage2pro/core": ">=2.8.0"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Dynamics365\\": ""}}
,"keywords": [
"CRM"
Expand Down

0 comments on commit f3ada41

Please sign in to comment.