scenarios/card_update/ruby.mako in balanced-0.8.2 vs scenarios/card_update/ruby.mako in balanced-1.0.beta1

- old
+ new

@@ -1,16 +1,57 @@ % if mode == 'definition': -Balanced::Card.save() +Balanced::Card.save -% else: +% elif mode == 'request': require 'balanced' -Balanced.configure('8c3aeeb80e9e11e38901026ba7f8ec28') +Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = Balanced::Card.find('/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi') +card = Balanced::Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.meta = { 'facebook.user_id' => '0192837465', 'my-own-customer-id' => '12345', 'twitter.id' => '1234987650' } card.save + +% elif mode == 'response': +#<Balanced::Card:0x007fdc9c2f0438 + @attributes= + {"address"=> + {"city"=>nil, + "country_code"=>nil, + "line1"=>nil, + "line2"=>nil, + "postal_code"=>nil, + "state"=>nil}, + "avs_postal_match"=>nil, + "avs_result"=>nil, + "avs_street_match"=>nil, + "brand"=>"MasterCard", + "created_at"=>"2014-01-27T22:56:55.656375Z", + "cvv"=>nil, + "cvv_match"=>nil, + "cvv_result"=>nil, + "expiration_month"=>12, + "expiration_year"=>2020, + "fingerprint"=> + "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href"=>"/cards/CC2uc8iPDjgyxOXHVtnZloyI", + "id"=>"CC2uc8iPDjgyxOXHVtnZloyI", + "is_verified"=>true, + "links"=>{"customer"=>nil}, + "meta"=> + {"facebook.user_id"=>"0192837465", + "my-own-customer-id"=>"12345", + "twitter.id"=>"1234987650"}, + "name"=>nil, + "number"=>"xxxxxxxxxxxx5100", + "updated_at"=>"2014-01-27T22:57:02.195769Z"}, + @hyperlinks= + {"card_holds"=> + #<Proc:0x007fdc9c2f9e70/lib/balanced/utils.rb:6 (lambda)>, + "customer"=> + #<Proc:0x007fdc9c2f9498/lib/balanced/utils.rb:6 (lambda)>, + "debits"=> + #<Proc:0x007fdc9c3035b0/lib/balanced/utils.rb:6 (lambda)>}> % endif