recurly 0.4.3 → 0.4.4

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 (64) hide show
  1. data/lib/recurly/base.rb +9 -4
  2. data/lib/recurly/coupon.rb +1 -1
  3. data/lib/recurly/formats/xml_with_errors.rb +2 -2
  4. data/lib/recurly/rails3/recurly.rake +2 -2
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/account_spec.rb +3 -3
  7. data/spec/vcr/account/accept-language-account/{1297746103.yml → 1301979678.yml} +8 -8
  8. data/spec/vcr/account/close/{1297746103.yml → 1301979678.yml} +19 -19
  9. data/spec/vcr/account/create-blank/{1297746103.yml → 1301979678.yml} +2 -2
  10. data/spec/vcr/account/create-duplicate/{1297746103.yml → 1301979678.yml} +6 -6
  11. data/spec/vcr/account/create-min/{1297746103.yml → 1301979678.yml} +8 -8
  12. data/spec/vcr/account/create/{1297746103.yml → 1301979678.yml} +8 -8
  13. data/spec/vcr/account/find/{1297746103.yml → 1301979678.yml} +17 -17
  14. data/spec/vcr/account/list/{1297746103.yml → 1301979678.yml} +151 -151
  15. data/spec/vcr/account/update/{1297746103.yml → 1301979678.yml} +36 -36
  16. data/spec/vcr/billing/create/1298594128.yml +12 -12
  17. data/spec/vcr/billing/destroy/1298594128.yml +15 -15
  18. data/spec/vcr/billing/find/1298594128.yml +16 -16
  19. data/spec/vcr/billing/update/1298594128.yml +16 -16
  20. data/spec/vcr/charge/create/1297746103.yml +20 -20
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
  22. data/spec/vcr/charge/list-all/1297746103.yml +31 -31
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +54 -54
  24. data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
  25. data/spec/vcr/charge/lookup/1297746103.yml +16 -16
  26. data/spec/vcr/coupon/create/1299714521.yml +11 -11
  27. data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
  28. data/spec/vcr/credit/create/1299714599.yml +16 -16
  29. data/spec/vcr/credit/delete/1299714599.yml +21 -21
  30. data/spec/vcr/credit/list/1299714599.yml +31 -31
  31. data/spec/vcr/credit/lookup/1299714599.yml +16 -16
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
  33. data/spec/vcr/invoice/create/1297746103.yml +30 -30
  34. data/spec/vcr/invoice/list/1297746103.yml +45 -45
  35. data/spec/vcr/invoice/lookup/1297746103.yml +31 -31
  36. data/spec/vcr/plan/all.yml +6 -6
  37. data/spec/vcr/plan/find.yml +6 -6
  38. data/spec/vcr/plan/update.yml +6 -6
  39. data/spec/vcr/subscription/addons/add/{1297746103.yml → 1301885121.yml} +49 -49
  40. data/spec/vcr/subscription/addons/create/{1301884213.yml → 1301885121.yml} +31 -31
  41. data/spec/vcr/subscription/addons/remove/{1297746103.yml → 1301885121.yml} +49 -49
  42. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
  43. data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
  44. data/spec/vcr/subscription/change1/1301881900.yml +31 -31
  45. data/spec/vcr/subscription/change2/1301881900.yml +31 -31
  46. data/spec/vcr/subscription/create/1301881900.yml +13 -13
  47. data/spec/vcr/subscription/find/1301881900.yml +19 -19
  48. data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
  49. data/spec/vcr/subscription/refund-full/1301881900.yml +27 -27
  50. data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
  51. data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
  52. data/spec/vcr/transaction/all/1301883347.yml +43 -43
  53. data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
  54. data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
  55. data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
  56. data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
  57. data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
  58. data/spec/vcr/transaction/refund/1301883347.yml +19 -19
  59. data/spec/vcr/transaction/void/1301883347.yml +26 -26
  60. data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
  61. metadata +27 -33
  62. data/spec/vcr/subscription/addons/add/1301884213.yml +0 -480
  63. data/spec/vcr/subscription/addons/create/1297746103.yml +0 -321
  64. data/spec/vcr/subscription/addons/remove/1301884213.yml +0 -449
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/transaction-void-1301883347
41
41
  x-runtime:
42
- - "313"
42
+ - "899"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "587"
47
47
  set-cookie:
