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
@@ -25,15 +25,15 @@
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
27
  x-runtime:
28
- - "14"
28
+ - "13"
29
29
  date:
30
- - Mon, 18 Oct 2010 22:06:08 GMT
30
+ - Tue, 19 Oct 2010 03:20:03 GMT
31
31
  server:
32
32
  - nginx/0.7.65
33
33
  content-length:
34
34
  - "1150"
35
35
  set-cookie:
36
- - _recurly_session=b0903c1d71fbd78b962341fdc5e89fc1; domain=.recurly.com; path=/; Secure; HttpOnly
36
+ - _recurly_session=5d8c431da5720975d41a1f6a6f7d685c; domain=.recurly.com; path=/; Secure; HttpOnly
37
37
  cache-control:
38
38
  - private, max-age=0, must-revalidate
39
39
  body: |
@@ -90,15 +90,15 @@
90
90
  content-type:
91
91
  - application/xml; charset=utf-8
92
92
  x-runtime:
93
- - "13"
93
+ - "21"
94
94
  date:
95
- - Mon, 18 Oct 2010 22:06:09 GMT
95
+ - Tue, 19 Oct 2010 03:20:03 GMT
96
96
  server:
97
97
  - nginx/0.7.65
98
98
  content-length:
99
99
  - "1164"
100
100
  set-cookie:
101
- - _recurly_session=7347e2c1ff0629daa2bfaad6587a25ff; domain=.recurly.com; path=/; Secure; HttpOnly
101
+ - _recurly_session=08ff651d0a2489ff2bcaf8a805465810; domain=.recurly.com; path=/; Secure; HttpOnly
102
102
  cache-control:
103
103
  - private, max-age=0, must-revalidate
104
104
  body: |
@@ -155,15 +155,15 @@
155
155
  content-type:
156
156
  - application/xml; charset=utf-8
157
157
  x-runtime:
158
- - "30"
158
+ - "21"
159
159
  date:
160
- - Mon, 18 Oct 2010 22:06:10 GMT
160
+ - Tue, 19 Oct 2010 03:20:04 GMT
161
161
  server:
162
162
  - nginx/0.7.65
163
163
  content-length:
164
164
  - "6675"
165
165
  set-cookie:
166
- - _recurly_session=c16a62d75aef8fec4126958f02a65ef6; domain=.recurly.com; path=/; Secure; HttpOnly
166
+ - _recurly_session=d78860c02abc33921f98ace592862709; domain=.recurly.com; path=/; Secure; HttpOnly
167
167
  cache-control:
168
168
  - private, max-age=0, must-revalidate
169
169
  body: |
@@ -36,15 +36,15 @@
36
36
  content-type:
37
37
  - application/xml; charset=utf-8
38
38
  x-runtime:
39
- - "27"
39
+ - "35"
40
40
  date:
41
- - Mon, 18 Oct 2010 22:06:14 GMT
41
+ - Tue, 19 Oct 2010 03:20:08 GMT
42
42
  server:
43
43
  - nginx/0.7.65
44
44
  content-length:
45
45
  - "1175"
46
46
  set-cookie:
47
- - _recurly_session=d51cbfd25490d08713971f71930e7989; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=919f20ae61c6d4e218cda18c28aecb96; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -55,7 +55,7 @@
55
55
  <description></description>
56
56
  <success_url></success_url>
57
57
  <cancel_url></cancel_url>
58
- <created_at type="datetime">2010-10-18T22:06:14Z</created_at>
58
+ <created_at type="datetime">2010-10-19T03:20:08Z</created_at>
59
59
  <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
60
60
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
61
61
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -70,7 +70,7 @@
70
70
  <plan_interval_unit>months</plan_interval_unit>
71
71
  <trial_interval_length type="integer">0</trial_interval_length>
72
72
  <trial_interval_unit>months</trial_interval_unit>
73
- <created_at type="datetime">2010-10-18T22:06:14Z</created_at>
73
+ <created_at type="datetime">2010-10-19T03:20:08Z</created_at>
74
74
  </latest_version>
75
75
  </plan>
76
76
 
@@ -95,21 +95,21 @@
95
95
  x-ua-compatible:
96
96
  - IE=Edge
97
97
  etag:
98
- - "\"8e30e41639363bf397e43a0bd611a72e\""
98
+ - "\"e273617a7e9860aaf0d6de438ca2a73c\""
99
99
  connection:
100
100
  - close
