I don't believe this is correct. The [API documentation](https://www.balancedpayments.com/docs/api?language=bash#create-a-new-debit) (which is generated from actual Balanced API code) has `on_behalf_of_uri` as the parameter. 

What I believe the issue is here is that the [`account.debit` method](https://github.com/balanced/balanced-ruby/blob/master/lib/balanced/resources/account.rb#L43) in the balanced-ruby library accepts a `on_behalf_of` param which is confusing because the other uri based parameters are suffixed with `_uri`. I think the better fix would be for the balanced-ruby library to rename the parameter to be inline with the API spec but it looks like some clever person allowed the `debit` method to accept both an object and a URI string!

I've written a quick script here to demonstrate the ruby client using the `on_behalf_of` parameter. @dclausen does this work correctly for you?

    require 'balanced'

    # create a new marketplace
    api_key = Balanced::ApiKey.new.save
    Balanced.configure(api_key.secret)
    marketplace = Balanced::Marketplace.new.save

    # create a bank account
    bank_account = marketplace.create_bank_account(
        :account_number => "1234567890",
        :bank_code => "12",
        :name => "Jack Q Merchant"
    )
    merchant = marketplace.create_account()
    merchant.add_bank_account(bank_account.uri)

    # create a card for a buyer
    card = Balanced::Card.new(
        :card_number => "5105105105105100",
        :expiration_month => "12",
        :expiration_year => "2015"
    ).save

    # create our buyer account
    buyer = marketplace.create_buyer(
        :email_address => "buyer@example.org",
        :card_uri => card.uri
    )

    debit = buyer.debit(
        :amount => 100,
        :on_behalf_of => merchant.uri
    )

    puts 'debit from %s on behalf of %s' % [
        debit.account.uri,
        debit.on_behalf_of.uri
    ]