48
- - _recurly_session=b3d1a99e11b7d920babf589290a4b675; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=a4159377ff447615fb6e71c8e52f64ab; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>d3d5efec55dd4a68a19b0b1493863cc1</hosted_login_token>
66
- <created_at type="datetime">2011-04-04T02:27:03Z</created_at>
65
+ <hosted_login_token>039ddc916cc8466ca588ef842233e9e0</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T05:21:36Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -108,17 +108,17 @@
108
108
  message: OK
109
109
  headers:
110
110
  x-runtime:
111
- - "1784"
111
+ - "2106"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
114
  etag:
115
- - "\"0ba7299345a594479d9c9220689c97ef\""
115
+ - "\"70be46c52bafc9cb233ca980a65efb96\""
116
116
  cache-control:
117
117
  - private, max-age=0, must-revalidate
118
118
  content-length:
119
119
  - "642"
120
120
  set-cookie:
121
- - _recurly_session=a1c38a71a9741db3aac533e706801120; domain=.recurly.local; path=/; HttpOnly
121
+ - _recurly_session=f2ba26bfd4a1e394e79120c75574b0b6; domain=.recurly.local; path=/; HttpOnly
122
122
  connection:
123
123
  - close
124
124
  server:
@@ -144,7 +144,7 @@
144
144
  <month type="integer">4</month>
145
145
  <year type="integer">2012</year>
146
146
  </credit_card>
147
- <updated_at type="datetime">2011-04-04T02:27:07Z</updated_at>
147
+ <updated_at type="datetime">2011-04-05T05:21:40Z</updated_at>
148
148
  </billing_info>
149
149
 
150
150
  http_version: "1.1"
@@ -185,15 +185,15 @@
185
185
  cache-control:
186
186
  - no-cache
187
187
  location:
188
- - http://app.recurly.local:3000/transactions/b0edb36553f24330895f1fb78dda4af8
188
+ - http://app.recurly.local:3000/transactions/9d73bb3c72294823a82e0f28c5af62f9
189
189
  x-runtime:
190
- - "2031"
190
+ - "2526"
191
191
  content-type:
192
192
  - application/xml; charset=utf-8
193
193
  content-length:
194
194
  - "857"
195
195
  set-cookie:
196
- - _recurly_session=a8f6bf410feacda4460a44bfe2409905; domain=.recurly.local; path=/; HttpOnly
196
+ - _recurly_session=8eaaa2e6ba855123365f5c196ed3751c; domain=.recurly.local; path=/; HttpOnly
197
197
  connection:
198
198
  - close
199
199
  server:
@@ -201,10 +201,10 @@
201
201
  body: |
202
202
  <?xml version="1.0" encoding="UTF-8"?>
203
203
  <transaction type="Payment">
204
- <id>b0edb36553f24330895f1fb78dda4af8</id>
204
+ <id>9d73bb3c72294823a82e0f28c5af62f9</id>
205
205
  <account_code>transaction-void-1301883347</account_code>
206
206
  <action>purchase</action>
207
- <date type="datetime">2011-04-04T02:27:10Z</date>
207
+ <date type="datetime">2011-04-05T05:21:44Z</date>
208
208
  <amount_in_cents type="integer">100</amount_in_cents>
209
209
  <status>success</status>
210
210
  <message>Test Gateway: Successful test transaction</message>
@@ -226,7 +226,7 @@
226
226
  - !ruby/struct:VCR::HTTPInteraction
227
227
  request: !ruby/struct:VCR::Request
228
228
  method: :delete
229
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/b0edb36553f24330895f1fb78dda4af8.xml?action=void
229
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/transactions/9d73bb3c72294823a82e0f28c5af62f9.xml?action=void
230
230
  body:
231
231
  headers:
232
232
  authorization:
@@ -243,17 +243,17 @@
243
243
  message: OK
244
244
  headers:
245
245
  x-runtime:
246
- - "599"
246
+ - "418"
247
247
  content-type:
248
248
  - application/xml; charset=utf-8
249
249
  etag:
250
- - "\"fcd5b4cd7e4b6272218ed8d27a3f9355\""
250
+ - "\"1abda3fbcc6ceda09f68ee70b8e54917\""
251
251
  cache-control:
252
252
  - private, max-age=0, must-revalidate
253
253
  content-length:
254
254
  - "856"
255
255
  set-cookie:
256
- - _recurly_session=b0f8beae9debddd226acc574ccec8546; domain=.recurly.local; path=/; HttpOnly
256
+ - _recurly_session=6134c0b77187df9224778162b4beccfb; domain=.recurly.local; path=/; HttpOnly
257
257
  connection:
