recurly 0.4.15 → 0.4.16

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/base.rb +35 -0
  2. data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
  3. data/lib/recurly.rb +14 -4
  4. data/lib/recurly/account.rb +6 -3
  5. data/lib/recurly/base.rb +1 -2
  6. data/lib/recurly/subscription.rb +7 -0
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/recurly.yml +4 -4
  9. data/spec/integration/subscription_spec.rb +2 -1
  10. metadata +108 -220
  11. data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
  12. data/spec/vcr/account/close/1313708721.yml +0 -132
  13. data/spec/vcr/account/create-blank/1313708721.yml +0 -44
  14. data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
  15. data/spec/vcr/account/create-min/1313708721.yml +0 -56
  16. data/spec/vcr/account/create/1313708721.yml +0 -60
  17. data/spec/vcr/account/find/1313708721.yml +0 -137
  18. data/spec/vcr/account/list/1313708721.yml +0 -1307
  19. data/spec/vcr/account/update/1313708721.yml +0 -216
  20. data/spec/vcr/billing/create/1313708721.yml +0 -181
  21. data/spec/vcr/billing/destroy/1313708721.yml +0 -240
  22. data/spec/vcr/billing/errors/1313708721.yml +0 -106
  23. data/spec/vcr/billing/find/1313708721.yml +0 -234
  24. data/spec/vcr/billing/update/1313708721.yml +0 -251
  25. data/spec/vcr/charge/create/1313708721.yml +0 -222
  26. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
  27. data/spec/vcr/charge/list-all/1313708721.yml +0 -276
  28. data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
  29. data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
  30. data/spec/vcr/charge/lookup/1313708721.yml +0 -152
  31. data/spec/vcr/coupon/create/1296774903.yml +0 -97
  32. data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
  33. data/spec/vcr/credit/create/1313708090.yml +0 -152
  34. data/spec/vcr/credit/delete/1313708090.yml +0 -211
  35. data/spec/vcr/credit/list/1313708090.yml +0 -276
  36. data/spec/vcr/credit/lookup/1313708090.yml +0 -152
  37. data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
  38. data/spec/vcr/invoice/create/1296674173.yml +0 -302
  39. data/spec/vcr/invoice/list/1296674173.yml +0 -405
  40. data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
  41. data/spec/vcr/plan/all.yml +0 -233
  42. data/spec/vcr/plan/find.yml +0 -136
  43. data/spec/vcr/plan/update.yml +0 -152
  44. data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
  45. data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
  46. data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
  47. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
  48. data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
  49. data/spec/vcr/subscription/change1/1296674173.yml +0 -354
  50. data/spec/vcr/subscription/change2/1296674173.yml +0 -354
  51. data/spec/vcr/subscription/create/1296674173.yml +0 -192
  52. data/spec/vcr/subscription/find/1296674173.yml +0 -244
  53. data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
  54. data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
  55. data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
  56. data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
  57. data/spec/vcr/transaction/all/1311126815.yml +0 -397
  58. data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
  59. data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
  60. data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
  61. data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
  62. data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
  63. data/spec/vcr/transaction/void/1311126815.yml +0 -321
  64. data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
  65. data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,106 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>billing-errors-1313708721</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
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- user-agent:
23
- - Recurly Ruby Client v0.4.13
24
- content-type:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/billing-errors-1313708721
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=724b3833d6545c65b3cd078ae186f1fd; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>billing-errors-1313708721</id>
47
- <account_code>billing-errors-1313708721</account_code>
48
- <username></username>
49
- <email>verena@test.com</email>
50
- <first_name>Verena</first_name>
51
- <last_name>Test</last_name>
52
- <company_name>Recurly Ruby Gem</company_name>
53
- <balance_in_cents type="integer">0</balance_in_cents>
54
- <closed type="boolean">false</closed>
55
- <hosted_login_token>3d7d68dfe7584e84b54d45c4eeb053ae</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
57
- <state>active</state>
58
- </account>
59
-
60
- http_version: "1.1"
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-errors-1313708721/billing_info.xml
65
- body: |
66
- <?xml version="1.0" encoding="UTF-8"?>
67
- <billing-info>
68
- <first-name>Verena</first-name>
69
- <last-name>Test</last-name>
70
- <address1>123 Test St</address1>
71
- <city>San Francisco</city>
72
- <state>CA</state>
73
- <zip>94115</zip>
74
- <country>US</country>
75
- <credit-card>
76
- <number></number>
77
- </credit-card>
78
- </billing-info>
79
-
80
- headers:
81
- user-agent:
82
- - Recurly Ruby Client v0.4.13
83
- content-type:
84
- - application/xml
85
- response: !ruby/struct:VCR::Response
86
- status: !ruby/struct:VCR::ResponseStatus
87
- code: 422
88
- message:
89
- headers:
90
- content-type:
91
- - application/xml; charset=utf-8
92
- cache-control:
93
- - no-cache
94
- x-ua-compatible:
95
- - IE=Edge
96
- set-cookie:
97
- - _recurly_session=78ce98cc059cab1efb7eed65ca720c33; domain=.lvh.me; path=/; HttpOnly
98
- server:
99
- - thin 1.2.11 codename Bat-Shit Crazy
100
- body: |
101
- <?xml version="1.0" encoding="UTF-8"?>
102
- <errors>
103
- <error field="number" code="required">credit card number is required</error>
104
- </errors>
105
-
106
- http_version: "1.1"
@@ -1,234 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>billing-find-1313708721</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
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- user-agent:
23
- - Recurly Ruby Client v0.4.13
24
- content-type:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/billing-find-1313708721
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=0b58f4c6949629f5fb2417a48090bee8; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>billing-find-1313708721</id>
47
- <account_code>billing-find-1313708721</account_code>
48
- <username></username>
49
- <email>verena@test.com</email>
50
- <first_name>Verena</first_name>
51
- <last_name>Test</last_name>
52
- <company_name>Recurly Ruby Gem</company_name>
53
- <balance_in_cents type="integer">0</balance_in_cents>
54
- <closed type="boolean">false</closed>
55
- <hosted_login_token>f8695050ca1c487eacd217281079c3c6</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:41Z</created_at>
57
- <state>active</state>
58
- </account>
59
-
60
- http_version: "1.1"
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-find-1313708721/billing_info.xml
65
- body: |
66
- <?xml version="1.0" encoding="UTF-8"?>
67
- <billing-info>
68
- <first-name>Verena</first-name>
69
- <last-name>Test</last-name>
70
- <address1>123 Test St</address1>
71
- <city>San Francisco</city>
72
- <state>CA</state>
73
- <zip>94115</zip>
74
- <country>US</country>
75
- <credit-card>
76
- <number>4111111111111111</number>
77
- <year type="integer">2012</year>
78
- <month type="integer">9</month>
79
- <verification-value>123</verification-value>
80
- </credit-card>
81
- <account-code>billing-find-1313708721</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"7cdad65365885699c3c4c0306c3fbeeb\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=b87134bcd368c2814d4d4fd1ede574fc; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>billing-find-1313708721</account_code>
110
- <first_name>Verena</first_name>
111
- <last_name>Test</last_name>
112
- <address1>123 Test St</address1>
113
- <address2></address2>
114
- <city>San Francisco</city>
115
- <state>CA</state>
116
- <country>US</country>
117
- <zip>94115</zip>
118
- <phone></phone>
119
- <vat_number></vat_number>
120
- <ip_address></ip_address>
121
- <credit_card>
122
- <type>visa</type>
123
- <last_four>1111</last_four>
124
- <month type="integer">9</month>
125
- <year type="integer">2012</year>
126
- </credit_card>
127
- <updated_at type="datetime">2011-09-22T22:01:42Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :get
134
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-find-1313708721/billing_info.xml
135
- body:
136
- headers:
137
- user-agent:
138
- - Recurly Ruby Client v0.4.13
139
- accept:
140
- - application/xml
141
- accept-encoding:
142
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
143
- response: !ruby/struct:VCR::Response
144
- status: !ruby/struct:VCR::ResponseStatus
145
- code: 200
146
- message: OK
147
- headers:
148
- content-type:
149
- - application/xml; charset=utf-8
150
- etag:
151
- - "\"7cdad65365885699c3c4c0306c3fbeeb\""
152
- cache-control:
153
- - max-age=0, private, must-revalidate
154
- x-ua-compatible:
155
- - IE=Edge
156
- server:
157
- - thin 1.2.11 codename Bat-Shit Crazy
158
- body: |
159
- <?xml version="1.0" encoding="UTF-8"?>
160
- <billing_info>
161
- <account_code>billing-find-1313708721</account_code>
162
- <first_name>Verena</first_name>
163
- <last_name>Test</last_name>
164
- <address1>123 Test St</address1>
165
- <address2></address2>
166
- <city>San Francisco</city>
167
- <state>CA</state>
168
- <country>US</country>
169
- <zip>94115</zip>
170
- <phone></phone>
171
- <vat_number></vat_number>
172
- <ip_address></ip_address>
173
- <credit_card>
174
- <type>visa</type>
175
- <last_four>1111</last_four>
176
- <month type="integer">9</month>
177
- <year type="integer">2012</year>
178
- </credit_card>
179
- <updated_at type="datetime">2011-09-22T22:01:42Z</updated_at>
180
- </billing_info>
181
-
182
- http_version: "1.1"
183
- - !ruby/struct:VCR::HTTPInteraction
184
- request: !ruby/struct:VCR::Request
185
- method: :get
186
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-find-1313708721/billing_info.xml
187
- body:
188
- headers:
189
- user-agent:
190
- - Recurly Ruby Client v0.4.13
191
- accept:
192
- - application/xml
193
- accept-encoding:
194
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
195
- response: !ruby/struct:VCR::Response
196
- status: !ruby/struct:VCR::ResponseStatus
197
- code: 200
198
- message: OK
199
- headers:
200
- content-type:
201
- - application/xml; charset=utf-8
202
- etag:
203
- - "\"7cdad65365885699c3c4c0306c3fbeeb\""
204
- cache-control:
205
- - max-age=0, private, must-revalidate
206
- x-ua-compatible:
207
- - IE=Edge
208
- server:
209
- - thin 1.2.11 codename Bat-Shit Crazy
210
- body: |
211
- <?xml version="1.0" encoding="UTF-8"?>
212
- <billing_info>
213
- <account_code>billing-find-1313708721</account_code>
214
- <first_name>Verena</first_name>
215
- <last_name>Test</last_name>
216
- <address1>123 Test St</address1>
217
- <address2></address2>
218
- <city>San Francisco</city>
219
- <state>CA</state>
220
- <country>US</country>
221
- <zip>94115</zip>
222
- <phone></phone>
223
- <vat_number></vat_number>
224
- <ip_address></ip_address>
225
- <credit_card>
226
- <type>visa</type>
227
- <last_four>1111</last_four>
228
- <month type="integer">9</month>
229
- <year type="integer">2012</year>
230
- </credit_card>
231
- <updated_at type="datetime">2011-09-22T22:01:42Z</updated_at>
232
- </billing_info>
233
-
234
- http_version: "1.1"
@@ -1,251 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>billing-update-1313708721</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
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- user-agent:
23
- - Recurly Ruby Client v0.4.13
24
- content-type:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/billing-update-1313708721
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=20bc8f43f19bb6efd3c0f39416857287; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>billing-update-1313708721</id>
47
- <account_code>billing-update-1313708721</account_code>
48
- <username></username>
49
- <email>verena@test.com</email>
50
- <first_name>Verena</first_name>
51
- <last_name>Test</last_name>
52
- <company_name>Recurly Ruby Gem</company_name>
53
- <balance_in_cents type="integer">0</balance_in_cents>
54
- <closed type="boolean">false</closed>
55
- <hosted_login_token>7f095c5d62f5456c9e949098fd3fd406</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:39Z</created_at>
57
- <state>active</state>
58
- </account>
59
-
60
- http_version: "1.1"
61
- - !ruby/struct:VCR::HTTPInteraction
62
- request: !ruby/struct:VCR::Request
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
65
- body: |
66
- <?xml version="1.0" encoding="UTF-8"?>
67
- <billing-info>
68
- <first-name>Verena</first-name>
69
- <last-name>Test</last-name>
70
- <address1>123 Test St</address1>
71
- <city>San Francisco</city>
72
- <state>CA</state>
73
- <zip>94115</zip>
74
- <country>US</country>
75
- <credit-card>
76
- <number>4111111111111111</number>
77
- <year type="integer">2012</year>
78
- <month type="integer">9</month>
79
- <verification-value>123</verification-value>
80
- </credit-card>
81
- <account-code>billing-update-1313708721</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"6ac3c8c2541410e122db826d4cc2ae00\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=bf82711518105dfa47d376583ccdd927; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>billing-update-1313708721</account_code>
110
- <first_name>Verena</first_name>
111
- <last_name>Test</last_name>
112
- <address1>123 Test St</address1>
113
- <address2></address2>
114
- <city>San Francisco</city>
115
- <state>CA</state>
116
- <country>US</country>
117
- <zip>94115</zip>
118
- <phone></phone>
119
- <vat_number></vat_number>
120
- <ip_address></ip_address>
121
- <credit_card>
122
- <type>visa</type>
123
- <last_four>1111</last_four>
124
- <month type="integer">9</month>
125
- <year type="integer">2012</year>
126
- </credit_card>
127
- <updated_at type="datetime">2011-09-22T22:01:40Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :put
134
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
135
- body: |
136
- <?xml version="1.0" encoding="UTF-8"?>
137
- <billing-info>
138
- <first-name>Verena</first-name>
139
- <last-name>Test</last-name>
140
- <address1>1st Ave South, Apt 5001</address1>
141
- <city>San Francisco</city>
142
- <state>CA</state>
143
- <zip>94115</zip>
144
- <country>US</country>
145
- <credit-card>
146
- <number>4111111111111111</number>
147
- <year type="integer">2012</year>
148
- <month type="integer">9</month>
149
- <verification-value>123</verification-value>
150
- </credit-card>
151
- </billing-info>
152
-
153
- headers:
154
- user-agent:
155
- - Recurly Ruby Client v0.4.13
156
- content-type:
157
- - application/xml
158
- response: !ruby/struct:VCR::Response
159
- status: !ruby/struct:VCR::ResponseStatus
160
- code: 200
161
- message: OK
162
- headers:
163
- content-type:
164
- - application/xml; charset=utf-8
165
- etag:
166
- - "\"a15dbef5aae961fcc7ad717302bdaccd\""
167
- cache-control:
168
- - max-age=0, private, must-revalidate
169
- x-ua-compatible:
170
- - IE=Edge
171
- set-cookie:
172
- - _recurly_session=2c64299b0ea9c4653ae90e51ca8aa71e; domain=.lvh.me; path=/; HttpOnly
173
- server:
174
- - thin 1.2.11 codename Bat-Shit Crazy
175
- body: |
176
- <?xml version="1.0" encoding="UTF-8"?>
177
- <billing_info>
178
- <account_code>billing-update-1313708721</account_code>
179
- <first_name>Verena</first_name>
180
- <last_name>Test</last_name>
181
- <address1>1st Ave South, Apt 5001</address1>
182
- <address2></address2>
183
- <city>San Francisco</city>
184
- <state>CA</state>
185
- <country>US</country>
186
- <zip>94115</zip>
187
- <phone></phone>
188
- <vat_number></vat_number>
189
- <ip_address></ip_address>
190
- <credit_card>
191
- <type>visa</type>
192
- <last_four>1111</last_four>
193
- <month type="integer">9</month>
194
- <year type="integer">2012</year>
195
- </credit_card>
196
- <updated_at type="datetime">2011-09-22T22:01:41Z</updated_at>
197
- </billing_info>
198
-
199
- http_version: "1.1"
200
- - !ruby/struct:VCR::HTTPInteraction
201
- request: !ruby/struct:VCR::Request
202
- method: :get
203
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
204
- body:
205
- headers:
206
- user-agent:
207
- - Recurly Ruby Client v0.4.13
208
- accept:
209
- - application/xml
210
- accept-encoding:
211
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
212
- response: !ruby/struct:VCR::Response
213
- status: !ruby/struct:VCR::ResponseStatus
214
- code: 200
215
- message: OK
216
- headers:
217
- content-type:
218
- - application/xml; charset=utf-8
219
- etag:
220
- - "\"a15dbef5aae961fcc7ad717302bdaccd\""
221
- cache-control:
222
- - max-age=0, private, must-revalidate
223
- x-ua-compatible:
224
- - IE=Edge
225
- server:
226
- - thin 1.2.11 codename Bat-Shit Crazy
227
- body: |
228
- <?xml version="1.0" encoding="UTF-8"?>
229
- <billing_info>
230
- <account_code>billing-update-1313708721</account_code>
231
- <first_name>Verena</first_name>
232
- <last_name>Test</last_name>
233
- <address1>1st Ave South, Apt 5001</address1>
234
- <address2></address2>
235
- <city>San Francisco</city>
236
- <state>CA</state>
237
- <country>US</country>
238
- <zip>94115</zip>
239
- <phone></phone>
240
- <vat_number></vat_number>
241
- <ip_address></ip_address>
242
- <credit_card>
243
- <type>visa</type>
244
- <last_four>1111</last_four>
245
- <month type="integer">9</month>
246
- <year type="integer">2012</year>
247
- </credit_card>
248
- <updated_at type="datetime">2011-09-22T22:01:41Z</updated_at>
249
- </billing_info>
250
-
251
- http_version: "1.1"