Skip to content

Commit 0b6b5be

Browse files
Merge pull request #93 from Bandwidth/DX-2715
DX-2715 Adding NNID, ESPID, A2pSettings, OriginationRoutePlan and PindropEnabled to TnOptions
2 parents 15f0874 + d2a36a0 commit 0b6b5be

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

src/simpleModels/A2pSettings.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Iris;
4+
5+
class A2pSettings {
6+
use BaseModel;
7+
8+
protected $fields = array(
9+
"MessageClass" => array("type" => "string"),
10+
"CampaignId" => array("type" => "string"),
11+
"Action" => array("type" => "string"),
12+
);
13+
14+
public function __construct($data) {
15+
$this->set_data($data);
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Iris;
4+
5+
class OriginationRoutePlan {
6+
use BaseModel;
7+
8+
protected $fields = array(
9+
"Id" => array("type" => "string"),
10+
"Route" => array("type" => "\Iris\Route"),
11+
"Action" => array("type" => "string"),
12+
);
13+
14+
public function __construct($data) {
15+
$this->set_data($data);
16+
}
17+
}

src/simpleModels/Route.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Iris;
4+
5+
class Route {
6+
use BaseModel;
7+
8+
protected $fields = array(
9+
"Endpoint" => array("type" => "string"),
10+
"Priority" => array("type" => "int"),
11+
"Weight" => array("type" => "int"),
12+
"EndpointType" => array("type" => "string"),
13+
);
14+
15+
public function __construct($data) {
16+
$this->set_data($data);
17+
}
18+
}

src/simpleModels/TnOptionGroups.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ class TnOptionGroup {
2626
"Protected" => array("type" => "string"),
2727
"Sms" => array("type" => "string"),
2828
"FinalDestinationURI " => array("type" => "string"),
29-
"PortOutPasscode" => array("type" => "string")
29+
"PortOutPasscode" => array("type" => "string"),
30+
"NNID" => array("type" => "string"),
31+
"ESPID" => array("type" => "string"),
32+
"A2pSettings" => array("type" => "\Iris\A2pSettings"),
33+
"OriginationRoutePlan" => array("type" => "\Iris\OriginationRoutePlan"),
34+
"PindropEnabled" => array("type" => "string")
3035
);
3136
public function __construct($data) {
3237
$this->set_data($data);

0 commit comments

Comments
 (0)