258
258
  - close
259
259
  server:
@@ -261,10 +261,10 @@
261
261
  body: |
262
262
  <?xml version="1.0" encoding="UTF-8"?>
263
263
  <transaction type="Payment">
264
- <id>b0edb36553f24330895f1fb78dda4af8</id>
264
+ <id>9d73bb3c72294823a82e0f28c5af62f9</id>
265
265
  <account_code>transaction-void-1301883347</account_code>
266
266
  <action>purchase</action>
267
- <date type="datetime">2011-04-04T02:27:10Z</date>
267
+ <date type="datetime">2011-04-05T05:21:44Z</date>
268
268
  <amount_in_cents type="integer">100</amount_in_cents>
269
269
  <status>void</status>
270
270
  <message>Test Gateway: Successful test transaction</message>
@@ -305,17 +305,17 @@
305
305
  message: OK
306
306
  headers:
307
307
  x-runtime:
308
- - "311"
308
+ - "324"
309
309
  content-type:
310
310
  - application/xml; charset=utf-8
311
311
  etag:
312
- - "\"57787eba5407e32cf95af00fd32ab762\""
312
+ - "\"123f5f2b956dd506465758c6c8fb3a71\""
313
313
  cache-control:
314
314
  - private, max-age=0, must-revalidate
315
315
  content-length:
316
316
  - "1763"
317
317
  set-cookie:
318
- - _recurly_session=4793e6b93dcbacfd67c1f81c5f385c35; domain=.recurly.local; path=/; HttpOnly
318
+ - _recurly_session=ce9bd5424499ff03b32a6403232c0fc8; domain=.recurly.local; path=/; HttpOnly
319
319
  connection:
320
320
  - close
321
321
  server:
@@ -327,10 +327,10 @@
327
327
  <per_page type="integer">20</per_page>
328
328
  <total_entries type="integer">2</total_entries>
329
329
  <transaction type="Payment">
330
- <id>b0edb36553f24330895f1fb78dda4af8</id>
330
+ <id>9d73bb3c72294823a82e0f28c5af62f9</id>
331
331
  <account_code>transaction-void-1301883347</account_code>
332
332
  <action>purchase</action>
333
- <date type="datetime">2011-04-04T02:27:10Z</date>
333
+ <date type="datetime">2011-04-05T05:21:44Z</date>
334
334
  <amount_in_cents type="integer">100</amount_in_cents>
335
335
  <status>void</status>
336
336
  <message>Test Gateway: Successful test transaction</message>
@@ -344,10 +344,10 @@
344
344
  <refundable type="boolean">false</refundable>
345
345
  </transaction>
346
346
  <transaction type="Payment">
347
- <id>76b53b7d65264c8b99d18757235d4940</id>
347
+ <id>c60fcdea25044b22b91854d1a2f644c1</id>
348
348
  <account_code>subscription-refund-full-1301881900</account_code>
349
349
  <action>purchase</action>
350
- <date type="datetime">2011-04-04T02:25:05Z</date>
350
+ <date type="datetime">2011-04-05T05:19:36Z</date>
351
351
  <amount_in_cents type="integer">200</amount_in_cents>
352
352
  <status>void</status>
353
353
  <message>Test Gateway: Successful test transaction</message>
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-get-1301879142
41
41
  x-runtime:
42
- - "321"
42
+ - "317"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "577"
47
47
  set-cookie:
48
- - _recurly_session=9c25a0ac8a218a1fd4596df450dffe13; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=e31b7bfd621f77d7a9659da5549f0919; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>551e1936f35e4befb2b457cd68b8cf37</hosted_login_token>
66
- <created_at type="datetime">2011-04-04T02:27:29Z</created_at>
65
+ <hosted_login_token>754ca4c0eee147bb99d16e89c8d27235</hosted_login_token>
66
+ <created_at type="datetime">2011-04-05T05:22:04Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -90,17 +90,17 @@
90
90
  message: OK
91
91
  headers:
92
92
  x-runtime:
93
- - "84"
93
+ - "292"
94
94
  content-type:
95
95
  - application/xml; charset=utf-8
96
96
  etag:
97
- - "\"33ef088703ae6b01b5ac5ca23ee6ff3f\""
97
+ - "\"599e7d6d1916e789db7d0dabd7c0e57c\""
98
98
  cache-control:
99
99
  - private, max-age=0, must-revalidate
100
100
  content-length:
101
101
  - "577"
102
102
  set-cookie:
