Sha256: fde38dceaf70f0a5671f78be51a5190f85f7dd4522f5291db5e3ae1e819ca7b8

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

% if mode == 'definition':
Balanced::BadRequest

% else:
require 'balanced'
Balanced.configure('ak-test-1p1Tsac7gHeMQowL2seB7ieliuAJAufyq')

bank_account = Balanced::BankAccount.new(
  :uri => '/v1/marketplaces/TEST-MP5FKPQwyjvVgTDt7EiRw3Kq/bank_accounts',
  :account_number => '9900000001',
  :name => 'Johann Bernoulli',
  :routing_number => '100000007',
  :type => 'checking'
)

begin
  bank_account.save
rescue Balanced::BadRequest => ex
  raise "Key is not returned!" unless ex.extras.has_key? "routing_number"
end

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-0.7.5 scenarios/bank_account_invalid_routing_number/ruby.mako