scenarios/order_update/ruby.mako in balanced-1.0.1 vs scenarios/order_update/ruby.mako in balanced-1.0.2
- old
+ new
@@ -1,50 +1,50 @@
% if mode == 'definition':
Balanced::Order.save
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
+Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
-order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
+order = Balanced::Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr')
order.description = 'New description for order'
order.meta = {
'anykey' => 'valuegoeshere',
'product.id' => '1234567890'
}
order.save
% elif mode == 'response':
-#<Balanced::Order:0x007fa4e3201838
+#<Balanced::Order:0x007fa93b7e6058
@attributes=
{"amount"=>0,
"amount_escrowed"=>0,
- "created_at"=>"2014-03-06T19:23:39.207291Z",
+ "created_at"=>"2014-04-25T20:18:43.120760Z",
"currency"=>"USD",
"delivery_address"=>
{"city"=>nil,
"country_code"=>nil,
"line1"=>nil,
"line2"=>nil,
"postal_code"=>nil,
"state"=>nil},
"description"=>"New description for order",
- "href"=>"/orders/OR6wcEVkOymvs4PairiGEcIx",
- "id"=>"OR6wcEVkOymvs4PairiGEcIx",
- "links"=>{"merchant"=>"CU64R7DS6DwuXYVg9RTskFK8"},
+ "href"=>"/orders/OR6d55qbtKx5aWSURkQeodRr",
+ "id"=>"OR6d55qbtKx5aWSURkQeodRr",
+ "links"=>{"merchant"=>"CU4MnFEab304anOtUtEu5hkN"},
"meta"=>{"anykey"=>"valuegoeshere", "product.id"=>"1234567890"},
- "updated_at"=>"2014-03-06T19:23:42.673919Z"},
+ "updated_at"=>"2014-04-25T20:18:46.797463Z"},
@hyperlinks=
{"buyers"=>
- #<Proc:0x007fa4e31ca748/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b7dfe60/lib/balanced/utils.rb:6 (lambda)>,
"credits"=>
- #<Proc:0x007fa4e31b91a0/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b7ddfe8/lib/balanced/utils.rb:6 (lambda)>,
"debits"=>
- #<Proc:0x007fa4e31a0d30/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b7dc148/lib/balanced/utils.rb:6 (lambda)>,
"merchant"=>
- #<Proc:0x007fa4e48a7b00/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007fa93b7d66a8/lib/balanced/resources/resource.rb:60 (lambda)>,
"refunds"=>
- #<Proc:0x007fa4e319b060/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b7d4830/lib/balanced/utils.rb:6 (lambda)>,
"reversals"=>
- #<Proc:0x007fa4e488e510/lib/balanced/utils.rb:6 (lambda)>}>
+ #<Proc:0x007fa93b7ce908/lib/balanced/utils.rb:6 (lambda)>}>
% endif