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,280 +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>billing-find-1296690812</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/billing-find-1296690812
37
- x-runtime:
38
- - "630"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "579"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:17:53 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=0cd5909a62abe85ef618f92afb16967f99a123ddb24bb60c666636148a4ebfdbce2e4f697570572ea6242df3b7ec611d89eeaac7d5330aaf1f224077543c9d5b%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=5d89afebae174e05d5c84681f22f274f; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>billing-find-1296690812</id>
57
- <account_code>billing-find-1296690812</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>13c39c85eef344f2ad86ae6b3a79f52d</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:17:53Z</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: :put
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <billing-info>
78
- <address1>123 Test St</address1>
79
- <city>San Francisco</city>
80
- <state>CA</state>
81
- <zip>94115</zip>
82
- <country>US</country>
83
- <credit-card>
84
- <number>4111111111111111</number>
85
- <year type="integer">2012</year>
86
- <month type="integer">2</month>
87
- <verification-value>123</verification-value>
88
- </credit-card>
89
- <account-code>billing-find-1296690812</account-code>
90
- <first-name>Verena</first-name>
91
- <last-name>Test</last-name>
92
- </billing-info>
93
-
94
- headers:
95
- authorization:
96
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
- content-type:
98
- - application/xml
99
- accept:
100
- - "*/*"
101
- user-agent:
102
- - Ruby
103
- connection:
104
- - close
105
- response: !ruby/struct:VCR::Response
106
- status: !ruby/struct:VCR::ResponseStatus
107
- code: 200
108
- message: "OK "
109
- headers:
110
- x-runtime:
111
- - "1466"
112
- content-type:
113
- - application/xml; charset=utf-8
114
- etag:
115
- - "\"72b1fbf237062feb38cba92d8cd01930\""
116
- cache-control:
117
- - private, max-age=0, must-revalidate
118
- content-length:
119
- - "638"
120
- server:
121
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
- date:
123
- - Thu, 03 Feb 2011 22:17:56 GMT
124
- connection:
125
- - close
126
- set-cookie:
127
- - _recurly_session=8fc23cef06dd74269860cdb10008bf28; domain=.recurly.local; path=/; HttpOnly
128
- body: |
129
- <?xml version="1.0" encoding="UTF-8"?>
130
- <billing_info>
131
- <account_code>billing-find-1296690812</account_code>
132
- <first_name>Verena</first_name>
133
- <last_name>Test</last_name>
134
- <address1>123 Test St</address1>
135
- <address2></address2>
136
- <city>San Francisco</city>
137
- <state>CA</state>
138
- <country>US</country>
139
- <zip>94115</zip>
140
- <phone></phone>
141
- <vat_number></vat_number>
142
- <ip_address></ip_address>
143
- <credit_card>
144
- <type>visa</type>
145
- <last_four>1111</last_four>
146
- <month type="integer">2</month>
147
- <year type="integer">2012</year>
148
- </credit_card>
149
- <updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
150
- </billing_info>
151
-
152
- http_version: "1.1"
153
- - !ruby/struct:VCR::HTTPInteraction
154
- request: !ruby/struct:VCR::Request
155
- method: :get
156
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
157
- body:
158
- headers:
159
- authorization:
160
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
161
- accept:
162
- - application/xml
163
- accept-encoding:
164
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
165
- user-agent:
166
- - Ruby
167
- connection:
168
- - close
169
- response: !ruby/struct:VCR::Response
170
- status: !ruby/struct:VCR::ResponseStatus
171
- code: 200
172
- message: "OK "
173
- headers:
174
- x-runtime:
175
- - "80"
176
- content-type:
177
- - application/xml; charset=utf-8
178
- etag:
179
- - "\"72b1fbf237062feb38cba92d8cd01930\""
180
- cache-control:
181
- - private, max-age=0, must-revalidate
182
- content-length:
183
- - "638"
184
- server:
185
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
186
- date:
187
- - Thu, 03 Feb 2011 22:17:58 GMT
188
- connection:
189
- - close
190
- set-cookie:
191
- - _recurly_session=9b66ed7036209b06f77131dfe6ac8e47; domain=.recurly.local; path=/; HttpOnly
192
- body: |
193
- <?xml version="1.0" encoding="UTF-8"?>
194
- <billing_info>
195
- <account_code>billing-find-1296690812</account_code>
196
- <first_name>Verena</first_name>
197
- <last_name>Test</last_name>
198
- <address1>123 Test St</address1>
199
- <address2></address2>
200
- <city>San Francisco</city>
201
- <state>CA</state>
202
- <country>US</country>
203
- <zip>94115</zip>
204
- <phone></phone>
205
- <vat_number></vat_number>
206
- <ip_address></ip_address>
207
- <credit_card>
208
- <type>visa</type>
209
- <last_four>1111</last_four>
210
- <month type="integer">2</month>
211
- <year type="integer">2012</year>
212
- </credit_card>
213
- <updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
214
- </billing_info>
215
-
216
- http_version: "1.1"
217
- - !ruby/struct:VCR::HTTPInteraction
218
- request: !ruby/struct:VCR::Request
219
- method: :get
220
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-find-1296690812/billing_info.xml
221
- body:
222
- headers:
223
- authorization:
224
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
225
- accept:
226
- - application/xml
227
- accept-encoding:
228
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
229
- user-agent:
230
- - Ruby
231
- connection:
232
- - close
233
- response: !ruby/struct:VCR::Response
234
- status: !ruby/struct:VCR::ResponseStatus
235
- code: 200
236
- message: "OK "
237
- headers:
238
- x-runtime:
239
- - "87"
240
- content-type:
241
- - application/xml; charset=utf-8
242
- etag:
243
- - "\"72b1fbf237062feb38cba92d8cd01930\""
244
- cache-control:
245
- - private, max-age=0, must-revalidate
246
- content-length:
247
- - "638"
248
- server:
249
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
250
- date:
251
- - Thu, 03 Feb 2011 22:18:00 GMT
252
- connection:
253
- - close
254
- set-cookie:
255
- - _recurly_session=3ac8a08622d7e004c979871db5ec2086; domain=.recurly.local; path=/; HttpOnly
256
- body: |
257
- <?xml version="1.0" encoding="UTF-8"?>
258
- <billing_info>
259
- <account_code>billing-find-1296690812</account_code>
260
- <first_name>Verena</first_name>
261
- <last_name>Test</last_name>
262
- <address1>123 Test St</address1>
263
- <address2></address2>
264
- <city>San Francisco</city>
265
- <state>CA</state>
266
- <country>US</country>
267
- <zip>94115</zip>
268
- <phone></phone>
269
- <vat_number></vat_number>
270
- <ip_address></ip_address>
271
- <credit_card>
272
- <type>visa</type>
273
- <last_four>1111</last_four>
274
- <month type="integer">2</month>
275
- <year type="integer">2012</year>
276
- </credit_card>
277
- <updated_at type="datetime">2011-02-03T22:17:56Z</updated_at>
278
- </billing_info>
279
-
280
- http_version: "1.1"
@@ -1,297 +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>billing-update-1296690812</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/billing-update-1296690812
37
- x-runtime:
38
- - "571"
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:17:42 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=ca1bc2a7db5c0adebc913fcceaf5067325526889751bb9f5ae90130b62e808a7b4d28e7936863967610fdf0c47a7667aa9202de29ff2243f5f0f88b1b8fa238b%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=537b709b2fbbf7c87376e456b05831f3; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>billing-update-1296690812</id>
57
- <account_code>billing-update-1296690812</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>ddf65b6b20e94a99ae41c128b4523e34</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:17:42Z</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: :put
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <billing-info>
78
- <address1>123 Test St</address1>
79
- <city>San Francisco</city>
80
- <state>CA</state>
81
- <zip>94115</zip>
82
- <country>US</country>
83
- <credit-card>
84
- <number>4111111111111111</number>
85
- <year type="integer">2012</year>
86
- <month type="integer">2</month>
87
- <verification-value>123</verification-value>
88
- </credit-card>
89
- <account-code>billing-update-1296690812</account-code>
90
- <first-name>Verena</first-name>
91
- <last-name>Test</last-name>
92
- </billing-info>
93
-
94
- headers:
95
- authorization:
96
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
- content-type:
98
- - application/xml
99
- accept:
100
- - "*/*"
101
- user-agent:
102
- - Ruby
103
- connection:
104
- - close
105
- response: !ruby/struct:VCR::Response
106
- status: !ruby/struct:VCR::ResponseStatus
107
- code: 200
108
- message: "OK "
109
- headers:
110
- x-runtime:
111
- - "1559"
112
- content-type:
113
- - application/xml; charset=utf-8
114
- etag:
115
- - "\"b5499bcd45b7f6f045575a212799805c\""
116
- cache-control:
117
- - private, max-age=0, must-revalidate
118
- content-length:
119
- - "640"
120
- server:
121
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
- date:
123
- - Thu, 03 Feb 2011 22:17:45 GMT
124
- connection:
125
- - close
126
- set-cookie:
127
- - _recurly_session=5e91140311ec8c5366449955bba2e1c7; domain=.recurly.local; path=/; HttpOnly
128
- body: |
129
- <?xml version="1.0" encoding="UTF-8"?>
130
- <billing_info>
131
- <account_code>billing-update-1296690812</account_code>
132
- <first_name>Verena</first_name>
133
- <last_name>Test</last_name>
134
- <address1>123 Test St</address1>
135
- <address2></address2>
136
- <city>San Francisco</city>
137
- <state>CA</state>
138
- <country>US</country>
139
- <zip>94115</zip>
140
- <phone></phone>
141
- <vat_number></vat_number>
142
- <ip_address></ip_address>
143
- <credit_card>
144
- <type>visa</type>
145
- <last_four>1111</last_four>
146
- <month type="integer">2</month>
147
- <year type="integer">2012</year>
148
- </credit_card>
149
- <updated_at type="datetime">2011-02-03T22:17:45Z</updated_at>
150
- </billing_info>
151
-
152
- http_version: "1.1"
153
- - !ruby/struct:VCR::HTTPInteraction
154
- request: !ruby/struct:VCR::Request
155
- method: :put
156
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
157
- body: |
158
- <?xml version="1.0" encoding="UTF-8"?>
159
- <billing-info>
160
- <address1>1st Ave South, Apt 5001</address1>
161
- <city>San Francisco</city>
162
- <state>CA</state>
163
- <zip>94115</zip>
164
- <country>US</country>
165
- <credit-card>
166
- <number>4111111111111111</number>
167
- <year type="integer">2012</year>
168
- <month type="integer">2</month>
169
- <verification-value>123</verification-value>
170
- </credit-card>
171
- <first-name>Verena</first-name>
172
- <last-name>Test</last-name>
173
- </billing-info>
174
-
175
- headers:
176
- authorization:
177
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
178
- content-type:
179
- - application/xml
180
- accept:
181
- - "*/*"
182
- user-agent:
183
- - Ruby
184
- connection:
185
- - close
186
- response: !ruby/struct:VCR::Response
187
- status: !ruby/struct:VCR::ResponseStatus
188
- code: 200
189
- message: "OK "
190
- headers:
191
- x-runtime:
192
- - "1979"
193
- content-type:
194
- - application/xml; charset=utf-8
195
- etag:
196
- - "\"b5da767b374f03be98a084a190d101cc\""
197
- cache-control:
198
- - private, max-age=0, must-revalidate
199
- content-length:
200
- - "652"
201
- server:
202
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
203
- date:
204
- - Thu, 03 Feb 2011 22:17:49 GMT
205
- connection:
206
- - close
207
- set-cookie:
208
- - _recurly_session=b1185c29f260f871d91f9a4fadd8f0f2; domain=.recurly.local; path=/; HttpOnly
209
- body: |
210
- <?xml version="1.0" encoding="UTF-8"?>
211
- <billing_info>
212
- <account_code>billing-update-1296690812</account_code>
213
- <first_name>Verena</first_name>
214
- <last_name>Test</last_name>
215
- <address1>1st Ave South, Apt 5001</address1>
216
- <address2></address2>
217
- <city>San Francisco</city>
218
- <state>CA</state>
219
- <country>US</country>
220
- <zip>94115</zip>
221
- <phone></phone>
222
- <vat_number></vat_number>
223
- <ip_address></ip_address>
224
- <credit_card>
225
- <type>visa</type>
226
- <last_four>1111</last_four>
227
- <month type="integer">2</month>
228
- <year type="integer">2012</year>
229
- </credit_card>
230
- <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
231
- </billing_info>
232
-
233
- http_version: "1.1"
234
- - !ruby/struct:VCR::HTTPInteraction
235
- request: !ruby/struct:VCR::Request
236
- method: :get
237
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-update-1296690812/billing_info.xml
238
- body:
239
- headers:
240
- authorization:
241
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
242
- accept:
243
- - application/xml
244
- accept-encoding:
245
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
246
- user-agent:
247
- - Ruby
248
- connection:
249
- - close
250
- response: !ruby/struct:VCR::Response
251
- status: !ruby/struct:VCR::ResponseStatus
252
- code: 200
253
- message: "OK "
254
- headers:
255
- x-runtime:
256
- - "194"
257
- content-type:
258
- - application/xml; charset=utf-8
259
- etag:
260
- - "\"b5da767b374f03be98a084a190d101cc\""
261
- cache-control:
262
- - private, max-age=0, must-revalidate
263
- content-length:
264
- - "652"
265
- server:
266
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
267
- date:
268
- - Thu, 03 Feb 2011 22:17:51 GMT
269
- connection:
270
- - close
271
- set-cookie:
272
- - _recurly_session=21ced1f6e0594169c7c507fe325d5735; domain=.recurly.local; path=/; HttpOnly
273
- body: |
274
- <?xml version="1.0" encoding="UTF-8"?>
275
- <billing_info>
276
- <account_code>billing-update-1296690812</account_code>
277
- <first_name>Verena</first_name>
278
- <last_name>Test</last_name>
279
- <address1>1st Ave South, Apt 5001</address1>
280
- <address2></address2>
281
- <city>San Francisco</city>
282
- <state>CA</state>
283
- <country>US</country>
284
- <zip>94115</zip>
285
- <phone></phone>
286
- <vat_number></vat_number>
287
- <ip_address></ip_address>
288
- <credit_card>
289
- <type>visa</type>
290
- <last_four>1111</last_four>
291
- <month type="integer">2</month>
292
- <year type="integer">2012</year>
293
- </credit_card>
294
- <updated_at type="datetime">2011-02-03T22:17:49Z</updated_at>
295
- </billing_info>
296
-
297
- http_version: "1.1"