Sha256: 1a3c223f5a9bb4a72c2cbcd912918614c103baf487c98bef20ced80f1067ba24

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

<%= boiler_plate %>
bank_account = Balanced::BankAccount.new(
  :uri => '<%=request['uri']%>',
<%= params_to_hash.call(payload).indent(2) %>
)

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
balanced-0.8.2 scenarios/bank_account_invalid_routing_number/request.rb
balanced-0.8.1 scenarios/bank_account_invalid_routing_number/request.rb
balanced-0.7.5 scenarios/bank_account_invalid_routing_number/request.rb