103
- - _recurly_session=9ffed50e0f0ffb46a3ff1a7483c0fd2e; domain=.recurly.local; path=/; HttpOnly
103
+ - _recurly_session=bc6188a65ecaff2072fc9c4733dd59e5; domain=.recurly.local; path=/; HttpOnly
104
104
  connection:
105
105
  - close
106
106
  server:
@@ -117,8 +117,8 @@
117
117
  <company_name>Recurly Ruby Gem</company_name>
118
118
  <balance_in_cents type="integer">0</balance_in_cents>
119
119
  <closed type="boolean">false</closed>
120
- <hosted_login_token>551e1936f35e4befb2b457cd68b8cf37</hosted_login_token>
121
- <created_at type="datetime">2011-04-04T02:27:29Z</created_at>
120
+ <hosted_login_token>754ca4c0eee147bb99d16e89c8d27235</hosted_login_token>
121
+ <created_at type="datetime">2011-04-05T05:22:04Z</created_at>
122
122
  <state>active</state>
123
123
  </account>
124
124
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.3
5
+ version: 0.4.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Isaac Hall
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-04 00:00:00 -07:00
14
+ date: 2011-04-05 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -154,15 +154,15 @@ files:
154
154
  - spec/unit/subscription_spec.rb
155
155
  - spec/unit/transaction_spec.rb
156
156
  - spec/unit/transparent_spec.rb
157
- - spec/vcr/account/accept-language-account/1297746103.yml
158
- - spec/vcr/account/close/1297746103.yml
159
- - spec/vcr/account/create/1297746103.yml
160
- - spec/vcr/account/create-blank/1297746103.yml
161
- - spec/vcr/account/create-duplicate/1297746103.yml
162
- - spec/vcr/account/create-min/1297746103.yml
163
- - spec/vcr/account/find/1297746103.yml
164
- - spec/vcr/account/list/1297746103.yml
165
- - spec/vcr/account/update/1297746103.yml
157
+ - spec/vcr/account/accept-language-account/1301979678.yml
158
+ - spec/vcr/account/close/1301979678.yml
159
+ - spec/vcr/account/create/1301979678.yml
160
+ - spec/vcr/account/create-blank/1301979678.yml
161
+ - spec/vcr/account/create-duplicate/1301979678.yml
162
+ - spec/vcr/account/create-min/1301979678.yml
163
+ - spec/vcr/account/find/1301979678.yml
164
+ - spec/vcr/account/list/1301979678.yml
165
+ - spec/vcr/account/update/1301979678.yml
166
166
  - spec/vcr/billing/create/1298594128.yml
167
167
  - spec/vcr/billing/destroy/1298594128.yml
168
168
  - spec/vcr/billing/find/1298594128.yml
@@ -186,12 +186,9 @@ files:
186
186
  - spec/vcr/plan/all.yml
187
187
  - spec/vcr/plan/find.yml
188
188
  - spec/vcr/plan/update.yml
189
- - spec/vcr/subscription/addons/add/1297746103.yml
190
- - spec/vcr/subscription/addons/add/1301884213.yml
191
- - spec/vcr/subscription/addons/create/1297746103.yml
192
- - spec/vcr/subscription/addons/create/1301884213.yml
193
- - spec/vcr/subscription/addons/remove/1297746103.yml
194
- - spec/vcr/subscription/addons/remove/1301884213.yml
189
+ - spec/vcr/subscription/addons/add/1301885121.yml
190
+ - spec/vcr/subscription/addons/create/1301885121.yml
191
+ - spec/vcr/subscription/addons/remove/1301885121.yml
195
192
  - spec/vcr/subscription/cancel/1301881900.yml
196
193
  - spec/vcr/subscription/cancel-with-code/1301881900.yml
197
194
  - spec/vcr/subscription/change1/1301881900.yml
@@ -225,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
222
  requirements:
226
223
  - - ">="
227
224
  - !ruby/object:Gem::Version
228
- hash: 588900314285262951
225
+ hash: -2896261013235422180
229
226
  segments:
230
227
  - 0
231
228
  version: "0"
@@ -270,15 +267,15 @@ test_files:
270
267
  - spec/unit/subscription_spec.rb
271
268
  - spec/unit/transaction_spec.rb
272
269
  - spec/unit/transparent_spec.rb
