public function create($customerId, array $parameters = [])
    {
        $parameters = array_merge($parameters, [
            'customer' => $customerId,
        ]);

        return $this->_post('invoices', $parameters);
    }
public function create($customerId, array $parameters = [])
    {
        $parameters = array_merge($parameters, [
            'customer' => $customerId,
        ]);

        return $this->_post('invoices', $parameters);
    }
public function create ( $ customerId , array $ parameters = [ ] ) { $ parameters = array_merge ( $ parameters , [ 'customer' => $ customerId , ] ) ; return $ this -> _post ( 'invoices' , $ parameters ) ; }
Creates a new invoice.

@param  string  $customerId
@param  array  $parameters
@return array
Creates a new invoice .