コード例 #1
0
ファイル: Balance.php プロジェクト: didww/php-sdk
 function getBilledServices()
 {
     $customer_id = $this->getCustomerId();
     if (!isset($customer_id)) {
         throw new BalanceException("Customer Id is undefined");
     }
     $response = $this->call('getservicelist', array("customer_id" => $this->getCustomerId()));
     $orders = array();
     if (count($response)) {
         foreach ($response as $serviceData) {
             $order = new \Didww\API2\Order();
             $order->setCustomerId($this->getCustomerId());
             $order->fromServiceData($serviceData);
             $orders[] = $order;
         }
     }
     return $orders;
 }