recurly 0.3.2 → 0.3.3

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 (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,40 +2,42 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
6
6
  body:
7
7
  headers:
8
+ authorization:
9
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
8
10
  accept:
9
11
  - application/xml
12
+ accept-encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ user-agent:
15
+ - Ruby
10
16
  connection:
11
17
  - close
12
- authorization:
13
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
18
  response: !ruby/struct:VCR::Response
15
19
  status: !ruby/struct:VCR::ResponseStatus
16
20
  code: 200
17
- message: OK
21
+ message: "OK "
18
22
  headers:
19
- x-ua-compatible:
20
- - IE=Edge
21
- etag:
22
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
23
- connection:
24
- - close
23
+ x-runtime:
24
+ - "70"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
- x-runtime:
28
- - "14"
29
- date:
30
- - Sat, 08 Jan 2011 08:05:14 GMT
31
- server:
32
- - nginx/0.8.53
33
- content-length:
34
- - "1564"
35
- set-cookie:
36
- - _recurly_session=799cd3c2eabe30517890b347ffecb946; domain=.recurly.com; path=/; secure; HttpOnly
27
+ etag:
28
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
37
29
  cache-control:
38
30
  - private, max-age=0, must-revalidate
31
+ content-length:
32
+ - "1150"
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
+ date:
36
+ - Thu, 03 Feb 2011 22:20:48 GMT
37
+ connection:
38
+ - close
39
+ set-cookie:
40
+ - _recurly_session=06b515611cfae5c612449ba7b7c063b1; domain=.recurly.local; path=/; HttpOnly
39
41
  body: |
40
42
  <?xml version="1.0" encoding="UTF-8"?>
41
43
  <plan>
@@ -44,7 +46,7 @@
44
46
  <description></description>
45
47
  <success_url></success_url>
46
48
  <cancel_url></cancel_url>
47
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
49
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
48
50
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
49
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
52
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -59,69 +61,59 @@
59
61
  <plan_interval_unit>months</plan_interval_unit>
60
62
  <trial_interval_length type="integer">0</trial_interval_length>
61
63
  <trial_interval_unit>months</trial_interval_unit>
62
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
64
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
63
65
  </latest_version>
64
- <add_ons type="collection">
65
- <add_on>
66
- <add_on_code>special</add_on_code>
67
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
68
- <default_quantity>1</default_quantity>
69
- </add_on>
70
- <add_on>
71
- <add_on_code>special2</add_on_code>
72
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
73
- <default_quantity>1</default_quantity>
74
- </add_on>
75
- </add_ons>
76
66
  </plan>
77
67
 
78
68
  http_version: "1.1"
79
69
  - !ruby/struct:VCR::HTTPInteraction
80
70
  request: !ruby/struct:VCR::Request
81
71
  method: :get
82
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/trial.xml
72
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/trial.xml
83
73
  body:
84
74
  headers:
75
+ authorization:
76
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
77
  accept:
86
78
  - application/xml
79
+ accept-encoding:
80
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
+ user-agent:
82
+ - Ruby
87
83
  connection:
88
84
  - close
89
- authorization:
90
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
91
85
  response: !ruby/struct:VCR::Response
92
86
  status: !ruby/struct:VCR::ResponseStatus
93
87
  code: 200
94
- message: OK
88
+ message: "OK "
95
89
  headers:
96
- x-ua-compatible:
97
- - IE=Edge
98
- etag:
99
- - "\"d407cea7e325b47787bbd552110eb51a\""
100
- connection:
101
- - close
90
+ x-runtime:
91
+ - "268"
102
92
  content-type:
103
93
  - application/xml; charset=utf-8
104
- x-runtime:
105
- - "14"
106
- date:
107
- - Sat, 08 Jan 2011 08:05:15 GMT
108
- server:
109
- - nginx/0.8.53
110
- content-length:
111
- - "1164"
112
- set-cookie:
113
- - _recurly_session=6bfc355a5577bdb1274bcf14a1d7122f; domain=.recurly.com; path=/; secure; HttpOnly
94
+ etag:
95
+ - "\"1c3543a74edbf6c1e0257022eb26ce10\""
114
96
  cache-control:
115
97
  - private, max-age=0, must-revalidate
98
+ content-length:
99
+ - "1152"
100
+ server:
101
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
102
+ date:
103
+ - Thu, 03 Feb 2011 22:20:50 GMT
104
+ connection:
105
+ - close
106
+ set-cookie:
107
+ - _recurly_session=38c960e386b133aa9b7a5c20c91bc2d3; domain=.recurly.local; path=/; HttpOnly
116
108
  body: |
117
109
  <?xml version="1.0" encoding="UTF-8"?>
118
110
  <plan>
119
111
  <plan_code>trial</plan_code>
120
112
  <name>Trial</name>
121
- <description>a trial plan</description>
113
+ <description></description>
122
114
  <success_url></success_url>
123
115
  <cancel_url></cancel_url>
124
- <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
116
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
125
117
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
126
118
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
119
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -136,7 +128,7 @@
136
128
  <plan_interval_unit>months</plan_interval_unit>
137
129
  <trial_interval_length type="integer">1</trial_interval_length>
138
130
  <trial_interval_unit>months</trial_interval_unit>
139
- <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
131
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
140
132
  </latest_version>
141
133
  </plan>
142
134
 
@@ -144,40 +136,42 @@
144
136
  - !ruby/struct:VCR::HTTPInteraction
145
137
  request: !ruby/struct:VCR::Request
146
138
  method: :get
147
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
139
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
148
140
  body:
149
141
  headers:
142
+ authorization:
143
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
150
144
  accept:
151
145
  - application/xml
146
+ accept-encoding:
147
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
148
+ user-agent:
149
+ - Ruby
152
150
  connection:
153
151
  - close
154
- authorization:
155
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
156
152
  response: !ruby/struct:VCR::Response
157
153
  status: !ruby/struct:VCR::ResponseStatus
158
154
  code: 200
159
- message: OK
155
+ message: "OK "
160
156
  headers:
161
- x-ua-compatible:
162
- - IE=Edge
163
- etag:
164
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
165
- connection:
166
- - close
157
+ x-runtime:
158
+ - "207"
167
159
  content-type:
168
160
  - application/xml; charset=utf-8
169
- x-runtime:
170
- - "14"
171
- date:
172
- - Sat, 08 Jan 2011 08:05:16 GMT
173
- server:
174
- - nginx/0.8.53
175
- content-length:
176
- - "1564"
177
- set-cookie:
178
- - _recurly_session=1a16e80d831f8af06365386d2a6ce529; domain=.recurly.com; path=/; secure; HttpOnly
161
+ etag:
162
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
179
163
  cache-control:
180
164
  - private, max-age=0, must-revalidate
165
+ content-length:
166
+ - "1150"
167
+ server:
168
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
+ date:
170
+ - Thu, 03 Feb 2011 22:20:52 GMT
171
+ connection:
172
+ - close
173
+ set-cookie:
174
+ - _recurly_session=cfc756e17d3299cdd0822df8960ea032; domain=.recurly.local; path=/; HttpOnly
181
175
  body: |
182
176
  <?xml version="1.0" encoding="UTF-8"?>
183
177
  <plan>
@@ -186,7 +180,7 @@
186
180
  <description></description>
187
181
  <success_url></success_url>
188
182
  <cancel_url></cancel_url>
189
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
183
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
190
184
  <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
191
185
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
192
186
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -201,20 +195,8 @@
201
195
  <plan_interval_unit>months</plan_interval_unit>
202
196
  <trial_interval_length type="integer">0</trial_interval_length>
203
197
  <trial_interval_unit>months</trial_interval_unit>
204
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
198
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
205
199
  </latest_version>
206
- <add_ons type="collection">
207
- <add_on>
208
- <add_on_code>special</add_on_code>
209
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
210
- <default_quantity>1</default_quantity>
211
- </add_on>
212
- <add_on>
213
- <add_on_code>special2</add_on_code>
214
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
215
- <default_quantity>1</default_quantity>
216
- </add_on>
217
- </add_ons>
218
200
  </plan>
219
201
 
220
202
  http_version: "1.1"
@@ -2,40 +2,42 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
+ authorization:
9
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
8
10
  accept:
9
11
  - application/xml
12
+ accept-encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ user-agent:
15
+ - Ruby
10
16
  connection:
11
17
  - close
12
- authorization:
13
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
18
  response: !ruby/struct:VCR::Response
15
19
  status: !ruby/struct:VCR::ResponseStatus
16
20
  code: 200
17
- message: OK
21
+ message: "OK "
18
22
  headers:
19
- x-ua-compatible:
20
- - IE=Edge
21
- etag:
22
- - "\"51fa62d633fbc00f21ce1e22803a8e82\""
23
- connection:
24
- - close
23
+ x-runtime:
24
+ - "214"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
- x-runtime:
28
- - "13"
29
- date:
30
- - Sat, 08 Jan 2011 08:05:17 GMT
31
- server:
32
- - nginx/0.8.53
27
+ etag:
28
+ - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
29
+ cache-control:
30
+ - private, max-age=0, must-revalidate
33
31
  content-length:
34
32
  - "1153"
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
+ date:
36
+ - Thu, 03 Feb 2011 22:20:55 GMT
37
+ connection:
38
+ - close
35
39
  set-cookie:
36
- - _recurly_session=d558a6f2ddc2f6a359d105f25baae27c; domain=.recurly.com; path=/; secure; HttpOnly
37
- cache-control:
38
- - private, max-age=0, must-revalidate
40
+ - _recurly_session=2c7f4cc9d4185d0d2d2c0370d015824b; domain=.recurly.local; path=/; HttpOnly
39
41
  body: |
40
42
  <?xml version="1.0" encoding="UTF-8"?>
41
43
  <plan>
@@ -44,7 +46,7 @@
44
46
  <description></description>
45
47
  <success_url></success_url>
46
48
  <cancel_url></cancel_url>
47
- <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
49
+ <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
48
50
  <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
49
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
52
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -59,7 +61,7 @@
59
61
  <plan_interval_unit>months</plan_interval_unit>
60
62
  <trial_interval_length type="integer">0</trial_interval_length>
61
63
  <trial_interval_unit>months</trial_interval_unit>
62
- <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
64
+ <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
63
65
  </latest_version>
64
66
  </plan>
65
67
 
@@ -67,106 +69,108 @@
67
69
  - !ruby/struct:VCR::HTTPInteraction
68
70
  request: !ruby/struct:VCR::Request
69
71
  method: :put
70
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test.xml
72
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
71
73
  body: |
72
74
  <?xml version="1.0" encoding="UTF-8"?>
73
75
  <plan>
76
+ <plan-code>test</plan-code>
74
77
  <name>Test Plan</name>
75
- <created-at type="datetime">2010-09-19T01:31:33Z</created-at>
78
+ <description type="yaml" nil="true"></description>
79
+ <success-url type="yaml" nil="true"></success-url>
76
80
  <cancel-url type="yaml" nil="true"></cancel-url>
77
- <plan-code>test</plan-code>
81
+ <created-at type="datetime">2011-02-02T21:10:47Z</created-at>
82
+ <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
83
+ <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
84
+ <plan-interval-length type="integer">1</plan-interval-length>
85
+ <plan-interval-unit>months</plan-interval-unit>
86
+ <trial-interval-length type="integer">0</trial-interval-length>
87
+ <trial-interval-unit>months</trial-interval-unit>
78
88
  <latest-version>
79
- <created-at type="datetime">2010-09-19T01:36:06Z</created-at>
80
- <trial-interval-length type="integer">0</trial-interval-length>
81
- <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
89
+ <depreciated>true</depreciated>
82
90
  <version type="integer">1</version>
83
91
  <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
84
- <depreciated>true</depreciated>
85
- <plan-interval-unit>months</plan-interval-unit>
92
+ <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
86
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>
87
96
  <trial-interval-unit>months</trial-interval-unit>
97
+ <created-at type="datetime">2011-02-02T21:10:51Z</created-at>
88
98
  </latest-version>
89
- <trial-interval-length type="integer">0</trial-interval-length>
90
- <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
91
- <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
92
- <description type="yaml" nil="true"></description>
93
- <plan-interval-unit>months</plan-interval-unit>
94
- <plan-interval-length type="integer">1</plan-interval-length>
95
- <success-url type="yaml" nil="true"></success-url>
96
- <trial-interval-unit>months</trial-interval-unit>
97
99
  </plan>
98
100
 
99
101
  headers:
102
+ authorization:
103
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
104
+ content-type:
105
+ - application/xml
100
106
  accept:
101
107
  - "*/*"
108
+ user-agent:
109
+ - Ruby
102
110
  connection:
103
111
  - close
104
- content-type:
105
- - application/xml
106
- authorization:
107
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
108
112
  response: !ruby/struct:VCR::Response
109
113
  status: !ruby/struct:VCR::ResponseStatus
110
114
  code: 200
111
- message: OK
115
+ message: "OK "
112
116
  headers:
113
- x-ua-compatible:
114
- - IE=Edge
115
- connection:
116
- - close
117
+ cache-control:
118
+ - no-cache
119
+ x-runtime:
120
+ - "254"
117
121
  content-type:
118
122
  - application/xml; charset=utf-8
119
- x-runtime:
120
- - "27"
121
- date:
122
- - Sat, 08 Jan 2011 08:05:17 GMT
123
- server:
124
- - nginx/0.8.53
125
123
  content-length:
126
124
  - "1"
125
+ server:
126
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
127
+ date:
128
+ - Thu, 03 Feb 2011 22:20:57 GMT
129
+ connection:
130
+ - close
127
131
  set-cookie:
128
- - _recurly_session=2e1c9b38c5f127f8b71d4dcecca3a927; domain=.recurly.com; path=/; secure; HttpOnly
129
- cache-control:
130
- - no-cache
132
+ - _recurly_session=fa7066b1d7a3b600898c36c4d30001bd; domain=.recurly.local; path=/; HttpOnly
131
133
  body: " "
132
134
  http_version: "1.1"
133
135
  - !ruby/struct:VCR::HTTPInteraction
134
136
  request: !ruby/struct:VCR::Request
135
137
  method: :get
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test.xml
138
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
137
139
  body:
138
140
  headers:
141
+ authorization:
142
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
139
143
  accept:
140
144
  - application/xml
145
+ accept-encoding:
146
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
147
+ user-agent:
148
+ - Ruby
141
149
  connection:
142
150
  - close
143
- authorization:
144
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
145
151
  response: !ruby/struct:VCR::Response
146
152
  status: !ruby/struct:VCR::ResponseStatus
147
153
  code: 200
148
- message: OK
154
+ message: "OK "
149
155
  headers:
150
- x-ua-compatible:
151
- - IE=Edge
152
- etag:
153
- - "\"51fa62d633fbc00f21ce1e22803a8e82\""
154
- connection:
155
- - close
156
+ x-runtime:
157
+ - "208"
156
158
  content-type:
157
159
  - application/xml; charset=utf-8
158
- x-runtime:
159
- - "13"
160
- date:
161
- - Sat, 08 Jan 2011 08:05:18 GMT
162
- server:
163
- - nginx/0.8.53
160
+ etag:
161
+ - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
162
+ cache-control:
163
+ - private, max-age=0, must-revalidate
164
164
  content-length:
165
165
  - "1153"
166
+ server:
167
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
168
+ date:
169
+ - Thu, 03 Feb 2011 22:20:59 GMT
170
+ connection:
171
+ - close
166
172
  set-cookie:
167
- - _recurly_session=e8980bb718eb90e8c2260847ac0bdeca; domain=.recurly.com; path=/; secure; HttpOnly
168
- cache-control:
169
- - private, max-age=0, must-revalidate
173
+ - _recurly_session=943ed2e9e815ec4c7024797c220fda48; domain=.recurly.local; path=/; HttpOnly
170
174
  body: |
171
175
  <?xml version="1.0" encoding="UTF-8"?>
172
176
  <plan>
@@ -175,7 +179,7 @@
175
179
  <description></description>
176
180
  <success_url></success_url>
177
181
  <cancel_url></cancel_url>
178
- <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
182
+ <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
179
183
  <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
180
184
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
181
185
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -190,7 +194,7 @@
190
194
  <plan_interval_unit>months</plan_interval_unit>
191
195
  <trial_interval_length type="integer">0</trial_interval_length>
192
196
  <trial_interval_unit>months</trial_interval_unit>
193
- <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
197
+ <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
194
198
  </latest_version>
195
199
  </plan>
196
200