Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/MessageBird/Objects/Hlr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/hlr/HlrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down