Skip to content

Commit

Permalink
Merge pull request #93 from Bandwidth/DX-2715
Browse files Browse the repository at this point in the history
DX-2715 Adding NNID, ESPID, A2pSettings, OriginationRoutePlan and PindropEnabled to TnOptions
  • Loading branch information
brianluisgomez authored Jul 27, 2022
2 parents 15f0874 + d2a36a0 commit 0b6b5be
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/simpleModels/A2pSettings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Iris;

class A2pSettings {
use BaseModel;

protected $fields = array(
"MessageClass" => array("type" => "string"),
"CampaignId" => array("type" => "string"),
"Action" => array("type" => "string"),
);

public function __construct($data) {
$this->set_data($data);
}
}
17 changes: 17 additions & 0 deletions src/simpleModels/OriginationRoutePlan.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Iris;

class OriginationRoutePlan {
use BaseModel;

protected $fields = array(
"Id" => array("type" => "string"),
"Route" => array("type" => "\Iris\Route"),
"Action" => array("type" => "string"),
);

public function __construct($data) {
$this->set_data($data);
}
}
18 changes: 18 additions & 0 deletions src/simpleModels/Route.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Iris;

class Route {
use BaseModel;

protected $fields = array(
"Endpoint" => array("type" => "string"),
"Priority" => array("type" => "int"),
"Weight" => array("type" => "int"),
"EndpointType" => array("type" => "string"),
);

public function __construct($data) {
$this->set_data($data);
}
}
7 changes: 6 additions & 1 deletion src/simpleModels/TnOptionGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ class TnOptionGroup {
"Protected" => array("type" => "string"),
"Sms" => array("type" => "string"),
"FinalDestinationURI " => array("type" => "string"),
"PortOutPasscode" => array("type" => "string")
"PortOutPasscode" => array("type" => "string"),
"NNID" => array("type" => "string"),
"ESPID" => array("type" => "string"),
"A2pSettings" => array("type" => "\Iris\A2pSettings"),
"OriginationRoutePlan" => array("type" => "\Iris\OriginationRoutePlan"),
"PindropEnabled" => array("type" => "string")
);
public function __construct($data) {
$this->set_data($data);
Expand Down

0 comments on commit 0b6b5be

Please sign in to comment.