diff --git a/src/MessageBird/Objects/Hlr.php b/src/MessageBird/Objects/Hlr.php index a46c96ef..9338d030 100644 --- a/src/MessageBird/Objects/Hlr.php +++ b/src/MessageBird/Objects/Hlr.php @@ -43,6 +43,14 @@ class Hlr extends Base */ public $network; + /** + * A array with extra HLR information. Do note that the attributes in the array can change over time and + * can be null (not all information is availble for all countries and providers). + * + * @var array + */ + public $details = array(); + /** * A client reference. Here you can put your own reference, * like your internal reference. diff --git a/tests/integration/hlr/HlrTest.php b/tests/integration/hlr/HlrTest.php index 26df96a8..d66744f7 100644 --- a/tests/integration/hlr/HlrTest.php +++ b/tests/integration/hlr/HlrTest.php @@ -16,7 +16,7 @@ public function testCreateHlr() $Hlr->msisdn = 'MessageBird'; $Hlr->reference = "yoloswag3000"; - $this->mockClient->expects($this->once())->method('performHttpRequest')->with("POST", 'hlr', null, '{"msisdn":"MessageBird","network":null,"reference":"yoloswag3000","status":null}'); + $this->mockClient->expects($this->once())->method('performHttpRequest')->with("POST", 'hlr', null, '{"msisdn":"MessageBird","network":null,"details":[],"reference":"yoloswag3000","status":null}'); $this->client->hlr->create($Hlr); }