Sha256: 524f5483fc01053e0d9ba2e2f2f8fec95e45f42846f3a8b396bf2c0ad6371fa9
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
% if mode == 'definition': Balanced::Order.save % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') 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:0x007fa93b7e6058 @attributes= {"amount"=>0, "amount_escrowed"=>0, "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/OR6d55qbtKx5aWSURkQeodRr", "id"=>"OR6d55qbtKx5aWSURkQeodRr", "links"=>{"merchant"=>"CU4MnFEab304anOtUtEu5hkN"}, "meta"=>{"anykey"=>"valuegoeshere", "product.id"=>"1234567890"}, "updated_at"=>"2014-04-25T20:18:46.797463Z"}, @hyperlinks= {"buyers"=> #<Proc:0x007fa93b7dfe60/lib/balanced/utils.rb:6 (lambda)>, "credits"=> #<Proc:0x007fa93b7ddfe8/lib/balanced/utils.rb:6 (lambda)>, "debits"=> #<Proc:0x007fa93b7dc148/lib/balanced/utils.rb:6 (lambda)>, "merchant"=> #<Proc:0x007fa93b7d66a8/lib/balanced/resources/resource.rb:60 (lambda)>, "refunds"=> #<Proc:0x007fa93b7d4830/lib/balanced/utils.rb:6 (lambda)>, "reversals"=> #<Proc:0x007fa93b7ce908/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.2 | scenarios/order_update/ruby.mako |