recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-addons-create-1301885121</account-code>
9
+ <account-code>subscription-addons-create-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/subscription-addons-create-1301885121
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-addons-create-1296674173
41
37
  x-runtime:
42
- - "238"
38
+ - "559"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "607"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 17:58:56 GMT
46
+ - Thu, 03 Feb 2011 22:17:16 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=65b3e2f39a5de751f19e2745193d3b71; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=15a5f2f9bb843bb70247bcb7260a3449212053079d099e6899afced4f72de356f6462b8436488af3398b241539ae599c5d4f6824e65a083dc5088700c260f43e%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=fe47112405f2dbceb8685136f76796a9; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-addons-create-1301885121</id>
59
- <account_code>subscription-addons-create-1301885121</account_code>
56
+ <id>subscription-addons-create-1296674173</id>
57
+ <account_code>subscription-addons-create-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>ac261e89b34c458ca7fcecdfc290ac4e</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:58:56Z</created_at>
65
+ <hosted_login_token>56ae50cc980a415b89ea3d0dffda7bfc</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:16Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,17 +71,17 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :get
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
77
75
  body:
78
76
  headers:
79
77
  authorization:
80
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
- user-agent:
82
- - Recurly Ruby Client v0.4.6
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
83
79
  accept:
84
80
  - application/xml
85
81
  accept-encoding:
86
82
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
87
85
  connection:
88
86
  - close
89
87
  response: !ruby/struct:VCR::Response
@@ -92,23 +90,23 @@
92
90
  message: "OK "
93
91
  headers:
94
92
  x-runtime:
95
- - "199"
93
+ - "191"
96
94
  content-type:
97
95
  - application/xml; charset=utf-8
98
96
  etag:
99
- - "\"3888306c167f105a4e165433ee427264\""
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
100
98
  cache-control:
101
99
  - private, max-age=0, must-revalidate
102
100
  content-length:
103
- - "612"
101
+ - "1150"
104
102
  server:
105
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
106
104
  date:
107
- - Thu, 21 Apr 2011 17:58:58 GMT
105
+ - Thu, 03 Feb 2011 22:17:18 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=0c4c7f81bdc06eacf5d712b5c84ec2dc; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=f168b0bac9e8c30e9280992dd48b5749; domain=.recurly.local; path=/; HttpOnly
112
110
  body: |
113
111
  <?xml version="1.0" encoding="UTF-8"?>
114
112
  <plan>
@@ -117,34 +115,50 @@
117
115
  <description></description>
118
116
  <success_url></success_url>
119
117
  <cancel_url></cancel_url>
120
- <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
121
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
119
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
122
120
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
123
121
  <plan_interval_length type="integer">1</plan_interval_length>
124
122
  <plan_interval_unit>months</plan_interval_unit>
125
123
  <trial_interval_length type="integer">0</trial_interval_length>
126
124
  <trial_interval_unit>months</trial_interval_unit>
125
+ <latest_version depreciated="true">
126
+ <version type="integer">1</version>
127
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
+ <plan_interval_length type="integer">1</plan_interval_length>
130
+ <plan_interval_unit>months</plan_interval_unit>
131
+ <trial_interval_length type="integer">0</trial_interval_length>
132
+ <trial_interval_unit>months</trial_interval_unit>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
134
+ </latest_version>
127
135
  </plan>
128
136
 
129
137
  http_version: "1.1"
130
138
  - !ruby/struct:VCR::HTTPInteraction
131
139
  request: !ruby/struct:VCR::Request
132
140
  method: :post
133
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-addons-create-1301885121/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-create-1296674173/subscription.xml
134
142
  body: |
135
143
  <?xml version="1.0" encoding="UTF-8"?>
136
144
  <subscription>
137
145
  <plan-code>paid</plan-code>
138
146
  <quantity type="integer">1</quantity>
139
147
  <account>
140
- <account-code>subscription-addons-create-1301885121</account-code>
148
+ <account-code>subscription-addons-create-1296674173</account-code>
141
149
  <first-name>Verena</first-name>
142
150
  <last-name>Test</last-name>
143
151
  <email>verena@test.com</email>
144
152
  <company-name>Recurly Ruby Gem</company-name>
153
+ <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>subscription-addons-create-1296674173</id>
155
+ <username type="yaml" nil="true"></username>
156
+ <balance-in-cents type="integer">0</balance-in-cents>
157
+ <closed type="boolean">false</closed>
158
+ <hosted-login-token>56ae50cc980a415b89ea3d0dffda7bfc</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:17:16Z</created-at>
160
+ <state>active</state>
145
161
  <billing-info>
146
- <first-name>Verena</first-name>
147
- <last-name>Test</last-name>
148
162
  <address1>123 Test St</address1>
149
163
  <city>San Francisco</city>
150
164
  <state>CA</state>
@@ -153,18 +167,12 @@
153
167
  <credit-card>