273
- - spec/vcr/account/accept-language-account/1297746103.yml
274
- - spec/vcr/account/close/1297746103.yml
275
- - spec/vcr/account/create/1297746103.yml
276
- - spec/vcr/account/create-blank/1297746103.yml
277
- - spec/vcr/account/create-duplicate/1297746103.yml
278
- - spec/vcr/account/create-min/1297746103.yml
279
- - spec/vcr/account/find/1297746103.yml
280
- - spec/vcr/account/list/1297746103.yml
281
- - spec/vcr/account/update/1297746103.yml
270
+ - spec/vcr/account/accept-language-account/1301979678.yml
271
+ - spec/vcr/account/close/1301979678.yml
272
+ - spec/vcr/account/create/1301979678.yml
273
+ - spec/vcr/account/create-blank/1301979678.yml
274
+ - spec/vcr/account/create-duplicate/1301979678.yml
275
+ - spec/vcr/account/create-min/1301979678.yml
276
+ - spec/vcr/account/find/1301979678.yml
277
+ - spec/vcr/account/list/1301979678.yml
278
+ - spec/vcr/account/update/1301979678.yml
282
279
  - spec/vcr/billing/create/1298594128.yml
283
280
  - spec/vcr/billing/destroy/1298594128.yml
284
281
  - spec/vcr/billing/find/1298594128.yml
@@ -302,12 +299,9 @@ test_files:
302
299
  - spec/vcr/plan/all.yml
303
300
  - spec/vcr/plan/find.yml
304
301
  - spec/vcr/plan/update.yml
305
- - spec/vcr/subscription/addons/add/1297746103.yml
306
- - spec/vcr/subscription/addons/add/1301884213.yml
307
- - spec/vcr/subscription/addons/create/1297746103.yml
308
- - spec/vcr/subscription/addons/create/1301884213.yml
309
- - spec/vcr/subscription/addons/remove/1297746103.yml
310
- - spec/vcr/subscription/addons/remove/1301884213.yml
302
+ - spec/vcr/subscription/addons/add/1301885121.yml
303
+ - spec/vcr/subscription/addons/create/1301885121.yml
304
+ - spec/vcr/subscription/addons/remove/1301885121.yml
311
305
  - spec/vcr/subscription/cancel/1301881900.yml
312
306
  - spec/vcr/subscription/cancel-with-code/1301881900.yml
313
307
  - spec/vcr/subscription/change1/1301881900.yml
