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/charge-list-pending-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "358"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "593"
|
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:02 GMT
|
49
51
|
connection:
|
50
52
|
- close
|
51
|
-
|
52
|
-
-
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=0fa90c7e197c2727f4b48d41d0c1a11a; 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>917ec1c3ff08468f9a5fa437cda18441</hosted_login_token>
|
68
|
+
<created_at type="datetime">2011-04-21T18:00:01Z</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: :post
|
74
|
-
uri: http://api-test%
|
76
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
75
77
|
body: |
|
76
78
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
79
|
<charge>
|
@@ -81,52 +83,56 @@
|
|
81
83
|
|
82
84
|
headers:
|
83
85
|
authorization:
|
84
|
-
- Basic
|
86
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
87
|
+
user-agent:
|
88
|
+
- Recurly Ruby Client v0.4.6
|
85
89
|
content-type:
|
86
90
|
- application/xml
|
87
91
|
accept:
|
88
92
|
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
93
|
connection:
|
92
94
|
- close
|
93
95
|
response: !ruby/struct:VCR::Response
|
94
96
|
status: !ruby/struct:VCR::ResponseStatus
|
95
97
|
code: 201
|
96
|
-
message: Created
|
98
|
+
message: "Created "
|
97
99
|
headers:
|
98
100
|
cache-control:
|
99
101
|
- no-cache
|
100
102
|
x-runtime:
|
101
|
-
- "
|
103
|
+
- "213"
|
102
104
|
content-type:
|
103
105
|
- application/xml; charset=utf-8
|
104
106
|
content-length:
|
105
|
-
- "
|
106
|
-
|
107
|
-
-
|
107
|
+
- "631"
|
108
|
+
server:
|
109
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
110
|
+
date:
|
111
|
+
- Thu, 21 Apr 2011 18:00:03 GMT
|
108
112
|
connection:
|
109
113
|
- close
|
110
|
-
|
111
|
-
-
|
114
|
+
set-cookie:
|
115
|
+
- _recurly_session=7bee698ef1e706214a7d43f288a5ffa6; domain=.recurly.local; path=/; HttpOnly
|
112
116
|
body: |
|
113
117
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
118
|
<charge type="charge">
|
115
|
-
<id>
|
119
|
+
<id>e21678f8fb694e01b5939ffb8b30b7fc</id>
|
116
120
|
<account_code>charge-list-pending-1297746103</account_code>
|
121
|
+
<quantity type="integer">1</quantity>
|
122
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
117
123
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-04-
|
124
|
+
<start_date type="datetime">2011-04-21T18:00:03Z</start_date>
|
119
125
|
<end_date nil="true" type="datetime"></end_date>
|
120
126
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
127
|
<description>charge description</description>
|
122
|
-
<created_at type="datetime">2011-04-
|
128
|
+
<created_at type="datetime">2011-04-21T18:00:03Z</created_at>
|
123
129
|
</charge>
|
124
130
|
|
125
131
|
http_version: "1.1"
|
126
132
|
- !ruby/struct:VCR::HTTPInteraction
|
127
133
|
request: !ruby/struct:VCR::Request
|
128
134
|
method: :post
|
129
|
-
uri: http://api-test%
|
135
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
130
136
|
body: |
|
131
137
|
<?xml version="1.0" encoding="UTF-8"?>
|
132
138
|
<charge>
|
@@ -136,52 +142,56 @@
|
|
136
142
|
|
137
143
|
headers:
|
138
144
|
authorization:
|
139
|
-
- Basic
|
145
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
146
|
+
user-agent:
|
147
|
+
- Recurly Ruby Client v0.4.6
|
140
148
|
content-type:
|
141
149
|
- application/xml
|
142
150
|
accept:
|
143
151
|
- "*/*"
|
144
|
-
user-agent:
|
145
|
-
- Ruby
|
146
152
|
connection:
|
147
153
|
- close
|
148
154
|
response: !ruby/struct:VCR::Response
|
149
155
|
status: !ruby/struct:VCR::ResponseStatus
|
150
156
|
code: 201
|
151
|
-
message: Created
|
157
|
+
message: "Created "
|
152
158
|
headers:
|
153
159
|
cache-control:
|
154
160
|
- no-cache
|
155
161
|
x-runtime:
|
156
|
-
- "
|
162
|
+
- "212"
|
157
163
|
content-type:
|
158
164
|
- application/xml; charset=utf-8
|
159
165
|
content-length:
|
160
|
-
- "
|
161
|
-
|
162
|
-
-
|
166
|
+
- "631"
|
167
|
+
server:
|
168
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
169
|
+
date:
|
170
|
+
- Thu, 21 Apr 2011 18:00:05 GMT
|
163
171
|
connection:
|
164
172
|
- close
|
165
|
-
|
166
|
-
-
|
173
|
+
set-cookie:
|
174
|
+
- _recurly_session=a14c7a1b9fd897649ab80533d396b92a; domain=.recurly.local; path=/; HttpOnly
|
167
175
|
body: |
|
168
176
|
<?xml version="1.0" encoding="UTF-8"?>
|
169
177
|
<charge type="charge">
|
170
|
-
<id>
|
178
|
+
<id>f3bfdaff3c88495fbff27e37163ff56b</id>
|
171
179
|
<account_code>charge-list-pending-1297746103</account_code>
|
180
|
+
<quantity type="integer">1</quantity>
|
181
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
172
182
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
173
|
-
<start_date type="datetime">2011-04-
|
183
|
+
<start_date type="datetime">2011-04-21T18:00:05Z</start_date>
|
174
184
|
<end_date nil="true" type="datetime"></end_date>
|
175
185
|
<invoice_number nil="true" type="integer"></invoice_number>
|
176
186
|
<description>charge description</description>
|
177
|
-
<created_at type="datetime">2011-04-
|
187
|
+
<created_at type="datetime">2011-04-21T18:00:05Z</created_at>
|
178
188
|
</charge>
|
179
189
|
|
180
190
|
http_version: "1.1"
|
181
191
|
- !ruby/struct:VCR::HTTPInteraction
|
182
192
|
request: !ruby/struct:VCR::Request
|
183
193
|
method: :post
|
184
|
-
uri: http://api-test%
|
194
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml
|
185
195
|
body: |
|
186
196
|
<?xml version="1.0" encoding="UTF-8"?>
|
187
197
|
<charge>
|
@@ -191,117 +201,129 @@
|
|
191
201
|
|
192
202
|
headers:
|
193
203
|
authorization:
|
194
|
-
- Basic
|
204
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
205
|
+
user-agent:
|
206
|
+
- Recurly Ruby Client v0.4.6
|
195
207
|
content-type:
|
196
208
|
- application/xml
|
197
209
|
accept:
|
198
210
|
- "*/*"
|
199
|
-
user-agent:
|
200
|
-
- Ruby
|
201
211
|
connection:
|
202
212
|
- close
|
203
213
|
response: !ruby/struct:VCR::Response
|
204
214
|
status: !ruby/struct:VCR::ResponseStatus
|
205
215
|
code: 201
|
206
|
-
message: Created
|
216
|
+
message: "Created "
|
207
217
|
headers:
|
208
218
|
cache-control:
|
209
219
|
- no-cache
|
210
220
|
x-runtime:
|
211
|
-
- "
|
221
|
+
- "217"
|
212
222
|
content-type:
|
213
223
|
- application/xml; charset=utf-8
|
214
224
|
content-length:
|
215
|
-
- "
|
216
|
-
|
217
|
-
-
|
225
|
+
- "631"
|
226
|
+
server:
|
227
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
228
|
+
date:
|
229
|
+
- Thu, 21 Apr 2011 18:00:07 GMT
|
218
230
|
connection:
|
219
231
|
- close
|
220
|
-
|
221
|
-
-
|
232
|
+
set-cookie:
|
233
|
+
- _recurly_session=85406e7e808517d90f8e6669f5e5186a; domain=.recurly.local; path=/; HttpOnly
|
222
234
|
body: |
|
223
235
|
<?xml version="1.0" encoding="UTF-8"?>
|
224
236
|
<charge type="charge">
|
225
|
-
<id>
|
237
|
+
<id>e4f0b224f18e4303ae6adb0dc49bee48</id>
|
226
238
|
<account_code>charge-list-pending-1297746103</account_code>
|
239
|
+
<quantity type="integer">1</quantity>
|
240
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
227
241
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
228
|
-
<start_date type="datetime">2011-04-
|
242
|
+
<start_date type="datetime">2011-04-21T18:00:07Z</start_date>
|
229
243
|
<end_date nil="true" type="datetime"></end_date>
|
230
244
|
<invoice_number nil="true" type="integer"></invoice_number>
|
231
245
|
<description>charge description</description>
|
232
|
-
<created_at type="datetime">2011-04-
|
246
|
+
<created_at type="datetime">2011-04-21T18:00:07Z</created_at>
|
233
247
|
</charge>
|
234
248
|
|
235
249
|
http_version: "1.1"
|
236
250
|
- !ruby/struct:VCR::HTTPInteraction
|
237
251
|
request: !ruby/struct:VCR::Request
|
238
252
|
method: :get
|
239
|
-
uri: http://api-test%
|
253
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-list-pending-1297746103/charges.xml?show=pending
|
240
254
|
body:
|
241
255
|
headers:
|
242
256
|
authorization:
|
243
|
-
- Basic
|
257
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
258
|
+
user-agent:
|
259
|
+
- Recurly Ruby Client v0.4.6
|
244
260
|
accept:
|
245
261
|
- application/xml
|
246
262
|
accept-encoding:
|
247
263
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
248
|
-
user-agent:
|
249
|
-
- Ruby
|
250
264
|
connection:
|
251
265
|
- close
|
252
266
|
response: !ruby/struct:VCR::Response
|
253
267
|
status: !ruby/struct:VCR::ResponseStatus
|
254
268
|
code: 200
|
255
|
-
message: OK
|
269
|
+
message: "OK "
|
256
270
|
headers:
|
257
271
|
x-runtime:
|
258
|
-
- "
|
272
|
+
- "193"
|
259
273
|
content-type:
|
260
274
|
- application/xml; charset=utf-8
|
261
275
|
etag:
|
262
|
-
- "\"
|
276
|
+
- "\"4025a1a5d51b8e146f5dc7faeae83597\""
|
263
277
|
cache-control:
|
264
278
|
- private, max-age=0, must-revalidate
|
265
279
|
content-length:
|
266
|
-
- "
|
267
|
-
|
268
|
-
-
|
280
|
+
- "1921"
|
281
|
+
server:
|
282
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
283
|
+
date:
|
284
|
+
- Thu, 21 Apr 2011 18:00:08 GMT
|
269
285
|
connection:
|
270
286
|
- close
|
271
|
-
|
272
|
-
-
|
287
|
+
set-cookie:
|
288
|
+
- _recurly_session=685adf6d1d5aa1ecb7b684ca9abe89cb; domain=.recurly.local; path=/; HttpOnly
|
273
289
|
body: |
|
274
290
|
<?xml version="1.0" encoding="UTF-8"?>
|
275
291
|
<charges type="array">
|
276
292
|
<charge type="charge">
|
277
|
-
<id>
|
293
|
+
<id>e4f0b224f18e4303ae6adb0dc49bee48</id>
|
278
294
|
<account_code>charge-list-pending-1297746103</account_code>
|
295
|
+
<quantity type="integer">1</quantity>
|
296
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
279
297
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
280
|
-
<start_date type="datetime">2011-04-
|
298
|
+
<start_date type="datetime">2011-04-21T18:00:07Z</start_date>
|
281
299
|
<end_date nil="true" type="datetime"></end_date>
|
282
300
|
<invoice_number nil="true" type="integer"></invoice_number>
|
283
301
|
<description>charge description</description>
|
284
|
-
<created_at type="datetime">2011-04-
|
302
|
+
<created_at type="datetime">2011-04-21T18:00:07Z</created_at>
|
285
303
|
</charge>
|
286
304
|
<charge type="charge">
|
287
|
-
<id>
|
305
|
+
<id>f3bfdaff3c88495fbff27e37163ff56b</id>
|
288
306
|
<account_code>charge-list-pending-1297746103</account_code>
|
307
|
+
<quantity type="integer">1</quantity>
|
308
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
289
309
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
290
|
-
<start_date type="datetime">2011-04-
|
310
|
+
<start_date type="datetime">2011-04-21T18:00:05Z</start_date>
|
291
311
|
<end_date nil="true" type="datetime"></end_date>
|
292
312
|
<invoice_number nil="true" type="integer"></invoice_number>
|
293
313
|
<description>charge description</description>
|
294
|
-
<created_at type="datetime">2011-04-
|
314
|
+
<created_at type="datetime">2011-04-21T18:00:05Z</created_at>
|
295
315
|
</charge>
|
296
316
|
<charge type="charge">
|
297
|
-
<id>
|
317
|
+
<id>e21678f8fb694e01b5939ffb8b30b7fc</id>
|
298
318
|
<account_code>charge-list-pending-1297746103</account_code>
|
319
|
+
<quantity type="integer">1</quantity>
|
320
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
299
321
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
300
|
-
<start_date type="datetime">2011-04-
|
322
|
+
<start_date type="datetime">2011-04-21T18:00:03Z</start_date>
|
301
323
|
<end_date nil="true" type="datetime"></end_date>
|
302
324
|
<invoice_number nil="true" type="integer"></invoice_number>
|
303
325
|
<description>charge description</description>
|
304
|
-
<created_at type="datetime">2011-04-
|
326
|
+
<created_at type="datetime">2011-04-21T18:00:03Z</created_at>
|
305
327
|
</charge>
|
306
328
|
</charges>
|
307
329
|
|
@@ -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-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "255"
|
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:32 GMT
|
49
51
|
connection:
|
50
52
|
- close
|
51
|
-
|
52
|
-
-
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=a04e82f8ff7c2ecbb24abbb3dae0827a; 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>856b1296dbe8405fac8225d8f1ab3cac</hosted_login_token>
|
68
|
+
<created_at type="datetime">2011-04-21T18:00:32Z</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: :post
|
74
|
-
uri: http://api-test%
|
76
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges.xml
|
75
77
|
body: |
|
76
78
|
<?xml version="1.0" encoding="UTF-8"?>
|
77
79
|
<charge>
|
@@ -81,96 +83,104 @@
|
|
81
83
|
|
82
84
|
headers:
|
83
85
|
authorization:
|
84
|
-
- Basic
|
86
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
87
|
+
user-agent:
|
88
|
+
- Recurly Ruby Client v0.4.6
|
85
89
|
content-type:
|
86
90
|
- application/xml
|
87
91
|
accept:
|
88
92
|
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
93
|
connection:
|
92
94
|
- close
|
93
95
|
response: !ruby/struct:VCR::Response
|
94
96
|
status: !ruby/struct:VCR::ResponseStatus
|
95
97
|
code: 201
|
96
|
-
message: Created
|
98
|
+
message: "Created "
|
97
99
|
headers:
|
98
100
|
cache-control:
|
99
101
|
- no-cache
|
100
102
|
x-runtime:
|
101
|
-
- "
|
103
|
+
- "262"
|
102
104
|
content-type:
|
103
105
|
- application/xml; charset=utf-8
|
104
106
|
content-length:
|
105
|
-
- "
|
106
|
-
|
107
|
-
-
|
107
|
+
- "624"
|
108
|
+
server:
|
109
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
110
|
+
date:
|
111
|
+
- Thu, 21 Apr 2011 18:00:34 GMT
|
108
112
|
connection:
|
109
113
|
- close
|
110
|
-
|
111
|
-
-
|
114
|
+
set-cookie:
|
115
|
+
- _recurly_session=c1761949e36da37df70aaa8a67e13aee; domain=.recurly.local; path=/; HttpOnly
|
112
116
|
body: |
|
113
117
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
118
|
<charge type="charge">
|
115
|
-
<id>
|
119
|
+
<id>d37cbbc5051f4ef4ab616355be964fca</id>
|
116
120
|
<account_code>charge-lookup-1297746103</account_code>
|
121
|
+
<quantity type="integer">1</quantity>
|
122
|
+
<unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
|
117
123
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-04-
|
124
|
+
<start_date type="datetime">2011-04-21T18:00:34Z</start_date>
|
119
125
|
<end_date nil="true" type="datetime"></end_date>
|
120
126
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
127
|
<description>inconvenience fee</description>
|
122
|
-
<created_at type="datetime">2011-04-
|
128
|
+
<created_at type="datetime">2011-04-21T18:00:34Z</created_at>
|
123
129
|
</charge>
|
124
130
|
|
125
131
|
http_version: "1.1"
|
126
132
|
- !ruby/struct:VCR::HTTPInteraction
|
127
133
|
request: !ruby/struct:VCR::Request
|
128
134
|
method: :get
|
129
|
-
uri: http://api-test%
|
135
|
+
uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/d37cbbc5051f4ef4ab616355be964fca.xml
|
130
136
|
body:
|
131
137
|
headers:
|
132
138
|
authorization:
|
133
|
-
- Basic
|
139
|
+
- Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
|
140
|
+
user-agent:
|
141
|
+
- Recurly Ruby Client v0.4.6
|
134
142
|
accept:
|
135
143
|
- application/xml
|
136
144
|
accept-encoding:
|
137
145
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
|
-
user-agent:
|
139
|
-
- Ruby
|
140
146
|
connection:
|
141
147
|
- close
|
142
148
|
response: !ruby/struct:VCR::Response
|
143
149
|
status: !ruby/struct:VCR::ResponseStatus
|
144
150
|
code: 200
|
145
|
-
message: OK
|
151
|
+
message: "OK "
|
146
152
|
headers:
|
147
153
|
x-runtime:
|
148
|
-
- "
|
154
|
+
- "206"
|
149
155
|
content-type:
|
150
156
|
- application/xml; charset=utf-8
|
151
157
|
etag:
|
152
|
-
- "\"
|
158
|
+
- "\"808963d40684e5d2f18e01db2e72ab3c\""
|
153
159
|
cache-control:
|
154
160
|
- private, max-age=0, must-revalidate
|
155
161
|
content-length:
|
156
|
-
- "
|
157
|
-
|
158
|
-
-
|
162
|
+
- "624"
|
163
|
+
server:
|
164
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
|
165
|
+
date:
|
166
|
+
- Thu, 21 Apr 2011 18:00:36 GMT
|
159
167
|
connection:
|
160
168
|
- close
|
161
|
-
|
162
|
-
-
|
169
|
+
set-cookie:
|
170
|
+
- _recurly_session=c498ecc22f7f2ebcb29234d882adfba8; domain=.recurly.local; path=/; HttpOnly
|
163
171
|
body: |
|
164
172
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
173
|
<charge type="charge">
|
166
|
-
<id>
|
174
|
+
<id>d37cbbc5051f4ef4ab616355be964fca</id>
|
167
175
|
<account_code>charge-lookup-1297746103</account_code>
|
176
|
+
<quantity type="integer">1</quantity>
|
177
|
+
<unit_amount_in_cents type="integer">1315</unit_amount_in_cents>
|
168
178
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
169
|
-
<start_date type="datetime">2011-04-
|
179
|
+
<start_date type="datetime">2011-04-21T18:00:34Z</start_date>
|
170
180
|
<end_date nil="true" type="datetime"></end_date>
|
171
181
|
<invoice_number nil="true" type="integer"></invoice_number>
|
172
182
|
<description>inconvenience fee</description>
|
173
|
-
<created_at type="datetime">2011-04-
|
183
|
+
<created_at type="datetime">2011-04-21T18:00:34Z</created_at>
|
174
184
|
</charge>
|
175
185
|
|
176
186
|
http_version: "1.1"
|