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,216 +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>account-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/account-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=5d85d2a00ff6213ef78ccc8b38968ac4; 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>account-update-1313708721</id>
47
- <account_code>account-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>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:36Z</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: :get
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
65
- body:
66
- headers:
67
- user-agent:
68
- - Recurly Ruby Client v0.4.13
69
- accept:
70
- - application/xml
71
- accept-encoding:
72
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
73
- response: !ruby/struct:VCR::Response
74
- status: !ruby/struct:VCR::ResponseStatus
75
- code: 200
76
- message: OK
77
- headers:
78
- content-type:
79
- - application/xml; charset=utf-8
80
- etag:
81
- - "\"fc70c96aed7ba6f059e5d22565e7c7e9\""
82
- cache-control:
83
- - max-age=0, private, must-revalidate
84
- x-ua-compatible:
85
- - IE=Edge
86
- server:
87
- - thin 1.2.11 codename Bat-Shit Crazy
88
- body: |
89
- <?xml version="1.0" encoding="UTF-8"?>
90
- <account>
91
- <id>account-update-1313708721</id>
92
- <account_code>account-update-1313708721</account_code>
93
- <username></username>
94
- <email>verena@test.com</email>
95
- <first_name>Verena</first_name>
96
- <last_name>Test</last_name>
97
- <company_name>Recurly Ruby Gem</company_name>
98
- <balance_in_cents type="integer">0</balance_in_cents>
99
- <closed type="boolean">false</closed>
100
- <hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
101
- <created_at type="datetime">2011-09-22T22:01:36Z</created_at>
102
- <state>active</state>
103
- </account>
104
-
105
- http_version: "1.1"
106
- - !ruby/struct:VCR::HTTPInteraction
107
- request: !ruby/struct:VCR::Request
108
- method: :put
109
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
110
- body: |
111
- <?xml version="1.0" encoding="UTF-8"?>
112
- <account>
113
- <id>account-update-1313708721</id>
114
- <account-code>account-update-1313708721</account-code>
115
- <username nil="true"></username>
116
- <email>verena@test.com</email>
117
- <first-name>Verena</first-name>
118
- <last-name>Update Test</last-name>
119
- <company-name>Recurly Ruby Gem -- Update</company-name>
120
- <balance-in-cents type="integer">0</balance-in-cents>
121
- <closed type="boolean">false</closed>
122
- <hosted-login-token>6d87735c19444d1b82625e1a66e9d5bb</hosted-login-token>
123
- <created-at type="datetime">2011-09-22T22:01:36Z</created-at>
124
- <state>active</state>
125
- <billing-info>
126
- <credit-card>
127
- </credit-card>
128
- </billing-info>
129
- <accept-language nil="true"></accept-language>
130
- </account>
131
-
132
- headers:
133
- user-agent:
134
- - Recurly Ruby Client v0.4.13
135
- content-type:
136
- - application/xml
137
- response: !ruby/struct:VCR::Response
138
- status: !ruby/struct:VCR::ResponseStatus
139
- code: 200
140
- message: OK
141
- headers:
142
- content-type:
143
- - application/xml; charset=utf-8
144
- etag:
145
- - "\"dc1b6a4675f02073d675149bcba2a492\""
146
- cache-control:
147
- - max-age=0, private, must-revalidate
148
- x-ua-compatible:
149
- - IE=Edge
150
- set-cookie:
151
- - _recurly_session=2379399952464a39be8690403af8da8e; domain=.lvh.me; path=/; HttpOnly
152
- server:
153
- - thin 1.2.11 codename Bat-Shit Crazy
154
- body: |
155
- <?xml version="1.0" encoding="UTF-8"?>
156
- <account>
157
- <id>account-update-1313708721</id>
158
- <account_code>account-update-1313708721</account_code>
159
- <username></username>
160
- <email>verena@test.com</email>
161
- <first_name>Verena</first_name>
162
- <last_name>Update Test</last_name>
163
- <company_name>Recurly Ruby Gem -- Update</company_name>
164
- <balance_in_cents type="integer">0</balance_in_cents>
165
- <closed type="boolean">false</closed>
166
- <hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
167
- <created_at type="datetime">2011-09-22T22:01:36Z</created_at>
168
- <state>active</state>
169
- </account>
170
-
171
- http_version: "1.1"
172
- - !ruby/struct:VCR::HTTPInteraction
173
- request: !ruby/struct:VCR::Request
174
- method: :get
175
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
176
- body:
177
- headers:
178
- user-agent:
179
- - Recurly Ruby Client v0.4.13
180
- accept:
181
- - application/xml
182
- accept-encoding:
183
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
184
- response: !ruby/struct:VCR::Response
185
- status: !ruby/struct:VCR::ResponseStatus
186
- code: 200
187
- message: OK
188
- headers:
189
- content-type:
190
- - application/xml; charset=utf-8
191
- etag:
192
- - "\"dc1b6a4675f02073d675149bcba2a492\""
193
- cache-control:
194
- - max-age=0, private, must-revalidate
195
- x-ua-compatible:
196
- - IE=Edge
197
- server:
198
- - thin 1.2.11 codename Bat-Shit Crazy
199
- body: |
200
- <?xml version="1.0" encoding="UTF-8"?>
201
- <account>
202
- <id>account-update-1313708721</id>
203
- <account_code>account-update-1313708721</account_code>
204
- <username></username>
205
- <email>verena@test.com</email>
206
- <first_name>Verena</first_name>
207
- <last_name>Update Test</last_name>
208
- <company_name>Recurly Ruby Gem -- Update</company_name>
209
- <balance_in_cents type="integer">0</balance_in_cents>
210
- <closed type="boolean">false</closed>
211
- <hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
212
- <created_at type="datetime">2011-09-22T22:01:36Z</created_at>
213
- <state>active</state>
214
- </account>
215
-
216
- http_version: "1.1"
@@ -1,181 +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-create-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-create-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=cbc5bd05c9c114238fbb6dad15ab6114; 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-create-1313708721</id>
47
- <account_code>billing-create-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>630a13828cbb487b9c9ad3a82f50a8fa</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:37Z</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-create-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
- </billing-info>
82
-
83
- headers:
84
- user-agent:
85
- - Recurly Ruby Client v0.4.13
86
- content-type:
87
- - application/xml
88
- response: !ruby/struct:VCR::Response
89
- status: !ruby/struct:VCR::ResponseStatus
90
- code: 200
91
- message: OK
92
- headers:
93
- content-type:
94
- - application/xml; charset=utf-8
95
- etag:
96
- - "\"07790274f1d1c83b054f38e4d30e30f9\""
97
- cache-control:
98
- - max-age=0, private, must-revalidate
99
- x-ua-compatible:
100
- - IE=Edge
101
- set-cookie:
102
- - _recurly_session=c0a1eafb31e2d3d081d235e8382f3f8f; domain=.lvh.me; path=/; HttpOnly
103
- server:
104
- - thin 1.2.11 codename Bat-Shit Crazy
105
- body: |
106
- <?xml version="1.0" encoding="UTF-8"?>
107
- <billing_info>
108
- <account_code>billing-create-1313708721</account_code>
109
- <first_name>Verena</first_name>
110
- <last_name>Test</last_name>
111
- <address1>123 Test St</address1>
112
- <address2></address2>
113
- <city>San Francisco</city>
114
- <state>CA</state>
115
- <country>US</country>
116
- <zip>94115</zip>
117
- <phone></phone>
118
- <vat_number></vat_number>
119
- <ip_address></ip_address>
120
- <credit_card>
121
- <type>visa</type>
122
- <last_four>1111</last_four>
123
- <month type="integer">9</month>
124
- <year type="integer">2012</year>
125
- </credit_card>
126
- <updated_at type="datetime">2011-09-22T22:01:38Z</updated_at>
127
- </billing_info>
128
-
129
- http_version: "1.1"
130
- - !ruby/struct:VCR::HTTPInteraction
131
- request: !ruby/struct:VCR::Request
132
- method: :get
133
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-create-1313708721/billing_info.xml
134
- body:
135
- headers:
136
- user-agent:
137
- - Recurly Ruby Client v0.4.13
138
- accept:
139
- - application/xml
140
- accept-encoding:
141
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
- response: !ruby/struct:VCR::Response
143
- status: !ruby/struct:VCR::ResponseStatus
144
- code: 200
145
- message: OK
146
- headers:
147
- content-type:
148
- - application/xml; charset=utf-8
149
- etag:
150
- - "\"07790274f1d1c83b054f38e4d30e30f9\""
151
- cache-control:
152
- - max-age=0, private, must-revalidate
153
- x-ua-compatible:
154
- - IE=Edge
155
- server:
156
- - thin 1.2.11 codename Bat-Shit Crazy
157
- body: |
158
- <?xml version="1.0" encoding="UTF-8"?>
159
- <billing_info>
160
- <account_code>billing-create-1313708721</account_code>
161
- <first_name>Verena</first_name>
162
- <last_name>Test</last_name>
163
- <address1>123 Test St</address1>
164
- <address2></address2>
165
- <city>San Francisco</city>
166
- <state>CA</state>
167
- <country>US</country>
168
- <zip>94115</zip>
169
- <phone></phone>
170
- <vat_number></vat_number>
171
- <ip_address></ip_address>
172
- <credit_card>
173
- <type>visa</type>
174
- <last_four>1111</last_four>
175
- <month type="integer">9</month>
176
- <year type="integer">2012</year>
177
- </credit_card>
178
- <updated_at type="datetime">2011-09-22T22:01:38Z</updated_at>
179
- </billing_info>
180
-
181
- http_version: "1.1"
@@ -1,240 +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-destroy-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-destroy-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=d15014ab00c3237d3c8f480a224b8be4; 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-destroy-1313708721</id>
47
- <account_code>billing-destroy-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>4bf5cb7b669145f2937f52e08a305486</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:42Z</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-destroy-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>500 South Central Blvd</address1>
71
- <city>Los Angeles</city>
72
- <state>CA</state>
73
- <zip>90001</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
- </billing-info>
82
-
83
- headers:
84
- user-agent:
85
- - Recurly Ruby Client v0.4.13
86
- content-type:
87
- - application/xml
88
- response: !ruby/struct:VCR::Response
89
- status: !ruby/struct:VCR::ResponseStatus
90
- code: 200
91
- message: OK
92
- headers:
93
- content-type:
94
- - application/xml; charset=utf-8
95
- etag:
96
- - "\"866afd7ab8785388fc84828ffbe4d4fb\""
97
- cache-control:
98
- - max-age=0, private, must-revalidate
99
- x-ua-compatible:
100
- - IE=Edge
101
- set-cookie:
102
- - _recurly_session=4e489e501f0e5dcf4a377eb56a7509cd; domain=.lvh.me; path=/; HttpOnly
103
- server:
104
- - thin 1.2.11 codename Bat-Shit Crazy
105
- body: |
106
- <?xml version="1.0" encoding="UTF-8"?>
107
- <billing_info>
108
- <account_code>billing-destroy-1313708721</account_code>
109
- <first_name>Verena</first_name>
110
- <last_name>Test</last_name>
111
- <address1>500 South Central Blvd</address1>
112
- <address2></address2>
113
- <city>Los Angeles</city>
114
- <state>CA</state>
115
- <country>US</country>
116
- <zip>90001</zip>
117
- <phone></phone>
118
- <vat_number></vat_number>
119
- <ip_address></ip_address>
120
- <credit_card>
121
- <type>visa</type>
122
- <last_four>1111</last_four>
123
- <month type="integer">9</month>
124
- <year type="integer">2012</year>
125
- </credit_card>
126
- <updated_at type="datetime">2011-09-22T22:01:43Z</updated_at>
127
- </billing_info>
128
-
129
- http_version: "1.1"
130
- - !ruby/struct:VCR::HTTPInteraction
131
- request: !ruby/struct:VCR::Request
132
- method: :get
133
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
134
- body:
135
- headers:
136
- user-agent:
137
- - Recurly Ruby Client v0.4.13
138
- accept:
139
- - application/xml
140
- accept-encoding:
141
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
- response: !ruby/struct:VCR::Response
143
- status: !ruby/struct:VCR::ResponseStatus
144
- code: 200
145
- message: OK
146
- headers:
147
- content-type:
148
- - application/xml; charset=utf-8
149
- etag:
150
- - "\"866afd7ab8785388fc84828ffbe4d4fb\""
151
- cache-control:
152
- - max-age=0, private, must-revalidate
153
- x-ua-compatible:
154
- - IE=Edge
155
- server:
156
- - thin 1.2.11 codename Bat-Shit Crazy
157
- body: |
158
- <?xml version="1.0" encoding="UTF-8"?>
159
- <billing_info>
160
- <account_code>billing-destroy-1313708721</account_code>
161
- <first_name>Verena</first_name>
162
- <last_name>Test</last_name>
163
- <address1>500 South Central Blvd</address1>
164
- <address2></address2>
165
- <city>Los Angeles</city>
166
- <state>CA</state>
167
- <country>US</country>
168
- <zip>90001</zip>
169
- <phone></phone>
170
- <vat_number></vat_number>
171
- <ip_address></ip_address>
172
- <credit_card>
173
- <type>visa</type>
174
- <last_four>1111</last_four>
175
- <month type="integer">9</month>
176
- <year type="integer">2012</year>
177
- </credit_card>
178
- <updated_at type="datetime">2011-09-22T22:01:43Z</updated_at>
179
- </billing_info>
180
-
181
- http_version: "1.1"
182
- - !ruby/struct:VCR::HTTPInteraction
183
- request: !ruby/struct:VCR::Request
184
- method: :delete
185
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
186
- body:
187
- headers:
188
- user-agent:
189
- - Recurly Ruby Client v0.4.13
190
- accept:
191
- - application/xml
192
- response: !ruby/struct:VCR::Response
193
- status: !ruby/struct:VCR::ResponseStatus
194
- code: 200
195
- message: OK
196
- headers:
197
- content-type:
198
- - application/xml; charset=utf-8
199
- cache-control:
200
- - no-cache
201
- x-ua-compatible:
202
- - IE=Edge
203
- set-cookie:
204
- - _recurly_session=71baa9222bb63373d3f4c5952ccd22aa; domain=.lvh.me; path=/; HttpOnly
205
- server:
206
- - thin 1.2.11 codename Bat-Shit Crazy
207
- body: " "
208
- http_version: "1.1"
209
- - !ruby/struct:VCR::HTTPInteraction
210
- request: !ruby/struct:VCR::Request
211
- method: :get
212
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
213
- body:
214
- headers:
215
- user-agent:
216
- - Recurly Ruby Client v0.4.13
217
- accept:
218
- - application/xml
219
- accept-encoding:
220
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
221
- response: !ruby/struct:VCR::Response
222
- status: !ruby/struct:VCR::ResponseStatus
223
- code: 404
224
- message: Not Found
225
- headers:
226
- content-type:
227
- - application/xml; charset=utf-8
228
- cache-control:
229
- - no-cache
230
- x-ua-compatible:
231
- - IE=Edge
232
- server:
233
- - thin 1.2.11 codename Bat-Shit Crazy
234
- body: |
235
- <?xml version="1.0" encoding="UTF-8"?>
236
- <errors>
237
- <error>Billing Info not found</error>
238
- </errors>
239
-
240
- http_version: "1.1"