@@ -1,480 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>subscription-addons-add-1301884213</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 type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
- content-type:
25
- - application/xml
26
- accept:
27
- - "*/*"
28
- user-agent:
29
- - Ruby
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: Created
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/subscription-addons-add-1301884213
41
- x-runtime:
42
- - "326"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "601"
47
- set-cookie:
48
- - _recurly_session=a7354c8e6b9d7d627e0c4fbb62d8c560; domain=.recurly.local; path=/; HttpOnly
49
- connection:
50
- - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>subscription-addons-add-1301884213</id>
57
- <account_code>subscription-addons-add-1301884213</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>538116d9c69c41a284a4f06fab20563a</hosted_login_token>
66
- <created_at type="datetime">2011-04-04T02:30:47Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
73
- method: :get
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
75
- body:
76
- headers:
77
- authorization:
78
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
79
- accept:
80
- - application/xml
81
- accept-encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- user-agent:
84
- - Ruby
85
- connection:
86
- - close
87
- response: !ruby/struct:VCR::Response
88
- status: !ruby/struct:VCR::ResponseStatus
89
- code: 200
90
- message: OK
91
- headers:
92
- x-runtime:
93
- - "285"
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
98
- cache-control:
99
- - private, max-age=0, must-revalidate
100
- content-length:
101
- - "1558"
102
- set-cookie:
103
- - _recurly_session=166b86959ce692c0c37c0c4ae18d42e2; domain=.recurly.local; path=/; HttpOnly
104
- connection:
105
- - close
106
- server:
107
- - thin 1.2.7 codename No Hup
108
- body: |
109
- <?xml version="1.0" encoding="UTF-8"?>
110
- <plan>
111
- <plan_code>paid</plan_code>
112
- <name>Paid</name>
113
- <description></description>
114
- <success_url></success_url>
115
- <cancel_url></cancel_url>
116
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
117
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
118
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
119
- <plan_interval_length type="integer">1</plan_interval_length>
120
- <plan_interval_unit>months</plan_interval_unit>
121
- <trial_interval_length type="integer">0</trial_interval_length>
122
- <trial_interval_unit>months</trial_interval_unit>
123
- <latest_version depreciated="true">
124
- <version type="integer">1</version>
125
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
126
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
- <plan_interval_length type="integer">1</plan_interval_length>
128
- <plan_interval_unit>months</plan_interval_unit>
129
- <trial_interval_length type="integer">0</trial_interval_length>
130
- <trial_interval_unit>months</trial_interval_unit>
131
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
132
- </latest_version>
133
- <add_ons type="array">
134
- <add_on>
135
- <add_on_code>special</add_on_code>
136
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
137
- <default_quantity>1</default_quantity>
138
- </add_on>
139
- <add_on>
140
- <add_on_code>special2</add_on_code>
141
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
142
- <default_quantity>1</default_quantity>
143
- </add_on>
144
- </add_ons>
145
- </plan>
146
-
147
- http_version: "1.1"
148
- - !ruby/struct:VCR::HTTPInteraction
149
- request: !ruby/struct:VCR::Request
150
- method: :post
151
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-add-1301884213/subscription.xml
152
- body: |
153
- <?xml version="1.0" encoding="UTF-8"?>
154
- <subscription>
155
- <plan-code>paid</plan-code>
156
- <quantity type="integer">1</quantity>
157
- <account>
158
- <account-code>subscription-addons-add-1301884213</account-code>
159
- <first-name>Verena</first-name>
160
- <last-name>Test</last-name>
161
- <email>verena@test.com</email>
162
- <company-name>Recurly Ruby Gem</company-name>
163
- <billing-info>
164
- <first-name>Verena</first-name>
165
- <last-name>Test</last-name>
166
- <address1>123 Test St</address1>
167
- <city>San Francisco</city>
168
- <state>CA</state>
169
- <zip>94115</zip>
170
- <country>US</country>
171
- <credit-card>
172
- <number>4111111111111111</number>
173
- <year type="integer">2012</year>
174
- <month type="integer">4</month>
175
- <verification-value>123</verification-value>
176
- </credit-card>
177
- </billing-info>
178
- <accept-language type="yaml" nil="true"></accept-language>
179
- <id>subscription-addons-add-1301884213</id>
180
- <username type="yaml" nil="true"></username>
181
- <balance-in-cents type="integer">0</balance-in-cents>
182
- <closed type="boolean">false</closed>
183
- <hosted-login-token>538116d9c69c41a284a4f06fab20563a</hosted-login-token>
184
- <created-at type="datetime">2011-04-04T02:30:47Z</created-at>
185
- <state>active</state>
186
- </account>
187
- <add-ons type="array">
188
- <add-on>
189
- <add-on-code>special</add-on-code>
190
- <quantity type="integer">1</quantity>
191
- <unit-amount type="integer">10</unit-amount>
192
- </add-on>
193
- </add-ons>
194
- <addons type="array"/>
195
- </subscription>
196
-
197
- headers:
198
- authorization:
199
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
200
- content-type:
201
- - application/xml
202
- accept:
203
- - "*/*"
204
- user-agent:
205
- - Ruby
206
- connection:
207
- - close
208
- response: !ruby/struct:VCR::Response
209
- status: !ruby/struct:VCR::ResponseStatus
210
- code: 201
211
- message: Created
212
- headers:
213
- cache-control:
214
- - no-cache
215
- x-runtime:
216
- - "4728"
217
- content-type:
218
- - application/xml; charset=utf-8
219
- content-length:
220
- - "1099"
221
- set-cookie:
222
- - _recurly_session=441eacd2f7845d4d3db500a8e1de8d08; domain=.recurly.local; path=/; HttpOnly
223
- connection:
224
- - close
225
- server:
226
- - thin 1.2.7 codename No Hup
227
- body: |
228
- <?xml version="1.0" encoding="UTF-8"?>
229
- <subscription>
230
- <id>subscription-addons-add-1301884213</id>
231
- <account_code>subscription-addons-add-1301884213</account_code>
232
- <plan>
233
- <plan_code>paid</plan_code>
234
- <name>Paid</name>
235
- </plan>
236
- <state>active</state>
237
- <quantity type="integer">1</quantity>
238
- <total_amount_in_cents type="integer">1200</total_amount_in_cents>
239
- <activated_at type="datetime">2011-04-04T02:30:52Z</activated_at>
240
- <canceled_at nil="true" type="datetime"></canceled_at>
241
- <expires_at nil="true" type="datetime"></expires_at>
242
- <current_period_started_at type="datetime">2011-04-04T02:30:52Z</current_period_started_at>
243
- <current_period_ends_at type="datetime">2011-05-04T02:30:52Z</current_period_ends_at>
244
- <trial_started_at nil="true" type="datetime"></trial_started_at>
245
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
246
- <add_ons type="array">
247
- <add_on>
248
- <add_on_code>special</add_on_code>
249
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
250
- <quantity type="integer">1</quantity>
251
- </add_on>
252
- </add_ons>
253
- </subscription>
254
-
255
- http_version: "1.1"
256
- - !ruby/struct:VCR::HTTPInteraction
257
- request: !ruby/struct:VCR::Request
258
- method: :get
259
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-add-1301884213/subscription.xml
260
- body:
261
- headers:
262
- authorization:
263
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
264
- accept:
265
- - application/xml
266
- accept-encoding:
267
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
268
- user-agent:
269
- - Ruby
270
- connection:
271
- - close
272
- response: !ruby/struct:VCR::Response
273
- status: !ruby/struct:VCR::ResponseStatus
274
- code: 200
275
- message: OK
276
- headers:
277
- x-runtime:
278
- - "332"
279
- content-type:
280
- - application/xml; charset=utf-8
281
- etag:
282
- - "\"dd0ef52a3d37eb3849fc96c16d6dd417\""
283
- cache-control:
284
- - private, max-age=0, must-revalidate
285
- content-length:
286
- - "1099"
287
- set-cookie:
288
- - _recurly_session=1328ac258c65488be8b851365b0b73cb; domain=.recurly.local; path=/; HttpOnly
289
- connection:
290
- - close
291
- server:
292
- - thin 1.2.7 codename No Hup
293
- body: |
294
- <?xml version="1.0" encoding="UTF-8"?>
295
- <subscription>
296
- <id>subscription-addons-add-1301884213</id>
297
- <account_code>subscription-addons-add-1301884213</account_code>
298
- <plan>
299
- <plan_code>paid</plan_code>
300
- <name>Paid</name>
301
- </plan>
302
- <state>active</state>
303
- <quantity type="integer">1</quantity>
304
- <total_amount_in_cents type="integer">1200</total_amount_in_cents>
305
- <activated_at type="datetime">2011-04-04T02:30:52Z</activated_at>
306
- <canceled_at nil="true" type="datetime"></canceled_at>
307
- <expires_at nil="true" type="datetime"></expires_at>
308
- <current_period_started_at type="datetime">2011-04-04T02:30:52Z</current_period_started_at>
309
- <current_period_ends_at type="datetime">2011-05-04T02:30:52Z</current_period_ends_at>
310
- <trial_started_at nil="true" type="datetime"></trial_started_at>
311
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
312
- <add_ons type="array">
313
- <add_on>
314
- <add_on_code>special</add_on_code>
315
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
316
- <quantity type="integer">1</quantity>
317
- </add_on>
318
- </add_ons>
319
- </subscription>
320
-
321
- http_version: "1.1"
322
- - !ruby/struct:VCR::HTTPInteraction
323
- request: !ruby/struct:VCR::Request
324
- method: :put
325
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-add-1301884213/subscription.xml
326
- body: |
327
- <?xml version="1.0" encoding="UTF-8"?>
328
- <subscription>
329
- <add-ons type="array">
330
- <add-on>
331
- <add-on-code>special</add-on-code>
332
- <unit-amount-in-cents type="integer">1000</unit-amount-in-cents>
333
- <quantity type="integer">1</quantity>
334
- </add-on>
335
- <add-on>
336
- <add-on-code>special2</add-on-code>
337
- <quantity type="integer">2</quantity>
338
- <unit-amount type="integer">500</unit-amount>
339
- </add-on>
340
- </add-ons>
341
- <timeframe>now</timeframe>
342
- </subscription>
343
-
344
- headers:
345
- authorization:
346
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
347
- content-type:
348
- - application/xml
349
- accept:
350
- - "*/*"
351
- user-agent:
352
- - Ruby
353
- connection:
354
- - close
355
- response: !ruby/struct:VCR::Response
356
- status: !ruby/struct:VCR::ResponseStatus
357
- code: 200
358
- message: OK
359
- headers:
360
- x-runtime:
361
- - "3164"
362
- content-type:
363
- - application/xml; charset=utf-8
364
- etag:
365
- - "\"640f2a74a18742fed110f6937265d02f\""
366
- cache-control:
367
- - private, max-age=0, must-revalidate
368
- content-length:
369
- - "1286"
370
- set-cookie:
371
- - _recurly_session=5ef2564009ce716f8ffb53964ebdd377; domain=.recurly.local; path=/; HttpOnly
372
- connection:
373
- - close
374
- server:
375
- - thin 1.2.7 codename No Hup
376
- body: |
377
- <?xml version="1.0" encoding="UTF-8"?>
378
- <subscription>
379
- <id>subscription-addons-add-1301884213</id>
380
- <account_code>subscription-addons-add-1301884213</account_code>
381
- <plan>
382
- <plan_code>paid</plan_code>
383
- <name>Paid</name>
384
- </plan>
385
- <state>active</state>
386
- <quantity type="integer">1</quantity>
387
- <total_amount_in_cents type="integer">101200</total_amount_in_cents>
388
- <activated_at type="datetime">2011-04-04T02:31:00Z</activated_at>
389
- <canceled_at nil="true" type="datetime"></canceled_at>
390
- <expires_at nil="true" type="datetime"></expires_at>
391
- <current_period_started_at type="datetime">2011-04-04T02:30:52Z</current_period_started_at>
392
- <current_period_ends_at type="datetime">2011-05-04T02:30:52Z</current_period_ends_at>
393
- <trial_started_at nil="true" type="datetime"></trial_started_at>
394
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
395
- <add_ons type="array">
396
- <add_on>
397
- <add_on_code>special</add_on_code>
398
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
399
- <quantity type="integer">1</quantity>
400
- </add_on>
401
- <add_on>
402
- <add_on_code>special2</add_on_code>
403
- <unit_amount_in_cents type="integer">50000</unit_amount_in_cents>
404
- <quantity type="integer">2</quantity>
405
- </add_on>
406
- </add_ons>
407
- </subscription>
408
-
409
- http_version: "1.1"
410
- - !ruby/struct:VCR::HTTPInteraction
411
- request: !ruby/struct:VCR::Request
412
- method: :get
413
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-addons-add-1301884213/subscription.xml
414
- body:
415
- headers:
416
- authorization:
417
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
418
- accept:
419
- - application/xml
420
- accept-encoding:
421
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
422
- user-agent:
423
- - Ruby
424
- connection:
425
- - close
426
- response: !ruby/struct:VCR::Response
427
- status: !ruby/struct:VCR::ResponseStatus
428
- code: 200
429
- message: OK
430
- headers:
431
- x-runtime:
432
- - "327"
433
- content-type:
434
- - application/xml; charset=utf-8
435
- etag:
436
- - "\"640f2a74a18742fed110f6937265d02f\""
437
- cache-control:
438
- - private, max-age=0, must-revalidate
439
- content-length:
440
- - "1286"
441
- set-cookie:
442
- - _recurly_session=a2084b82499a42ee5cff575693f8277a; domain=.recurly.local; path=/; HttpOnly
443
- connection:
444
- - close
445
- server:
446
- - thin 1.2.7 codename No Hup
447
- body: |
448
- <?xml version="1.0" encoding="UTF-8"?>
449
- <subscription>
450
- <id>subscription-addons-add-1301884213</id>
451
- <account_code>subscription-addons-add-1301884213</account_code>
452
- <plan>
453
- <plan_code>paid</plan_code>
454
- <name>Paid</name>
455
- </plan>
456
- <state>active</state>
457
- <quantity type="integer">1</quantity>
458
- <total_amount_in_cents type="integer">101200</total_amount_in_cents>
459
- <activated_at type="datetime">2011-04-04T02:31:00Z</activated_at>
460
- <canceled_at nil="true" type="datetime"></canceled_at>
461
- <expires_at nil="true" type="datetime"></expires_at>
462
- <current_period_started_at type="datetime">2011-04-04T02:30:52Z</current_period_started_at>
463
- <current_period_ends_at type="datetime">2011-05-04T02:30:52Z</current_period_ends_at>
464
- <trial_started_at nil="true" type="datetime"></trial_started_at>
465
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
466
- <add_ons type="array">
467
- <add_on>
468
- <add_on_code>special</add_on_code>
469
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
470
- <quantity type="integer">1</quantity>
471
- </add_on>
472
- <add_on>
473
- <add_on_code>special2</add_on_code>
474
- <unit_amount_in_cents type="integer">50000</unit_amount_in_cents>
475
- <quantity type="integer">2</quantity>
476
- </add_on>
477
- </add_ons>
478
- </subscription>
479
-
480
- http_version: "1.1"