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,127 +2,17 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
6
6
  body:
7
7
  headers:
8
8
  authorization:
9
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
10
- user-agent:
11
- - Recurly Ruby Client v0.4.6
9
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
12
10
  accept:
13
11
  - application/xml
14
12
  accept-encoding:
15
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- connection:
17
- - close
18
- response: !ruby/struct:VCR::Response
19
- status: !ruby/struct:VCR::ResponseStatus
20
- code: 404
21
- message: "Not Found "
22
- headers:
23
- cache-control:
24
- - no-cache
25
- content-type:
26
- - application/xml; charset=utf-8
27
- content-length:
28
- - "90"
29
- server:
30
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
31
- date:
32
- - Thu, 21 Apr 2011 18:02:24 GMT
33
- connection:
34
- - close
35
- set-cookie:
36
- - _recurly_session=ae72804ec761abfb2e00d5461af3b77c; domain=.recurly.local; path=/; HttpOnly
37
- body: |
38
- <?xml version="1.0" encoding="UTF-8"?>
39
- <errors>
40
- <error>Plan not found</error>
41
- </errors>
42
-
43
- http_version: "1.1"
44
- - !ruby/struct:VCR::HTTPInteraction
45
- request: !ruby/struct:VCR::Request
46
- method: :post
47
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans.xml
48
- body: |
49
- <?xml version="1.0" encoding="UTF-8"?>
50
- <plan>
51
- <plan-code>test</plan-code>
52
- <name>Test Plan</name>
53
- <amount-in-cents type="integer">100</amount-in-cents>
54
- <plan-interval-length type="integer">1</plan-interval-length>
55
- <plan-interval-unit>months</plan-interval-unit>
56
- <trial-interval-length type="integer">0</trial-interval-length>
57
- <trial-interval-unit>months</trial-interval-unit>
58
- </plan>
59
-
60
- headers:
61
- authorization:
62
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
63
- user-agent:
64
- - Recurly Ruby Client v0.4.6
65
- content-type:
66
- - application/xml
67
- accept:
68
- - "*/*"
69
- connection:
70
- - close
71
- response: !ruby/struct:VCR::Response
72
- status: !ruby/struct:VCR::ResponseStatus
73
- code: 201
74
- message: "Created "
75
- headers:
76
- cache-control:
77
- - no-cache
78
- location:
79
- - http://app.recurly.local:3000/company/plans/test
80
- x-runtime:
81
- - "257"
82
- content-type:
83
- - application/xml; charset=utf-8
84
- content-length:
85
- - "617"
86
- server:
87
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
88
- date:
89
- - Thu, 21 Apr 2011 18:02:26 GMT
90
- connection:
91
- - close
92
- set-cookie:
93
- - _recurly_session=7c525c2b97f00dc59dd6aa38d5f3ef7c; domain=.recurly.local; path=/; HttpOnly
94
- body: |
95
- <?xml version="1.0" encoding="UTF-8"?>
96
- <plan>
97
- <plan_code>test</plan_code>
98
- <name>Test Plan</name>
99
- <description></description>
100
- <success_url></success_url>
101
- <cancel_url></cancel_url>
102
- <created_at type="datetime">2011-04-21T18:02:26Z</created_at>
103
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
104
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
105
- <plan_interval_length type="integer">1</plan_interval_length>
106
- <plan_interval_unit>months</plan_interval_unit>
107
- <trial_interval_length type="integer">0</trial_interval_length>
108
- <trial_interval_unit>months</trial_interval_unit>
109
- </plan>
110
-
111
- http_version: "1.1"
112
- - !ruby/struct:VCR::HTTPInteraction
113
- request: !ruby/struct:VCR::Request
114
- method: :get
115
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
116
- body:
117
- headers:
118
- authorization:
119
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
120
14
  user-agent:
121
- - Recurly Ruby Client v0.4.6
122
- accept:
123
- - application/xml
124
- accept-encoding:
125
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15
+ - Ruby
126
16
  connection:
127
17
  - close
128
18
  response: !ruby/struct:VCR::Response
@@ -131,23 +21,23 @@
131
21
  message: "OK "
132
22
  headers:
133
23
  x-runtime:
134
- - "79"
24
+ - "214"
135
25
  content-type:
136
26
  - application/xml; charset=utf-8
137
27
  etag:
138
- - "\"15c14ce3b98aabfd04d405144710f461\""
28
+ - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
139
29
  cache-control:
140
30
  - private, max-age=0, must-revalidate
141
31
  content-length:
142
- - "617"
32
+ - "1153"
143
33
  server:
144
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
145
35
  date:
146
- - Thu, 21 Apr 2011 18:02:27 GMT
36
+ - Thu, 03 Feb 2011 22:20:55 GMT
147
37
  connection:
148
38
  - close
