Sha256: 8dac2d28588293bcdcb548117f9aed27a5a2b82c3e7b473c4a89ec7886b0beaa

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

% if mode == 'definition':
Balanced::Reversal.all

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

reversals = Balanced::Reversal.all
% elif mode == 'response':
[#<Balanced::Reversal:0x007fdc9b129420
  @attributes=
   {"amount"=>3000,
    "created_at"=>"2014-01-27T22:58:21.214829Z",
    "currency"=>"USD",
    "description"=>"Reversal for Order #1111",
    "failure_reason"=>nil,
    "failure_reason_code"=>nil,
    "href"=>"/reversals/RV42n8M9XZWna427oPDDi4RG",
    "id"=>"RV42n8M9XZWna427oPDDi4RG",
    "links"=>{"credit"=>"CR40neytmVG2HDBp1opfF7sY", "order"=>nil},
    "meta"=>
     {"fulfillment.item.condition"=>"OK",
      "merchant.feedback"=>"positive",
      "user.refund_reason"=>"not happy with product"},
    "status"=>"succeeded",
    "transaction_number"=>"RV219-169-0008",
    "updated_at"=>"2014-01-27T22:58:22.190749Z"},
  @hyperlinks=
   {"credit"=>
     #<Proc:0x007fdc9b103c48/lib/balanced/resources/resource.rb:60 (lambda)>,
    "events"=>
     #<Proc:0x007fdc9b0aef68/lib/balanced/utils.rb:6 (lambda)>,
    "order"=>
     #<Proc:0x007fdc9b09f4c8/lib/balanced/utils.rb:6 (lambda)>}>]

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.0.beta1 scenarios/reversal_list/ruby.mako