recurly 0.4.8 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (114) hide show
  1. data/README.md +2 -2
  2. data/lib/recurly.rb +2 -1
  3. data/lib/recurly/account.rb +2 -2
  4. data/lib/recurly/base.rb +30 -12
  5. data/lib/recurly/billing_info.rb +2 -2
  6. data/lib/recurly/exceptions.rb +13 -0
  7. data/lib/recurly/plan.rb +1 -1
  8. data/lib/recurly/subscription.rb +2 -2
  9. data/lib/recurly/transaction.rb +2 -2
  10. data/lib/recurly/transparent.rb +1 -1
  11. data/lib/recurly/verification.rb +77 -0
  12. data/lib/recurly/version.rb +1 -1
  13. data/spec/config/recurly.yml +4 -4
  14. data/spec/integration/account_spec.rb +12 -0
  15. data/spec/integration/billing_info_spec.rb +2 -2
  16. data/spec/integration/charge_spec.rb +0 -1
  17. data/spec/integration/plan_spec.rb +2 -2
  18. data/spec/support/vcr.rb +2 -2
  19. data/spec/unit/verification_spec.rb +76 -0
  20. data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
  21. data/spec/vcr/account/close/1313708721.yml +104 -0
  22. data/spec/vcr/account/create-blank/1313708721.yml +33 -0
  23. data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
  24. data/spec/vcr/account/create-min/1313708721.yml +38 -0
  25. data/spec/vcr/account/create/1313708721.yml +39 -0
  26. data/spec/vcr/account/find/1313708721.yml +107 -0
  27. data/spec/vcr/account/list/1313708721.yml +878 -0
  28. data/spec/vcr/account/update/1313708721.yml +158 -0
  29. data/spec/vcr/billing/create/1313708721.yml +118 -0
  30. data/spec/vcr/billing/destroy/1313708721.yml +177 -0
  31. data/spec/vcr/billing/errors/1313708721.yml +71 -0
  32. data/spec/vcr/billing/find/1313708721.yml +156 -0
  33. data/spec/vcr/billing/update/1313708721.yml +159 -0
  34. data/spec/vcr/charge/create/1313708721.yml +153 -0
  35. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
  36. data/spec/vcr/charge/list-all/1313708721.yml +198 -0
  37. data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
  38. data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
  39. data/spec/vcr/charge/lookup/1313708721.yml +112 -0
  40. data/spec/vcr/coupon/create/1296774903.yml +96 -170
  41. data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
  42. data/spec/vcr/credit/create/1313708090.yml +112 -0
  43. data/spec/vcr/credit/delete/1313708090.yml +171 -0
  44. data/spec/vcr/credit/list/1313708090.yml +198 -0
  45. data/spec/vcr/credit/lookup/1313708090.yml +112 -0
  46. data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
  47. data/spec/vcr/invoice/create/1296674173.yml +182 -328
  48. data/spec/vcr/invoice/list/1296674173.yml +255 -442
  49. data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
  50. data/spec/vcr/plan/all.yml +210 -253
  51. data/spec/vcr/plan/find.yml +115 -187
  52. data/spec/vcr/plan/update.yml +105 -187
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
  56. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
  57. data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
  58. data/spec/vcr/subscription/change1/1296674173.yml +237 -402
  59. data/spec/vcr/subscription/change2/1296674173.yml +238 -402
  60. data/spec/vcr/subscription/create/1296674173.yml +123 -221
  61. data/spec/vcr/subscription/find/1296674173.yml +161 -279
  62. data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
  63. data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
  64. data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
  65. data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
  66. data/spec/vcr/transaction/all/1311126815.yml +215 -0
  67. data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
  68. data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
  69. data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
  70. data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
  71. data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
  72. data/spec/vcr/transaction/refund/1311126815.yml +163 -0
  73. data/spec/vcr/transaction/void/1311126815.yml +215 -0
  74. data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
  75. metadata +207 -154
  76. data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
  77. data/spec/vcr/account/close/1296674173.yml +0 -164
  78. data/spec/vcr/account/create-blank/1296674173.yml +0 -52
  79. data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
  80. data/spec/vcr/account/create-min/1296674173.yml +0 -66
  81. data/spec/vcr/account/create/1296674173.yml +0 -70
  82. data/spec/vcr/account/find/1296674173.yml +0 -169
  83. data/spec/vcr/account/list/1296674173.yml +0 -55
  84. data/spec/vcr/account/update/1296674173.yml +0 -258
  85. data/spec/vcr/billing/create/1296690812.yml +0 -215
  86. data/spec/vcr/billing/destroy/1296690812.yml +0 -294
  87. data/spec/vcr/billing/find/1296690812.yml +0 -280
  88. data/spec/vcr/billing/update/1296690812.yml +0 -297
  89. data/spec/vcr/charge/create/1296674173.yml +0 -262
  90. data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
  91. data/spec/vcr/charge/list-all/1296674173.yml +0 -316
  92. data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
  93. data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
  94. data/spec/vcr/charge/lookup/1296674173.yml +0 -180
  95. data/spec/vcr/coupon/create/1296688818.yml +0 -183
  96. data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
  97. data/spec/vcr/credit/create/1296674173.yml +0 -121
  98. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  99. data/spec/vcr/credit/list/1296674173.yml +0 -121
  100. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  101. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  102. data/spec/vcr/transaction/all/1296674173.yml +0 -389
  103. data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
  104. data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
  105. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  106. data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
  107. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  108. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  109. data/spec/vcr/transaction/void/1296674173.yml +0 -352
  110. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  111. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  112. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  113. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  114. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,169 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-get-1296674173</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
