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
@@ -1,318 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>subscription-addons-create-1292420980</account-code>
11
- <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
- <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
15
- </account>
16
-
17
- headers:
18
- accept:
19
- - "*/*"
20
- connection:
21
- - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - https://recurlytest3-test.recurly.com/accounts/subscription-addons-create-1292420980
33
- connection:
34
- - close
35
- content-type:
36
- - application/xml; charset=utf-8
37
- x-runtime:
38
- - "420"
39
- date:
40
- - Sat, 08 Jan 2011 08:03:29 GMT
41
- server:
42
- - nginx/0.8.53
43
- content-length:
44
- - "607"
45
- set-cookie:
46
- - account_credentials=15dd29562c69d7be62fc2f0c02df1a6259e8a757bd289abe4a830dd56c01a3f0c1d1716d58e91c7ee55ede635fe462d8b7976cb24f909a78645f1677d96f171e%3A%3A; domain=.recurly.com; path=/
47
- - ""
48
- - _recurly_session=ef62b81bbf62d9fcaaf5eecf40408d99; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
51
- body: |
52
- <?xml version="1.0" encoding="UTF-8"?>
53
- <account>
54
- <id>subscription-addons-create-1292420980</id>
55
- <account_code>subscription-addons-create-1292420980</account_code>
56
- <username></username>
57
- <email>verena@test.com</email>
58
- <first_name>Verena</first_name>
59
- <last_name>Test</last_name>
60
- <company_name>Recurly Ruby Gem</company_name>
61
- <balance_in_cents type="integer">0</balance_in_cents>
62
- <closed type="boolean">false</closed>
63
- <hosted_login_token>13d6dbd039ad498f958ef6e8f8871224</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:03:29Z</created_at>
65
- <state>active</state>
66
- </account>
67
-
68
- http_version: "1.1"
69
- - !ruby/struct:VCR::HTTPInteraction
70
- request: !ruby/struct:VCR::Request
71
- method: :get
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
73
- body:
74
- headers:
75
- accept:
76
- - application/xml
77
- connection:
78
- - close
79
- authorization:
80
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
81
- response: !ruby/struct:VCR::Response
82
- status: !ruby/struct:VCR::ResponseStatus
83
- code: 200
84
- message: OK
85
- headers:
86
- x-ua-compatible:
87
- - IE=Edge
88
- etag:
89
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
90
- connection:
91
- - close
92
- content-type:
93
- - application/xml; charset=utf-8
94
- x-runtime:
95
- - "15"
96
- date:
97
- - Sat, 08 Jan 2011 08:03:30 GMT
98
- server:
99
- - nginx/0.8.53
100
- content-length:
101
- - "1564"
102
- set-cookie:
103
- - _recurly_session=74ca77a68c9592d0374329aeec9efd6a; domain=.recurly.com; path=/; secure; HttpOnly
104
- cache-control:
105
- - private, max-age=0, must-revalidate
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <plan>
109
- <plan_code>paid</plan_code>
110
- <name>Paid</name>
111
- <description></description>
112
- <success_url></success_url>
113
- <cancel_url></cancel_url>
114
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
115
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
116
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
117
- <plan_interval_length type="integer">1</plan_interval_length>
118
- <plan_interval_unit>months</plan_interval_unit>
119
- <trial_interval_length type="integer">0</trial_interval_length>
120
- <trial_interval_unit>months</trial_interval_unit>
121
- <latest_version depreciated="true">
122
- <version type="integer">1</version>
123
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
124
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
125
- <plan_interval_length type="integer">1</plan_interval_length>
126
- <plan_interval_unit>months</plan_interval_unit>
127
- <trial_interval_length type="integer">0</trial_interval_length>
128
- <trial_interval_unit>months</trial_interval_unit>
129
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
130
- </latest_version>
131
- <add_ons type="collection">
132
- <add_on>
133
- <add_on_code>special</add_on_code>
134
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
135
- <default_quantity>1</default_quantity>
136
- </add_on>
137
- <add_on>
138
- <add_on_code>special2</add_on_code>
139
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
140
- <default_quantity>1</default_quantity>
141
- </add_on>
142
- </add_ons>
143
- </plan>
144
-
145
- http_version: "1.1"
146
- - !ruby/struct:VCR::HTTPInteraction
147
- request: !ruby/struct:VCR::Request
148
- method: :post
149
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-create-1292420980/subscription.xml
150
- body: |
151
- <?xml version="1.0" encoding="UTF-8"?>
152
- <subscription>
153
- <quantity type="integer">1</quantity>
154
- <plan-code>paid</plan-code>
155
- <add-ons type="array">
156
- <add-on>
157
- <unit-amount type="integer">10</unit-amount>
158
- <quantity type="integer">1</quantity>
159
- <add-on-code>special</add-on-code>
160
- </add-on>
161
- </add-ons>
162
- <account>
163
- <created-at type="datetime">2011-01-08T08:03:29Z</created-at>
164
- <hosted-login-token>13d6dbd039ad498f958ef6e8f8871224</hosted-login-token>
165
- <company-name>Recurly Ruby Gem</company-name>
166
- <account-code>subscription-addons-create-1292420980</account-code>
167
- <closed type="boolean">false</closed>
168
- <username type="yaml" nil="true"></username>
169
- <id>subscription-addons-create-1292420980</id>
170
- <last-name>Test</last-name>
171
- <accept-language type="yaml" nil="true"></accept-language>
172
- <billing-info>
173
- <address1>123 Test St</address1>
174
- <city>San Francisco</city>
175
- <zip>94115</zip>
176
- <country>US</country>
177
- <credit-card>
178
- <number>1</number>
179
- <month type="integer">1</month>
180
- <year type="integer">2012</year>
181
- <verification-value>123</verification-value>
182
- </credit-card>
183
- <last-name>Test</last-name>
184
- <first-name>Verena</first-name>
185
- <state>CA</state>
186
- </billing-info>
187
- <balance-in-cents type="integer">0</balance-in-cents>
188
- <state>active</state>
189
- <email>verena@test.com</email>
190
- <first-name>Verena</first-name>
191
- </account>
192
- </subscription>
193
-
194
- headers:
195
- accept:
196
- - "*/*"
197
- connection:
198
- - close
199
- content-type:
200
- - application/xml
201
- authorization:
202
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
203
- response: !ruby/struct:VCR::Response
204
- status: !ruby/struct:VCR::ResponseStatus
205
- code: 201
206
- message: Created
207
- headers:
208
- connection:
209
- - close
210
- content-type:
211
- - application/xml; charset=utf-8
212
- x-runtime:
213
- - "571"
214
- date:
215
- - Sat, 08 Jan 2011 08:03:31 GMT
216
- server:
217
- - nginx/0.8.53
218
- content-length:
219
- - "1105"
220
- set-cookie:
221
- - _recurly_session=a6ebb02b8ed8e2ca30d95c35b00cb3c2; domain=.recurly.com; path=/; secure; HttpOnly
222
- cache-control:
223
- - no-cache
224
- body: |
225
- <?xml version="1.0" encoding="UTF-8"?>
226
- <subscription>
227
- <id>subscription-addons-create-1292420980</id>
228
- <account_code>subscription-addons-create-1292420980</account_code>
229
- <plan>
230
- <plan_code>paid</plan_code>
231
- <name>Paid</name>
232
- </plan>
233
- <state>active</state>
234
- <quantity type="integer">1</quantity>
235
- <total_amount_in_cents type="integer">2000</total_amount_in_cents>
236
- <activated_at type="datetime">2011-01-08T08:03:31Z</activated_at>
237
- <canceled_at nil="true" type="datetime"></canceled_at>
238
- <expires_at nil="true" type="datetime"></expires_at>
239
- <current_period_started_at type="datetime">2011-01-08T08:03:31Z</current_period_started_at>
240
- <current_period_ends_at type="datetime">2011-02-08T08:03:31Z</current_period_ends_at>
241
- <trial_started_at nil="true" type="datetime"></trial_started_at>
242
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
243
- <add_ons type="array">
244
- <add_on>
245
- <add_on_code>special</add_on_code>
246
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
247
- <quantity type="integer">1</quantity>
248
- </add_on>
249
- </add_ons>
250
- </subscription>
251
-
252
- http_version: "1.1"
253
- - !ruby/struct:VCR::HTTPInteraction
254
- request: !ruby/struct:VCR::Request
255
- method: :get
256
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-create-1292420980/subscription.xml
257
- body:
258
- headers:
259
- accept:
260
- - application/xml
261
- connection:
262
- - close
263
- authorization:
264
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
265
- response: !ruby/struct:VCR::Response
266
- status: !ruby/struct:VCR::ResponseStatus
267
- code: 200
268
- message: OK
269
- headers:
270
- x-ua-compatible:
271
- - IE=Edge
272
- etag:
273
- - "\"a63ce4f5eddf75ac20d748b719b390d8\""
274
- connection:
275
- - close
276
- content-type:
277
- - application/xml; charset=utf-8
278
- x-runtime:
279
- - "28"
280
- date:
281
- - Sat, 08 Jan 2011 08:03:32 GMT
282
- server:
283
- - nginx/0.8.53
284
- content-length:
285
- - "1105"
286
- set-cookie:
287
- - _recurly_session=5fffd351f229234364abbcea525dbff6; domain=.recurly.com; path=/; secure; HttpOnly
288
- cache-control:
289
- - private, max-age=0, must-revalidate
290
- body: |
291
- <?xml version="1.0" encoding="UTF-8"?>
292
- <subscription>
293
- <id>subscription-addons-create-1292420980</id>
294
- <account_code>subscription-addons-create-1292420980</account_code>
295
- <plan>
296
- <plan_code>paid</plan_code>
297
- <name>Paid</name>
298
- </plan>
299
- <state>active</state>
300
- <quantity type="integer">1</quantity>
301
- <total_amount_in_cents type="integer">2000</total_amount_in_cents>
302
- <activated_at type="datetime">2011-01-08T08:03:31Z</activated_at>
303
- <canceled_at nil="true" type="datetime"></canceled_at>
304
- <expires_at nil="true" type="datetime"></expires_at>
305
- <current_period_started_at type="datetime">2011-01-08T08:03:31Z</current_period_started_at>
306
- <current_period_ends_at type="datetime">2011-02-08T08:03:31Z</current_period_ends_at>
307
- <trial_started_at nil="true" type="datetime"></trial_started_at>
308
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
309
- <add_ons type="array">
310
- <add_on>
311
- <add_on_code>special</add_on_code>
312
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
313
- <quantity type="integer">1</quantity>
314
- </add_on>
315
- </add_ons>
316
- </subscription>
317
-
318
- http_version: "1.1"
@@ -1,448 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>subscription-addons-remove-1292420980</account-code>
11
- <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
- <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
15
- </account>
16
-
17
- headers:
18
- accept:
19
- - "*/*"
20
- connection:
21
- - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - https://recurlytest3-test.recurly.com/accounts/subscription-addons-remove-1292420980
33
- connection:
34
- - close
35
- content-type:
36
- - application/xml; charset=utf-8
37
- x-runtime:
38
- - "428"
39
- date:
40
- - Sat, 08 Jan 2011 08:03:40 GMT
41
- server:
42
- - nginx/0.8.53
43
- content-length:
44
- - "607"
45
- set-cookie:
46
- - account_credentials=0e0f502c863b932a3164ec812ce479d627156e708f20b7178123b7018511f49bac32de6247ecae16cea3cf679963518dcde43ded0bbd522c7db96a7d625aa4f6%3A%3A; domain=.recurly.com; path=/
47
- - ""
48
- - _recurly_session=2982b358eb8f2bbc5a6a8178e8903360; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
51
- body: |
52
- <?xml version="1.0" encoding="UTF-8"?>
53
- <account>
54
- <id>subscription-addons-remove-1292420980</id>
55
- <account_code>subscription-addons-remove-1292420980</account_code>
56
- <username></username>
57
- <email>verena@test.com</email>
58
- <first_name>Verena</first_name>
59
- <last_name>Test</last_name>
60
- <company_name>Recurly Ruby Gem</company_name>
61
- <balance_in_cents type="integer">0</balance_in_cents>
62
- <closed type="boolean">false</closed>
63
- <hosted_login_token>e3b90bd9f4534a91af0b7f590b56d8c7</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:03:40Z</created_at>
65
- <state>active</state>
66
- </account>
67
-
68
- http_version: "1.1"
69
- - !ruby/struct:VCR::HTTPInteraction
70
- request: !ruby/struct:VCR::Request
71
- method: :get
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
73
- body:
74
- headers:
75
- accept:
76
- - application/xml
77
- connection:
78
- - close
79
- authorization:
80
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
81
- response: !ruby/struct:VCR::Response
82
- status: !ruby/struct:VCR::ResponseStatus
83
- code: 200
84
- message: OK
85
- headers:
86
- x-ua-compatible:
87
- - IE=Edge
88
- etag:
89
- - "\"47a9e8e85691ef0600a2dd39f113a21e\""
90
- connection:
91
- - close
92
- content-type:
93
- - application/xml; charset=utf-8
94
- x-runtime:
95
- - "16"
96
- date:
97
- - Sat, 08 Jan 2011 08:03:41 GMT
98
- server:
99
- - nginx/0.8.53
100
- content-length:
101
- - "1564"
102
- set-cookie:
103
- - _recurly_session=d89ce1c685cdeb203dee6acf38dcb1a5; domain=.recurly.com; path=/; secure; HttpOnly
104
- cache-control:
105
- - private, max-age=0, must-revalidate
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <plan>
109
- <plan_code>paid</plan_code>
110
- <name>Paid</name>
111
- <description></description>
112
- <success_url></success_url>
113
- <cancel_url></cancel_url>
114
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
115
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
116
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
117
- <plan_interval_length type="integer">1</plan_interval_length>
118
- <plan_interval_unit>months</plan_interval_unit>
119
- <trial_interval_length type="integer">0</trial_interval_length>
120
- <trial_interval_unit>months</trial_interval_unit>
121
- <latest_version depreciated="true">
122
- <version type="integer">1</version>
123
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
124
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
125
- <plan_interval_length type="integer">1</plan_interval_length>
126
- <plan_interval_unit>months</plan_interval_unit>
127
- <trial_interval_length type="integer">0</trial_interval_length>
128
- <trial_interval_unit>months</trial_interval_unit>
129
- <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
130
- </latest_version>
131
- <add_ons type="collection">
132
- <add_on>
133
- <add_on_code>special</add_on_code>
134
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
135
- <default_quantity>1</default_quantity>
136
- </add_on>
137
- <add_on>
138
- <add_on_code>special2</add_on_code>
139
- <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
140
- <default_quantity>1</default_quantity>
141
- </add_on>
142
- </add_ons>
143
- </plan>
144
-
145
- http_version: "1.1"
146
- - !ruby/struct:VCR::HTTPInteraction
147
- request: !ruby/struct:VCR::Request
148
- method: :post
149
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-remove-1292420980/subscription.xml
150
- body: |
151
- <?xml version="1.0" encoding="UTF-8"?>
152
- <subscription>
153
- <quantity type="integer">1</quantity>
154
- <plan-code>paid</plan-code>
155
- <add-ons type="array">
156
- <add-on>
157
- <unit-amount type="integer">1000</unit-amount>
158
- <quantity type="integer">1</quantity>
159
- <add-on-code>special</add-on-code>
160
- </add-on>
161
- </add-ons>
162
- <account>
163
- <created-at type="datetime">2011-01-08T08:03:40Z</created-at>
164
- <hosted-login-token>e3b90bd9f4534a91af0b7f590b56d8c7</hosted-login-token>
165
- <company-name>Recurly Ruby Gem</company-name>
166
- <account-code>subscription-addons-remove-1292420980</account-code>
167
- <closed type="boolean">false</closed>
168
- <username type="yaml" nil="true"></username>
169
- <id>subscription-addons-remove-1292420980</id>
170
- <last-name>Test</last-name>
171
- <accept-language type="yaml" nil="true"></accept-language>
172
- <billing-info>
173
- <address1>123 Test St</address1>
174
- <city>San Francisco</city>
175
- <zip>94115</zip>
176
- <country>US</country>
177
- <credit-card>
178
- <number>1</number>
179
- <month type="integer">1</month>
180
- <year type="integer">2012</year>
181
- <verification-value>123</verification-value>
182
- </credit-card>
183
- <last-name>Test</last-name>
184
- <first-name>Verena</first-name>
185
- <state>CA</state>
186
- </billing-info>
187
- <balance-in-cents type="integer">0</balance-in-cents>
188
- <state>active</state>
189
- <email>verena@test.com</email>
190
- <first-name>Verena</first-name>
191
- </account>
192
- </subscription>
193
-
194
- headers:
195
- accept:
196
- - "*/*"
197
- connection:
198
- - close
199
- content-type:
200
- - application/xml
201
- authorization:
202
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
203
- response: !ruby/struct:VCR::Response
204
- status: !ruby/struct:VCR::ResponseStatus
205
- code: 201
206
- message: Created
207
- headers:
208
- connection:
209
- - close
210
- content-type:
211
- - application/xml; charset=utf-8
212
- x-runtime:
213
- - "664"
214
- date:
215
- - Sat, 08 Jan 2011 08:03:43 GMT
216
- server:
217
- - nginx/0.8.53
218
- content-length:
219
- - "1109"
220
- set-cookie:
221
- - _recurly_session=357c793a8d145f0b9b21c2cd11501d15; domain=.recurly.com; path=/; secure; HttpOnly
222
- cache-control:
223
- - no-cache
224
- body: |
225
- <?xml version="1.0" encoding="UTF-8"?>
226
- <subscription>
227
- <id>subscription-addons-remove-1292420980</id>
228
- <account_code>subscription-addons-remove-1292420980</account_code>
229
- <plan>
230
- <plan_code>paid</plan_code>
231
- <name>Paid</name>
232
- </plan>
233
- <state>active</state>
234
- <quantity type="integer">1</quantity>
235
- <total_amount_in_cents type="integer">101000</total_amount_in_cents>
236
- <activated_at type="datetime">2011-01-08T08:03:42Z</activated_at>
237
- <canceled_at nil="true" type="datetime"></canceled_at>
238
- <expires_at nil="true" type="datetime"></expires_at>
239
- <current_period_started_at type="datetime">2011-01-08T08:03:42Z</current_period_started_at>
240
- <current_period_ends_at type="datetime">2011-02-08T08:03:42Z</current_period_ends_at>
241
- <trial_started_at nil="true" type="datetime"></trial_started_at>
242
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
243
- <add_ons type="array">
244
- <add_on>
245
- <add_on_code>special</add_on_code>
246
- <unit_amount_in_cents type="integer">100000</unit_amount_in_cents>
247
- <quantity type="integer">1</quantity>
248
- </add_on>
249
- </add_ons>
250
- </subscription>
251
-
252
- http_version: "1.1"
253
- - !ruby/struct:VCR::HTTPInteraction
254
- request: !ruby/struct:VCR::Request
255
- method: :get
256
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-remove-1292420980/subscription.xml
257
- body:
258
- headers:
259
- accept:
260
- - application/xml
261
- connection:
262
- - close
263
- authorization:
264
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
265
- response: !ruby/struct:VCR::Response
266
- status: !ruby/struct:VCR::ResponseStatus
267
- code: 200
268
- message: OK
269
- headers:
270
- x-ua-compatible:
271
- - IE=Edge
272
- etag:
273
- - "\"7cd6133dc68e826da7032b13d309cc0f\""
274
- connection:
275
- - close
276
- content-type:
277
- - application/xml; charset=utf-8
278
- x-runtime:
279
- - "27"
280
- date:
281
- - Sat, 08 Jan 2011 08:03:44 GMT
282
- server:
283
- - nginx/0.8.53
284
- content-length:
285
- - "1109"
286
- set-cookie:
287
- - _recurly_session=e13f39092b15647a3be18ed578f31f1d; domain=.recurly.com; path=/; secure; HttpOnly
288
- cache-control:
289
- - private, max-age=0, must-revalidate
290
- body: |
291
- <?xml version="1.0" encoding="UTF-8"?>
292
- <subscription>
293
- <id>subscription-addons-remove-1292420980</id>
294
- <account_code>subscription-addons-remove-1292420980</account_code>
295
- <plan>
296
- <plan_code>paid</plan_code>
297
- <name>Paid</name>
298
- </plan>
299
- <state>active</state>
300
- <quantity type="integer">1</quantity>
301
- <total_amount_in_cents type="integer">101000</total_amount_in_cents>
302
- <activated_at type="datetime">2011-01-08T08:03:42Z</activated_at>
303
- <canceled_at nil="true" type="datetime"></canceled_at>
304
- <expires_at nil="true" type="datetime"></expires_at>
305
- <current_period_started_at type="datetime">2011-01-08T08:03:42Z</current_period_started_at>
306
- <current_period_ends_at type="datetime">2011-02-08T08:03:42Z</current_period_ends_at>
307
- <trial_started_at nil="true" type="datetime"></trial_started_at>
308
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
309
- <add_ons type="array">
310
- <add_on>
311
- <add_on_code>special</add_on_code>
312
- <unit_amount_in_cents type="integer">100000</unit_amount_in_cents>
313
- <quantity type="integer">1</quantity>
314
- </add_on>
315
- </add_ons>
316
- </subscription>
317
-
318
- http_version: "1.1"
319
- - !ruby/struct:VCR::HTTPInteraction
320
- request: !ruby/struct:VCR::Request
321
- method: :put
322
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-remove-1292420980/subscription.xml
323
- body: |
324
- <?xml version="1.0" encoding="UTF-8"?>
325
- <subscription>
326
- <timeframe>now</timeframe>
327
- <add-ons type="array"/>
328
- </subscription>
329
-
330
- headers:
331
- accept:
332
- - "*/*"
333
- connection:
334
- - close
335
- content-type:
336
- - application/xml
337
- authorization:
338
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
339
- response: !ruby/struct:VCR::Response
340
- status: !ruby/struct:VCR::ResponseStatus
341
- code: 200
342
- message: OK
343
- headers:
344
- x-ua-compatible:
345
- - IE=Edge
346
- etag:
347
- - "\"f0398ed2a43177426fa651f6557456e5\""
348
- connection:
349
- - close
350
- content-type:
351
- - application/xml; charset=utf-8
352
- x-runtime:
353
- - "415"
354
- date:
355
- - Sat, 08 Jan 2011 08:03:45 GMT
356
- server:
357
- - nginx/0.8.53
358
- content-length:
359
- - "922"
360
- set-cookie:
361
- - _recurly_session=eac1d7bf6f88acd298726acf28d60cdc; domain=.recurly.com; path=/; secure; HttpOnly
362
- cache-control:
363
- - private, max-age=0, must-revalidate
364
- body: |
365
- <?xml version="1.0" encoding="UTF-8"?>
366
- <subscription>
367
- <id>subscription-addons-remove-1292420980</id>
368
- <account_code>subscription-addons-remove-1292420980</account_code>
369
- <plan>
370
- <plan_code>paid</plan_code>
371
- <name>Paid</name>
372
- </plan>
373
- <state>active</state>
374
- <quantity type="integer">1</quantity>
375
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
376
- <activated_at type="datetime">2011-01-08T08:03:44Z</activated_at>
377
- <canceled_at nil="true" type="datetime"></canceled_at>
378
- <expires_at nil="true" type="datetime"></expires_at>
379
- <current_period_started_at type="datetime">2011-01-08T08:03:42Z</current_period_started_at>
380
- <current_period_ends_at type="datetime">2011-02-08T08:03:42Z</current_period_ends_at>
381
- <trial_started_at nil="true" type="datetime"></trial_started_at>
382
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
383
- <add_ons type="array">
384
- </add_ons>
385
- </subscription>
386
-
387
- http_version: "1.1"
388
- - !ruby/struct:VCR::HTTPInteraction
389
- request: !ruby/struct:VCR::Request
390
- method: :get
391
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-addons-remove-1292420980/subscription.xml
392
- body:
393
- headers:
394
- accept:
395
- - application/xml
396
- connection:
397
- - close
398
- authorization:
399
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
400
- response: !ruby/struct:VCR::Response
401
- status: !ruby/struct:VCR::ResponseStatus
402
- code: 200
403
- message: OK
404
- headers:
405
- x-ua-compatible:
406
- - IE=Edge
407
- etag:
408
- - "\"f0398ed2a43177426fa651f6557456e5\""
409
- connection:
410
- - close
411
- content-type:
412
- - application/xml; charset=utf-8
413
- x-runtime:
414
- - "24"
415
- date:
416
- - Sat, 08 Jan 2011 08:03:46 GMT
417
- server:
418
- - nginx/0.8.53
419
- content-length:
420
- - "922"
421
- set-cookie:
422
- - _recurly_session=d37d29d9dd1a13057242521a0e1748a5; domain=.recurly.com; path=/; secure; HttpOnly
423
- cache-control:
424
- - private, max-age=0, must-revalidate
425
- body: |
426
- <?xml version="1.0" encoding="UTF-8"?>
427
- <subscription>
428
- <id>subscription-addons-remove-1292420980</id>
429
- <account_code>subscription-addons-remove-1292420980</account_code>
430
- <plan>
431
- <plan_code>paid</plan_code>
432
- <name>Paid</name>
433
- </plan>
434
- <state>active</state>
435
- <quantity type="integer">1</quantity>
436
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
437
- <activated_at type="datetime">2011-01-08T08:03:44Z</activated_at>
438
- <canceled_at nil="true" type="datetime"></canceled_at>
439
- <expires_at nil="true" type="datetime"></expires_at>
440
- <current_period_started_at type="datetime">2011-01-08T08:03:42Z</current_period_started_at>
441
- <current_period_ends_at type="datetime">2011-02-08T08:03:42Z</current_period_ends_at>
442
- <trial_started_at nil="true" type="datetime"></trial_started_at>
443
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
444
- <add_ons type="array">
445
- </add_ons>
446
- </subscription>
447
-
448
- http_version: "1.1"