Sha256: 0cad931573dddcdafc80f9eb1166a9d807fd4b4121f9a65603868a94793138ee

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

% if mode == 'definition':
Balanced::CardHold.void

% elif mode == 'request':
require 'balanced'
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')

card_hold = Balanced::CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m')
card_hold.void
% elif mode == 'response':
#<Balanced::CardHold:0x007fa4e4965d08
 @attributes=
  {"amount"=>5000,
   "created_at"=>"2014-03-06T19:22:51.758438Z",
   "currency"=>"USD",
   "description"=>"Some descriptive text for the debit in the dashboard",
   "expires_at"=>"2014-03-13T19:22:52.154430Z",
   "failure_reason"=>nil,
   "failure_reason_code"=>nil,
   "href"=>"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m",
   "id"=>"HL5Ig892KbmJyDqED5fYsJ8m",
   "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
   "meta"=>{},
   "status"=>"succeeded",
   "transaction_number"=>"HL671-938-5651",
   "updated_at"=>"2014-03-06T19:22:52.865612Z",
   "voided_at"=>"2014-03-06T19:22:52.865616Z"},
 @hyperlinks=
  {"card"=>
    #<Proc:0x007fa4e496e368/lib/balanced/resources/resource.rb:60 (lambda)>,
   "debit"=>
    #<Proc:0x007fa4e496f628/lib/balanced/utils.rb:6 (lambda)>,
   "debits"=>
    #<Proc:0x007fa4e496cb80/lib/balanced/utils.rb:6 (lambda)>,
   "events"=>
    #<Proc:0x007fa4e4976928/lib/balanced/utils.rb:6 (lambda)>}>

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.0.1 scenarios/card_hold_void/ruby.mako