scenarios/order_update/ruby.mako in balanced-1.0.beta1 vs scenarios/order_update/ruby.mako in balanced-1.0
- old
+ new
@@ -1,50 +1,50 @@
% if mode == 'definition':
Balanced::Order.save
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
+Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
-order = Balanced::Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY')
+order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
order.description = 'New description for order'
order.meta = {
'anykey' => 'valuegoeshere',
'product.id' => '1234567890'
}
order.save
% elif mode == 'response':
-#<Balanced::Order:0x007fdc9c11c5a8
+#<Balanced::Order:0x007ff2bdaa41c0
@attributes=
{"amount"=>0,
"amount_escrowed"=>0,
- "created_at"=>"2014-01-27T22:58:01.115720Z",
+ "created_at"=>"2014-03-06T19:23:39.207291Z",
"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/OR3FOihZa7lMHdAP5p8BJZVY",
- "id"=>"OR3FOihZa7lMHdAP5p8BJZVY",
- "links"=>{"merchant"=>"CU3eeasZ9yQ86uzzIYZkrPGg"},
+ "href"=>"/orders/OR6wcEVkOymvs4PairiGEcIx",
+ "id"=>"OR6wcEVkOymvs4PairiGEcIx",
+ "links"=>{"merchant"=>"CU64R7DS6DwuXYVg9RTskFK8"},
"meta"=>{"anykey"=>"valuegoeshere", "product.id"=>"1234567890"},
- "updated_at"=>"2014-01-27T22:58:05.657463Z"},
+ "updated_at"=>"2014-03-06T19:23:42.673919Z"},
@hyperlinks=
{"buyers"=>
- #<Proc:0x007fdc9c114470/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2bda9df28/lib/balanced/utils.rb:6 (lambda)>,
"credits"=>
- #<Proc:0x007fdc9c10e700/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2bda942e8/lib/balanced/utils.rb:6 (lambda)>,
"debits"=>
- #<Proc:0x007fdc9c10c0b8/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2bc8cd050/lib/balanced/utils.rb:6 (lambda)>,
"merchant"=>
- #<Proc:0x007fdc9c106988/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007ff2bc8c77b8/lib/balanced/resources/resource.rb:60 (lambda)>,
"refunds"=>
- #<Proc:0x007fdc9c104200/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2bc8c4810/lib/balanced/utils.rb:6 (lambda)>,
"reversals"=>
- #<Proc:0x007fdc9c0f67b8/lib/balanced/utils.rb:6 (lambda)>}>
+ #<Proc:0x007ff2bc8be6e0/lib/balanced/utils.rb:6 (lambda)>}>
% endif