Skip to content

Commit b8529aa

Browse files
authored
Merge pull request #24 from pashamesh/master
Fixed regression & added missing response fields
2 parents 82c9918 + 7f36fa7 commit b8529aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private function parseResponse($response)
342342

343343
if ($contentType && strpos($contentType, 'json') !== false)
344344
{
345-
$responseBody = json_decode($responseBody, true);
345+
return json_decode($responseBody, true);
346346
}
347347

348348
try

src/simpleModels/NumberPortabilityResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ class NumberPortabilityResponse {
66
use BaseModel;
77

88
protected $fields = array(
9+
"PortType" => array("type" => "string"),
910
"PortableNumbers" => array("type" => "\Iris\TnList"),
1011
"SupportedRateCenters" => array("type" => "string"),
12+
"SupportedTollFreeNumbers" => array("type" => "string"),
1113
"UnsupportedRateCenters" => array("type" => "\Iris\RateCentersS"),
1214
"PartnerSupportedRateCenters" => array("type" => "\Iris\RateCentersS"),
1315
"SupportedLosingCarriers" => array("type" => "\Iris\SupportedLosingCarriers")

0 commit comments

Comments
 (0)