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,156 +1,234 @@
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-find-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-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:
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-find-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/billing-find-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=f721d40f76fd4a33585ba75711b48ff9; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=0b58f4c6949629f5fb2417a48090bee8; 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-find-1313708721</id>\n
34
- \ <account_code>billing-find-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>39a63b699c814ba294c74fc316df2045</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:29Z</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-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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-find-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 <account-code>billing-find-1313708721</account-code>\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-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:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"875a153a35511821027bcb3ce60c4b82"'
64
- cache-control:
96
+ etag:
97
+ - "\"7cdad65365885699c3c4c0306c3fbeeb\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=b2eff91537d341f69747696634706a40; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=b87134bcd368c2814d4d4fd1ede574fc; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-find-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:32Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
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
83
133
  method: :get
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-find-1313708721/billing_info.xml
85
- body: !!null
86
- headers:
87
- user-agent:
88
- - Recurly Ruby Client v0.4.10
89
- accept:
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:
90
140
  - application/xml
91
- accept-encoding:
141
+ accept-encoding:
92
142
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
- response: !ruby/struct:VCR::Response
94
- status: !ruby/struct:VCR::ResponseStatus
143
+ response: !ruby/struct:VCR::Response
144
+ status: !ruby/struct:VCR::ResponseStatus
95
145
  code: 200
96
146
  message: OK
97
- headers:
98
- content-type:
147
+ headers:
148
+ content-type:
99
149
  - application/xml; charset=utf-8
100
- etag:
101
- - ! '"875a153a35511821027bcb3ce60c4b82"'
102
- cache-control:
150
+ etag:
151
+ - "\"7cdad65365885699c3c4c0306c3fbeeb\""
152
+ cache-control:
103
153
  - max-age=0, private, must-revalidate
104
- x-ua-compatible:
154
+ x-ua-compatible:
105
155
  - IE=Edge
106
- set-cookie:
107
- - _recurly_session=1c9ab7c65c39d9ec57033a3a4b8acc2a; domain=.lvh.me; path=/;
108
- HttpOnly
109
- server:
156
+ server:
110
157
  - thin 1.2.11 codename Bat-Shit Crazy
111
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-find-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:32Z</updated_at>\n</billing_info>\n"
118
- http_version: '1.1'
119
- - !ruby/struct:VCR::HTTPInteraction
120
- request: !ruby/struct:VCR::Request
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
121
185
  method: :get
122
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-find-1313708721/billing_info.xml
123
- body: !!null
124
- headers:
125
- user-agent:
126
- - Recurly Ruby Client v0.4.10
127
- accept:
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:
128
192
  - application/xml
129
- accept-encoding:
193
+ accept-encoding:
130
194
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
131
- response: !ruby/struct:VCR::Response
132
- status: !ruby/struct:VCR::ResponseStatus
195
+ response: !ruby/struct:VCR::Response
196
+ status: !ruby/struct:VCR::ResponseStatus
133
197
  code: 200
134
198
  message: OK
135
- headers:
136
- content-type:
199
+ headers:
200
+ content-type:
137
201
  - application/xml; charset=utf-8
138
- etag:
139
- - ! '"875a153a35511821027bcb3ce60c4b82"'
140
- cache-control:
202
+ etag:
203
+ - "\"7cdad65365885699c3c4c0306c3fbeeb\""
204
+ cache-control:
141
205
  - max-age=0, private, must-revalidate
142
- x-ua-compatible:
206
+ x-ua-compatible:
143
207
  - IE=Edge
144
- set-cookie:
145
- - _recurly_session=9e21e17fa59d998526e5147bed75e7f3; domain=.lvh.me; path=/;
146
- HttpOnly
147
- server:
208
+ server:
148
209
  - thin 1.2.11 codename Bat-Shit Crazy
