Sha256: ee6773723c6f0484accec690e4670279dc4caf6673ded1ef93ae026fcfa55d40
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
% if mode == 'definition': Balanced::Card.credit % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = Balanced::Card.fetch('/cards/CC3iCCIHprJu5HPyP7vmE92B') card.credit( :amount => 5000, :description => 'Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': #<Balanced::Credit:0x007fb1e899b640 @attributes= {"amount"=>5000, "appears_on_statement_as"=>"example.com", "created_at"=>"2014-11-14T19:29:19.110285Z", "currency"=>"USD", "description"=>"Some descriptive text for the debit in the dashboard", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/credits/CR3vFNFFCyqipPjs5t4eaIVO", "id"=>"CR3vFNFFCyqipPjs5t4eaIVO", "links"=> {"customer"=>"CU2718cI8PkMdFyPjboZLZfn", "destination"=>"CC3iCCIHprJu5HPyP7vmE92B", "order"=>nil}, "meta"=>{}, "status"=>"succeeded", "transaction_number"=>"CR6R4-4OF-RNZ7", "updated_at"=>"2014-11-14T19:29:19.965523Z"}, @hyperlinks= {"customer"=> #<Proc:0x007fb1e8999980@/Users/ben/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/balanced-1.1.1/lib/balanced/resources/resource.rb:60 (lambda)>, "destination"=> #<Proc:0x007fb1e98e3d78@/Users/ben/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/balanced-1.1.1/lib/balanced/resources/resource.rb:60 (lambda)>, "events"=> #<Proc:0x007fb1e98e1bb8@/Users/ben/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/balanced-1.1.1/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007fb1e98e1168@/Users/ben/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/balanced-1.1.1/lib/balanced/utils.rb:6 (lambda)>, "reversals"=> #<Proc:0x007fb1e8993288@/Users/ben/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/balanced-1.1.1/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.2.1 | scenarios/card_credit/ruby.mako |