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>billing-find-1286682213</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
|
+
- "430"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:03:54 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "579"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=879220fd680ed02b5a78de1a1337960f63005e156959cfdcbb1100f36da2896a2823ff3dece513e1655fb917e1397928873362f4924ff10b27b9fd921104b1d0%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=f27e8a14278e8573482e25cd54975493; 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>dd2d58da31f04a7180f7349af7971208</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:03:54Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -72,15 +73,15 @@
|
|
72
73
|
body: |
|
73
74
|
<?xml version="1.0" encoding="UTF-8"?>
|
74
75
|
<billing-info>
|
75
|
-
<city>San Francisco</city>
|
76
76
|
<address1>123 Test St</address1>
|
77
|
+
<city>San Francisco</city>
|
77
78
|
<zip>94115</zip>
|
78
79
|
<account-code>billing-find-1286682213</account-code>
|
79
80
|
<country>US</country>
|
80
81
|
<credit-card>
|
81
82
|
<number>1</number>
|
82
|
-
<month type="integer">
|
83
|
-
<year type="integer">
|
83
|
+
<month type="integer">1</month>
|
84
|
+
<year type="integer">2012</year>
|
84
85
|
<verification-value>123</verification-value>
|
85
86
|
</credit-card>
|
86
87
|
<last-name>Test</last-name>
|
@@ -105,21 +106,21 @@
|
|
105
106
|
x-ua-compatible:
|
106
107
|
- IE=Edge
|
107
108
|
etag:
|
108
|
-
- "\"
|
109
|
+
- "\"0c0788fb789cbabd71356165286e2f2e\""
|
109
110
|
connection:
|
110
111
|
- close
|
111
112
|
content-type:
|
112
113
|
- application/xml; charset=utf-8
|
113
114
|
x-runtime:
|
114
|
-
- "
|
115
|
+
- "244"
|
115
116
|
date:
|
116
|
-
-
|
117
|
+
- Sat, 08 Jan 2011 08:03:55 GMT
|
117
118
|
server:
|
118
|
-
- nginx/0.
|
119
|
+
- nginx/0.8.53
|
119
120
|
content-length:
|
120
|
-
- "
|
121
|
+
- "636"
|
121
122
|
set-cookie:
|
122
|
-
- _recurly_session=
|
123
|
+
- _recurly_session=69470e6ea8f54e1f562f884982c36f11; domain=.recurly.com; path=/; secure; HttpOnly
|
123
124
|
cache-control:
|
124
125
|
- private, max-age=0, must-revalidate
|
125
126
|
body: |
|
@@ -140,10 +141,10 @@
|
|
140
141
|
<credit_card>
|
141
142
|
<type>bogus</type>
|
142
143
|
<last_four>1</last_four>
|
143
|
-
<month type="integer">
|
144
|
-
<year type="integer">
|
144
|
+
<month type="integer">1</month>
|
145
|
+
<year type="integer">2012</year>
|
145
146
|
</credit_card>
|
146
|
-
<updated_at type="datetime">
|
147
|
+
<updated_at type="datetime">2011-01-08T08:03:55Z</updated_at>
|
147
148
|
</billing_info>
|
148
149
|
|
149
150
|
http_version: "1.1"
|
@@ -167,21 +168,21 @@
|
|
167
168
|
x-ua-compatible:
|
168
169
|
- IE=Edge
|
169
170
|
etag:
|
170
|
-
- "\"
|
171
|
+
- "\"0c0788fb789cbabd71356165286e2f2e\""
|
171
172
|
connection:
|
172
173
|
- close
|
173
174
|
content-type:
|
174
175
|
- application/xml; charset=utf-8
|
175
176
|
x-runtime:
|
176
|
-
- "
|
177
|
+
- "13"
|
177
178
|
date:
|
178
|
-
-
|
179
|
+
- Sat, 08 Jan 2011 08:03:55 GMT
|
179
180
|
server:
|
180
|
-
- nginx/0.
|
181
|
+
- nginx/0.8.53
|
181
182
|
content-length:
|
182
|
-
- "
|
183
|
+
- "636"
|
183
184
|
set-cookie:
|
184
|
-
- _recurly_session=
|
185
|
+
- _recurly_session=7566fedb3d5ad34fbc38583f5b93d9d6; domain=.recurly.com; path=/; secure; HttpOnly
|
185
186
|
cache-control:
|
186
187
|
- private, max-age=0, must-revalidate
|
187
188
|
body: |
|
@@ -202,10 +203,10 @@
|
|
202
203
|
<credit_card>
|
203
204
|
<type>bogus</type>
|
204
205
|
<last_four>1</last_four>
|
205
|
-
<month type="integer">
|
206
|
-
<year type="integer">
|
206
|
+
<month type="integer">1</month>
|
207
|
+
<year type="integer">2012</year>
|
207
208
|
</credit_card>
|
208
|
-
<updated_at type="datetime">
|
209
|
+
<updated_at type="datetime">2011-01-08T08:03:55Z</updated_at>
|
209
210
|
</billing_info>
|
210
211
|
|
211
212
|
http_version: "1.1"
|
@@ -229,21 +230,21 @@
|
|
229
230
|
x-ua-compatible:
|
230
231
|
- IE=Edge
|
231
232
|
etag:
|
232
|
-
- "\"
|
233
|
+
- "\"0c0788fb789cbabd71356165286e2f2e\""
|
233
234
|
connection:
|
234
235
|
- close
|
235
236
|
content-type:
|
236
237
|
- application/xml; charset=utf-8
|
237
238
|
x-runtime:
|
238
|
-
- "
|
239
|
+
- "12"
|
239
240
|
date:
|
240
|
-
-
|
241
|
+
- Sat, 08 Jan 2011 08:03:56 GMT
|
241
242
|
server:
|
242
|
-
- nginx/0.
|
243
|
+
- nginx/0.8.53
|
243
244
|
content-length:
|
244
|
-
- "
|
245
|
+
- "636"
|
245
246
|
set-cookie:
|
246
|
-
- _recurly_session=
|
247
|
+
- _recurly_session=8d857390071797aaa8a090cbd1f17e49; domain=.recurly.com; path=/; secure; HttpOnly
|
247
248
|
cache-control:
|
248
249
|
- private, max-age=0, must-revalidate
|
249
250
|
body: |
|
@@ -264,10 +265,10 @@
|
|
264
265
|
<credit_card>
|
265
266
|
<type>bogus</type>
|
266
267
|
<last_four>1</last_four>
|
267
|
-
<month type="integer">
|
268
|
-
<year type="integer">
|
268
|
+
<month type="integer">1</month>
|
269
|
+
<year type="integer">2012</year>
|
269
270
|
</credit_card>
|
270
|
-
<updated_at type="datetime">
|
271
|
+
<updated_at type="datetime">2011-01-08T08:03:55Z</updated_at>
|
271
272
|
</billing_info>
|
272
273
|
|
273
274
|
http_version: "1.1"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>billing-update-1286682213</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
|
+
- "346"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:03:50 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "583"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=2dff6be7a330aecc7e81aed3952ead086f473ec728d555fa47aa41920edda5941568fa89af0146e1e9ee2fcdb132bb7bf813a0c96d9e78481389b2140712cae0%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=a6f4cf5282876c5de1c99e60d2725683; 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>a12d3edb04424c20ab7218bbe36fb6f7</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:03:50Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -72,15 +73,15 @@
|
|
72
73
|
body: |
|
73
74
|
<?xml version="1.0" encoding="UTF-8"?>
|
74
75
|
<billing-info>
|
75
|
-
<city>San Francisco</city>
|
76
76
|
<address1>123 Test St</address1>
|
77
|
+
<city>San Francisco</city>
|
77
78
|
<zip>94115</zip>
|
78
79
|
<account-code>billing-update-1286682213</account-code>
|
79
80
|
<country>US</country>
|
80
81
|
<credit-card>
|
81
82
|
<number>1</number>
|
82
|
-
<month type="integer">
|
83
|
-
<year type="integer">
|
83
|
+
<month type="integer">1</month>
|
84
|
+
<year type="integer">2012</year>
|
84
85
|
<verification-value>123</verification-value>
|
85
86
|
</credit-card>
|
86
87
|
<last-name>Test</last-name>
|
@@ -105,21 +106,21 @@
|
|
105
106
|
x-ua-compatible:
|
106
107
|
- IE=Edge
|
107
108
|
etag:
|
108
|
-
- "\"
|
109
|
+
- "\"66a340947066ff6e2eea1c6ca9133266\""
|
109
110
|
connection:
|
110
111
|
- close
|
111
112
|
content-type:
|
112
113
|
- application/xml; charset=utf-8
|
113
114
|
x-runtime:
|
114
|
-
- "
|
115
|
+
- "197"
|
115
116
|
date:
|
116
|
-
-
|
117
|
+
- Sat, 08 Jan 2011 08:03:51 GMT
|
117
118
|
server:
|
118
|
-
- nginx/0.
|
119
|
+
- nginx/0.8.53
|
119
120
|
content-length:
|
120
|
-
- "
|
121
|
+
- "638"
|
121
122
|
set-cookie:
|
122
|
-
- _recurly_session=
|
123
|
+
- _recurly_session=79f587eb054b4567869b2e4911a83a1c; domain=.recurly.com; path=/; secure; HttpOnly
|
123
124
|
cache-control:
|
124
125
|
- private, max-age=0, must-revalidate
|
125
126
|
body: |
|
@@ -140,10 +141,10 @@
|
|
140
141
|
<credit_card>
|
141
142
|
<type>bogus</type>
|
142
143
|
<last_four>1</last_four>
|
143
|
-
<month type="integer">
|
144
|
-
<year type="integer">
|
144
|
+
<month type="integer">1</month>
|
145
|
+
<year type="integer">2012</year>
|
145
146
|
</credit_card>
|
146
|
-
<updated_at type="datetime">
|
147
|
+
<updated_at type="datetime">2011-01-08T08:03:51Z</updated_at>
|
147
148
|
</billing_info>
|
148
149
|
|
149
150
|
http_version: "1.1"
|
@@ -154,14 +155,14 @@
|
|
154
155
|
body: |
|
155
156
|
<?xml version="1.0" encoding="UTF-8"?>
|
156
157
|
<billing-info>
|
157
|
-
<city>San Francisco</city>
|
158
158
|
<address1>1st Ave South, Apt 5001</address1>
|
159
|
+
<city>San Francisco</city>
|
159
160
|
<zip>94115</zip>
|
160
161
|
<country>US</country>
|
161
162
|
<credit-card>
|
162
163
|
<number>1</number>
|
163
|
-
<month type="integer">
|
164
|
-
<year type="integer">
|
164
|
+
<month type="integer">1</month>
|
165
|
+
<year type="integer">2012</year>
|
165
166
|
<verification-value>123</verification-value>
|
166
167
|
</credit-card>
|
167
168
|
<last-name>Test</last-name>
|
@@ -186,21 +187,21 @@
|
|
186
187
|
x-ua-compatible:
|
187
188
|
- IE=Edge
|
188
189
|
etag:
|
189
|
-
- "\"
|
190
|
+
- "\"5b5a4683dc023ce4013f6f577c717692\""
|
190
191
|
connection:
|
191
192
|
- close
|
192
193
|
content-type:
|
193
194
|
- application/xml; charset=utf-8
|
194
195
|
x-runtime:
|
195
|
-
- "
|
196
|
+
- "275"
|
196
197
|
date:
|
197
|
-
-
|
198
|
+
- Sat, 08 Jan 2011 08:03:52 GMT
|
198
199
|
server:
|
199
|
-
- nginx/0.
|
200
|
+
- nginx/0.8.53
|
200
201
|
content-length:
|
201
|
-
- "
|
202
|
+
- "650"
|
202
203
|
set-cookie:
|
203
|
-
- _recurly_session=
|
204
|
+
- _recurly_session=6406a405ad0bfae8395b659ca90f0cf3; domain=.recurly.com; path=/; secure; HttpOnly
|
204
205
|
cache-control:
|
205
206
|
- private, max-age=0, must-revalidate
|
206
207
|
body: |
|
@@ -221,10 +222,10 @@
|
|
221
222
|
<credit_card>
|
222
223
|
<type>bogus</type>
|
223
224
|
<last_four>1</last_four>
|
224
|
-
<month type="integer">
|
225
|
-
<year type="integer">
|
225
|
+
<month type="integer">1</month>
|
226
|
+
<year type="integer">2012</year>
|
226
227
|
</credit_card>
|
227
|
-
<updated_at type="datetime">
|
228
|
+
<updated_at type="datetime">2011-01-08T08:03:52Z</updated_at>
|
228
229
|
</billing_info>
|
229
230
|
|
230
231
|
http_version: "1.1"
|
@@ -248,7 +249,7 @@
|
|
248
249
|
x-ua-compatible:
|
249
250
|
- IE=Edge
|
250
251
|
etag:
|
251
|
-
- "\"
|
252
|
+
- "\"5b5a4683dc023ce4013f6f577c717692\""
|
252
253
|
connection:
|
253
254
|
- close
|
254
255
|
content-type:
|
@@ -256,13 +257,13 @@
|
|
256
257
|
x-runtime:
|
257
258
|
- "12"
|
258
259
|
date:
|
259
|
-
-
|
260
|
+
- Sat, 08 Jan 2011 08:03:52 GMT
|
260
261
|
server:
|
261
|
-
- nginx/0.
|
262
|
+
- nginx/0.8.53
|
262
263
|
content-length:
|
263
|
-
- "
|
264
|
+
- "650"
|
264
265
|
set-cookie:
|
265
|
-
- _recurly_session=
|
266
|
+
- _recurly_session=fe8ee05b8f569f153cc94e8f9ecbd605; domain=.recurly.com; path=/; secure; HttpOnly
|
266
267
|
cache-control:
|
267
268
|
- private, max-age=0, must-revalidate
|
268
269
|
body: |
|
@@ -283,10 +284,10 @@
|
|
283
284
|
<credit_card>
|
284
285
|
<type>bogus</type>
|
285
286
|
<last_four>1</last_four>
|
286
|
-
<month type="integer">
|
287
|
-
<year type="integer">
|
287
|
+
<month type="integer">1</month>
|
288
|
+
<year type="integer">2012</year>
|
288
289
|
</credit_card>
|
289
|
-
<updated_at type="datetime">
|
290
|
+
<updated_at type="datetime">2011-01-08T08:03:52Z</updated_at>
|
290
291
|
</billing_info>
|
291
292
|
|
292
293
|
http_version: "1.1"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>charge-create-1287465632</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
|
+
- "425"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:04:19 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "581"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=22c9ccf5bc756446738c05c0903988882644a84d2d2a8142dbb9c0d6a11bf02fbd28013ac1c3fff0c8bdedee5522854e262829e4e3e854673529ddc8e9ec1f4d%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=912567638b9c0c6fd76e839a3e7f6e67; 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>2b7dddf450cf408b8660f3bcbdefddfc</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:04:19Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -72,15 +73,15 @@
|
|
72
73
|
body: |
|
73
74
|
<?xml version="1.0" encoding="UTF-8"?>
|
74
75
|
<billing-info>
|
75
|
-
<city>San Francisco</city>
|
76
76
|
<address1>123 Test St</address1>
|
77
|
+
<city>San Francisco</city>
|
77
78
|
<zip>94115</zip>
|
78
79
|
<account-code>charge-create-1287465632</account-code>
|
79
80
|
<country>US</country>
|
80
81
|
<credit-card>
|
81
82
|
<number>1</number>
|
82
|
-
<month type="integer">
|
83
|
-
<year type="integer">
|
83
|
+
<month type="integer">1</month>
|
84
|
+
<year type="integer">2012</year>
|
84
85
|
<verification-value>123</verification-value>
|
85
86
|
</credit-card>
|
86
87
|
<last-name>Test</last-name>
|
@@ -105,21 +106,21 @@
|
|
105
106
|
x-ua-compatible:
|
106
107
|
- IE=Edge
|
107
108
|
etag:
|
108
|
-
- "\"
|
109
|
+
- "\"d9ba53e96a2688069eb9d6babd942fa4\""
|
109
110
|
connection:
|
110
111
|
- close
|
111
112
|
content-type:
|
112
113
|
- application/xml; charset=utf-8
|
113
114
|
x-runtime:
|
114
|
-
- "
|
115
|
+
- "202"
|
115
116
|
date:
|
116
|
-
-
|
117
|
+
- Sat, 08 Jan 2011 08:04:20 GMT
|
117
118
|
server:
|
118
|
-
- nginx/0.
|
119
|
+
- nginx/0.8.53
|
119
120
|
content-length:
|
120
|
-
- "
|
121
|
+
- "637"
|
121
122
|
set-cookie:
|
122
|
-
- _recurly_session=
|
123
|
+
- _recurly_session=150239789158fc371a4cba991528caa0; domain=.recurly.com; path=/; secure; HttpOnly
|
123
124
|
cache-control:
|
124
125
|
- private, max-age=0, must-revalidate
|
125
126
|
body: |
|
@@ -140,10 +141,10 @@
|
|
140
141
|
<credit_card>
|
141
142
|
<type>bogus</type>
|
142
143
|
<last_four>1</last_four>
|
143
|
-
<month type="integer">
|
144
|
-
<year type="integer">
|
144
|
+
<month type="integer">1</month>
|
145
|
+
<year type="integer">2012</year>
|
145
146
|
</credit_card>
|
146
|
-
<updated_at type="datetime">
|
147
|
+
<updated_at type="datetime">2011-01-08T08:04:20Z</updated_at>
|
147
148
|
</billing_info>
|
148
149
|
|
149
150
|
http_version: "1.1"
|
@@ -177,35 +178,35 @@
|
|
177
178
|
content-type:
|
178
179
|
- application/xml; charset=utf-8
|
179
180
|
x-runtime:
|
180
|
-
- "
|
181
|
+
- "45"
|
181
182
|
date:
|
182
|
-
-
|
183
|
+
- Sat, 08 Jan 2011 08:04:21 GMT
|
183
184
|
server:
|
184
|
-
- nginx/0.
|
185
|
+
- nginx/0.8.53
|
185
186
|
content-length:
|
186
187
|
- "524"
|
187
188
|
set-cookie:
|
188
|
-
- _recurly_session=
|
189
|
+
- _recurly_session=ee55a02b9ccafbe2b836df43c13091e0; domain=.recurly.com; path=/; secure; HttpOnly
|
189
190
|
cache-control:
|
190
191
|
- no-cache
|
191
192
|
body: |
|
192
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
194
|
<charge type="charge">
|
194
|
-
<id>
|
195
|
+
<id>67f24fa1203d409e91e23efa42467cf8</id>
|
195
196
|
<account_code>charge-create-1287465632</account_code>
|
196
197
|
<amount_in_cents type="integer">250</amount_in_cents>
|
197
|
-
<start_date type="datetime">
|
198
|
+
<start_date type="datetime">2011-01-08T08:04:21Z</start_date>
|
198
199
|
<end_date nil="true" type="datetime"></end_date>
|
199
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
200
201
|
<description>virtual cow maintence fee</description>
|
201
|
-
<created_at type="datetime">
|
202
|
+
<created_at type="datetime">2011-01-08T08:04:21Z</created_at>
|
202
203
|
</charge>
|
203
204
|
|
204
205
|
http_version: "1.1"
|
205
206
|
- !ruby/struct:VCR::HTTPInteraction
|
206
207
|
request: !ruby/struct:VCR::Request
|
207
208
|
method: :get
|
208
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1287465632/charges/
|
209
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-create-1287465632/charges/67f24fa1203d409e91e23efa42467cf8.xml
|
209
210
|
body:
|
210
211
|
headers:
|
211
212
|
accept:
|
@@ -222,34 +223,34 @@
|
|
222
223
|
x-ua-compatible:
|
223
224
|
- IE=Edge
|
224
225
|
etag:
|
225
|
-
- "\"
|
226
|
+
- "\"c8de67fbfa0dfc3bc338e6cd94b75a3c\""
|
226
227
|
connection:
|
227
228
|
- close
|
228
229
|
content-type:
|
229
230
|
- application/xml; charset=utf-8
|
230
231
|
x-runtime:
|
231
|
-
- "
|
232
|
+
- "15"
|
232
233
|
date:
|
233
|
-
-
|
234
|
+
- Sat, 08 Jan 2011 08:04:22 GMT
|
234
235
|
server:
|
235
|
-
- nginx/0.
|
236
|
+
- nginx/0.8.53
|
236
237
|
content-length:
|
237
238
|
- "524"
|
238
239
|
set-cookie:
|
239
|
-
- _recurly_session=
|
240
|
+
- _recurly_session=edef4755b14e73ff9fbfd2a23609c049; domain=.recurly.com; path=/; secure; HttpOnly
|
240
241
|
cache-control:
|
241
242
|
- private, max-age=0, must-revalidate
|
242
243
|
body: |
|
243
244
|
<?xml version="1.0" encoding="UTF-8"?>
|
244
245
|
<charge type="charge">
|
245
|
-
<id>
|
246
|
+
<id>67f24fa1203d409e91e23efa42467cf8</id>
|
246
247
|
<account_code>charge-create-1287465632</account_code>
|
247
248
|
<amount_in_cents type="integer">250</amount_in_cents>
|
248
|
-
<start_date type="datetime">
|
249
|
+
<start_date type="datetime">2011-01-08T08:04:21Z</start_date>
|
249
250
|
<end_date nil="true" type="datetime"></end_date>
|
250
251
|
<invoice_number nil="true" type="integer"></invoice_number>
|
251
252
|
<description>virtual cow maintence fee</description>
|
252
|
-
<created_at type="datetime">
|
253
|
+
<created_at type="datetime">2011-01-08T08:04:21Z</created_at>
|
253
254
|
</charge>
|
254
255
|
|
255
256
|
http_version: "1.1"
|