Skip to content

Commit

Permalink
Removed limit as required field
Browse files Browse the repository at this point in the history
  • Loading branch information
timoj committed May 7, 2018
1 parent caeda62 commit c01291b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/Wuunder/Api/Config/ParcelshopsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ public function __construct()
parent::__construct();
$this->requiredFields = array(
"providers",
"address",
"limit",
"address"
);
$this->fieldTypes = array(
"providers" => "list",
"address" => "string",
"limit" => "integer"
"address" => "string"
);
}

Expand Down
1 change: 1 addition & 0 deletions src/Wuunder/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Model implements \JsonSerializable
{
private $keys;
protected $data;
protected $helper;
protected static $_underscoreCache = [];

public function __construct()
Expand Down
5 changes: 2 additions & 3 deletions tests/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

$connector = new Wuunder\Connector("YVc7rKdM6e6Q_HQK81NCt7SM0LT0TtQB");


$parcelshopRequest = $connector->getParcelshopById();

$parcelshopConfig = new \Wuunder\Api\Config\ParcelshopConfig();
Expand All @@ -27,7 +26,7 @@
$parcelshopRequest->setConfig($parcelshopConfig);

if ($parcelshopRequest->fire()) {
var_dump($parcelshopRequest->getParcelshopResponse()->getParcelshopData());
var_dump(json_encode($parcelshopRequest->getParcelshopResponse()->getParcelshopData()));
} else {
var_dump($parcelshopRequest->getParcelshopResponse()->getError());
}
Expand All @@ -48,7 +47,7 @@
$parcelshopsRequest->setConfig($parcelshopsConfig);

if ($parcelshopsRequest->fire()) {
var_dump($parcelshopsRequest->getParcelshopsResponse()->getParcelshopsData());
var_dump(json_encode($parcelshopsRequest->getParcelshopsResponse()->getParcelshopsData()));
} else {
var_dump($parcelshopsRequest->getParcelshopsResponse()->getError());
}
Expand Down

0 comments on commit c01291b

Please sign in to comment.