Recurly_BillingInfo::uriForBillingInfo PHP Method

uriForBillingInfo() protected static method

protected static uriForBillingInfo ( $accountCode )
    protected static function uriForBillingInfo($accountCode)
    {
        return Recurly_Client::PATH_ACCOUNTS . '/' . rawurlencode($accountCode) . Recurly_Client::PATH_BILLING_INFO;
    }

Usage Example

 protected function uri() {
   if (!empty($this->_href))
     return $this->getHref();
   else if (!empty($this->account_code))
     return Recurly_BillingInfo::uriForBillingInfo($this->account_code);
   else
     throw new Recurly_Error("'account_code' not specified.");
 }