101
101
  content-type:
102
102
  - application/xml; charset=utf-8
103
103
  x-runtime:
104
- - "13"
104
+ - "21"
105
105
  date:
106
- - Mon, 18 Oct 2010 22:06:14 GMT
106
+ - Tue, 19 Oct 2010 03:20:09 GMT
107
107
  server:
108
108
  - nginx/0.7.65
109
109
  content-length:
110
110
  - "1175"
111
111
  set-cookie:
112
- - _recurly_session=7b6ff6138741a1f0040ae69c69dd6b3b; domain=.recurly.com; path=/; Secure; HttpOnly
112
+ - _recurly_session=cd2ebe824e0564352acc21a96a9a32f8; domain=.recurly.com; path=/; Secure; HttpOnly
113
113
  cache-control:
114
114
  - private, max-age=0, must-revalidate
115
115
  body: |
@@ -120,7 +120,7 @@
120
120
  <description></description>
121
121
  <success_url></success_url>
122
122
  <cancel_url></cancel_url>
123
- <created_at type="datetime">2010-10-18T22:06:14Z</created_at>
123
+ <created_at type="datetime">2010-10-19T03:20:08Z</created_at>
124
124
  <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
125
125
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
126
126
  <plan_interval_length type="integer">1</plan_interval_length>
@@ -135,7 +135,7 @@
135
135
  <plan_interval_unit>months</plan_interval_unit>
136
136
  <trial_interval_length type="integer">0</trial_interval_length>
137
137
  <trial_interval_unit>months</trial_interval_unit>
138
- <created_at type="datetime">2010-10-18T22:06:14Z</created_at>
138
+ <created_at type="datetime">2010-10-19T03:20:08Z</created_at>
139
139
  </latest_version>
140
140
  </plan>
141
141
 
@@ -164,15 +164,15 @@
164
164
  content-type:
165
165
  - application/xml; charset=utf-8
166
166
  x-runtime:
167
- - "35"
167
+ - "22"
168
168
  date:
169
- - Mon, 18 Oct 2010 22:06:15 GMT
169
+ - Tue, 19 Oct 2010 03:20:09 GMT
170
170
  server:
171
171
  - nginx/0.7.65
172
172
  content-length:
173
173
  - "1"
174
174
  set-cookie:
175
- - _recurly_session=13361f042b00fb7113301daf1268ce24; domain=.recurly.com; path=/; Secure; HttpOnly
175
+ - _recurly_session=629c86b4bf873cdc5e5cfd9e571c692d; domain=.recurly.com; path=/; Secure; HttpOnly
176
176
  cache-control:
177
177
  - no-cache
178
178
  body: " "
@@ -199,13 +199,13 @@
199
199
  content-type:
200
200
  - application/xml; charset=utf-8
201
201
  date:
202
- - Mon, 18 Oct 2010 22:06:15 GMT
202
+ - Tue, 19 Oct 2010 03:20:10 GMT
203
203
  server:
204
204
  - nginx/0.7.65
205
205
  content-length:
206
206
  - "90"
207
207
  set-cookie:
208
- - _recurly_session=3565504d6f3dcd1e1574b0e656b929d3; domain=.recurly.com; path=/; Secure; HttpOnly
208
+ - _recurly_session=d4fcc0c74a9e1764ceacafa208a1b81e; domain=.recurly.com; path=/; Secure; HttpOnly
209
209
  cache-control:
210
210
  - no-cache
211
211
  body: |
@@ -25,15 +25,15 @@
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
27
  x-runtime:
28
- - "30"
28
+ - "13"
29
29
  date:
30
- - Mon, 18 Oct 2010 22:06:10 GMT
30
+ - Tue, 19 Oct 2010 03:20:05 GMT
31
31
  server:
32
32
  - nginx/0.7.65
33
33
  content-length:
34
34
  - "1150"
35
35
  set-cookie:
36
- - _recurly_session=14ada039584fbf1728bd3d4ff2acf5ed; domain=.recurly.com; path=/; Secure; HttpOnly
36
+ - _recurly_session=c3a6f2ec67b7e7e4efecabc5ed8f4ef9; domain=.recurly.com; path=/; Secure; HttpOnly
37
37
  cache-control:
38
38
  - private, max-age=0, must-revalidate
39
39
  body: |
@@ -90,15 +90,15 @@
90
90
  content-type:
91
91
  - application/xml; charset=utf-8
