Sha256: 74d3f97e953dc5bed9ed637bc15c90f984fbf09c2d35ff592b25a9a13eee8f5f

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-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')

refunds = Balanced::Refund.all
% elif mode == 'response':
[#<Balanced::Refund:0x007ff2bd9dcb48
  @attributes=
   {"amount"=>3000,
    "created_at"=>"2014-03-06T19:23:46.176138Z",
    "currency"=>"USD",
    "description"=>"Refund for Order #1111",
    "href"=>"/refunds/RF6HsnqferSuES9VZEWrthG2",
    "id"=>"RF6HsnqferSuES9VZEWrthG2",
    "links"=>
     {"debit"=>"WD6BKYhbRzlRhfKSE1DcpqS5", "dispute"=>nil, "order"=>nil},
    "meta"=>
     {"fulfillment.item.condition"=>"OK",
      "merchant.feedback"=>"positive",
      "user.refund_reason"=>"not happy with product"},
    "status"=>"succeeded",
    "transaction_number"=>"RF348-549-7723",
    "updated_at"=>"2014-03-06T19:23:48.234584Z"},
  @hyperlinks=
   {"debit"=>
     #<Proc:0x007ff2bd9d68d8/lib/balanced/resources/resource.rb:60 (lambda)>,
    "dispute"=>
     #<Proc:0x007ff2bd9d5ac8/lib/balanced/utils.rb:6 (lambda)>,
    "events"=>
     #<Proc:0x007ff2bd9cfa38/lib/balanced/utils.rb:6 (lambda)>,
    "order"=>
     #<Proc:0x007ff2bd9ceb88/lib/balanced/utils.rb:6 (lambda)>}>]

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

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