/**
  * Get Notes
  * @return array Array of Notes
  */
 public function getList()
 {
     $out = [];
     $data = parent::_get('notes');
     if (isset($data) && isset($data['Note'])) {
         $notes = $data['Note'];
         if ($this->is_assoc($notes)) {
             $notes = [$notes];
         }
         foreach ($notes as $note) {
             $out[] = new Note($this, $note);
         }
     }
     return $out;
 }
 public function getList($filters = array())
 {
     $rcs = [];
     $data = parent::_get('rateCenters', $filters, array(), array("state"));
     if ($data['RateCenters']) {
         $items = $data['RateCenters']['RateCenter'];
         if ($this->is_assoc($items)) {
             $items = [$items];
         }
         foreach ($items as $rc) {
             $rcs[] = new \Iris\CitiesS($rc);
         }
     }
     return $rcs;
 }
예제 #3
0
 public function get($tndetail)
 {
     if ($tndetail) {
         $options = ["tndetail" => "true"];
     } else {
         $options = [];
     }
     $data = parent::_get($this->get_id(), $options);
     $response = new OrderResponse($data);
     if (isset($data['Order'])) {
         $this->set_data($data['Order']);
     }
     $response->Order = $this;
     return $response;
 }
예제 #4
0
 public function getList($filters = array())
 {
     $cities = [];
     $data = parent::_get('cities', $filters, array(), array("state"));
     if ($data['Cities']) {
         $items = $data['Cities']['City'];
         if ($this->is_assoc($items)) {
             $items = [$items];
         }
         foreach ($items as $city) {
             $cities[] = new \Iris\CitiesS($city);
         }
     }
     return $cities;
 }
예제 #5
0
 public function getList()
 {
     $out = [];
     $url = sprintf('%s', 'users');
     $data = parent::_get($url);
     if (isset($data['Users']) && isset($data['Users']['User'])) {
         $items = $data['Users']['User'];
         if ($this->is_assoc($items)) {
             $items = [$items];
         }
         foreach ($items as $item) {
             $out[] = new User($this->parent->get_rest_client(), $item);
         }
     }
     return $out;
 }
예제 #6
0
 public function history()
 {
     $url = sprintf("%s/%s", $this->get_id(), "history");
     $data = parent::_get($url);
     return new History($data);
 }
 public function get()
 {
     $data = parent::_get($this->get_id());
     $this->set_data($data['Subscriptions']['Subscription']);
 }
예제 #8
0
 public function products($filters = array())
 {
     $url = sprintf('%s/%s', $this->account_id, 'products');
     $data = parent::_get($url, $filters);
     return $data;
 }
 public function get()
 {
     if (is_null($this->id)) {
         throw new \Exception('Id should be provided');
     }
     $data = parent::_get($this->id);
     $this->set_data($data['Order']);
 }
 public function totals($filters = array())
 {
     $url = sprintf('%s/%s', $this->get_id(), 'totals');
     $response = parent::_get($url, $filters);
     return $response['Count'];
 }
예제 #11
0
 public function totaltns()
 {
     $url = sprintf('%s/%s', $this->get_id(), "totaltns");
     $data = parent::_get($url);
     return $data['SipPeerTelephoneNumbersCounts']['SipPeerTelephoneNumbersCount'];
 }
 public function get()
 {
     $data = parent::_get($this->get_id());
     $this->set_data($data['Reservation']);
     return $this;
 }
 public function notes()
 {
     $url = sprintf('%s/%s', $this->id, 'notes');
     $data = parent::_get($url);
     return $data;
 }
예제 #14
0
 public function totaltns()
 {
     $url = sprintf('%s/%s', $this->get_id(), "totaltns");
     $data = parent::_get($url);
     return $data['SiteTNs']['TotalCount'];
 }
예제 #15
0
 public function get()
 {
     $data = parent::_get($this->get_id());
     $this->set_data($data);
 }
 public function get()
 {
     $data = parent::_get($this->get_id());
     $data = $data['CoveredRateCenter'];
     $this->set_data($data);
 }
예제 #17
0
 public function lca()
 {
     $url = sprintf("%s/%s", $this->get_id(), "lca");
     $data = parent::_get($url);
     return new LcaSearch($data);
 }