92
92
  x-runtime:
93
- - "13"
93
+ - "21"
94
94
  date:
95
- - Mon, 18 Oct 2010 22:06:11 GMT
95
+ - Tue, 19 Oct 2010 03:20:05 GMT
96
96
  server:
97
97
  - nginx/0.7.65
98
98
  content-length:
99
99
  - "1164"
100
100
  set-cookie:
101
- - _recurly_session=c65627a04401ed63a0ecc65a492bea04; domain=.recurly.com; path=/; Secure; HttpOnly
101
+ - _recurly_session=fb95bfab4f66c582c145958cce45ac56; domain=.recurly.com; path=/; Secure; HttpOnly
102
102
  cache-control:
103
103
  - private, max-age=0, must-revalidate
104
104
  body: |
@@ -155,15 +155,15 @@
155
155
  content-type:
156
156
  - application/xml; charset=utf-8
157
157
  x-runtime:
158
- - "49"
158
+ - "12"
159
159
  date:
160
- - Mon, 18 Oct 2010 22:06:11 GMT
160
+ - Tue, 19 Oct 2010 03:20:06 GMT
161
161
  server:
162
162
  - nginx/0.7.65
163
163
  content-length:
164
164
  - "1150"
165
165
  set-cookie:
166
- - _recurly_session=bff713595eea18779c2f5f88feff1f9e; domain=.recurly.com; path=/; Secure; HttpOnly
166
+ - _recurly_session=3f0cf401af10c6753da95008549cdc99; domain=.recurly.com; path=/; Secure; HttpOnly
167
167
  cache-control:
168
168
  - private, max-age=0, must-revalidate
169
169
  body: |
@@ -27,13 +27,13 @@
27
27
  x-runtime:
28
28
  - "13"
29
29
  date:
30
- - Mon, 18 Oct 2010 22:06:12 GMT
30
+ - Tue, 19 Oct 2010 03:20:06 GMT
31
31
  server:
32
32
  - nginx/0.7.65
33
33
  content-length:
34
34
  - "1153"
35
35
  set-cookie:
36
- - _recurly_session=b06c1096818abb1e32479292a1060653; domain=.recurly.com; path=/; Secure; HttpOnly
36
+ - _recurly_session=f1f3ef4143949adc0f608622af81541a; domain=.recurly.com; path=/; Secure; HttpOnly
37
37
  cache-control:
38
38
  - private, max-age=0, must-revalidate
39
39
  body: |
@@ -91,8 +91,8 @@
91
91
  <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
92
92
  <description type="yaml" nil="true"></description>
93
93
  <trial-interval-unit>months</trial-interval-unit>
94
- <success-url type="yaml" nil="true"></success-url>
95
94
  <plan-interval-unit>months</plan-interval-unit>
95
+ <success-url type="yaml" nil="true"></success-url>
96
96
  <plan-interval-length type="integer">1</plan-interval-length>
97
97
  </plan>
98
98
 
@@ -117,15 +117,15 @@
117
117
  content-type:
118
118
  - application/xml; charset=utf-8
119
119
  x-runtime:
120
- - "21"
120
+ - "42"
121
121
  date:
122
- - Mon, 18 Oct 2010 22:06:13 GMT
122
+ - Tue, 19 Oct 2010 03:20:07 GMT
123
123
  server:
124
124
  - nginx/0.7.65
125
125
  content-length:
126
126
  - "1"
127
127
  set-cookie:
128
- - _recurly_session=00740c2ff65ada159b5933b68beba5f0; domain=.recurly.com; path=/; Secure; HttpOnly
128
+ - _recurly_session=58b046025c01b4117e3baff65eddee3c; domain=.recurly.com; path=/; Secure; HttpOnly
129
129
  cache-control:
130
130
  - no-cache
131
131
  body: " "
@@ -156,15 +156,15 @@
156
156
  content-type:
157
157
  - application/xml; charset=utf-8
158
158
  x-runtime:
159
- - "49"
159
+ - "13"
160
160
  date:
161
- - Mon, 18 Oct 2010 22:06:13 GMT
161
+ - Tue, 19 Oct 2010 03:20:08 GMT
162
162
  server:
163
163
  - nginx/0.7.65
164
164
  content-length:
165
165
  - "1153"
166
166
  set-cookie:
