Sha256: f4b0a101d241223289e025380c7499c4fa6df60f03138e8712e0baeeea146271

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

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

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

refunds = Balanced::Refund.all
% elif mode == 'response':
[#<Balanced::Refund:0x007fdc9c09f788
  @attributes=
   {"amount"=>3000,
    "created_at"=>"2014-01-27T22:58:11.375665Z",
    "currency"=>"USD",
    "description"=>"Refund for Order #1111",
    "href"=>"/refunds/RF3RklPuFgsgI50UuYtr4g6I",
    "id"=>"RF3RklPuFgsgI50UuYtr4g6I",
    "links"=>
     {"debit"=>"WD3MKNxNTKBGgA7mX50yogiu", "dispute"=>nil, "order"=>nil},
    "meta"=>
     {"fulfillment.item.condition"=>"OK",
      "merchant.feedback"=>"positive",
      "user.refund_reason"=>"not happy with product"},
    "status"=>"succeeded",
    "transaction_number"=>"RF383-088-7077",
    "updated_at"=>"2014-01-27T22:58:12.115131Z"},
  @hyperlinks=
   {"debit"=>
     #<Proc:0x007fdc9c097d58/lib/balanced/resources/resource.rb:60 (lambda)>,
    "dispute"=>
     #<Proc:0x007fdc9c097290/lib/balanced/utils.rb:6 (lambda)>,
    "events"=>
     #<Proc:0x007fdc9c0945b8/lib/balanced/utils.rb:6 (lambda)>,
    "order"=>
     #<Proc:0x007fdc9c08c890/lib/balanced/utils.rb:6 (lambda)>}>]

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

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