recurly 0.2.3 → 0.2.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 (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "584"
37
+ - "613"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:25 GMT
39
+ - Tue, 19 Oct 2010 03:19:20 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "593"
44
44
  set-cookie:
45
- - account_credentials=498da6960e53485243f9635e25686f72e019c99b848f8c2a08277922d7b865f4fe2dd50247e022f561d9f81ae9545210dc5882a900c090650c43c14174a4ae6e%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=7701ec3932b711b75a7c72acecff595616682e2bcb36abb9080631322f9d3127f21dd3288b84bc00fe00259a40a5ae5ac87b7a686adb7fcb053d1d28484f24a9%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=155ab6da9c5310c18f743d74301280c4; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=c94f12e41c8aa464e6e7fcecfae2021f; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>a03a7ad5e119420bb9cb6f2efb8ed693</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:25Z</created_at>
62
+ <hosted_login_token>147fa81a0fc740c982e091bfde09d119</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:20Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -95,27 +95,27 @@
95
95
  content-type:
96
96
  - application/xml; charset=utf-8
97
97
  x-runtime:
98
- - "99"
98
+ - "47"
99
99
  date:
100
- - Mon, 18 Oct 2010 22:05:26 GMT
100
+ - Tue, 19 Oct 2010 03:19:21 GMT
101
101
  server:
102
102
  - nginx/0.7.65
103
103
  content-length:
104
104
  - "462"
105
105
  set-cookie:
106
- - _recurly_session=00dff0a288d3ab0016a683b55aa3e6ba; domain=.recurly.com; path=/; Secure; HttpOnly
106
+ - _recurly_session=a53f97cb823ebf48b81b61f4c23f6316; domain=.recurly.com; path=/; Secure; HttpOnly
107
107
  cache-control:
108
108
  - no-cache
109
109
  body: |
110
110
  <?xml version="1.0" encoding="UTF-8"?>
111
111
  <charge type="charge">
112
- <id>300e64c1fbbc40ef8ef48a978bfe271c</id>
112
+ <id>f9bb57d67360420ea81e046a794f1c86</id>
113
113
  <account_code>charge-list-pending-1286681273</account_code>
114
114
  <amount_in_cents type="integer">1000</amount_in_cents>
115
- <start_date type="datetime">2010-10-18T22:05:26Z</start_date>
115
+ <start_date type="datetime">2010-10-19T03:19:21Z</start_date>
116
116
  <end_date nil="true" type="datetime"></end_date>
117
117
  <description>charge description</description>
118
- <created_at type="datetime">2010-10-18T22:05:26Z</created_at>
118
+ <created_at type="datetime">2010-10-19T03:19:21Z</created_at>
119
119
  </charge>
120
120
 
121
121
  http_version: "1.1"
@@ -149,27 +149,27 @@
149
149
  content-type:
150
150
  - application/xml; charset=utf-8
151
151
  x-runtime:
152
- - "47"
152
+ - "46"
153
153
  date:
154
- - Mon, 18 Oct 2010 22:05:27 GMT
154
+ - Tue, 19 Oct 2010 03:19:22 GMT
155
155
  server:
156
156
  - nginx/0.7.65
157
157
  content-length:
158
158
  - "462"
159
159
  set-cookie:
160
- - _recurly_session=f39b76caa9644e147f93cb61d8851131; domain=.recurly.com; path=/; Secure; HttpOnly
160
+ - _recurly_session=f9cbbbad837c8983a8e78bbc6687356c; domain=.recurly.com; path=/; Secure; HttpOnly
161
161
  cache-control:
162
162
  - no-cache
163
163
  body: |
164
164
  <?xml version="1.0" encoding="UTF-8"?>
165
165
  <charge type="charge">
166
- <id>2b06178c555040e5b0666cb1fedf2a3b</id>
166
+ <id>ab8d9321e3004988a7ffd41cdc2147de</id>
167
167
  <account_code>charge-list-pending-1286681273</account_code>
168
168
  <amount_in_cents type="integer">1000</amount_in_cents>
169
- <start_date type="datetime">2010-10-18T22:05:27Z</start_date>
169
+ <start_date type="datetime">2010-10-19T03:19:22Z</start_date>
170
170
  <end_date nil="true" type="datetime"></end_date>
171
171
  <description>charge description</description>
172
- <created_at type="datetime">2010-10-18T22:05:27Z</created_at>
172
+ <created_at type="datetime">2010-10-19T03:19:22Z</created_at>
173
173
  </charge>
174
174
 
175
175
  http_version: "1.1"
@@ -203,27 +203,27 @@
203
203
  content-type:
204
204
  - application/xml; charset=utf-8
205
205
  x-runtime:
206
- - "216"
206
+ - "208"
207
207
  date:
208
- - Mon, 18 Oct 2010 22:05:28 GMT
208
+ - Tue, 19 Oct 2010 03:19:22 GMT
209
209
  server:
210
210
  - nginx/0.7.65
211
211
  content-length:
212
212
  - "462"
213
213
  set-cookie:
214
- - _recurly_session=83fef8d37eebd6f568fc57ad9d65df94; domain=.recurly.com; path=/; Secure; HttpOnly
214
+ - _recurly_session=e4eceb0e7ec39a2fb1700c0cdff758eb; domain=.recurly.com; path=/; Secure; HttpOnly
215
215
  cache-control:
216
216
  - no-cache
217
217
  body: |
218
218
  <?xml version="1.0" encoding="UTF-8"?>
219
219
  <charge type="charge">
220
- <id>73ec49dcd756456c95dfcc118ae501f9</id>
220
+ <id>083c82fd0ca44cfe8da4df68afc90d5f</id>
221
221
  <account_code>charge-list-pending-1286681273</account_code>
222
222
  <amount_in_cents type="integer">1000</amount_in_cents>
223
- <start_date type="datetime">2010-10-18T22:05:28Z</start_date>
223
+ <start_date type="datetime">2010-10-19T03:19:22Z</start_date>
224
224
  <end_date nil="true" type="datetime"></end_date>
225
225
  <description>charge description</description>
226
- <created_at type="datetime">2010-10-18T22:05:28Z</created_at>
226
+ <created_at type="datetime">2010-10-19T03:19:22Z</created_at>
227
227
  </charge>
228
228
 
229
229
  http_version: "1.1"
@@ -247,55 +247,55 @@
247
247
  x-ua-compatible:
248
248
  - IE=Edge
249
249
  etag:
250
- - "\"200d9a129fd26b0965a32817afdd71a0\""
250
+ - "\"d47b576ad375d2558ab01458b89233f9\""
251
251
  connection:
252
252
  - close
253
253
  content-type:
254
254
  - application/xml; charset=utf-8
255
255
  x-runtime:
256
- - "28"
256
+ - "20"
257
257
  date:
258
- - Mon, 18 Oct 2010 22:05:29 GMT
258
+ - Tue, 19 Oct 2010 03:19:23 GMT
259
259
  server:
260
260
  - nginx/0.7.65
261
261
  content-length:
262
262
  - "1588"
263
263
  set-cookie:
264
- - _recurly_session=bf8f977d0fe02bd185ba400c8636eac4; domain=.recurly.com; path=/; Secure; HttpOnly
264
+ - _recurly_session=0ef1f3cdccce8d5de595927efc8e3d48; domain=.recurly.com; path=/; Secure; HttpOnly
265
265
  cache-control:
266
266
  - private, max-age=0, must-revalidate
267
267
  body: |
268
268
  <?xml version="1.0" encoding="UTF-8"?>
269
269
  <charges type="array">
270
270
  <charge type="charge">
271
- <id>73ec49dcd756456c95dfcc118ae501f9</id>
271
+ <id>083c82fd0ca44cfe8da4df68afc90d5f</id>
272
272
  <account_code>charge-list-pending-1286681273</account_code>
273
273
  <amount_in_cents type="integer">1000</amount_in_cents>
274
- <start_date type="datetime">2010-10-18T22:05:28Z</start_date>
274
+ <start_date type="datetime">2010-10-19T03:19:22Z</start_date>
275
275
  <end_date nil="true" type="datetime"></end_date>
276
276
  <invoice_number nil="true" type="integer"></invoice_number>
277
277
  <description>charge description</description>
278
- <created_at type="datetime">2010-10-18T22:05:28Z</created_at>
278
+ <created_at type="datetime">2010-10-19T03:19:22Z</created_at>
279
279
  </charge>
280
280
  <charge type="charge">
281
- <id>2b06178c555040e5b0666cb1fedf2a3b</id>
281
+ <id>ab8d9321e3004988a7ffd41cdc2147de</id>
282
282
  <account_code>charge-list-pending-1286681273</account_code>
283
283
  <amount_in_cents type="integer">1000</amount_in_cents>
284
- <start_date type="datetime">2010-10-18T22:05:27Z</start_date>
284
+ <start_date type="datetime">2010-10-19T03:19:22Z</start_date>
285
285
  <end_date nil="true" type="datetime"></end_date>
286
286
  <invoice_number nil="true" type="integer"></invoice_number>
287
287
  <description>charge description</description>
288
- <created_at type="datetime">2010-10-18T22:05:27Z</created_at>
288
+ <created_at type="datetime">2010-10-19T03:19:22Z</created_at>
289
289
  </charge>
290
290
  <charge type="charge">
291
- <id>300e64c1fbbc40ef8ef48a978bfe271c</id>
291
+ <id>f9bb57d67360420ea81e046a794f1c86</id>
292
292
  <account_code>charge-list-pending-1286681273</account_code>
293
293
  <amount_in_cents type="integer">1000</amount_in_cents>
294
- <start_date type="datetime">2010-10-18T22:05:26Z</start_date>
294
+ <start_date type="datetime">2010-10-19T03:19:21Z</start_date>
295
295
  <end_date nil="true" type="datetime"></end_date>
296
296
  <invoice_number nil="true" type="integer"></invoice_number>
297
297
  <description>charge description</description>
298
- <created_at type="datetime">2010-10-18T22:05:26Z</created_at>
298
+ <created_at type="datetime">2010-10-19T03:19:21Z</created_at>
299
299
  </charge>
300
300
  </charges>
301
301
 
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "610"
37
+ - "587"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:40 GMT
39
+ - Tue, 19 Oct 2010 03:19:34 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "581"
44
44
  set-cookie:
45
- - account_credentials=c090abb88bd782fd3c49ab732d9f32d4a9eb4026ecac2715c6b8bc64aaf8723e88a2ca3eb62175ac0de541de74d5e555bc85071664aee089f43e8b8a560ae31e%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=3ca93bbb81abb0401d2a7ca47a73e935f38b0c6935a54b91494392c0c97964c89aba0c06c0312afffc24a5226115b6ef07da49c551699742a0bba30465196e64%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=ccde8ccb044b0574fe211f8b5d8383b0; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=ead0babb340133bd65c2b0c84122097e; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>0b66f6a79c574ff3bfffc1aedaac24c9</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:40Z</created_at>
62
+ <hosted_login_token>d92c8fe26d7a4d999e4a7f5468f8f144</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:34Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -95,34 +95,34 @@
95
95
  content-type:
96
96
  - application/xml; charset=utf-8
97
97
  x-runtime:
98
- - "46"
98
+ - "47"
99
99
  date:
100
- - Mon, 18 Oct 2010 22:05:41 GMT
100
+ - Tue, 19 Oct 2010 03:19:35 GMT
101
101
  server:
102
102
  - nginx/0.7.65
103
103
  content-length:
104
104
  - "455"
105
105
  set-cookie:
106
- - _recurly_session=a9c2f1bbc752c570f5bee0b8716bac77; domain=.recurly.com; path=/; Secure; HttpOnly
106
+ - _recurly_session=c686bcdba4d276d47537615aeb54068a; domain=.recurly.com; path=/; Secure; HttpOnly
107
107
  cache-control:
108
108
  - no-cache
109
109
  body: |
110
110
  <?xml version="1.0" encoding="UTF-8"?>
111
111
  <charge type="charge">
112
- <id>5a1bac91670c455a8e7dddfbf510b3cf</id>
112
+ <id>4aaad5ec5a084f698d1f517745b204dc</id>
113
113
  <account_code>charge-lookup-1286681273</account_code>
114
114
  <amount_in_cents type="integer">1315</amount_in_cents>
115
- <start_date type="datetime">2010-10-18T22:05:41Z</start_date>
115
+ <start_date type="datetime">2010-10-19T03:19:35Z</start_date>
116
116
  <end_date nil="true" type="datetime"></end_date>
117
117
  <description>inconvenience fee</description>
118
- <created_at type="datetime">2010-10-18T22:05:41Z</created_at>
118
+ <created_at type="datetime">2010-10-19T03:19:35Z</created_at>
119
119
  </charge>
120
120
 
121
121
  http_version: "1.1"
122
122
  - !ruby/struct:VCR::HTTPInteraction
123
123
  request: !ruby/struct:VCR::Request
124
124
  method: :get
125
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-lookup-1286681273/charges/5a1bac91670c455a8e7dddfbf510b3cf.xml
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-lookup-1286681273/charges/4aaad5ec5a084f698d1f517745b204dc.xml
126
126
  body:
127
127
  headers:
128
128
  accept:
@@ -139,33 +139,33 @@
139
139
  x-ua-compatible:
140
140
  - IE=Edge
141
141
  etag:
142
- - "\"eb07a6796ef62540e9ce1bfcaa6759e8\""
142
+ - "\"ee1de725583552db253de7137a8839ec\""
143
143
  connection:
144
144
  - close
145
145
  content-type:
146
146
  - application/xml; charset=utf-8
147
147
  x-runtime:
148
- - "14"
148
+ - "24"
149
149
  date:
150
- - Mon, 18 Oct 2010 22:05:42 GMT
150
+ - Tue, 19 Oct 2010 03:19:35 GMT
151
151
  server:
152
152
  - nginx/0.7.65
153
153
  content-length:
154
154
  - "455"
155
155
  set-cookie:
156
- - _recurly_session=e60615c3a1d55788d29063acc2c54553; domain=.recurly.com; path=/; Secure; HttpOnly
156
+ - _recurly_session=765b6a733d37020f455fa95875ef85ff; domain=.recurly.com; path=/; Secure; HttpOnly
157
157
  cache-control:
158
158
  - private, max-age=0, must-revalidate
159
159
  body: |
160
160
  <?xml version="1.0" encoding="UTF-8"?>
161
161
  <charge type="charge">
162
- <id>5a1bac91670c455a8e7dddfbf510b3cf</id>
162
+ <id>4aaad5ec5a084f698d1f517745b204dc</id>
163
163
  <account_code>charge-lookup-1286681273</account_code>
164
164
  <amount_in_cents type="integer">1315</amount_in_cents>
165
- <start_date type="datetime">2010-10-18T22:05:41Z</start_date>
165
+ <start_date type="datetime">2010-10-19T03:19:35Z</start_date>
166
166
  <end_date nil="true" type="datetime"></end_date>
167
167
  <description>inconvenience fee</description>
168
- <created_at type="datetime">2010-10-18T22:05:41Z</created_at>
168
+ <created_at type="datetime">2010-10-19T03:19:35Z</created_at>
169
169
  </charge>
170
170
 
171
171
  http_version: "1.1"
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "607"
37
+ - "586"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:43 GMT
39
+ - Tue, 19 Oct 2010 03:19:37 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "581"
44
44
  set-cookie:
45
- - account_credentials=f429a8ffbfd5b7cc0df79bb28e4854d1d43175b3ec2ab29f8c82de48108d509d9131c1df609cb5087a999c0e975bb79b56834198a22f582c12746407d936bbaa%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=4b163c2630be63f59483c72f96a1d8543901977abf63136ec9a146287e2446bc797c05f7c2c9f183db36611100410d6b4686c204a11f794327f188df5696c5e4%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=61e716118b9eceb00436e321d89ec85b; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=07f8dd9c0ade135270ba25af10ec88f2; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>15c5cf1a3a464a22bc5804513ec6212e</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:43Z</created_at>
62
+ <hosted_login_token>de43179393dd4301a105a8b5a1db62e5</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:37Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -95,34 +95,34 @@
95
95
  content-type:
96
96
  - application/xml; charset=utf-8
97
97
  x-runtime:
98
- - "47"
98
+ - "48"
99
99
  date:
100
- - Mon, 18 Oct 2010 22:05:44 GMT
100
+ - Tue, 19 Oct 2010 03:19:38 GMT
101
101
  server:
102
102
  - nginx/0.7.65
103
103
  content-length:
104
104
  - "450"
105
105
  set-cookie:
106
- - _recurly_session=5e7af0dc3c0723a5203144843ae55163; domain=.recurly.com; path=/; Secure; HttpOnly
106
+ - _recurly_session=b8be68d24dca52d43ad4d36f6341d30d; domain=.recurly.com; path=/; Secure; HttpOnly
107
107
  cache-control:
108
108
  - no-cache
109
109
  body: |
110
110
  <?xml version="1.0" encoding="UTF-8"?>
111
111
  <credit type="credit">
112
- <id>7f86cd25d4b44705895bd2785521c4da</id>
112
+ <id>2512059ac4c94d5aba9c608d08197e40</id>
113
113
  <account_code>credit-create-1286681343</account_code>
114
114
  <amount_in_cents type="integer">-1005</amount_in_cents>
115
- <start_date type="datetime">2010-10-18T22:05:44Z</start_date>
115
+ <start_date type="datetime">2010-10-19T03:19:37Z</start_date>
116
116
  <end_date nil="true" type="datetime"></end_date>
117
117
  <description>free moniez</description>
118
- <created_at type="datetime">2010-10-18T22:05:44Z</created_at>
118
+ <created_at type="datetime">2010-10-19T03:19:37Z</created_at>
119
119
  </credit>
120
120
 
121
121
  http_version: "1.1"
122
122
  - !ruby/struct:VCR::HTTPInteraction
123
123
  request: !ruby/struct:VCR::Request
124
124
  method: :get
125
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1286681343/credits/7f86cd25d4b44705895bd2785521c4da.xml
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1286681343/credits/2512059ac4c94d5aba9c608d08197e40.xml
126
126
  body:
127
127
  headers:
128
128
  accept:
@@ -139,33 +139,33 @@
139
139
  x-ua-compatible:
140
140
  - IE=Edge
141
141
  etag:
142
- - "\"89c139b4c35f97e207a0f4c7609bf3d1\""
142
+ - "\"42ff6385f148c3d11ae0d0a108cb6885\""
143
143
  connection:
144
144
  - close
145
145
  content-type:
146
146
  - application/xml; charset=utf-8
147
147
  x-runtime:
148
- - "33"
148
+ - "24"
149
149
  date:
150
- - Mon, 18 Oct 2010 22:05:45 GMT
150
+ - Tue, 19 Oct 2010 03:19:38 GMT
151
151
  server:
152
152
  - nginx/0.7.65
153
153
  content-length:
154
154
  - "450"
155
155
  set-cookie:
156
- - _recurly_session=571552b02e937810ba6d84bf49b1aa43; domain=.recurly.com; path=/; Secure; HttpOnly
156
+ - _recurly_session=f396661d9bf16a2b1dd071660bdca81e; domain=.recurly.com; path=/; Secure; HttpOnly
157
157
  cache-control:
158
158
  - private, max-age=0, must-revalidate
159
159
  body: |
160
160
  <?xml version="1.0" encoding="UTF-8"?>
161
161
  <credit type="credit">
162
- <id>7f86cd25d4b44705895bd2785521c4da</id>
162
+ <id>2512059ac4c94d5aba9c608d08197e40</id>
163
163
  <account_code>credit-create-1286681343</account_code>
164
164
  <amount_in_cents type="integer">-1005</amount_in_cents>
165
- <start_date type="datetime">2010-10-18T22:05:44Z</start_date>
165
+ <start_date type="datetime">2010-10-19T03:19:37Z</start_date>
166
166
  <end_date nil="true" type="datetime"></end_date>
167
167
  <description>free moniez</description>
168
- <created_at type="datetime">2010-10-18T22:05:44Z</created_at>
168
+ <created_at type="datetime">2010-10-19T03:19:37Z</created_at>
169
169
  </credit>
170
170
 
171
171
  http_version: "1.1"
@@ -0,0 +1,171 @@
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
+ <account-code>credit-create-1287460732</account-code>
10
+ <company-name>Recurly Ruby Gem</company-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <first-name>Verena</first-name>
14
+ </account>
15
+
16
+ headers:
17
+ accept:
18
+ - "*/*"
19
+ connection:
20
+ - close
21
+ content-type:
22
+ - application/xml
23
+ authorization:
24
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
25
+ response: !ruby/struct:VCR::Response
26
+ status: !ruby/struct:VCR::ResponseStatus
27
+ code: 201
28
+ message: Created
29
+ headers:
30
+ location:
31
+ - https://recurlytest3-test.recurly.com/accounts/credit-create-1287460732
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "595"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:07:42 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "581"
44
+ set-cookie:
45
+ - account_credentials=60dba90b000276ef026ae01900e125637133da3774e926c7bbfc56a49bae7761a49bfb36b3261b20f4c951c672baff0758edb3b7acdd3960eb2b9e82cbec4d4d%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=9ed5901fc165dfc9548f328d9b0c36ac; domain=.recurly.com; path=/; Secure; HttpOnly
48
+ cache-control:
49
+ - no-cache
50
+ body: |
51
+ <?xml version="1.0" encoding="UTF-8"?>
52
+ <account>
53
+ <id>credit-create-1287460732</id>
54
+ <account_code>credit-create-1287460732</account_code>
55
+ <username></username>
56
+ <email>verena@test.com</email>
57
+ <first_name>Verena</first_name>
58
+ <last_name>Test</last_name>
59
+ <company_name>Recurly Ruby Gem</company_name>
60
+ <balance_in_cents type="integer">0</balance_in_cents>
61
+ <closed type="boolean">false</closed>
62
+ <hosted_login_token>bd2fcb83409b440f960e427dbee0dca6</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:07:42Z</created_at>
64
+ <state>active</state>
65
+ </account>
66
+
67
+ http_version: "1.1"
68
+ - !ruby/struct:VCR::HTTPInteraction
69
+ request: !ruby/struct:VCR::Request
70
+ method: :post
71
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1287460732/credits.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <credit>
75
+ <amount type="float">10.05</amount>
76
+ <description>free moniez</description>
77
+ </credit>
78
+
79
+ headers:
80
+ accept:
81
+ - "*/*"
82
+ connection:
83
+ - close
84
+ content-type:
85
+ - application/xml
86
+ authorization:
87
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
88
+ response: !ruby/struct:VCR::Response
89
+ status: !ruby/struct:VCR::ResponseStatus
90
+ code: 201
91
+ message: Created
92
+ headers:
93
+ connection:
94
+ - close
95
+ content-type:
96
+ - application/xml; charset=utf-8
97
+ x-runtime:
98
+ - "67"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:07:43 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "450"
105
+ set-cookie:
106
+ - _recurly_session=8d6aaeb288c181f4e1775def03661b0a; domain=.recurly.com; path=/; Secure; HttpOnly
107
+ cache-control:
108
+ - no-cache
109
+ body: |
110
+ <?xml version="1.0" encoding="UTF-8"?>
111
+ <credit type="credit">
112
+ <id>f412a15ac5894ad0bdb4c86ea7be3a9a</id>
113
+ <account_code>credit-create-1287460732</account_code>
114
+ <amount_in_cents type="integer">-1005</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:07:43Z</start_date>
116
+ <end_date nil="true" type="datetime"></end_date>
117
+ <description>free moniez</description>
118
+ <created_at type="datetime">2010-10-19T04:07:43Z</created_at>
119
+ </credit>
120
+
121
+ http_version: "1.1"
122
+ - !ruby/struct:VCR::HTTPInteraction
123
+ request: !ruby/struct:VCR::Request
124
+ method: :get
125
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1287460732/credits/f412a15ac5894ad0bdb4c86ea7be3a9a.xml
126
+ body:
127
+ headers:
128
+ accept:
129
+ - application/xml
130
+ connection:
131
+ - close
132
+ authorization:
133
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
134
+ response: !ruby/struct:VCR::Response
135
+ status: !ruby/struct:VCR::ResponseStatus
136
+ code: 200
137
+ message: OK
138
+ headers:
139
+ x-ua-compatible:
140
+ - IE=Edge
141
+ etag:
142
+ - "\"2bf126b1782a5cb4c8ecafd72a1239f1\""
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/xml; charset=utf-8
147
+ x-runtime:
148
+ - "15"
149
+ date:
150
+ - Tue, 19 Oct 2010 04:07:43 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "450"
155
+ set-cookie:
156
+ - _recurly_session=20a7d297b583f601c1c314d809e2bc40; domain=.recurly.com; path=/; Secure; HttpOnly
157
+ cache-control:
158
+ - private, max-age=0, must-revalidate
159
+ body: |
160
+ <?xml version="1.0" encoding="UTF-8"?>
161
+ <credit type="credit">
162
+ <id>f412a15ac5894ad0bdb4c86ea7be3a9a</id>
163
+ <account_code>credit-create-1287460732</account_code>
164
+ <amount_in_cents type="integer">-1005</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:07:43Z</start_date>
166
+ <end_date nil="true" type="datetime"></end_date>
167
+ <description>free moniez</description>
168
+ <created_at type="datetime">2010-10-19T04:07:43Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"