149
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-find-1313708721</account_code>\n
150
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
151
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
152
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
153
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
154
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
155
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:32Z</updated_at>\n</billing_info>\n"
156
- http_version: '1.1'
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,159 +1,251 @@
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-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>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:
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-update-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/billing-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=3dbfee413118d5c039bc24431d9be512; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=20bc8f43f19bb6efd3c0f39416857287; 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-update-1313708721</id>\n
34
- \ <account_code>billing-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>8184134b9308477ba9575d735a8d68bf</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:23Z</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-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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-update-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 <account-code>billing-update-1313708721</account-code>\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-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:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"90d031a9155659d5af0f104239bfe331"'
64
- cache-control:
96
+ etag:
97
+ - "\"6ac3c8c2541410e122db826d4cc2ae00\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=78b6f75eb22ca0fed51e0c91b9ec66a4; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=bf82711518105dfa47d376583ccdd927; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-update-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:26Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
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
83
133
  method: :put
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
85
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
86
- \ <last-name>Test</last-name>\n <address1>1st Ave South, Apt 5001</address1>\n
87
- \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
88
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
89
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
90
- \ </credit-card>\n</billing-info>\n"
91
- headers:
92
- user-agent:
93
- - Recurly Ruby Client v0.4.10
94
- content-type:
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:
95
157
  - application/xml
96
- response: !ruby/struct:VCR::Response
97
- status: !ruby/struct:VCR::ResponseStatus
158
+ response: !ruby/struct:VCR::Response
159
+ status: !ruby/struct:VCR::ResponseStatus
98
160
  code: 200
99
161
  message: OK
100
- headers:
101
- content-type:
162
+ headers:
163
+ content-type:
102
164
  - application/xml; charset=utf-8
103
- etag:
104
- - ! '"dae3f7f78140a61718d91b54868745aa"'
105
- cache-control:
165
+ etag:
166
+ - "\"a15dbef5aae961fcc7ad717302bdaccd\""
167
+ cache-control:
106
168
  - max-age=0, private, must-revalidate
107
- x-ua-compatible:
169
+ x-ua-compatible:
108
170
  - IE=Edge
109
- set-cookie:
110
- - _recurly_session=4816cad545c23d21c27f3ce912bfa652; domain=.lvh.me; path=/;
111
- HttpOnly
112
- server:
171
+ set-cookie:
172
+ - _recurly_session=2c64299b0ea9c4653ae90e51ca8aa71e; domain=.lvh.me; path=/; HttpOnly
173
+ server:
113
174
  - thin 1.2.11 codename Bat-Shit Crazy
114
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-update-1313708721</account_code>\n
115
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>1st
116
- Ave South, Apt 5001</address1>\n <address2></address2>\n <city>San Francisco</city>\n
117
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
118
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
119
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
120
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:29Z</updated_at>\n</billing_info>\n"
121
- http_version: '1.1'
122
- - !ruby/struct:VCR::HTTPInteraction
123
- request: !ruby/struct:VCR::Request
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
124
202
  method: :get
125
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/billing-update-1313708721/billing_info.xml
126
- body: !!null
127
- headers:
128
- user-agent:
129
- - Recurly Ruby Client v0.4.10
130
- accept:
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:
131
209
  - application/xml
132
- accept-encoding:
210
+ accept-encoding:
133
211
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
134
- response: !ruby/struct:VCR::Response
135
- status: !ruby/struct:VCR::ResponseStatus
212
+ response: !ruby/struct:VCR::Response
213
+ status: !ruby/struct:VCR::ResponseStatus
136
214
  code: 200
137
215
  message: OK
138
- headers:
139
- content-type:
216
+ headers:
217
+ content-type:
140
218
  - application/xml; charset=utf-8
141
- etag:
142
- - ! '"dae3f7f78140a61718d91b54868745aa"'
143
- cache-control:
219
+ etag:
220
+ - "\"a15dbef5aae961fcc7ad717302bdaccd\""
221
+ cache-control:
144
222
  - max-age=0, private, must-revalidate
145
- x-ua-compatible:
223
+ x-ua-compatible:
146
224
  - IE=Edge
147
- set-cookie:
148
- - _recurly_session=2d7ed4b07a763e8825549cbec8e27fef; domain=.lvh.me; path=/;
149
- HttpOnly
150
- server:
225
+ server:
151
226
  - thin 1.2.11 codename Bat-Shit Crazy
152
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>billing-update-1313708721</account_code>\n
153
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>1st
154
- Ave South, Apt 5001</address1>\n <address2></address2>\n <city>San Francisco</city>\n
155
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
156
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
157
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
158
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:29Z</updated_at>\n</billing_info>\n"
159
- http_version: '1.1'
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"