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,158 +1,216 @@
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>account-update-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>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:
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/account-update-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/account-update-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=fccb4482d65150cead02d280649103d1; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=5d85d2a00ff6213ef78ccc8b38968ac4; 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>account-update-1313708721</id>\n
34
- \ <account_code>account-update-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>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</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>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
42
63
  method: :get
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
44
- body: !!null
45
- headers:
46
- user-agent:
47
- - Recurly Ruby Client v0.4.10
48
- accept:
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:
49
70
  - application/xml
50
- accept-encoding:
71
+ accept-encoding:
51
72
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
52
- response: !ruby/struct:VCR::Response
53
- status: !ruby/struct:VCR::ResponseStatus
73
+ response: !ruby/struct:VCR::Response
74
+ status: !ruby/struct:VCR::ResponseStatus
54
75
  code: 200
55
76
  message: OK
56
- headers:
57
- content-type:
77
+ headers:
78
+ content-type:
58
79
  - application/xml; charset=utf-8
59
- etag:
60
- - ! '"3bb6e1e9895347a86487d4fd80ef684f"'
61
- cache-control:
80
+ etag:
81
+ - "\"fc70c96aed7ba6f059e5d22565e7c7e9\""
82
+ cache-control:
62
83
  - max-age=0, private, must-revalidate
63
- x-ua-compatible:
84
+ x-ua-compatible:
64
85
  - IE=Edge
65
- set-cookie:
66
- - _recurly_session=9aa3d06a6b5ce3f5a9faf74595af42bb; domain=.lvh.me; path=/;
67
- HttpOnly
68
- server:
86
+ server:
69
87
  - thin 1.2.11 codename Bat-Shit Crazy
70
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
71
- \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
72
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
73
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
74
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
75
- \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
76
- http_version: '1.1'
77
- - !ruby/struct:VCR::HTTPInteraction
78
- request: !ruby/struct:VCR::Request
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
79
108
  method: :put
80
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
81
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
82
- \ <account-code>account-update-1313708721</account-code>\n <username nil=\"true\"></username>\n
83
- \ <email>verena@test.com</email>\n <first-name>Verena</first-name>\n <last-name>Update
84
- Test</last-name>\n <company-name>Recurly Ruby Gem -- Update</company-name>\n
85
- \ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
86
- \ <hosted-login-token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted-login-token>\n
87
- \ <created-at type=\"datetime\">2011-08-19T20:01:06Z</created-at>\n <state>active</state>\n
88
- \ <billing-info>\n <credit-card>\n </credit-card>\n </billing-info>\n
89
- \ <accept-language nil=\"true\"></accept-language>\n</account>\n"
90
- headers:
91
- user-agent:
92
- - Recurly Ruby Client v0.4.10
93
- content-type:
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:
94
136
  - application/xml
95
- response: !ruby/struct:VCR::Response
96
- status: !ruby/struct:VCR::ResponseStatus
137
+ response: !ruby/struct:VCR::Response
138
+ status: !ruby/struct:VCR::ResponseStatus
97
139
  code: 200
98
140
  message: OK
99
- headers:
100
- content-type:
141
+ headers:
142
+ content-type:
101
143
  - application/xml; charset=utf-8
102
- etag:
103
- - ! '"a82c0abb3f09aea5192c5dee9e622d2f"'
104
- cache-control:
144
+ etag:
145
+ - "\"dc1b6a4675f02073d675149bcba2a492\""
146
+ cache-control:
105
147
  - max-age=0, private, must-revalidate
106
- x-ua-compatible:
148
+ x-ua-compatible:
107
149
  - IE=Edge
108
- set-cookie:
109
- - _recurly_session=5e0f28e55a7aaf205abff27c04a27d0d; domain=.lvh.me; path=/;
110
- HttpOnly
111
- server:
150
+ set-cookie:
151
+ - _recurly_session=2379399952464a39be8690403af8da8e; domain=.lvh.me; path=/; HttpOnly
152
+ server:
112
153
  - thin 1.2.11 codename Bat-Shit Crazy
113
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
114
- \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
115
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Update
116
- Test</last_name>\n <company_name>Recurly Ruby Gem -- Update</company_name>\n
117
- \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
118
- \ <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
119
- \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
120
- http_version: '1.1'
121
- - !ruby/struct:VCR::HTTPInteraction
122
- request: !ruby/struct:VCR::Request
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
123
174
  method: :get
124
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-update-1313708721.xml
125
- body: !!null
126
- headers:
127
- user-agent:
128
- - Recurly Ruby Client v0.4.10
129
- accept:
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:
130
181
  - application/xml
131
- accept-encoding:
182
+ accept-encoding:
132
183
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
133
- response: !ruby/struct:VCR::Response
134
- status: !ruby/struct:VCR::ResponseStatus
184
+ response: !ruby/struct:VCR::Response
185
+ status: !ruby/struct:VCR::ResponseStatus
135
186
  code: 200
136
187
  message: OK
137
- headers:
138
- content-type:
188
+ headers:
189
+ content-type:
139
190
  - application/xml; charset=utf-8
140
- etag:
141
- - ! '"a82c0abb3f09aea5192c5dee9e622d2f"'
142
- cache-control:
191
+ etag:
192
+ - "\"dc1b6a4675f02073d675149bcba2a492\""
193
+ cache-control:
143
194
  - max-age=0, private, must-revalidate
144
- x-ua-compatible:
195
+ x-ua-compatible:
145
196
  - IE=Edge
146
- set-cookie:
147
- - _recurly_session=9ea5a625d732232f90026cd0f564c5da; domain=.lvh.me; path=/;
148
- HttpOnly
149
- server:
197
+ server:
150
198
  - thin 1.2.11 codename Bat-Shit Crazy
151
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-update-1313708721</id>\n
152
- \ <account_code>account-update-1313708721</account_code>\n <username></username>\n
153
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Update
154
- Test</last_name>\n <company_name>Recurly Ruby Gem -- Update</company_name>\n
155
- \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
156
- \ <hosted_login_token>d237c502ccaf4cf595c1d1a0d6ae6f32</hosted_login_token>\n
157
- \ <created_at type=\"datetime\">2011-08-19T20:01:06Z</created_at>\n <state>active</state>\n</account>\n"
158
- http_version: '1.1'
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,118 +1,181 @@
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-create-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-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:
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-create-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/billing-create-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=d50498b3bdbd903438347a1c5672425d; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=cbc5bd05c9c114238fbb6dad15ab6114; 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-create-1313708721</id>\n
34
- \ <account_code>billing-create-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>ee3094c7b2a74cb88769d85fc0a23281</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:20Z</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-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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-create-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>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-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:
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
- - ! '"ac96cb1ac49651f910b748832c1cd0f4"'
64
- cache-control:
95
+ etag:
96
+ - "\"07790274f1d1c83b054f38e4d30e30f9\""
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=cd1047ea67ed31444d361ab77da3930e; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
101
+ set-cookie:
102
+ - _recurly_session=c0a1eafb31e2d3d081d235e8382f3f8f; 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-create-1313708721</account_code>\n
74
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</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:23Z</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-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
83
132
  method: :get
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-create-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-create-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
- - ! '"ac96cb1ac49651f910b748832c1cd0f4"'
102
- cache-control:
149
+ etag:
150
+ - "\"07790274f1d1c83b054f38e4d30e30f9\""
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=6a296f2221e327451e93ecd7ddd34e21; 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-create-1313708721</account_code>\n
112
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
113
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
114
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</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:23Z</updated_at>\n</billing_info>\n"
118
- http_version: '1.1'
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"