Example #1
0
 /**
  * Get a specific bill
  *
  * @param string $id The id of the bill to fetch
  *
  * @return object The bill object matching the id requested
  */
 public function bill($id)
 {
     return GoCardless_Bill::find_with_client($this, $id);
 }
Example #2
0
 /**
  * Get a specific bill
  *
  * @param string $id The id of the bill to fetch
  *
  * @return object The bill object matching the id requested
  */
 public function bill($id)
 {
     if (!isset($this->account_details['access_token'])) {
         throw new GoCardless_ClientException('Access token missing');
     }
     return GoCardless_Bill::find_with_client($this, $id);
 }