Sha256: d70a2a092aff7e6f8b55d794c89eec3ae986670d3664f38d88d3355ea2971402
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
% if mode == 'definition': Balanced::CardHold.save % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') card_hold.description = 'update this description' card_hold.meta = { 'holding.for' => 'user1', 'meaningful.key' => 'some.value' } card_hold.save % elif mode == 'response': #<Balanced::CardHold:0x007ff2bdb5a600 @attributes= {"amount"=>5000, "created_at"=>"2014-03-06T19:22:44.421804Z", "currency"=>"USD", "description"=>"update this description", "expires_at"=>"2014-03-13T19:22:44.661981Z", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT", "id"=>"HL5wAfv8JaMsEn9idXrLZZZT", "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil}, "meta"=>{"holding.for"=>"user1", "meaningful.key"=>"some.value"}, "status"=>"succeeded", "transaction_number"=>"HL116-606-6128", "updated_at"=>"2014-03-06T19:22:48.496101Z", "voided_at"=>nil}, @hyperlinks= {"card"=> #<Proc:0x007ff2bdb58058/lib/balanced/resources/resource.rb:60 (lambda)>, "debit"=> #<Proc:0x007ff2bdb53e90/lib/balanced/utils.rb:6 (lambda)>, "debits"=> #<Proc:0x007ff2bdb51820/lib/balanced/utils.rb:6 (lambda)>, "events"=> #<Proc:0x007ff2bdb4bb00/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0 | scenarios/card_hold_update/ruby.mako |