recurly 0.3.1 → 0.3.2
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.
- data/lib/recurly.rb +8 -0
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/rails3/railtie.rb +9 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +29 -1
- data/spec/integration/add_on_spec.rb +84 -0
- data/spec/vcr/account/accept-language-account/1294473653.yml +68 -0
- data/spec/vcr/account/accept-language-account/1294473761.yml +68 -0
- data/spec/vcr/account/accept-language/1294473117.yml +167 -0
- data/spec/vcr/account/close/{1288381765.yml → 1294473761.yml} +26 -25
- data/spec/vcr/account/create-blank/{1288381765.yml → 1294473761.yml} +5 -4
- data/spec/vcr/account/create-duplicate/{1288381765.yml → 1294473761.yml} +13 -11
- data/spec/vcr/account/create-min/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/create/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/find/{1288381765.yml → 1294473761.yml} +25 -24
- data/spec/vcr/account/list/{1288381765.yml → 1294473761.yml} +328 -287
- data/spec/vcr/account/update/{1288381765.yml → 1294473761.yml} +47 -45
- data/spec/vcr/billing/create/1286682213.yml +28 -27
- data/spec/vcr/billing/destroy/1286682213.yml +42 -41
- data/spec/vcr/billing/find/1286682213.yml +38 -37
- data/spec/vcr/billing/update/1286682213.yml +40 -39
- data/spec/vcr/charge/create/1287465632.yml +36 -35
- data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +36 -35
- data/spec/vcr/charge/list-all/1287465632.yml +43 -42
- data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -69
- data/spec/vcr/charge/list-pending/1287465632.yml +43 -42
- data/spec/vcr/charge/lookup/1287465632.yml +22 -21
- data/spec/vcr/credit/create/1287461400.yml +23 -22
- data/spec/vcr/credit/delete/1287461400.yml +33 -32
- data/spec/vcr/credit/list/1287461400.yml +43 -42
- data/spec/vcr/credit/lookup/1287461400.yml +24 -23
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +23 -22
- data/spec/vcr/invoice/create/1287167121.yml +48 -47
- data/spec/vcr/invoice/list/1287167121.yml +67 -66
- data/spec/vcr/invoice/lookup/1287167121.yml +50 -49
- data/spec/vcr/plan/all.yml +29 -17
- data/spec/vcr/plan/delete/1286677585.yml +21 -21
- data/spec/vcr/plan/find.yml +42 -18
- data/spec/vcr/plan/update.yml +17 -17
- data/spec/vcr/subscription/addons/add/1292420980.yml +479 -0
- data/spec/vcr/subscription/addons/create/1292420980.yml +318 -0
- data/spec/vcr/subscription/addons/remove/1292420980.yml +448 -0
- data/spec/vcr/subscription/cancel-with-code/1287455769.yml +93 -69
- data/spec/vcr/subscription/cancel/1287455769.yml +80 -58
- data/spec/vcr/subscription/change1/1287455769.yml +77 -55
- data/spec/vcr/subscription/change2/1287455769.yml +77 -55
- data/spec/vcr/subscription/create/1287455769.yml +43 -27
- data/spec/vcr/subscription/find/1287455769.yml +54 -36
- data/spec/vcr/subscription/reactivate/1287455769.yml +83 -61
- data/spec/vcr/subscription/refund-full/1287455769.yml +69 -51
- data/spec/vcr/subscription/refund-none/1287455769.yml +70 -52
- data/spec/vcr/subscription/refund-partial/1287455769.yml +70 -52
- data/spec/vcr/transaction/all/1289558212.yml +46 -46
- data/spec/vcr/transaction/create-no-account/1289558212.yml +11 -11
- data/spec/vcr/transaction/create-with-account/1289558212.yml +27 -26
- data/spec/vcr/transaction/list-filled/1289558212.yml +54 -53
- data/spec/vcr/transaction/list-initial/1289558212.yml +27 -26
- data/spec/vcr/transaction/lookup/1289558212.yml +64 -63
- data/spec/vcr/transaction/refund/1289558212.yml +35 -34
- data/spec/vcr/transaction/void/1289558212.yml +71 -70
- metadata +34 -20
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>subscription-create-1287455769</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "348"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:05:27 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "593"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=3f35c8ca460e219e684cc335e7bfec795e021dbcd5f0b20662679d279f7d593623eb838a987696120a5defdde3fdd95c61d020ccd34f31e2f4c12d229265ea12%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=f672630f1bbc4122279c4df628093341; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>49e3fc5527ba42d585a06410e7f2bb35</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:05:27Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,21 +86,21 @@
|
|
85
86
|
x-ua-compatible:
|
86
87
|
- IE=Edge
|
87
88
|
etag:
|
88
|
-
- "\"
|
89
|
+
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
content-type:
|
92
93
|
- application/xml; charset=utf-8
|
93
94
|
x-runtime:
|
94
|
-
- "
|
95
|
+
- "14"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:05:28 GMT
|
97
98
|
server:
|
98
|
-
- nginx/0.
|
99
|
+
- nginx/0.8.53
|
99
100
|
content-length:
|
100
|
-
- "
|
101
|
+
- "1564"
|
101
102
|
set-cookie:
|
102
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=b19a7b6ddfdefde20c685afce0c8d1f8; domain=.recurly.com; path=/; secure; HttpOnly
|
103
104
|
cache-control:
|
104
105
|
- private, max-age=0, must-revalidate
|
105
106
|
body: |
|
@@ -125,8 +126,20 @@
|
|
125
126
|
<plan_interval_unit>months</plan_interval_unit>
|
126
127
|
<trial_interval_length type="integer">0</trial_interval_length>
|
127
128
|
<trial_interval_unit>months</trial_interval_unit>
|
128
|
-
<created_at type="datetime">2010-
|
129
|
+
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
129
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>
|
130
143
|
</plan>
|
131
144
|
|
132
145
|
http_version: "1.1"
|
@@ -140,23 +153,24 @@
|
|
140
153
|
<quantity type="integer">1</quantity>
|
141
154
|
<plan-code>paid</plan-code>
|
142
155
|
<account>
|
143
|
-
<created-at type="datetime">
|
144
|
-
<hosted-login-token>
|
156
|
+
<created-at type="datetime">2011-01-08T08:05:27Z</created-at>
|
157
|
+
<hosted-login-token>49e3fc5527ba42d585a06410e7f2bb35</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-create-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-create-1287455769</id>
|
150
163
|
<last-name>Test</last-name>
|
164
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
151
165
|
<billing-info>
|
152
|
-
<city>San Francisco</city>
|
153
166
|
<address1>123 Test St</address1>
|
167
|
+
<city>San Francisco</city>
|
154
168
|
<zip>94115</zip>
|
155
169
|
<country>US</country>
|
156
170
|
<credit-card>
|
157
171
|
<number>1</number>
|
158
|
-
<month type="integer">
|
159
|
-
<year type="integer">
|
172
|
+
<month type="integer">1</month>
|
173
|
+
<year type="integer">2012</year>
|
160
174
|
<verification-value>123</verification-value>
|
161
175
|
</credit-card>
|
162
176
|
<last-name>Test</last-name>
|
@@ -189,15 +203,15 @@
|
|
189
203
|
content-type:
|
190
204
|
- application/xml; charset=utf-8
|
191
205
|
x-runtime:
|
192
|
-
- "
|
206
|
+
- "472"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:05:29 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "908"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=fb9522ba3f0e8dcbeba70d40fe695f5f; domain=.recurly.com; path=/; secure; HttpOnly
|
201
215
|
cache-control:
|
202
216
|
- no-cache
|
203
217
|
body: |
|
@@ -212,13 +226,15 @@
|
|
212
226
|
<state>active</state>
|
213
227
|
<quantity type="integer">1</quantity>
|
214
228
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">
|
229
|
+
<activated_at type="datetime">2011-01-08T08:05:29Z</activated_at>
|
216
230
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
231
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">
|
219
|
-
<current_period_ends_at type="datetime">
|
232
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:29Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:29Z</current_period_ends_at>
|
220
234
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
235
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
|
+
<add_ons type="array">
|
237
|
+
</add_ons>
|
222
238
|
</subscription>
|
223
239
|
|
224
240
|
http_version: "1.1"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>subscription-find-1287455769</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "343"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:05:22 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "589"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=a84aa37050a4669a3b0895f7fec667e4a33a1f3923292d20dad0b4ab04e639ff0ec4aeefc36f69fa597f4119985052096033432c2f1a820cc1c5906f0013f708%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=5d6e65cbd09a3ca6a867ef105b15a32e; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>1a5e33427f824b04af8b2a4fc78dd2fe</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:05:22Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,21 +86,21 @@
|
|
85
86
|
x-ua-compatible:
|
86
87
|
- IE=Edge
|
87
88
|
etag:
|
88
|
-
- "\"
|
89
|
+
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
content-type:
|
92
93
|
- application/xml; charset=utf-8
|
93
94
|
x-runtime:
|
94
|
-
- "
|
95
|
+
- "15"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:05:23 GMT
|
97
98
|
server:
|
98
|
-
- nginx/0.
|
99
|
+
- nginx/0.8.53
|
99
100
|
content-length:
|
100
|
-
- "
|
101
|
+
- "1564"
|
101
102
|
set-cookie:
|
102
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=6dadd385fdcc5d2ab75a97e1405108f9; domain=.recurly.com; path=/; secure; HttpOnly
|
103
104
|
cache-control:
|
104
105
|
- private, max-age=0, must-revalidate
|
105
106
|
body: |
|
@@ -125,8 +126,20 @@
|
|
125
126
|
<plan_interval_unit>months</plan_interval_unit>
|
126
127
|
<trial_interval_length type="integer">0</trial_interval_length>
|
127
128
|
<trial_interval_unit>months</trial_interval_unit>
|
128
|
-
<created_at type="datetime">2010-
|
129
|
+
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
129
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>
|
130
143
|
</plan>
|
131
144
|
|
132
145
|
http_version: "1.1"
|
@@ -140,23 +153,24 @@
|
|
140
153
|
<quantity type="integer">1</quantity>
|
141
154
|
<plan-code>paid</plan-code>
|
142
155
|
<account>
|
143
|
-
<created-at type="datetime">
|
144
|
-
<hosted-login-token>
|
156
|
+
<created-at type="datetime">2011-01-08T08:05:22Z</created-at>
|
157
|
+
<hosted-login-token>1a5e33427f824b04af8b2a4fc78dd2fe</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-find-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-find-1287455769</id>
|
150
163
|
<last-name>Test</last-name>
|
164
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
151
165
|
<billing-info>
|
152
|
-
<city>San Francisco</city>
|
153
166
|
<address1>123 Test St</address1>
|
167
|
+
<city>San Francisco</city>
|
154
168
|
<zip>94115</zip>
|
155
169
|
<country>US</country>
|
156
170
|
<credit-card>
|
157
171
|
<number>1</number>
|
158
|
-
<month type="integer">
|
159
|
-
<year type="integer">
|
172
|
+
<month type="integer">1</month>
|
173
|
+
<year type="integer">2012</year>
|
160
174
|
<verification-value>123</verification-value>
|
161
175
|
</credit-card>
|
162
176
|
<last-name>Test</last-name>
|
@@ -189,15 +203,15 @@
|
|
189
203
|
content-type:
|
190
204
|
- application/xml; charset=utf-8
|
191
205
|
x-runtime:
|
192
|
-
- "
|
206
|
+
- "465"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:05:25 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "904"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=3c6c70da67970263c03351cc96479624; domain=.recurly.com; path=/; secure; HttpOnly
|
201
215
|
cache-control:
|
202
216
|
- no-cache
|
203
217
|
body: |
|
@@ -212,13 +226,15 @@
|
|
212
226
|
<state>active</state>
|
213
227
|
<quantity type="integer">1</quantity>
|
214
228
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">
|
229
|
+
<activated_at type="datetime">2011-01-08T08:05:25Z</activated_at>
|
216
230
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
231
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">
|
219
|
-
<current_period_ends_at type="datetime">
|
232
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:25Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:25Z</current_period_ends_at>
|
220
234
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
235
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
|
+
<add_ons type="array">
|
237
|
+
</add_ons>
|
222
238
|
</subscription>
|
223
239
|
|
224
240
|
http_version: "1.1"
|
@@ -242,21 +258,21 @@
|
|
242
258
|
x-ua-compatible:
|
243
259
|
- IE=Edge
|
244
260
|
etag:
|
245
|
-
- "\"
|
261
|
+
- "\"583cc969dc60b92c716228e0daf01293\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "116"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:05:26 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "904"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=39955324f66045832aba176aedf52016; domain=.recurly.com; path=/; secure; HttpOnly
|
260
276
|
cache-control:
|
261
277
|
- private, max-age=0, must-revalidate
|
262
278
|
body: |
|
@@ -271,13 +287,15 @@
|
|
271
287
|
<state>active</state>
|
272
288
|
<quantity type="integer">1</quantity>
|
273
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">
|
290
|
+
<activated_at type="datetime">2011-01-08T08:05:25Z</activated_at>
|
275
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">
|
278
|
-
<current_period_ends_at type="datetime">
|
293
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:25Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:25Z</current_period_ends_at>
|
279
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
|
+
<add_ons type="array">
|
298
|
+
</add_ons>
|
281
299
|
</subscription>
|
282
300
|
|
283
301
|
http_version: "1.1"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>subscription-reactivate-1287455769</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "354"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:05:43 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "601"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=6812b6b054ccb399cbc6e04afec5813447b8337ee1eff417df1a7030b3f4ba73a3a4a5564a484fb74d15eaa5fa1c48230b021fb81de5f85fe72bf8e0a7dce076%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=dfe89121860efbdf239c0a833a19f653; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>1f9acd0ceb4c4f8a984b3ffb78503812</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:05:43Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,21 +86,21 @@
|
|
85
86
|
x-ua-compatible:
|
86
87
|
- IE=Edge
|
87
88
|
etag:
|
88
|
-
- "\"
|
89
|
+
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
content-type:
|
92
93
|
- application/xml; charset=utf-8
|
93
94
|
x-runtime:
|
94
|
-
- "
|
95
|
+
- "15"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:05:44 GMT
|
97
98
|
server:
|
98
|
-
- nginx/0.
|
99
|
+
- nginx/0.8.53
|
99
100
|
content-length:
|
100
|
-
- "
|
101
|
+
- "1564"
|
101
102
|
set-cookie:
|
102
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=71efada207f1dd5e317824423f522bd2; domain=.recurly.com; path=/; secure; HttpOnly
|
103
104
|
cache-control:
|
104
105
|
- private, max-age=0, must-revalidate
|
105
106
|
body: |
|
@@ -125,8 +126,20 @@
|
|
125
126
|
<plan_interval_unit>months</plan_interval_unit>
|
126
127
|
<trial_interval_length type="integer">0</trial_interval_length>
|
127
128
|
<trial_interval_unit>months</trial_interval_unit>
|
128
|
-
<created_at type="datetime">2010-
|
129
|
+
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
129
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>
|
130
143
|
</plan>
|
131
144
|
|
132
145
|
http_version: "1.1"
|
@@ -140,23 +153,24 @@
|
|
140
153
|
<quantity type="integer">1</quantity>
|
141
154
|
<plan-code>paid</plan-code>
|
142
155
|
<account>
|
143
|
-
<created-at type="datetime">
|
144
|
-
<hosted-login-token>
|
156
|
+
<created-at type="datetime">2011-01-08T08:05:43Z</created-at>
|
157
|
+
<hosted-login-token>1f9acd0ceb4c4f8a984b3ffb78503812</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-reactivate-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-reactivate-1287455769</id>
|
150
163
|
<last-name>Test</last-name>
|
164
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
151
165
|
<billing-info>
|
152
|
-
<city>San Francisco</city>
|
153
166
|
<address1>123 Test St</address1>
|
167
|
+
<city>San Francisco</city>
|
154
168
|
<zip>94115</zip>
|
155
169
|
<country>US</country>
|
156
170
|
<credit-card>
|
157
171
|
<number>1</number>
|
158
|
-
<month type="integer">
|
159
|
-
<year type="integer">
|
172
|
+
<month type="integer">1</month>
|
173
|
+
<year type="integer">2012</year>
|
160
174
|
<verification-value>123</verification-value>
|
161
175
|
</credit-card>
|
162
176
|
<last-name>Test</last-name>
|
@@ -189,15 +203,15 @@
|
|
189
203
|
content-type:
|
190
204
|
- application/xml; charset=utf-8
|
191
205
|
x-runtime:
|
192
|
-
- "
|
206
|
+
- "473"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:05:45 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "916"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=1aa1b728f9365e3e0fbdcd7caf1091c5; domain=.recurly.com; path=/; secure; HttpOnly
|
201
215
|
cache-control:
|
202
216
|
- no-cache
|
203
217
|
body: |
|
@@ -212,13 +226,15 @@
|
|
212
226
|
<state>active</state>
|
213
227
|
<quantity type="integer">1</quantity>
|
214
228
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">
|
229
|
+
<activated_at type="datetime">2011-01-08T08:05:45Z</activated_at>
|
216
230
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
231
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">
|
219
|
-
<current_period_ends_at type="datetime">
|
232
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:45Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:45Z</current_period_ends_at>
|
220
234
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
235
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
|
+
<add_ons type="array">
|
237
|
+
</add_ons>
|
222
238
|
</subscription>
|
223
239
|
|
224
240
|
http_version: "1.1"
|
@@ -242,21 +258,21 @@
|
|
242
258
|
x-ua-compatible:
|
243
259
|
- IE=Edge
|
244
260
|
etag:
|
245
|
-
- "\"
|
261
|
+
- "\"99aeb1785b61dce44bc39de76494b7d9\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "23"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:05:46 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "916"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=70eedf34fe9bbc66f5591c84b094d64d; domain=.recurly.com; path=/; secure; HttpOnly
|
260
276
|
cache-control:
|
261
277
|
- private, max-age=0, must-revalidate
|
262
278
|
body: |
|
@@ -271,13 +287,15 @@
|
|
271
287
|
<state>active</state>
|
272
288
|
<quantity type="integer">1</quantity>
|
273
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">
|
290
|
+
<activated_at type="datetime">2011-01-08T08:05:45Z</activated_at>
|
275
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">
|
278
|
-
<current_period_ends_at type="datetime">
|
293
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:45Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:45Z</current_period_ends_at>
|
279
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
|
+
<add_ons type="array">
|
298
|
+
</add_ons>
|
281
299
|
</subscription>
|
282
300
|
|
283
301
|
http_version: "1.1"
|
@@ -301,21 +319,21 @@
|
|
301
319
|
x-ua-compatible:
|
302
320
|
- IE=Edge
|
303
321
|
etag:
|
304
|
-
- "\"
|
322
|
+
- "\"d9dcdb016a8297f35f5b4ae77756f7f7\""
|
305
323
|
connection:
|
306
324
|
- close
|
307
325
|
content-type:
|
308
326
|
- application/xml; charset=utf-8
|
309
327
|
x-runtime:
|
310
|
-
- "
|
328
|
+
- "186"
|
311
329
|
date:
|
312
|
-
-
|
330
|
+
- Sat, 08 Jan 2011 08:05:47 GMT
|
313
331
|
server:
|
314
|
-
- nginx/0.
|
332
|
+
- nginx/0.8.53
|
315
333
|
content-length:
|
316
|
-
- "
|
334
|
+
- "936"
|
317
335
|
set-cookie:
|
318
|
-
- _recurly_session=
|
336
|
+
- _recurly_session=83d06775cd3f9b907448b776869ea4f8; domain=.recurly.com; path=/; secure; HttpOnly
|
319
337
|
cache-control:
|
320
338
|
- private, max-age=0, must-revalidate
|
321
339
|
body: |
|
@@ -330,13 +348,15 @@
|
|
330
348
|
<state>canceled</state>
|
331
349
|
<quantity type="integer">1</quantity>
|
332
350
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
333
|
-
<activated_at type="datetime">
|
334
|
-
<canceled_at type="datetime">
|
335
|
-
<expires_at type="datetime">
|
336
|
-
<current_period_started_at type="datetime">
|
337
|
-
<current_period_ends_at type="datetime">
|
351
|
+
<activated_at type="datetime">2011-01-08T08:05:45Z</activated_at>
|
352
|
+
<canceled_at type="datetime">2011-01-08T08:05:46Z</canceled_at>
|
353
|
+
<expires_at type="datetime">2011-02-08T08:05:45Z</expires_at>
|
354
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:45Z</current_period_started_at>
|
355
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:45Z</current_period_ends_at>
|
338
356
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
339
357
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
|
+
<add_ons type="array">
|
359
|
+
</add_ons>
|
340
360
|
</subscription>
|
341
361
|
|
342
362
|
http_version: "1.1"
|
@@ -368,15 +388,15 @@
|
|
368
388
|
content-type:
|
369
389
|
- text/html; charset=utf-8
|
370
390
|
x-runtime:
|
371
|
-
- "
|
391
|
+
- "133"
|
372
392
|
date:
|
373
|
-
-
|
393
|
+
- Sat, 08 Jan 2011 08:05:47 GMT
|
374
394
|
server:
|
375
|
-
- nginx/0.
|
395
|
+
- nginx/0.8.53
|
376
396
|
content-length:
|
377
397
|
- "147"
|
378
398
|
set-cookie:
|
379
|
-
- _recurly_session=
|
399
|
+
- _recurly_session=435a312a65469619a1ec9eb0eaedc9f3; domain=.recurly.com; path=/; secure; HttpOnly
|
380
400
|
cache-control:
|
381
401
|
- no-cache
|
382
402
|
body: <html><body>You are being <a href="https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769">redirected</a>.</body></html>
|
@@ -401,21 +421,21 @@
|
|
401
421
|
x-ua-compatible:
|
402
422
|
- IE=Edge
|
403
423
|
etag:
|
404
|
-
- "\"
|
424
|
+
- "\"491857620733f7b5f2ddbb12da6a6831\""
|
405
425
|
connection:
|
406
426
|
- close
|
407
427
|
content-type:
|
408
428
|
- application/xml; charset=utf-8
|
409
429
|
x-runtime:
|
410
|
-
- "
|
430
|
+
- "22"
|
411
431
|
date:
|
412
|
-
-
|
432
|
+
- Sat, 08 Jan 2011 08:05:48 GMT
|
413
433
|
server:
|
414
|
-
- nginx/0.
|
434
|
+
- nginx/0.8.53
|
415
435
|
content-length:
|
416
|
-
- "
|
436
|
+
- "925"
|
417
437
|
set-cookie:
|
418
|
-
- _recurly_session=
|
438
|
+
- _recurly_session=fb9989dea6fced747c72529135d8ec27; domain=.recurly.com; path=/; secure; HttpOnly
|
419
439
|
cache-control:
|
420
440
|
- private, max-age=0, must-revalidate
|
421
441
|
body: |
|
@@ -430,13 +450,15 @@
|
|
430
450
|
<state>active</state>
|
431
451
|
<quantity type="integer">1</quantity>
|
432
452
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
433
|
-
<activated_at type="datetime">
|
453
|
+
<activated_at type="datetime">2011-01-08T08:05:45Z</activated_at>
|
434
454
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
435
|
-
<expires_at type="datetime">
|
436
|
-
<current_period_started_at type="datetime">
|
437
|
-
<current_period_ends_at type="datetime">
|
455
|
+
<expires_at type="datetime">2011-02-08T08:05:45Z</expires_at>
|
456
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:45Z</current_period_started_at>
|
457
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:45Z</current_period_ends_at>
|
438
458
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
439
459
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
460
|
+
<add_ons type="array">
|
461
|
+
</add_ons>
|
440
462
|
</subscription>
|
441
463
|
|
442
464
|
http_version: "1.1"
|