21
- - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
30
- code: 201
31
- message: "Created "
32
- headers:
33
- cache-control:
34
- - no-cache
35
- location:
36
- - http://litle-test.recurly.local:3000/accounts/account-get-1296674173
37
- x-runtime:
38
- - "532"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "577"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:16:47 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=2ff5a40d04fa1a8439dbeb3b74c57dc3483985bec48eb2949034a3dd98b4a2bb09572b4557e4be91c254147c2831e07e637ab64b112041f44999d0c5e9c54de3%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>account-get-1296674173</id>
57
- <account_code>account-get-1296674173</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
73
- method: :get
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-get-1296674173.xml
75
- body:
76
- headers:
77
- authorization:
78
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
79
- accept:
80
- - application/xml
81
- accept-encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- user-agent:
84
- - Ruby
85
- connection:
86
- - close
87
- response: !ruby/struct:VCR::Response
88
- status: !ruby/struct:VCR::ResponseStatus
89
- code: 200
90
- message: "OK "
91
- headers:
92
- x-runtime:
93
- - "170"
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"4a257ead827ac88446de7c9d9e451ba8\""
98
- cache-control:
99
- - private, max-age=0, must-revalidate
100
- content-length:
101
- - "577"
102
- server:
103
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
- date:
105
- - Thu, 03 Feb 2011 22:16:48 GMT
106
- connection:
107
- - close
108
- set-cookie:
109
- - _recurly_session=027e65ec933ac6c7f44f8cda56e82d15; domain=.recurly.local; path=/; HttpOnly
110
- body: |
111
- <?xml version="1.0" encoding="UTF-8"?>
112
- <account>
113
- <id>account-get-1296674173</id>
114
- <account_code>account-get-1296674173</account_code>
115
- <username></username>
116
- <email>verena@test.com</email>
117
- <first_name>Verena</first_name>
118
- <last_name>Test</last_name>
119
- <company_name>Recurly Ruby Gem</company_name>
120
- <balance_in_cents type="integer">0</balance_in_cents>
121
- <closed type="boolean">false</closed>
122
- <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
123
- <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
124
- <state>active</state>
125
- </account>
126
-
127
- http_version: "1.1"
128
- - !ruby/struct:VCR::HTTPInteraction
129
- request: !ruby/struct:VCR::Request
130
- method: :get
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-that-doesnt-exist.xml
132
- body:
133
- headers:
134
- authorization:
135
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
136
- accept:
137
- - application/xml
138
- accept-encoding:
139
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
- user-agent:
141
- - Ruby
142
- connection:
143
- - close
144
- response: !ruby/struct:VCR::Response
145
- status: !ruby/struct:VCR::ResponseStatus
146
- code: 404
147
- message: "Not Found "
148
- headers:
149
- cache-control:
150
- - no-cache
151
- content-type:
152
- - application/xml; charset=utf-8
153
- content-length:
154
- - "93"
155
- server:
156
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
157
- date:
158
- - Thu, 03 Feb 2011 22:16:50 GMT
159
- connection:
160
- - close
161
- set-cookie:
162
- - _recurly_session=278a0f7034fdbdec11da7be3757db09a; domain=.recurly.local; path=/; HttpOnly
163
- body: |
164
- <?xml version="1.0" encoding="UTF-8"?>
165
- <errors>
166
- <error>Account not found</error>
167
- </errors>
168
-
169
- http_version: "1.1"
@@ -1,55 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-list-num-0-1296674173</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
21
- - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
30
- code: 422
31
- message: ""
32
- headers:
33
- cache-control:
34
- - no-cache
35
- x-runtime:
36
- - "231"
37
- content-type:
38
- - application/xml; charset=utf-8
39
- content-length:
40
- - "132"
41
- server:
42
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
43
- date:
44
- - Thu, 03 Feb 2011 22:16:52 GMT
45
- connection:
46
- - close
47
- set-cookie:
48
- - _recurly_session=059de0eda578e161e399bc15211f0985; domain=.recurly.local; path=/; HttpOnly
49
- body: |
50
- <?xml version="1.0" encoding="UTF-8"?>
51
- <errors>
52
- <error field="account_code">account code has already been taken</error>
53
- </errors>
54
-
55
- http_version: "1.1"
@@ -1,258 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-update-1296674173</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
21
- - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
30
- code: 201
31
- message: "Created "
32
- headers:
33
- cache-control:
34
- - no-cache
35
- location:
36
- - http://litle-test.recurly.local:3000/accounts/account-update-1296674173
37
- x-runtime:
38
- - "536"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "583"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:16:54 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=4dede9519c2622503ee70b1f7dac15ffc1ee26dc1bc26ffdf4dfcad5d29368f271dc9b018e24724ad025b70cd2880298eb27195b4f2a1910562587472719d3e2%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=e4ec180344371bf896569dd2c08892ed; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>account-update-1296674173</id>
57
- <account_code>account-update-1296674173</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
73
- method: :get
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
75
- body:
76
- headers:
77
- authorization:
78
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
79
- accept:
80
- - application/xml
81
- accept-encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- user-agent:
84
- - Ruby
85
- connection:
86
- - close
87
- response: !ruby/struct:VCR::Response
88
- status: !ruby/struct:VCR::ResponseStatus
89
- code: 200
90
- message: "OK "
91
- headers:
92
- x-runtime:
93
- - "172"
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"5160ee9dd2cbcec96e15bc05ab49eb7b\""
98
- cache-control:
99
- - private, max-age=0, must-revalidate
100
- content-length:
101
- - "583"
102
- server:
103
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
- date:
105
- - Thu, 03 Feb 2011 22:16:56 GMT
106
- connection:
107
- - close
108
- set-cookie:
109
- - _recurly_session=ec4be8a0c89bdae3619cdf65c129001c; domain=.recurly.local; path=/; HttpOnly
110
- body: |
111
- <?xml version="1.0" encoding="UTF-8"?>
112
- <account>
113
- <id>account-update-1296674173</id>
114
- <account_code>account-update-1296674173</account_code>
115
- <username></username>
116
- <email>verena@test.com</email>
117
- <first_name>Verena</first_name>
118
- <last_name>Test</last_name>
119
- <company_name>Recurly Ruby Gem</company_name>
120
- <balance_in_cents type="integer">0</balance_in_cents>
121
- <closed type="boolean">false</closed>
122
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
123
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
124
- <state>active</state>
125
- </account>
126
-
127
- http_version: "1.1"
128
- - !ruby/struct:VCR::HTTPInteraction
129
- request: !ruby/struct:VCR::Request
130
- method: :put
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
132
- body: |
133
- <?xml version="1.0" encoding="UTF-8"?>
134
- <account>
135
- <id>account-update-1296674173</id>
136
- <account-code>account-update-1296674173</account-code>
137
- <username type="yaml" nil="true"></username>
138
- <email>verena@test.com</email>
139
- <first-name>Verena</first-name>
140
- <last-name>Update Test</last-name>
141
- <company-name>Recurly Ruby Gem -- Update</company-name>
142
- <balance-in-cents type="integer">0</balance-in-cents>
143
- <closed type="boolean">false</closed>
144
- <hosted-login-token>8684435f0f6c4b759b9860be7555b84e</hosted-login-token>
145
- <created-at type="datetime">2011-02-03T22:16:54Z</created-at>
146
- <state>active</state>
147
- <accept-language type="yaml" nil="true"></accept-language>
148
- </account>
149
-
150
- headers:
151
- authorization:
152
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
153
- content-type:
154
- - application/xml
155
- accept:
156
- - "*/*"
157
- user-agent:
158
- - Ruby
159
- connection:
160
- - close
161
- response: !ruby/struct:VCR::Response
162
- status: !ruby/struct:VCR::ResponseStatus
163
- code: 200
164
- message: "OK "
165
- headers:
166
- x-runtime:
167
- - "318"
168
- content-type:
169
- - application/xml; charset=utf-8
170
- etag:
171
- - "\"679edca58ee6f6f8a43456f7cb298f94\""
172
- cache-control:
173
- - private, max-age=0, must-revalidate
174
- content-length:
175
- - "600"
176
- server:
177
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
178
- date:
179
- - Thu, 03 Feb 2011 22:16:57 GMT
180
- connection:
181
- - close
182
- set-cookie:
183
- - _recurly_session=e35d8243afb00fde2075d4a6528c8f6e; domain=.recurly.local; path=/; HttpOnly
184
- body: |
185
- <?xml version="1.0" encoding="UTF-8"?>
186
- <account>
187
- <id>account-update-1296674173</id>
188
- <account_code>account-update-1296674173</account_code>
189
- <username></username>
190
- <email>verena@test.com</email>
191
- <first_name>Verena</first_name>
192
- <last_name>Update Test</last_name>
193
- <company_name>Recurly Ruby Gem -- Update</company_name>
194
- <balance_in_cents type="integer">0</balance_in_cents>
195
- <closed type="boolean">false</closed>
196
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
197
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
198
- <state>active</state>
199
- </account>
200
-
201
- http_version: "1.1"
202
- - !ruby/struct:VCR::HTTPInteraction
203
- request: !ruby/struct:VCR::Request
204
- method: :get
205
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
206
- body:
207
- headers:
208
- authorization:
209
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
210
- accept:
211
- - application/xml
212
- accept-encoding:
213
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
214
- user-agent:
215
- - Ruby
216
- connection:
217
- - close
218
- response: !ruby/struct:VCR::Response
219
- status: !ruby/struct:VCR::ResponseStatus
220
- code: 200
221
- message: "OK "
222
- headers:
223
- x-runtime:
224
- - "178"
225
- content-type:
226
- - application/xml; charset=utf-8
227
- etag:
228
- - "\"679edca58ee6f6f8a43456f7cb298f94\""
229
- cache-control:
230
- - private, max-age=0, must-revalidate
231
- content-length:
232
- - "600"
233
- server:
234
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
235
- date:
236
- - Thu, 03 Feb 2011 22:16:59 GMT
237
- connection:
238
- - close
239
- set-cookie:
240
- - _recurly_session=3df2421545148921ffc3c3703df2ddf9; domain=.recurly.local; path=/; HttpOnly
241
- body: |
242
- <?xml version="1.0" encoding="UTF-8"?>
243
- <account>
244
- <id>account-update-1296674173</id>
245
- <account_code>account-update-1296674173</account_code>
246
- <username></username>
247
- <email>verena@test.com</email>
248
- <first_name>Verena</first_name>
249
- <last_name>Update Test</last_name>
250
- <company_name>Recurly Ruby Gem -- Update</company_name>
251
- <balance_in_cents type="integer">0</balance_in_cents>
252
- <closed type="boolean">false</closed>
253
- <hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
254
- <created_at type="datetime">2011-02-03T22:16:54Z</created_at>
255
- <state>active</state>
256
- </account>
257
-
258
- http_version: "1.1"