149
39
  set-cookie:
150
- - _recurly_session=0064dc64092d4c50b3b4c1bd910effc5; domain=.recurly.local; path=/; HttpOnly
40
+ - _recurly_session=2c7f4cc9d4185d0d2d2c0370d015824b; domain=.recurly.local; path=/; HttpOnly
151
41
  body: |
152
42
  <?xml version="1.0" encoding="UTF-8"?>
153
43
  <plan>
@@ -156,20 +46,30 @@
156
46
  <description></description>
157
47
  <success_url></success_url>
158
48
  <cancel_url></cancel_url>
159
- <created_at type="datetime">2011-04-21T18:02:26Z</created_at>
160
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
49
+ <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
50
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
161
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
162
52
  <plan_interval_length type="integer">1</plan_interval_length>
163
53
  <plan_interval_unit>months</plan_interval_unit>
164
54
  <trial_interval_length type="integer">0</trial_interval_length>
165
55
  <trial_interval_unit>months</trial_interval_unit>
56
+ <latest_version depreciated="true">
57
+ <version type="integer">1</version>
58
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
59
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
60
+ <plan_interval_length type="integer">1</plan_interval_length>
61
+ <plan_interval_unit>months</plan_interval_unit>
62
+ <trial_interval_length type="integer">0</trial_interval_length>
63
+ <trial_interval_unit>months</trial_interval_unit>
64
+ <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
65
+ </latest_version>
166
66
  </plan>
167
67
 
168
68
  http_version: "1.1"
169
69
  - !ruby/struct:VCR::HTTPInteraction
170
70
  request: !ruby/struct:VCR::Request
171
71
  method: :put
172
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
72
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
173
73
  body: |
174
74
  <?xml version="1.0" encoding="UTF-8"?>
175
75
  <plan>
@@ -178,25 +78,35 @@
178
78
  <description type="yaml" nil="true"></description>
179
79
  <success-url type="yaml" nil="true"></success-url>
180
80
  <cancel-url type="yaml" nil="true"></cancel-url>
181
- <created-at type="datetime">2011-04-21T18:02:26Z</created-at>
182
- <unit-amount-in-cents type="integer">0</unit-amount-in-cents>
81
+ <created-at type="datetime">2011-02-02T21:10:47Z</created-at>
82
+ <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
183
83
  <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
184
84
  <plan-interval-length type="integer">1</plan-interval-length>
185
85
  <plan-interval-unit>months</plan-interval-unit>
186
86
  <trial-interval-length type="integer">0</trial-interval-length>
187
87
  <trial-interval-unit>months</trial-interval-unit>
188
- <amount-in-cents type="integer">200</amount-in-cents>
88
+ <latest-version>
89
+ <depreciated>true</depreciated>
90
+ <version type="integer">1</version>
91
+ <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
92
+ <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
93
+ <plan-interval-length type="integer">1</plan-interval-length>
94
+ <plan-interval-unit>months</plan-interval-unit>
95
+ <trial-interval-length type="integer">0</trial-interval-length>
96
+ <trial-interval-unit>months</trial-interval-unit>
97
+ <created-at type="datetime">2011-02-02T21:10:51Z</created-at>
98
+ </latest-version>
189
99
  </plan>
190
100
 
191
101
  headers:
192
102
  authorization:
193
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
194
- user-agent:
195
- - Recurly Ruby Client v0.4.6
103
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
196
104
  content-type:
197
105
  - application/xml
198
106
  accept:
199
107
  - "*/*"
108
+ user-agent:
109
+ - Ruby
200
110
  connection:
201
111
  - close
202
112
  response: !ruby/struct:VCR::Response
@@ -207,35 +117,35 @@
207
117
  cache-control:
208
118
  - no-cache
209
119
  x-runtime:
210
- - "428"
120
+ - "254"
211
121
  content-type:
212
122
  - application/xml; charset=utf-8
213
123
  content-length:
214
124
  - "1"
215
125
  server:
216
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
126
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
217
127
  date:
218
- - Thu, 21 Apr 2011 18:02:29 GMT
128
+ - Thu, 03 Feb 2011 22:20:57 GMT
219
129
  connection:
220
130
  - close
221
131
  set-cookie:
222
- - _recurly_session=cf992d11ddd1ee834dda00781628a4a9; domain=.recurly.local; path=/; HttpOnly
132
+ - _recurly_session=fa7066b1d7a3b600898c36c4d30001bd; domain=.recurly.local; path=/; HttpOnly
223
133
  body: " "
224
134
  http_version: "1.1"
225
135
  - !ruby/struct:VCR::HTTPInteraction
226
136
  request: !ruby/struct:VCR::Request
227
137
  method: :get
228
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/test.xml
138
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
229
139
  body:
230
140
  headers:
231
141
  authorization:
