recurly 0.4.11 → 0.4.13

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 (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,177 +1,240 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>billing-destroy-1313708721</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
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:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/billing-destroy-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/billing-destroy-1313708721
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=036fe67deda40ee435294859397598b6; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=d15014ab00c3237d3c8f480a224b8be4; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>billing-destroy-1313708721</id>\n
34
- \ <account_code>billing-destroy-1313708721</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>21d353c03baa4b1d9565415506a33bd8</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:33Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
- \ <last-name>Test</last-name>\n <address1>500 South Central Blvd</address1>\n
46
- \ <city>Los Angeles</city>\n <state>CA</state>\n <zip>90001</zip>\n <country>US</country>\n
47
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
- \ </credit-card>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
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:
54
87
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
88
+ response: !ruby/struct:VCR::Response
89
+ status: !ruby/struct:VCR::ResponseStatus
57
90
  code: 200
58
91
  message: OK
59
- headers:
60
- content-type:
92
+ headers:
93
+ content-type:
61
94
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"cca592465887bc228702abe1d8d91ba1"'
64
- cache-control:
95
+ etag:
96
+ - "\"866afd7ab8785388fc84828ffbe4d4fb\""
97
+ cache-control:
65
98
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
99
+ x-ua-compatible:
67
100
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=0df1a1365772fa3c7b8995e8a4ed0bdf; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
101
+ set-cookie:
102
+ - _recurly_session=4e489e501f0e5dcf4a377eb56a7509cd; domain=.lvh.me; path=/; HttpOnly
103
+ server:
72
104
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-destroy-1313708721</account_code>\n
74
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>500
75
- South Central Blvd</address1>\n <address2></address2>\n <city>Los Angeles</city>\n
76
- \ <state>CA</state>\n <country>US</country>\n <zip>90001</zip>\n <phone></phone>\n
77
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:36Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
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
83
132
  method: :get
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
85
- body: !!null
86
- headers:
87
- user-agent:
88
- - Recurly Ruby Client v0.4.10
89
- accept:
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:
90
139
  - application/xml
91
- accept-encoding:
140
+ accept-encoding:
92
141
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
- response: !ruby/struct:VCR::Response
94
- status: !ruby/struct:VCR::ResponseStatus
142
+ response: !ruby/struct:VCR::Response
143
+ status: !ruby/struct:VCR::ResponseStatus
95
144
  code: 200
96
145
  message: OK
97
- headers:
98
- content-type:
146
+ headers:
147
+ content-type:
99
148
  - application/xml; charset=utf-8
100
- etag:
101
- - ! '"cca592465887bc228702abe1d8d91ba1"'
102
- cache-control:
149
+ etag:
150
+ - "\"866afd7ab8785388fc84828ffbe4d4fb\""
151
+ cache-control:
103
152
  - max-age=0, private, must-revalidate
104
- x-ua-compatible:
153
+ x-ua-compatible:
105
154
  - IE=Edge
106
- set-cookie:
107
- - _recurly_session=b63a4c43c70dd74cc2b9c427f2ebeef4; domain=.lvh.me; path=/;
108
- HttpOnly
109
- server:
155
+ server:
110
156
  - thin 1.2.11 codename Bat-Shit Crazy
111
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-destroy-1313708721</account_code>\n
112
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>500
113
- South Central Blvd</address1>\n <address2></address2>\n <city>Los Angeles</city>\n
114
- \ <state>CA</state>\n <country>US</country>\n <zip>90001</zip>\n <phone></phone>\n
115
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
116
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
117
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:36Z</updated_at>\n</billing_info>\n"
118
- http_version: '1.1'
119
- - !ruby/struct:VCR::HTTPInteraction
120
- request: !ruby/struct:VCR::Request
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
121
184
  method: :delete
122
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
123
- body: !!null
124
- headers:
125
- user-agent:
126
- - Recurly Ruby Client v0.4.10
127
- accept:
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:
128
191
  - application/xml
129
- response: !ruby/struct:VCR::Response
130
- status: !ruby/struct:VCR::ResponseStatus
192
+ response: !ruby/struct:VCR::Response
193
+ status: !ruby/struct:VCR::ResponseStatus
131
194
  code: 200
132
195
  message: OK
133
- headers:
134
- content-type:
196
+ headers:
197
+ content-type:
135
198
  - application/xml; charset=utf-8
136
- cache-control:
199
+ cache-control:
137
200
  - no-cache
138
- x-ua-compatible:
201
+ x-ua-compatible:
139
202
  - IE=Edge
140
- set-cookie:
141
- - _recurly_session=23c65291386ac760feb30f97a3dd22f2; domain=.lvh.me; path=/;
142
- HttpOnly
143
- server:
203
+ set-cookie:
204
+ - _recurly_session=71baa9222bb63373d3f4c5952ccd22aa; domain=.lvh.me; path=/; HttpOnly
205
+ server:
144
206
  - thin 1.2.11 codename Bat-Shit Crazy
145
- body: ! ' '
146
- http_version: '1.1'
147
- - !ruby/struct:VCR::HTTPInteraction
148
- request: !ruby/struct:VCR::Request
207
+ body: " "
208
+ http_version: "1.1"
209
+ - !ruby/struct:VCR::HTTPInteraction
210
+ request: !ruby/struct:VCR::Request
149
211
  method: :get
150
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-destroy-1313708721/billing_info.xml
151
- body: !!null
152
- headers:
153
- user-agent:
154
- - Recurly Ruby Client v0.4.10
155
- accept:
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:
156
218
  - application/xml
157
- accept-encoding:
219
+ accept-encoding:
158
220
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
159
- response: !ruby/struct:VCR::Response
160
- status: !ruby/struct:VCR::ResponseStatus
221
+ response: !ruby/struct:VCR::Response
222
+ status: !ruby/struct:VCR::ResponseStatus
161
223
  code: 404
162
224
  message: Not Found
163
- headers:
164
- content-type:
225
+ headers:
226
+ content-type:
165
227
  - application/xml; charset=utf-8
166
- cache-control:
228
+ cache-control:
167
229
  - no-cache
168
- x-ua-compatible:
230
+ x-ua-compatible:
169
231
  - IE=Edge
170
- set-cookie:
171
- - _recurly_session=660c2cfa6c9584bd94d0ab702db7aa00; domain=.lvh.me; path=/;
172
- HttpOnly
173
- server:
232
+ server:
174
233
  - thin 1.2.11 codename Bat-Shit Crazy
175
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Billing
176
- Info not found</error>\n</errors>\n"
177
- http_version: '1.1'
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"
@@ -1,71 +1,106 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>billing-errors-1313708721</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
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:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/billing-errors-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/billing-errors-1313708721
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=2a0fa3cff76f4feb31eb2ccfc74c74fd; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=724b3833d6545c65b3cd078ae186f1fd; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>billing-errors-1313708721</id>\n
34
- \ <account_code>billing-errors-1313708721</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>c639520ea6c24c74805580213ce03c01</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:36Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-errors-1313708721/billing_info.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
- Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
- \ <credit-card>\n <number></number>\n </credit-card>\n</billing-info>\n"
48
- headers:
49
- user-agent:
50
- - Recurly Ruby Client v0.4.10
51
- content-type:
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:
52
84
  - application/xml
53
- response: !ruby/struct:VCR::Response
54
- status: !ruby/struct:VCR::ResponseStatus
85
+ response: !ruby/struct:VCR::Response
86
+ status: !ruby/struct:VCR::ResponseStatus
55
87
  code: 422
56
- message: !!null
57
- headers:
58
- content-type:
88
+ message:
89
+ headers:
90
+ content-type:
59
91
  - application/xml; charset=utf-8
60
- cache-control:
92
+ cache-control:
61
93
  - no-cache
62
- x-ua-compatible:
94
+ x-ua-compatible:
63
95
  - IE=Edge
64
- set-cookie:
65
- - _recurly_session=173aeabf457f6816d64a0c071efa8b98; domain=.lvh.me; path=/;
66
- HttpOnly
67
- server:
96
+ set-cookie:
97
+ - _recurly_session=78ce98cc059cab1efb7eed65ca720c33; domain=.lvh.me; path=/; HttpOnly
98
+ server:
68
99
  - thin 1.2.11 codename Bat-Shit Crazy
69
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error field=\"number\"
70
- code=\"required\">credit card number is required</error>\n</errors>\n"
71
- http_version: '1.1'
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"