recurly 0.4.5 → 0.4.6
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/base.rb +11 -4
- data/lib/recurly/billing_info.rb +2 -1
- data/lib/recurly/charge.rb +3 -1
- data/lib/recurly/credit.rb +3 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/unit/billing_info_spec.rb +1 -0
- data/spec/unit/charge_spec.rb +2 -0
- data/spec/unit/credit_spec.rb +2 -0
- data/spec/unit/subscription_spec.rb +1 -1
- data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
- data/spec/vcr/account/close/1301979678.yml +41 -35
- data/spec/vcr/account/create-blank/1301979678.yml +11 -9
- data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
- data/spec/vcr/account/create-min/1301979678.yml +14 -12
- data/spec/vcr/account/create/1301979678.yml +14 -12
- data/spec/vcr/account/find/1301979678.yml +40 -34
- data/spec/vcr/account/list/1301979678.yml +348 -341
- data/spec/vcr/account/update/1301979678.yml +61 -53
- data/spec/vcr/billing/create/1302025874.yml +42 -36
- data/spec/vcr/billing/destroy/1302025874.yml +65 -55
- data/spec/vcr/billing/errors/1302025874.yml +25 -21
- data/spec/vcr/billing/find/1302025874.yml +56 -48
- data/spec/vcr/billing/update/1302025874.yml +56 -48
- data/spec/vcr/charge/create/1297746103.yml +65 -53
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
- data/spec/vcr/charge/list-all/1297746103.yml +97 -75
- data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
- data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
- data/spec/vcr/charge/lookup/1297746103.yml +51 -41
- data/spec/vcr/coupon/create/1299714521.yml +28 -88
- data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
- data/spec/vcr/credit/create/1299714599.yml +51 -41
- data/spec/vcr/credit/delete/1299714599.yml +74 -60
- data/spec/vcr/credit/list/1299714599.yml +97 -75
- data/spec/vcr/credit/lookup/1299714599.yml +51 -41
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
- data/spec/vcr/invoice/create/1297746103.yml +86 -72
- data/spec/vcr/invoice/list/1297746103.yml +121 -103
- data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
- data/spec/vcr/plan/all.yml +108 -134
- data/spec/vcr/plan/find.yml +47 -95
- data/spec/vcr/plan/update.yml +152 -66
- data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
- data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
- data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
- data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
- data/spec/vcr/subscription/change1/1301881900.yml +107 -113
- data/spec/vcr/subscription/change2/1301881900.yml +107 -113
- data/spec/vcr/subscription/create/1301881900.yml +50 -65
- data/spec/vcr/subscription/find/1301881900.yml +69 -81
- data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
- data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
- data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
- data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
- data/spec/vcr/transaction/all/1301883347.yml +86 -84
- data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
- data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
- data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
- data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
- data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
- data/spec/vcr/transaction/refund/1301883347.yml +58 -50
- data/spec/vcr/transaction/void/1301883347.yml +75 -82
- data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
- metadata +3 -3
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test%
|
5
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,36 +20,38 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
24
|
+
user-agent:
|
25
|
+
- Recurly Ruby Client v0.4.6
|
24
26
|
content-type:
|
25
27
|
- application/xml
|
26
28
|
accept:
|
27
29
|
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
30
|
connection:
|
31
31
|
- close
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message: Created
|
35
|
+
message: "Created "
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/billing-update-1302025874
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "444"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
|
-
|
48
|
-
-
|
47
|
+
server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
49
|
+
date:
|
50
|
+
- Thu, 21 Apr 2011 17:59:20 GMT
|
49
51
|
connection:
|
50
52
|
- close
|
51
|
-
|
52
|
-
-
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=5a050831be8f77fdf7e75ffe753cb425; domain=.recurly.local; path=/; HttpOnly
|
53
55
|
body: |
|
54
56
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
57
|
<account>
|
@@ -62,8 +64,8 @@
|
|
62
64
|
<company_name>Recurly Ruby Gem</company_name>
|
63
65
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
66
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
67
|
+
<hosted_login_token>2ab23d21d6c1475ba07eb21a576c077e</hosted_login_token>
|
68
|
+
<created_at type="datetime">2011-04-21T17:59:20Z</created_at>
|
67
69
|
<state>active</state>
|
68
70
|
</account>
|
69
71
|
|
@@ -71,7 +73,7 @@
|
|
71
73
|
- !ruby/struct:VCR::HTTPInteraction
|
72
74
|
request: !ruby/struct:VCR::Request
|
73
75
|
method: :put
|
74
|
-
uri: http://api-test%
|
76
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
|
75
77
|
body: |
|
76
78
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
79
|
<billing-info>
|
@@ -93,36 +95,38 @@
|
|
93
95
|
|
94
96
|
headers:
|
95
97
|
authorization:
|
96
|
-
- Basic
|
98
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
99
|
+
user-agent:
|
100
|
+
- Recurly Ruby Client v0.4.6
|
97
101
|
content-type:
|
98
102
|
- application/xml
|
99
103
|
accept:
|
100
104
|
- "*/*"
|
101
|
-
user-agent:
|
102
|
-
- Ruby
|
103
105
|
connection:
|
104
106
|
- close
|
105
107
|
response: !ruby/struct:VCR::Response
|
106
108
|
status: !ruby/struct:VCR::ResponseStatus
|
107
109
|
code: 200
|
108
|
-
message: OK
|
110
|
+
message: "OK "
|
109
111
|
headers:
|
110
112
|
x-runtime:
|
111
|
-
- "
|
113
|
+
- "1476"
|
112
114
|
content-type:
|
113
115
|
- application/xml; charset=utf-8
|
114
116
|
etag:
|
115
|
-
- "\"
|
117
|
+
- "\"17cf687138432caf0a4f399caf910c31\""
|
116
118
|
cache-control:
|
117
119
|
- private, max-age=0, must-revalidate
|
118
120
|
content-length:
|
119
121
|
- "640"
|
120
|
-
|
121
|
-
-
|
122
|
+
server:
|
123
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
124
|
+
date:
|
125
|
+
- Thu, 21 Apr 2011 17:59:23 GMT
|
122
126
|
connection:
|
123
127
|
- close
|
124
|
-
|
125
|
-
-
|
128
|
+
set-cookie:
|
129
|
+
- _recurly_session=8775b6e38c0c5e94dd99095da88d25da; domain=.recurly.local; path=/; HttpOnly
|
126
130
|
body: |
|
127
131
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
132
|
<billing_info>
|
@@ -144,14 +148,14 @@
|
|
144
148
|
<month type="integer">4</month>
|
145
149
|
<year type="integer">2012</year>
|
146
150
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
151
|
+
<updated_at type="datetime">2011-04-21T17:59:23Z</updated_at>
|
148
152
|
</billing_info>
|
149
153
|
|
150
154
|
http_version: "1.1"
|
151
155
|
- !ruby/struct:VCR::HTTPInteraction
|
152
156
|
request: !ruby/struct:VCR::Request
|
153
157
|
method: :put
|
154
|
-
uri: http://api-test%
|
158
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
|
155
159
|
body: |
|
156
160
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
161
|
<billing-info>
|
@@ -172,36 +176,38 @@
|
|
172
176
|
|
173
177
|
headers:
|
174
178
|
authorization:
|
175
|
-
- Basic
|
179
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
180
|
+
user-agent:
|
181
|
+
- Recurly Ruby Client v0.4.6
|
176
182
|
content-type:
|
177
183
|
- application/xml
|
178
184
|
accept:
|
179
185
|
- "*/*"
|
180
|
-
user-agent:
|
181
|
-
- Ruby
|
182
186
|
connection:
|
183
187
|
- close
|
184
188
|
response: !ruby/struct:VCR::Response
|
185
189
|
status: !ruby/struct:VCR::ResponseStatus
|
186
190
|
code: 200
|
187
|
-
message: OK
|
191
|
+
message: "OK "
|
188
192
|
headers:
|
189
193
|
x-runtime:
|
190
|
-
- "
|
194
|
+
- "1929"
|
191
195
|
content-type:
|
192
196
|
- application/xml; charset=utf-8
|
193
197
|
etag:
|
194
|
-
- "\"
|
198
|
+
- "\"0ca269af2768267c57a407dbacf58a17\""
|
195
199
|
cache-control:
|
196
200
|
- private, max-age=0, must-revalidate
|
197
201
|
content-length:
|
198
202
|
- "652"
|
199
|
-
|
200
|
-
-
|
203
|
+
server:
|
204
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
205
|
+
date:
|
206
|
+
- Thu, 21 Apr 2011 17:59:27 GMT
|
201
207
|
connection:
|
202
208
|
- close
|
203
|
-
|
204
|
-
-
|
209
|
+
set-cookie:
|
210
|
+
- _recurly_session=206bf407399d647dd7d1361ff2819d7a; domain=.recurly.local; path=/; HttpOnly
|
205
211
|
body: |
|
206
212
|
<?xml version="1.0" encoding="UTF-8"?>
|
207
213
|
<billing_info>
|
@@ -223,47 +229,49 @@
|
|
223
229
|
<month type="integer">4</month>
|
224
230
|
<year type="integer">2012</year>
|
225
231
|
</credit_card>
|
226
|
-
<updated_at type="datetime">2011-04-
|
232
|
+
<updated_at type="datetime">2011-04-21T17:59:27Z</updated_at>
|
227
233
|
</billing_info>
|
228
234
|
|
229
235
|
http_version: "1.1"
|
230
236
|
- !ruby/struct:VCR::HTTPInteraction
|
231
237
|
request: !ruby/struct:VCR::Request
|
232
238
|
method: :get
|
233
|
-
uri: http://api-test%
|
239
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-update-1302025874/billing_info.xml
|
234
240
|
body:
|
235
241
|
headers:
|
236
242
|
authorization:
|
237
|
-
- Basic
|
243
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
244
|
+
user-agent:
|
245
|
+
- Recurly Ruby Client v0.4.6
|
238
246
|
accept:
|
239
247
|
- application/xml
|
240
248
|
accept-encoding:
|
241
249
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
|
-
user-agent:
|
243
|
-
- Ruby
|
244
250
|
connection:
|
245
251
|
- close
|
246
252
|
response: !ruby/struct:VCR::Response
|
247
253
|
status: !ruby/struct:VCR::ResponseStatus
|
248
254
|
code: 200
|
249
|
-
message: OK
|
255
|
+
message: "OK "
|
250
256
|
headers:
|
251
257
|
x-runtime:
|
252
|
-
- "
|
258
|
+
- "218"
|
253
259
|
content-type:
|
254
260
|
- application/xml; charset=utf-8
|
255
261
|
etag:
|
256
|
-
- "\"
|
262
|
+
- "\"0ca269af2768267c57a407dbacf58a17\""
|
257
263
|
cache-control:
|
258
264
|
- private, max-age=0, must-revalidate
|
259
265
|
content-length:
|
260
266
|
- "652"
|
261
|
-
|
262
|
-
-
|
267
|
+
server:
|
268
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
269
|
+
date:
|
270
|
+
- Thu, 21 Apr 2011 17:59:29 GMT
|
263
271
|
connection:
|
264
272
|
- close
|
265
|
-
|
266
|
-
-
|
273
|
+
set-cookie:
|
274
|
+
- _recurly_session=a66416c6c86fd67bceaf5306f940ae98; domain=.recurly.local; path=/; HttpOnly
|
267
275
|
body: |
|
268
276
|
<?xml version="1.0" encoding="UTF-8"?>
|
269
277
|
<billing_info>
|
@@ -285,7 +293,7 @@
|
|
285
293
|
<month type="integer">4</month>
|
286
294
|
<year type="integer">2012</year>
|
287
295
|
</credit_card>
|
288
|
-
<updated_at type="datetime">2011-04-
|
296
|
+
<updated_at type="datetime">2011-04-21T17:59:27Z</updated_at>
|
289
297
|
</billing_info>
|
290
298
|
|
291
299
|
http_version: "1.1"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test%
|
5
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
@@ -20,36 +20,38 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
24
|
+
user-agent:
|
25
|
+
- Recurly Ruby Client v0.4.6
|
24
26
|
content-type:
|
25
27
|
- application/xml
|
26
28
|
accept:
|
27
29
|
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
30
|
connection:
|
31
31
|
- close
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message: Created
|
35
|
+
message: "Created "
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/charge-create-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "375"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
|
-
|
48
|
-
-
|
47
|
+
server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
49
|
+
date:
|
50
|
+
- Thu, 21 Apr 2011 18:00:24 GMT
|
49
51
|
connection:
|
50
52
|
- close
|
51
|
-
|
52
|
-
-
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=26e1687f3b1582522e1b63c54d4342a1; domain=.recurly.local; path=/; HttpOnly
|
53
55
|
body: |
|
54
56
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
57
|
<account>
|
@@ -62,8 +64,8 @@
|
|
62
64
|
<company_name>Recurly Ruby Gem</company_name>
|
63
65
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
66
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
67
|
+
<hosted_login_token>d98514934df04438b5eaacfe7354424b</hosted_login_token>
|
68
|
+
<created_at type="datetime">2011-04-21T18:00:24Z</created_at>
|
67
69
|
<state>active</state>
|
68
70
|
</account>
|
69
71
|
|
@@ -71,7 +73,7 @@
|
|
71
73
|
- !ruby/struct:VCR::HTTPInteraction
|
72
74
|
request: !ruby/struct:VCR::Request
|
73
75
|
method: :put
|
74
|
-
uri: http://api-test%
|
76
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/billing_info.xml
|
75
77
|
body: |
|
76
78
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
79
|
<billing-info>
|
@@ -93,36 +95,38 @@
|
|
93
95
|
|
94
96
|
headers:
|
95
97
|
authorization:
|
96
|
-
- Basic
|
98
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
99
|
+
user-agent:
|
100
|
+
- Recurly Ruby Client v0.4.6
|
97
101
|
content-type:
|
98
102
|
- application/xml
|
99
103
|
accept:
|
100
104
|
- "*/*"
|
101
|
-
user-agent:
|
102
|
-
- Ruby
|
103
105
|
connection:
|
104
106
|
- close
|
105
107
|
response: !ruby/struct:VCR::Response
|
106
108
|
status: !ruby/struct:VCR::ResponseStatus
|
107
109
|
code: 200
|
108
|
-
message: OK
|
110
|
+
message: "OK "
|
109
111
|
headers:
|
110
112
|
x-runtime:
|
111
|
-
- "
|
113
|
+
- "1465"
|
112
114
|
content-type:
|
113
115
|
- application/xml; charset=utf-8
|
114
116
|
etag:
|
115
|
-
- "\"
|
117
|
+
- "\"bcb5a20c46151deaeeb306f4d76f23e7\""
|
116
118
|
cache-control:
|
117
119
|
- private, max-age=0, must-revalidate
|
118
120
|
content-length:
|
119
121
|
- "639"
|
120
|
-
|
121
|
-
-
|
122
|
+
server:
|
123
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
124
|
+
date:
|
125
|
+
- Thu, 21 Apr 2011 18:00:27 GMT
|
122
126
|
connection:
|
123
127
|
- close
|
124
|
-
|
125
|
-
-
|
128
|
+
set-cookie:
|
129
|
+
- _recurly_session=d6987118281cce9ddc501805e2185552; domain=.recurly.local; path=/; HttpOnly
|
126
130
|
body: |
|
127
131
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
132
|
<billing_info>
|
@@ -144,14 +148,14 @@
|
|
144
148
|
<month type="integer">4</month>
|
145
149
|
<year type="integer">2012</year>
|
146
150
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
151
|
+
<updated_at type="datetime">2011-04-21T18:00:27Z</updated_at>
|
148
152
|
</billing_info>
|
149
153
|
|
150
154
|
http_version: "1.1"
|
151
155
|
- !ruby/struct:VCR::HTTPInteraction
|
152
156
|
request: !ruby/struct:VCR::Request
|
153
157
|
method: :post
|
154
|
-
uri: http://api-test%
|
158
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/charges.xml
|
155
159
|
body: |
|
156
160
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
161
|
<charge>
|
@@ -161,96 +165,104 @@
|
|
161
165
|
|
162
166
|
headers:
|
163
167
|
authorization:
|
164
|
-
- Basic
|
168
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
169
|
+
user-agent:
|
170
|
+
- Recurly Ruby Client v0.4.6
|
165
171
|
content-type:
|
166
172
|
- application/xml
|
167
173
|
accept:
|
168
174
|
- "*/*"
|
169
|
-
user-agent:
|
170
|
-
- Ruby
|
171
175
|
connection:
|
172
176
|
- close
|
173
177
|
response: !ruby/struct:VCR::Response
|
174
178
|
status: !ruby/struct:VCR::ResponseStatus
|
175
179
|
code: 201
|
176
|
-
message: Created
|
180
|
+
message: "Created "
|
177
181
|
headers:
|
178
182
|
cache-control:
|
179
183
|
- no-cache
|
180
184
|
x-runtime:
|
181
|
-
- "
|
185
|
+
- "241"
|
182
186
|
content-type:
|
183
187
|
- application/xml; charset=utf-8
|
184
188
|
content-length:
|
185
|
-
- "
|
186
|
-
|
187
|
-
-
|
189
|
+
- "630"
|
190
|
+
server:
|
191
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
192
|
+
date:
|
193
|
+
- Thu, 21 Apr 2011 18:00:29 GMT
|
188
194
|
connection:
|
189
195
|
- close
|
190
|
-
|
191
|
-
-
|
196
|
+
set-cookie:
|
197
|
+
- _recurly_session=3516530d29a368fde0dcc04032957805; domain=.recurly.local; path=/; HttpOnly
|
192
198
|
body: |
|
193
199
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
200
|
<charge type="charge">
|
195
|
-
<id>
|
201
|
+
<id>1a74ddf275404e1b818ee44097976dcd</id>
|
196
202
|
<account_code>charge-create-1297746103</account_code>
|
203
|
+
<quantity type="integer">1</quantity>
|
204
|
+
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
197
205
|
<amount_in_cents type="integer">250</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-04-
|
206
|
+
<start_date type="datetime">2011-04-21T18:00:29Z</start_date>
|
199
207
|
<end_date nil="true" type="datetime"></end_date>
|
200
208
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
209
|
<description>virtual cow maintence fee</description>
|
202
|
-
<created_at type="datetime">2011-04-
|
210
|
+
<created_at type="datetime">2011-04-21T18:00:29Z</created_at>
|
203
211
|
</charge>
|
204
212
|
|
205
213
|
http_version: "1.1"
|
206
214
|
- !ruby/struct:VCR::HTTPInteraction
|
207
215
|
request: !ruby/struct:VCR::Request
|
208
216
|
method: :get
|
209
|
-
uri: http://api-test%
|
217
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-create-1297746103/charges/1a74ddf275404e1b818ee44097976dcd.xml
|
210
218
|
body:
|
211
219
|
headers:
|
212
220
|
authorization:
|
213
|
-
- Basic
|
221
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
222
|
+
user-agent:
|
223
|
+
- Recurly Ruby Client v0.4.6
|
214
224
|
accept:
|
215
225
|
- application/xml
|
216
226
|
accept-encoding:
|
217
227
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
218
|
-
user-agent:
|
219
|
-
- Ruby
|
220
228
|
connection:
|
221
229
|
- close
|
222
230
|
response: !ruby/struct:VCR::Response
|
223
231
|
status: !ruby/struct:VCR::ResponseStatus
|
224
232
|
code: 200
|
225
|
-
message: OK
|
233
|
+
message: "OK "
|
226
234
|
headers:
|
227
235
|
x-runtime:
|
228
|
-
- "
|
236
|
+
- "78"
|
229
237
|
content-type:
|
230
238
|
- application/xml; charset=utf-8
|
231
239
|
etag:
|
232
|
-
- "\"
|
240
|
+
- "\"6c50fe86b37f71020d004126d77b655b\""
|
233
241
|
cache-control:
|
234
242
|
- private, max-age=0, must-revalidate
|
235
243
|
content-length:
|
236
|
-
- "
|
237
|
-
|
238
|
-
-
|
244
|
+
- "630"
|
245
|
+
server:
|
246
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
247
|
+
date:
|
248
|
+
- Thu, 21 Apr 2011 18:00:30 GMT
|
239
249
|
connection:
|
240
250
|
- close
|
241
|
-
|
242
|
-
-
|
251
|
+
set-cookie:
|
252
|
+
- _recurly_session=fc20b7f37743ccd461fd9f6e464e084a; domain=.recurly.local; path=/; HttpOnly
|
243
253
|
body: |
|
244
254
|
<?xml version="1.0" encoding="UTF-8"?>
|
245
255
|
<charge type="charge">
|
246
|
-
<id>
|
256
|
+
<id>1a74ddf275404e1b818ee44097976dcd</id>
|
247
257
|
<account_code>charge-create-1297746103</account_code>
|
258
|
+
<quantity type="integer">1</quantity>
|
259
|
+
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
248
260
|
<amount_in_cents type="integer">250</amount_in_cents>
|
249
|
-
<start_date type="datetime">2011-04-
|
261
|
+
<start_date type="datetime">2011-04-21T18:00:29Z</start_date>
|
250
262
|
<end_date nil="true" type="datetime"></end_date>
|
251
263
|
<invoice_number nil="true" type="integer"></invoice_number>
|
252
264
|
<description>virtual cow maintence fee</description>
|
253
|
-
<created_at type="datetime">2011-04-
|
265
|
+
<created_at type="datetime">2011-04-21T18:00:29Z</created_at>
|
254
266
|
</charge>
|
255
267
|
|
256
268
|
http_version: "1.1"
|