232
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
233
- user-agent:
234
- - Recurly Ruby Client v0.4.6
142
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
235
143
  accept:
236
144
  - application/xml
237
145
  accept-encoding:
238
146
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
147
+ user-agent:
148
+ - Ruby
239
149
  connection:
240
150
  - close
241
151
  response: !ruby/struct:VCR::Response
@@ -244,23 +154,23 @@
244
154
  message: "OK "
245
155
  headers:
246
156
  x-runtime:
247
- - "223"
157
+ - "208"
248
158
  content-type:
249
159
  - application/xml; charset=utf-8
250
160
  etag:
251
- - "\"15c14ce3b98aabfd04d405144710f461\""
161
+ - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
252
162
  cache-control:
253
163
  - private, max-age=0, must-revalidate
254
164
  content-length:
255
- - "617"
165
+ - "1153"
256
166
  server:
257
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
167
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
258
168
  date:
259
- - Thu, 21 Apr 2011 18:02:31 GMT
169
+ - Thu, 03 Feb 2011 22:20:59 GMT
260
170
  connection:
261
171
  - close
262
172
  set-cookie:
263
- - _recurly_session=b53eef0c05a9b113f08519ccc14dd3e7; domain=.recurly.local; path=/; HttpOnly
173
+ - _recurly_session=943ed2e9e815ec4c7024797c220fda48; domain=.recurly.local; path=/; HttpOnly
264
174
  body: |
265
175
  <?xml version="1.0" encoding="UTF-8"?>
266
176
  <plan>
@@ -269,13 +179,23 @@
269
179
  <description></description>
270
180
  <success_url></success_url>
271
181
  <cancel_url></cancel_url>
272
- <created_at type="datetime">2011-04-21T18:02:26Z</created_at>
273
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
182
+ <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
183
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
274
184
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
275
185
  <plan_interval_length type="integer">1</plan_interval_length>
276
186
  <plan_interval_unit>months</plan_interval_unit>
277
187
  <trial_interval_length type="integer">0</trial_interval_length>
278
188
  <trial_interval_unit>months</trial_interval_unit>
189
+ <latest_version depreciated="true">
190
+ <version type="integer">1</version>
191
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
192
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
193
+ <plan_interval_length type="integer">1</plan_interval_length>
194
+ <plan_interval_unit>months</plan_interval_unit>
195
+ <trial_interval_length type="integer">0</trial_interval_length>
196
+ <trial_interval_unit>months</trial_interval_unit>
197
+ <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
198
+ </latest_version>
279
199
  </plan>
280
200
 
281
201
  http_version: "1.1"
@@ -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-add-1301885121</account-code>
9
+ <account-code>subscription-addons-add-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-add-1301885121
36
+ - http://litle-test.recurly.local:3000/accounts/subscription-addons-add-1296674173
41
37
  x-runtime:
42
- - "245"
38
+ - "665"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "601"
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:01 GMT
46
+ - Thu, 03 Feb 2011 22:17:22 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=0236eca3f13c88461e5ec6889a1948c2; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=b10008504b80fa0535f772db641156997545730d19eff1bb14543261204538190642a01b920e0165b22b37cbabd8a844ff19cf62d5a8818c525e773037c26264%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=f847209e91f72d847fd8aa815fe0889e; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>subscription-addons-add-1301885121</id>
59
- <account_code>subscription-addons-add-1301885121</account_code>
56
+ <id>subscription-addons-add-1296674173</id>
57
+ <account_code>subscription-addons-add-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>dccd900c6887402ab28156f401f064b5</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:59:01Z</created_at>
65
+ <hosted_login_token>3d8d1daa750b4990b23985ef36c1b008</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:22Z</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
- - "198"
93
+ - "175"
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:03 GMT
105
+ - Thu, 03 Feb 2011 22:17:24 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=ad4dae3d789a1501307bd0f3e0d3daaa; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=e28ad738775ba58881f73cdd96ce6201; 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-add-1301885121/subscription.xml
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-add-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-add-1301885121</account-code>
148
+ <account-code>subscription-addons-add-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-add-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>3d8d1daa750b4990b23985ef36c1b008</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:17:22Z</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-add-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>dccd900c6887402ab28156f401f064b5</hosted-login-token>
166
- <created-at type="datetime">2011-04-21T17:59:01Z</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
- - "745"
205
+ - "575"
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:05 GMT
213
+ - Thu, 03 Feb 2011 22:17:26 GMT
207
214
  connection:
208
215
  - close
209
216
  set-cookie:
210
- - _recurly_session=321ed522ec59de179080083ec0125165; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=8d2dc7e4941757f497997e9071ad8a66; domain=.recurly.local; path=/; HttpOnly
211
218
  body: |
212
219
  <?xml version="1.0" encoding="UTF-8"?>
213
220
  <errors>