scenarios/card_update/ruby.mako in balanced-1.0.1 vs scenarios/card_update/ruby.mako in balanced-1.0.2
- old
+ new
@@ -1,22 +1,22 @@
% if mode == 'definition':
Balanced::Card.save
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
+Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
-card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
+card = Balanced::Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N')
card.meta = {
'facebook.user_id' => '0192837465',
'my-own-customer-id' => '12345',
'twitter.id' => '1234987650'
}
card.save
% elif mode == 'response':
-#<Balanced::Card:0x007fa4e327e9a0
+#<Balanced::Card:0x007fa93b5e48b8
@attributes=
{"address"=>
{"city"=>nil,
"country_code"=>nil,
"line1"=>nil,
@@ -25,33 +25,33 @@
"state"=>nil},
"avs_postal_match"=>nil,
"avs_result"=>nil,
"avs_street_match"=>nil,
"brand"=>"MasterCard",
- "created_at"=>"2014-03-06T19:22:55.617351Z",
+ "created_at"=>"2014-04-25T20:09:52.175221Z",
"cvv"=>"xxx",
"cvv_match"=>"yes",
"cvv_result"=>"Match",
"expiration_month"=>12,
"expiration_year"=>2020,
"fingerprint"=>
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
- "href"=>"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O",
- "id"=>"CC5Buki6e4Kg4bDVZ3OSfQ8O",
+ "href"=>"/cards/CC4mYF7dj7X6OA2K5F0Qyb4N",
+ "id"=>"CC4mYF7dj7X6OA2K5F0Qyb4N",
"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-03-06T19:22:59.186980Z"},
+ "updated_at"=>"2014-04-25T20:09:55.802789Z"},
@hyperlinks=
{"card_holds"=>
- #<Proc:0x007fa4e3287668/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b5cee78/lib/balanced/utils.rb:6 (lambda)>,
"customer"=>
- #<Proc:0x007fa4e3286998/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93b5c2ee8/lib/balanced/utils.rb:6 (lambda)>,
"debits"=>
- #<Proc:0x007fa4e328e508/lib/balanced/utils.rb:6 (lambda)>}>
+ #<Proc:0x007fa93b5b3d80/lib/balanced/utils.rb:6 (lambda)>}>
% endif