154
168
  <number>4111111111111111</number>
155
169
  <year type="integer">2012</year>
156
- <month type="integer">4</month>
170
+ <month type="integer">2</month>
157
171
  <verification-value>123</verification-value>
158
172
  </credit-card>
173
+ <first-name>Verena</first-name>
174
+ <last-name>Test</last-name>
159
175
  </billing-info>
160
- <accept-language type="yaml" nil="true"></accept-language>
161
- <id>subscription-addons-create-1301885121</id>
162
- <username type="yaml" nil="true"></username>
163
- <balance-in-cents type="integer">0</balance-in-cents>
164
- <closed type="boolean">false</closed>
165
- <hosted-login-token>ac261e89b34c458ca7fcecdfc290ac4e</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T17:58:56Z</created-at>
167
- <state>active</state>
168
176
  </account>
169
177
  <add-ons type="array">
170
178
  <add-on>
@@ -173,18 +181,17 @@
173
181
  <unit-amount type="integer">10</unit-amount>
174
182
  </add-on>
175
183
  </add-ons>
176
- <addons type="array"/>
177
184
  </subscription>
178
185
 
179
186
  headers:
180
187
  authorization:
181
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
182
- user-agent:
183
- - Recurly Ruby Client v0.4.6
188
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
184
189
  content-type:
185
190
  - application/xml
186
191
  accept:
187
192
  - "*/*"
193
+ user-agent:
194
+ - Ruby
188
195
  connection:
189
196
  - close
190
197
  response: !ruby/struct:VCR::Response
@@ -195,19 +202,19 @@
195
202
  cache-control:
196
203
  - no-cache
197
204
  x-runtime:
198
- - "775"
205
+ - "589"
199
206
  content-type:
200
207
  - application/xml; charset=utf-8
201
208
  content-length:
202
209
  - "228"
203
210
  server:
204
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
211
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
205
212
  date:
206
- - Thu, 21 Apr 2011 17:59:00 GMT
213
+ - Thu, 03 Feb 2011 22:17:20 GMT
207
214
  connection:
208
215
  - close
209
216
  set-cookie:
210
- - _recurly_session=53993398d9a952ec30898f01d87b2a20; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=0019c1a7f6d137a9bfeabf58ebb8bbf8; domain=.recurly.local; path=/; HttpOnly
211
218
  body: |
212
219
  <?xml version="1.0" encoding="UTF-8"?>
213
220
  <errors>
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>subscription-addons-remove-1301885121</account-code>
9
+ <account-code>subscription-addons-remove-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/subscription-addons-remove-1301885121
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-addons-remove-1296674173
41
37
  x-runtime:
42
- - "361"
38
+ - "610"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "607"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 17:59:07 GMT
46
+ - Thu, 03 Feb 2011 22:17:28 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=c25125ef1213d54887aee84a3329b1a5; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=0ebd37a77ab913dfcd1b6b63b9560990263079bec6fab052e913aea18c5b15af49946606bb73c1837b4f434c2e59a88cfe81f0dafd98b380616f3a09804e6585%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=467817a5c53fdc04ccf2cec9d00020b3; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-addons-remove-1301885121</id>
59
- <account_code>subscription-addons-remove-1301885121</account_code>
56
+ <id>subscription-addons-remove-1296674173</id>
57
+ <account_code>subscription-addons-remove-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>d0df6c8251a1458b9188cfebb447a07a</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:59:07Z</created_at>
65
+ <hosted_login_token>bd8d6edd4d5845d99f323432f9153e0e</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:28Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,17 +71,17 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :get
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
77
75
  body:
78
76
  headers:
79
77
  authorization:
80
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
- user-agent:
82
- - Recurly Ruby Client v0.4.6
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
83
79
  accept:
84
80
  - application/xml
85
81
  accept-encoding:
86
82
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
87
85
  connection:
88
86
  - close
89
87
  response: !ruby/struct:VCR::Response
@@ -92,23 +90,23 @@
92
90
  message: "OK "
93
91
  headers:
94
92
  x-runtime:
95
- - "105"
93
+ - "182"
96
94
  content-type:
97
95
  - application/xml; charset=utf-8
98
96
  etag:
99
- - "\"3888306c167f105a4e165433ee427264\""
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
100
98
  cache-control:
101
99
  - private, max-age=0, must-revalidate
102
100
  content-length:
103
- - "612"
101
+ - "1150"
104
102
  server:
105
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
106
104
  date:
107
- - Thu, 21 Apr 2011 17:59:09 GMT
105
+ - Thu, 03 Feb 2011 22:17:30 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=d63d8173d028891078df5d73bb0a12d5; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=167be53f15de9874430d834a03e35cbf; domain=.recurly.local; path=/; HttpOnly
112
110
  body: |
113
111
  <?xml version="1.0" encoding="UTF-8"?>
114
112
  <plan>