167
- - _recurly_session=abc7a0867d2cb59382c4910c7666502e; domain=.recurly.com; path=/; Secure; HttpOnly
167
+ - _recurly_session=075702c1f5a9e737445a4364697ad3e3; domain=.recurly.com; path=/; Secure; HttpOnly
168
168
  cache-control:
169
169
  - private, max-age=0, must-revalidate
170
170
  body: |
@@ -7,7 +7,7 @@
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>subscription-cancel-1287442108</account-code>
10
+ <account-code>subscription-cancel-with-code-1287455769</account-code>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <first-name>Verena</first-name>
@@ -28,30 +28,30 @@
28
28
  message: Created
29
29
  headers:
30
30
  location:
31
- - https://recurlytest3-test.recurly.com/accounts/subscription-cancel-1287442108
31
+ - https://recurlytest3-test.recurly.com/accounts/subscription-cancel-with-code-1287455769
32
32
  connection:
33
33
  - close
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "611"
37
+ - "598"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:48:57 GMT
39
+ - Tue, 19 Oct 2010 03:20:40 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
- - "593"
43
+ - "613"
44
44
  set-cookie:
45
- - account_credentials=81d1da5f0245937140b5cae008d3266c41c1308d7e62888a723ad2dc6e5c47608ae67bf10fe056f1d9ad56f68b505a27c8d2e9ef9650018180783233565472d1%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=7f27488e17136ec6d05cd2d629f0c4c401ffb6aad270f77d31aa4213cb35e8da63ef5b94f81095e094586abf0df56aaeb4b0880f16798ca278baefe970f1f8d2%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=06bd2bdcdf133a053043395b4299e099; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=06b57e30545fce0f514dfcdb52d36c65; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
51
51
  <?xml version="1.0" encoding="UTF-8"?>
52
52
  <account>
53
- <id>subscription-cancel-1287442108</id>
54
- <account_code>subscription-cancel-1287442108</account_code>
53
+ <id>subscription-cancel-with-code-1287455769</id>
54
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
55
55
  <username></username>
56
56
  <email>verena@test.com</email>
57
57
  <first_name>Verena</first_name>
@@ -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>f24ae572616c4682b66f99655afbffa6</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:48:57Z</created_at>
62
+ <hosted_login_token>cff4f0d16ac949318c00cde7bdd1cc9b</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:20:40Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -91,15 +91,15 @@
91
91
  content-type:
92
92
  - application/xml; charset=utf-8
93
93
  x-runtime:
94
- - "14"
94
+ - "20"
95
95
  date:
96
- - Mon, 18 Oct 2010 22:48:58 GMT
96
+ - Tue, 19 Oct 2010 03:20:40 GMT
97
97
  server:
98
98
  - nginx/0.7.65
99
99
  content-length:
100
100
  - "1150"
101
101
  set-cookie:
102
- - _recurly_session=d26756adfa244bf3c1781cf5b32bd8b2; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ - _recurly_session=fd7d0c2b7cd2d3d701c7a68c7eb803f7; domain=.recurly.com; path=/; Secure; HttpOnly
103
103
  cache-control:
104
104
  - private, max-age=0, must-revalidate
105
105
  body: |
@@ -133,20 +133,20 @@
133
133
  - !ruby/struct:VCR::HTTPInteraction
134
134
  request: !ruby/struct:VCR::Request
135
135
  method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442108/subscription.xml
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-with-code-1287455769/subscription.xml
137
137
  body: |
138
138
  <?xml version="1.0" encoding="UTF-8"?>
139
139
  <subscription>
140
140
  <quantity type="integer">1</quantity>
141
141
  <plan-code>paid</plan-code>
142
142
  <account>
143
- <created-at type="datetime">2010-10-18T22:48:57Z</created-at>
144
- <hosted-login-token>f24ae572616c4682b66f99655afbffa6</hosted-login-token>
143
+ <created-at type="datetime">2010-10-19T03:20:40Z</created-at>
144
+ <hosted-login-token>cff4f0d16ac949318c00cde7bdd1cc9b</hosted-login-token>
145
145
  <company-name>Recurly Ruby Gem</company-name>
146
- <account-code>subscription-cancel-1287442108</account-code>
146
+ <account-code>subscription-cancel-with-code-1287455769</account-code>
147
147
  <closed type="boolean">false</closed>
148
148
  <username type="yaml" nil="true"></username>
149
- <id>subscription-cancel-1287442108</id>
149
+ <id>subscription-cancel-with-code-1287455769</id>
150
150
  <last-name>Test</last-name>
