lib/recurly/invoice.php
public static function invoicePendingCharges($accountCode, $attributes = array(), $client = null) {
    $uri = Recurly_Client::PATH_ACCOUNTS . '/' . rawurlencode($accountCode) . Recurly_Client::PATH_INVOICES;
    $invoice = new self();
    return Recurly_InvoiceCollection::_post($uri, $invoice->setValues($attributes)->xml(), $client);
  }
public static function invoicePendingCharges($accountCode, $attributes = array(), $client = null) {
    $uri = Recurly_Client::PATH_ACCOUNTS . '/' . rawurlencode($accountCode) . Recurly_Client::PATH_INVOICES;
    $invoice = new self();
    return Recurly_InvoiceCollection::_post($uri, $invoice->setValues($attributes)->xml(), $client);
  }
public static function invoicePendingCharges ( $ accountCode , $ attributes = array ( ) , $ client = null ) { $ uri = Recurly_Client :: PATH_ACCOUNTS . '/' . rawurlencode ( $ accountCode ) . Recurly_Client :: PATH_INVOICES ; $ invoice = new self ( ) ; return Recurly_InvoiceCollection :: _post ( $ uri , $ invoice -> setValues ( $ attributes ) -> xml ( ) , $ client ) ; }
Creates an invoice for an account using its pending charges

@param string $accountCode Unique account code
@param array $attributes additional invoice attributes (see writeableAttributes)
@param Recurly_Client $client Optional client for the request, useful for mocking the client
@return object Recurly_InvoiceCollection collection of invoices on success
@throws Recurly_Error
Creates an invoice for an account using its pending charges