@@ -117,34 +115,50 @@
117
115
  <description></description>
118
116
  <success_url></success_url>
119
117
  <cancel_url></cancel_url>
120
- <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
121
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
119
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
122
120
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
123
121
  <plan_interval_length type="integer">1</plan_interval_length>
124
122
  <plan_interval_unit>months</plan_interval_unit>
125
123
  <trial_interval_length type="integer">0</trial_interval_length>
126
124
  <trial_interval_unit>months</trial_interval_unit>
125
+ <latest_version depreciated="true">
126
+ <version type="integer">1</version>
127
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
+ <plan_interval_length type="integer">1</plan_interval_length>
130
+ <plan_interval_unit>months</plan_interval_unit>
131
+ <trial_interval_length type="integer">0</trial_interval_length>
132
+ <trial_interval_unit>months</trial_interval_unit>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
134
+ </latest_version>
127
135
  </plan>
128
136
 
129
137
  http_version: "1.1"
130
138
  - !ruby/struct:VCR::HTTPInteraction
131
139
  request: !ruby/struct:VCR::Request
132
140
  method: :post
133
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-addons-remove-1301885121/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-remove-1296674173/subscription.xml
134
142
  body: |
135
143
  <?xml version="1.0" encoding="UTF-8"?>
136
144
  <subscription>
137
145
  <plan-code>paid</plan-code>
138
146
  <quantity type="integer">1</quantity>
139
147
  <account>
140
- <account-code>subscription-addons-remove-1301885121</account-code>
148
+ <account-code>subscription-addons-remove-1296674173</account-code>
141
149
  <first-name>Verena</first-name>
142
150
  <last-name>Test</last-name>
143
151
  <email>verena@test.com</email>
144
152
  <company-name>Recurly Ruby Gem</company-name>
153
+ <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>subscription-addons-remove-1296674173</id>
155
+ <username type="yaml" nil="true"></username>
156
+ <balance-in-cents type="integer">0</balance-in-cents>
157
+ <closed type="boolean">false</closed>
158
+ <hosted-login-token>bd8d6edd4d5845d99f323432f9153e0e</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:17:28Z</created-at>
160
+ <state>active</state>
145
161
  <billing-info>
146
- <first-name>Verena</first-name>
147
- <last-name>Test</last-name>
148
162
  <address1>123 Test St</address1>
149
163
  <city>San Francisco</city>
150
164
  <state>CA</state>
@@ -153,18 +167,12 @@
153
167
  <credit-card>
154
168
  <number>4111111111111111</number>
155
169
  <year type="integer">2012</year>
156
- <month type="integer">4</month>
170
+ <month type="integer">2</month>
157
171
  <verification-value>123</verification-value>
158
172
  </credit-card>
173
+ <first-name>Verena</first-name>
174
+ <last-name>Test</last-name>
159
175
  </billing-info>
160
- <accept-language type="yaml" nil="true"></accept-language>
161
- <id>subscription-addons-remove-1301885121</id>
162
- <username type="yaml" nil="true"></username>
163
- <balance-in-cents type="integer">0</balance-in-cents>
164
- <closed type="boolean">false</closed>
165
- <hosted-login-token>d0df6c8251a1458b9188cfebb447a07a</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T17:59:07Z</created-at>
167
- <state>active</state>
168
176
  </account>
169
177
  <add-ons type="array">
170
178
  <add-on>
@@ -173,18 +181,17 @@
173
181
  <unit-amount type="integer">1000</unit-amount>
174
182
  </add-on>
175
183
  </add-ons>
176
- <addons type="array"/>
177
184
  </subscription>
178
185
 
179
186
  headers:
180
187
  authorization:
181
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
182
- user-agent:
183
- - Recurly Ruby Client v0.4.6
188
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
184
189
  content-type:
185
190
  - application/xml
186
191
  accept:
187
192
  - "*/*"
193
+ user-agent:
194
+ - Ruby
188
195
  connection:
189
196
  - close
190
197
  response: !ruby/struct:VCR::Response
@@ -195,19 +202,19 @@
195
202
  cache-control:
196
203
  - no-cache
197
204
  x-runtime:
198
- - "829"
205
+ - "595"
199
206
  content-type:
200
207
  - application/xml; charset=utf-8
201
208
  content-length:
202
209
  - "228"
203
210
  server:
204
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
211
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
205
212
  date:
206
- - Thu, 21 Apr 2011 17:59:11 GMT
213
+ - Thu, 03 Feb 2011 22:17:32 GMT
207
214
  connection:
208
215
  - close
209
216
  set-cookie:
210
- - _recurly_session=c7b899748a095dfb63c6065fd18dd634; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=1780a05a7313c7b0fcc221a1bad1a94a; domain=.recurly.local; path=/; HttpOnly
211
218
  body: |
212
219
  <?xml version="1.0" encoding="UTF-8"?>
213
220
  <errors>