151
151
  <billing-info>
152
152
  <city>San Francisco</city>
@@ -189,22 +189,22 @@
189
189
  content-type:
190
190
  - application/xml; charset=utf-8
191
191
  x-runtime:
192
- - "535"
192
+ - "533"
193
193
  date:
194
- - Mon, 18 Oct 2010 22:48:59 GMT
194
+ - Tue, 19 Oct 2010 03:20:41 GMT
195
195
  server:
196
196
  - nginx/0.7.65
197
197
  content-length:
198
- - "870"
198
+ - "890"
199
199
  set-cookie:
200
- - _recurly_session=a7589a8b33771a1b3de6a35e51d52a8f; domain=.recurly.com; path=/; Secure; HttpOnly
200
+ - _recurly_session=0f951b4cf4323fca2b30e40ba372d109; domain=.recurly.com; path=/; Secure; HttpOnly
201
201
  cache-control:
202
202
  - no-cache
203
203
  body: |
204
204
  <?xml version="1.0" encoding="UTF-8"?>
205
205
  <subscription>
206
- <id>subscription-cancel-1287442108</id>
207
- <account_code>subscription-cancel-1287442108</account_code>
206
+ <id>subscription-cancel-with-code-1287455769</id>
207
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
208
208
  <plan>
209
209
  <plan_code>paid</plan_code>
210
210
  <name>Paid</name>
@@ -212,11 +212,11 @@
212
212
  <state>active</state>
213
213
  <quantity type="integer">1</quantity>
214
214
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-18T22:48:59Z</activated_at>
215
+ <activated_at type="datetime">2010-10-19T03:20:41Z</activated_at>
216
216
  <canceled_at nil="true" type="datetime"></canceled_at>
217
217
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-18T22:48:59Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-18T22:48:59Z</current_period_ends_at>
218
+ <current_period_started_at type="datetime">2010-10-19T03:20:41Z</current_period_started_at>
219
+ <current_period_ends_at type="datetime">2010-11-19T03:20:41Z</current_period_ends_at>
220
220
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
221
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
222
  </subscription>
@@ -225,7 +225,7 @@
225
225
  - !ruby/struct:VCR::HTTPInteraction
226
226
  request: !ruby/struct:VCR::Request
227
227
  method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442108/subscription.xml
228
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-with-code-1287455769/subscription.xml
229
229
  body:
230
230
  headers:
231
231
  accept:
@@ -242,28 +242,28 @@
242
242
  x-ua-compatible:
243
243
  - IE=Edge
244
244
  etag:
245
- - "\"dc9fb9eabaaed2986423c96441b49d1b\""
245
+ - "\"05e4cb22b67b046eda597895735f2a7d\""
246
246
  connection:
247
247
  - close
248
248
  content-type:
249
249
  - application/xml; charset=utf-8
250
250
  x-runtime:
251
- - "29"
251
+ - "184"
252
252
  date:
253
- - Mon, 18 Oct 2010 22:49:00 GMT
253
+ - Tue, 19 Oct 2010 03:20:42 GMT
254
254
  server:
255
255
  - nginx/0.7.65
256
256
  content-length:
257
- - "870"
257
+ - "890"
258
258
  set-cookie:
259
- - _recurly_session=54184940c45e01416e619783b3afafdb; domain=.recurly.com; path=/; Secure; HttpOnly
259
+ - _recurly_session=4ecf7e119319f757733cb3d6c6e58111; domain=.recurly.com; path=/; Secure; HttpOnly
260
260
  cache-control:
261
261
  - private, max-age=0, must-revalidate
262
262
  body: |
263
263
  <?xml version="1.0" encoding="UTF-8"?>
264
264
  <subscription>
265
- <id>subscription-cancel-1287442108</id>
266
- <account_code>subscription-cancel-1287442108</account_code>
265
+ <id>subscription-cancel-with-code-1287455769</id>
266
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
267
267
  <plan>
268
268
  <plan_code>paid</plan_code>
269
269
  <name>Paid</name>
@@ -271,11 +271,11 @@
271
271
  <state>active</state>
272
272
  <quantity type="integer">1</quantity>
273
273
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-18T22:48:59Z</activated_at>
274
+ <activated_at type="datetime">2010-10-19T03:20:41Z</activated_at>
275
275
  <canceled_at nil="true" type="datetime"></canceled_at>
