Skip to content

Commit

Permalink
Fixed small bug with requiresAction
Browse files Browse the repository at this point in the history
  • Loading branch information
XolphinIvo committed Oct 6, 2016
1 parent ce1fcec commit 318f57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xolphin/xolphin-api-php",
"version": "1.2",
"version": "1.2.1",
"description": "Xolphin API module for PHP",
"license": "MIT",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions src/Responses/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Request extends Base {
public $product;

/** @var bool */
public $ActionRequired = false;
public $requiresAction = false;

/**
* Request constructor.
Expand Down Expand Up @@ -92,7 +92,7 @@ function __construct($data) {
if(isset($data->approverEmail)) $this->approverEmail = $data->approverEmail;
if(isset($data->approverPhone)) $this->approverPhone = $data->approverPhone;
if(isset($data->kvk)) $this->kvk = $data->kvk;
if(isset($data->ActionRequired)) $this->ActionRequired = $data->ActionRequired;
if(isset($data->requiresAction)) $this->requiresAction = $data->requiresAction;

if(!empty($data->validations)) {
foreach(get_object_vars($data->validations) as $k => $v) {
Expand All @@ -105,4 +105,4 @@ function __construct($data) {
};
}
}
}
}

0 comments on commit 318f57c

Please sign in to comment.