276
276
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-18T22:48:59Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-18T22:48:59Z</current_period_ends_at>
277
+ <current_period_started_at type="datetime">2010-10-19T03:20:41Z</current_period_started_at>
278
+ <current_period_ends_at type="datetime">2010-11-19T03:20:41Z</current_period_ends_at>
279
279
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
280
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
281
  </subscription>
@@ -284,7 +284,7 @@
284
284
  - !ruby/struct:VCR::HTTPInteraction
285
285
  request: !ruby/struct:VCR::Request
286
286
  method: :delete
287
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442108/subscription.xml
287
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-with-code-1287455769/subscription.xml
288
288
  body:
289
289
  headers:
290
290
  accept:
@@ -301,28 +301,28 @@
301
301
  x-ua-compatible:
302
302
  - IE=Edge
303
303
  etag:
304
- - "\"b593c6d151eb9b27b1cbc55d289b3db8\""
304
+ - "\"971e24b3ba865a5a5fe2ebc0ab70d81c\""
305
305
  connection:
306
306
  - close
307
307
  content-type:
308
308
  - application/xml; charset=utf-8
309
309
  x-runtime:
310
- - "137"
310
+ - "372"
311
311
  date:
312
- - Mon, 18 Oct 2010 22:49:01 GMT
312
+ - Tue, 19 Oct 2010 03:20:43 GMT
313
313
  server:
314
314
  - nginx/0.7.65
315
315
  content-length:
316
- - "890"
316
+ - "910"
317
317
  set-cookie:
318
- - _recurly_session=ab72e5c399a25bb11c52777984496c84; domain=.recurly.com; path=/; Secure; HttpOnly
318
+ - _recurly_session=35df6750057b11eddbcdcc77d0d1fbf0; domain=.recurly.com; path=/; Secure; HttpOnly
319
319
  cache-control:
320
320
  - private, max-age=0, must-revalidate
321
321
  body: |
322
322
  <?xml version="1.0" encoding="UTF-8"?>
323
323
  <subscription>
324
- <id>subscription-cancel-1287442108</id>
325
- <account_code>subscription-cancel-1287442108</account_code>
324
+ <id>subscription-cancel-with-code-1287455769</id>
325
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
326
326
  <plan>
327
327
  <plan_code>paid</plan_code>
328
328
  <name>Paid</name>
@@ -330,11 +330,11 @@
330
330
  <state>canceled</state>
331
331
  <quantity type="integer">1</quantity>
332
332
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-10-18T22:48:59Z</activated_at>
334
- <canceled_at type="datetime">2010-10-18T22:49:01Z</canceled_at>
335
- <expires_at type="datetime">2010-11-18T22:48:59Z</expires_at>
336
- <current_period_started_at type="datetime">2010-10-18T22:48:59Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-11-18T22:48:59Z</current_period_ends_at>
333
+ <activated_at type="datetime">2010-10-19T03:20:41Z</activated_at>
334
+ <canceled_at type="datetime">2010-10-19T03:20:43Z</canceled_at>
335
+ <expires_at type="datetime">2010-11-19T03:20:41Z</expires_at>
336
+ <current_period_started_at type="datetime">2010-10-19T03:20:41Z</current_period_started_at>
337
+ <current_period_ends_at type="datetime">2010-11-19T03:20:41Z</current_period_ends_at>
338
338
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
339
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
340
340
  </subscription>
@@ -343,7 +343,7 @@
343
343
  - !ruby/struct:VCR::HTTPInteraction
344
344
  request: !ruby/struct:VCR::Request
345
345
  method: :get
346
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-1287442108/subscription.xml
346
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-with-code-1287455769/subscription.xml
347
347
  body:
348
348
  headers:
349
349
  accept:
@@ -360,28 +360,87 @@
360
360
  x-ua-compatible:
361
361
  - IE=Edge
362
362
  etag:
363
- - "\"b593c6d151eb9b27b1cbc55d289b3db8\""
363
+ - "\"971e24b3ba865a5a5fe2ebc0ab70d81c\""
364
364
  connection:
365
365
  - close
366
366
  content-type:
367
367
  - application/xml; charset=utf-8
368
368
  x-runtime:
369
- - "18"
369
+ - "16"
370
370
  date:
371
- - Mon, 18 Oct 2010 22:49:01 GMT
371
+ - Tue, 19 Oct 2010 03:20:44 GMT
372
372
  server:
373
373
  - nginx/0.7.65
374
374
  content-length:
375
- - "890"
375
+ - "910"
376
+ set-cookie:
377
+ - _recurly_session=769ea6acd971d54b203cf8a8ea877703; domain=.recurly.com; path=/; Secure; HttpOnly
378
+ cache-control:
379
+ - private, max-age=0, must-revalidate
380
+ body: |
381
+ <?xml version="1.0" encoding="UTF-8"?>
382
+ <subscription>
383
+ <id>subscription-cancel-with-code-1287455769</id>
384
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
385
+ <plan>
386
+ <plan_code>paid</plan_code>
387
+ <name>Paid</name>
388
+ </plan>
389
+ <state>canceled</state>
390
+ <quantity type="integer">1</quantity>
391
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
392
+ <activated_at type="datetime">2010-10-19T03:20:41Z</activated_at>
393
+ <canceled_at type="datetime">2010-10-19T03:20:43Z</canceled_at>
394
+ <expires_at type="datetime">2010-11-19T03:20:41Z</expires_at>
395
+ <current_period_started_at type="datetime">2010-10-19T03:20:41Z</current_period_started_at>
396
+ <current_period_ends_at type="datetime">2010-11-19T03:20:41Z</current_period_ends_at>
397
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
398
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
399
+ </subscription>
400
+
401
+ http_version: "1.1"
402
+ - !ruby/struct:VCR::HTTPInteraction
403
+ request: !ruby/struct:VCR::Request
404
+ method: :get
405
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-cancel-with-code-1287455769/subscription.xml
406
+ body:
407
+ headers:
408
+ accept:
409
+ - application/xml
410
+ connection:
411
+ - close
412
+ authorization:
413
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
414
+ response: !ruby/struct:VCR::Response
415
+ status: !ruby/struct:VCR::ResponseStatus
416
+ code: 200
417
+ message: OK
418
+ headers:
419
+ x-ua-compatible:
420
+ - IE=Edge
421
+ etag:
422
+ - "\"971e24b3ba865a5a5fe2ebc0ab70d81c\""
423
+ connection:
424
+ - close
425
+ content-type:
426
+ - application/xml; charset=utf-8
427
+ x-runtime:
428
+ - "16"
429
+ date:
430
+ - Tue, 19 Oct 2010 03:20:44 GMT
431
+ server:
432
+ - nginx/0.7.65
433
+ content-length:
434
+ - "910"
376
435
  set-cookie:
377
- - _recurly_session=b43673947102421620fee2ff2d9dfe48; domain=.recurly.com; path=/; Secure; HttpOnly
436
+ - _recurly_session=187b5611af82d5544464dc1e492b441d; domain=.recurly.com; path=/; Secure; HttpOnly
378
437
  cache-control:
379
438
  - private, max-age=0, must-revalidate
380
439
  body: |
381
440
  <?xml version="1.0" encoding="UTF-8"?>
382
441
  <subscription>
383
- <id>subscription-cancel-1287442108</id>
384
- <account_code>subscription-cancel-1287442108</account_code>
442
+ <id>subscription-cancel-with-code-1287455769</id>
443
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
385
444
  <plan>
386
445
  <plan_code>paid</plan_code>
387
446
  <name>Paid</name>
@@ -389,11 +448,11 @@
389
448
  <state>canceled</state>
390
449
  <quantity type="integer">1</quantity>
391
450
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
392
- <activated_at type="datetime">2010-10-18T22:48:59Z</activated_at>
393
- <canceled_at type="datetime">2010-10-18T22:49:01Z</canceled_at>
394
- <expires_at type="datetime">2010-11-18T22:48:59Z</expires_at>
395
- <current_period_started_at type="datetime">2010-10-18T22:48:59Z</current_period_started_at>
396
- <current_period_ends_at type="datetime">2010-11-18T22:48:59Z</current_period_ends_at>
451
+ <activated_at type="datetime">2010-10-19T03:20:41Z</activated_at>
452
+ <canceled_at type="datetime">2010-10-19T03:20:43Z</canceled_at>
453
+ <expires_at type="datetime">2010-11-19T03:20:41Z</expires_at>
454
+ <current_period_started_at type="datetime">2010-10-19T03:20:41Z</current_period_started_at>
455
+ <current_period_ends_at type="datetime">2010-11-19T03:20:41Z</current_period_ends_at>
397
456
  <trial_started_at nil="true" type="datetime"></trial_started_at>
398
457
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
399
458
  </subscription>