recurly 0.2.7 → 0.2.8
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/formats/xml_with_pagination.rb +11 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transaction_spec.rb +10 -6
- data/spec/vcr/transaction/all/1289558212.yml +78 -0
- data/spec/vcr/transaction/create-no-account/1289558212.yml +93 -0
- data/spec/vcr/transaction/create-with-account/1289558212.yml +226 -0
- data/spec/vcr/transaction/list-filled/1289558212.yml +433 -0
- data/spec/vcr/transaction/list-initial/1289558212.yml +210 -0
- data/spec/vcr/transaction/lookup/1289558212.yml +540 -0
- data/spec/vcr/transaction/refund/1289558212.yml +290 -0
- data/spec/vcr/transaction/void/1289558212.yml +366 -0
- metadata +36 -26
@@ -0,0 +1,433 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-list-filled-1289558212</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
authorization:
|
18
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
19
|
+
content-type:
|
20
|
+
- application/xml
|
21
|
+
accept:
|
22
|
+
- "*/*"
|
23
|
+
user-agent:
|
24
|
+
- Ruby
|
25
|
+
connection:
|
26
|
+
- close
|
27
|
+
response: !ruby/struct:VCR::Response
|
28
|
+
status: !ruby/struct:VCR::ResponseStatus
|
29
|
+
code: 201
|
30
|
+
message: Created
|
31
|
+
headers:
|
32
|
+
server:
|
33
|
+
- nginx/0.7.65
|
34
|
+
date:
|
35
|
+
- Fri, 12 Nov 2010 10:36:52 GMT
|
36
|
+
content-type:
|
37
|
+
- application/xml; charset=utf-8
|
38
|
+
connection:
|
39
|
+
- close
|
40
|
+
cache-control:
|
41
|
+
- no-cache
|
42
|
+
location:
|
43
|
+
- https://recurlytest3-test.recurly.com/accounts/transaction-list-filled-1289558212
|
44
|
+
x-runtime:
|
45
|
+
- "261"
|
46
|
+
content-length:
|
47
|
+
- "601"
|
48
|
+
set-cookie:
|
49
|
+
- account_credentials=a73dd001d924fb2a00d4cc53bcb3ef242c77d82d065e8d9b88d5319ce5817f213d6a0d93e52a6dbcbac6409a0c981bb6e2f91f63eb8f346eb7617177a678a8bb%3A%3A; domain=.recurly.com; path=/
|
50
|
+
- ""
|
51
|
+
- _recurly_session=fd11fd2a85b4a36fa2bc04b746a50155; domain=.recurly.com; path=/; secure; HttpOnly
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<account>
|
55
|
+
<id>transaction-list-filled-1289558212</id>
|
56
|
+
<account_code>transaction-list-filled-1289558212</account_code>
|
57
|
+
<username></username>
|
58
|
+
<email>verena@test.com</email>
|
59
|
+
<first_name>Verena</first_name>
|
60
|
+
<last_name>Test</last_name>
|
61
|
+
<company_name>Recurly Ruby Gem</company_name>
|
62
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
63
|
+
<closed type="boolean">false</closed>
|
64
|
+
<hosted_login_token>ff04d94234ab4e46986b71ee5e51700d</hosted_login_token>
|
65
|
+
<created_at type="datetime">2010-11-12T10:36:52Z</created_at>
|
66
|
+
<state>active</state>
|
67
|
+
</account>
|
68
|
+
|
69
|
+
http_version: "1.1"
|
70
|
+
- !ruby/struct:VCR::HTTPInteraction
|
71
|
+
request: !ruby/struct:VCR::Request
|
72
|
+
method: :put
|
73
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-filled-1289558212/billing_info.xml
|
74
|
+
body: |
|
75
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
76
|
+
<billing-info>
|
77
|
+
<address1>123 Test St</address1>
|
78
|
+
<city>San Francisco</city>
|
79
|
+
<state>CA</state>
|
80
|
+
<zip>94115</zip>
|
81
|
+
<country>US</country>
|
82
|
+
<credit-card>
|
83
|
+
<number>1</number>
|
84
|
+
<year type="integer">2011</year>
|
85
|
+
<month type="integer">11</month>
|
86
|
+
<verification-value>123</verification-value>
|
87
|
+
</credit-card>
|
88
|
+
<account-code>transaction-list-filled-1289558212</account-code>
|
89
|
+
<first-name>Verena</first-name>
|
90
|
+
<last-name>Test</last-name>
|
91
|
+
</billing-info>
|
92
|
+
|
93
|
+
headers:
|
94
|
+
authorization:
|
95
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
96
|
+
content-type:
|
97
|
+
- application/xml
|
98
|
+
accept:
|
99
|
+
- "*/*"
|
100
|
+
user-agent:
|
101
|
+
- Ruby
|
102
|
+
connection:
|
103
|
+
- close
|
104
|
+
response: !ruby/struct:VCR::Response
|
105
|
+
status: !ruby/struct:VCR::ResponseStatus
|
106
|
+
code: 200
|
107
|
+
message: OK
|
108
|
+
headers:
|
109
|
+
server:
|
110
|
+
- nginx/0.7.65
|
111
|
+
date:
|
112
|
+
- Fri, 12 Nov 2010 10:36:55 GMT
|
113
|
+
content-type:
|
114
|
+
- application/xml; charset=utf-8
|
115
|
+
connection:
|
116
|
+
- close
|
117
|
+
x-runtime:
|
118
|
+
- "50"
|
119
|
+
etag:
|
120
|
+
- "\"578f44ae46a9c396ba513590c9cfc5ed\""
|
121
|
+
cache-control:
|
122
|
+
- private, max-age=0, must-revalidate
|
123
|
+
content-length:
|
124
|
+
- "648"
|
125
|
+
set-cookie:
|
126
|
+
- _recurly_session=9f11a8f9e9a8f6a3aa2e4dcda4e1a5d5; domain=.recurly.com; path=/; secure; HttpOnly
|
127
|
+
x-ua-compatible:
|
128
|
+
- IE=Edge
|
129
|
+
body: |
|
130
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
131
|
+
<billing_info>
|
132
|
+
<account_code>transaction-list-filled-1289558212</account_code>
|
133
|
+
<first_name>Verena</first_name>
|
134
|
+
<last_name>Test</last_name>
|
135
|
+
<address1>123 Test St</address1>
|
136
|
+
<address2></address2>
|
137
|
+
<city>San Francisco</city>
|
138
|
+
<state>CA</state>
|
139
|
+
<country>US</country>
|
140
|
+
<zip>94115</zip>
|
141
|
+
<phone></phone>
|
142
|
+
<vat_number></vat_number>
|
143
|
+
<ip_address></ip_address>
|
144
|
+
<credit_card>
|
145
|
+
<type>bogus</type>
|
146
|
+
<last_four>1</last_four>
|
147
|
+
<month type="integer">11</month>
|
148
|
+
<year type="integer">2011</year>
|
149
|
+
</credit_card>
|
150
|
+
<updated_at type="datetime">2010-11-12T10:36:55Z</updated_at>
|
151
|
+
</billing_info>
|
152
|
+
|
153
|
+
http_version: "1.1"
|
154
|
+
- !ruby/struct:VCR::HTTPInteraction
|
155
|
+
request: !ruby/struct:VCR::Request
|
156
|
+
method: :post
|
157
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
|
158
|
+
body: |
|
159
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
160
|
+
<transaction>
|
161
|
+
<account>
|
162
|
+
<account-code>transaction-list-filled-1289558212</account-code>
|
163
|
+
</account>
|
164
|
+
<amount-in-cents type="integer">100</amount-in-cents>
|
165
|
+
<description>one</description>
|
166
|
+
</transaction>
|
167
|
+
|
168
|
+
headers:
|
169
|
+
authorization:
|
170
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
171
|
+
content-type:
|
172
|
+
- application/xml
|
173
|
+
accept:
|
174
|
+
- "*/*"
|
175
|
+
user-agent:
|
176
|
+
- Ruby
|
177
|
+
connection:
|
178
|
+
- close
|
179
|
+
response: !ruby/struct:VCR::Response
|
180
|
+
status: !ruby/struct:VCR::ResponseStatus
|
181
|
+
code: 201
|
182
|
+
message: Created
|
183
|
+
headers:
|
184
|
+
server:
|
185
|
+
- nginx/0.7.65
|
186
|
+
date:
|
187
|
+
- Fri, 12 Nov 2010 10:36:53 GMT
|
188
|
+
content-type:
|
189
|
+
- application/xml; charset=utf-8
|
190
|
+
connection:
|
191
|
+
- close
|
192
|
+
cache-control:
|
193
|
+
- no-cache
|
194
|
+
location:
|
195
|
+
- https://recurlytest3-test.recurly.com/transactions/37a9c627cff243d9852895c0f5289cd4
|
196
|
+
x-runtime:
|
197
|
+
- "302"
|
198
|
+
content-length:
|
199
|
+
- "855"
|
200
|
+
set-cookie:
|
201
|
+
- _recurly_session=fdd70af954451c141cab33a688a97e9b; domain=.recurly.com; path=/; secure; HttpOnly
|
202
|
+
body: |
|
203
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
204
|
+
<transaction type="Payment">
|
205
|
+
<id>37a9c627cff243d9852895c0f5289cd4</id>
|
206
|
+
<account_code>transaction-list-filled-1289558212</account_code>
|
207
|
+
<action>purchase</action>
|
208
|
+
<date type="datetime">2010-11-12T10:36:53Z</date>
|
209
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
210
|
+
<status>success</status>
|
211
|
+
<message>Test Gateway: Successful test transaction</message>
|
212
|
+
<reference></reference>
|
213
|
+
<cvv_result code="M">Match</cvv_result>
|
214
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
215
|
+
<avs_result_street></avs_result_street>
|
216
|
+
<avs_result_postal></avs_result_postal>
|
217
|
+
<test type="boolean">true</test>
|
218
|
+
<voidable type="boolean">true</voidable>
|
219
|
+
<refundable type="boolean">true</refundable>
|
220
|
+
<credit_card>
|
221
|
+
<type>bogus</type>
|
222
|
+
<last_four>1</last_four>
|
223
|
+
</credit_card>
|
224
|
+
</transaction>
|
225
|
+
|
226
|
+
http_version: "1.1"
|
227
|
+
- !ruby/struct:VCR::HTTPInteraction
|
228
|
+
request: !ruby/struct:VCR::Request
|
229
|
+
method: :post
|
230
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
|
231
|
+
body: |
|
232
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
233
|
+
<transaction>
|
234
|
+
<account>
|
235
|
+
<account-code>transaction-list-filled-1289558212</account-code>
|
236
|
+
</account>
|
237
|
+
<amount-in-cents type="integer">200</amount-in-cents>
|
238
|
+
<description>two</description>
|
239
|
+
</transaction>
|
240
|
+
|
241
|
+
headers:
|
242
|
+
authorization:
|
243
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
244
|
+
content-type:
|
245
|
+
- application/xml
|
246
|
+
accept:
|
247
|
+
- "*/*"
|
248
|
+
user-agent:
|
249
|
+
- Ruby
|
250
|
+
connection:
|
251
|
+
- close
|
252
|
+
response: !ruby/struct:VCR::Response
|
253
|
+
status: !ruby/struct:VCR::ResponseStatus
|
254
|
+
code: 201
|
255
|
+
message: Created
|
256
|
+
headers:
|
257
|
+
server:
|
258
|
+
- nginx/0.7.65
|
259
|
+
date:
|
260
|
+
- Fri, 12 Nov 2010 10:36:56 GMT
|
261
|
+
content-type:
|
262
|
+
- application/xml; charset=utf-8
|
263
|
+
connection:
|
264
|
+
- close
|
265
|
+
cache-control:
|
266
|
+
- no-cache
|
267
|
+
location:
|
268
|
+
- https://recurlytest3-test.recurly.com/transactions/21ee07d93c75401291a9d5f4c99bf003
|
269
|
+
x-runtime:
|
270
|
+
- "343"
|
271
|
+
content-length:
|
272
|
+
- "855"
|
273
|
+
set-cookie:
|
274
|
+
- _recurly_session=66e88e74d1ec71941f6146cf3e027ca8; domain=.recurly.com; path=/; secure; HttpOnly
|
275
|
+
body: |
|
276
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
277
|
+
<transaction type="Payment">
|
278
|
+
<id>21ee07d93c75401291a9d5f4c99bf003</id>
|
279
|
+
<account_code>transaction-list-filled-1289558212</account_code>
|
280
|
+
<action>purchase</action>
|
281
|
+
<date type="datetime">2010-11-12T10:36:56Z</date>
|
282
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
283
|
+
<status>success</status>
|
284
|
+
<message>Test Gateway: Successful test transaction</message>
|
285
|
+
<reference></reference>
|
286
|
+
<cvv_result code="M">Match</cvv_result>
|
287
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
288
|
+
<avs_result_street></avs_result_street>
|
289
|
+
<avs_result_postal></avs_result_postal>
|
290
|
+
<test type="boolean">true</test>
|
291
|
+
<voidable type="boolean">true</voidable>
|
292
|
+
<refundable type="boolean">true</refundable>
|
293
|
+
<credit_card>
|
294
|
+
<type>bogus</type>
|
295
|
+
<last_four>1</last_four>
|
296
|
+
</credit_card>
|
297
|
+
</transaction>
|
298
|
+
|
299
|
+
http_version: "1.1"
|
300
|
+
- !ruby/struct:VCR::HTTPInteraction
|
301
|
+
request: !ruby/struct:VCR::Request
|
302
|
+
method: :post
|
303
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
|
304
|
+
body: |
|
305
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
306
|
+
<transaction>
|
307
|
+
<account>
|
308
|
+
<account-code>transaction-list-filled-1289558212</account-code>
|
309
|
+
</account>
|
310
|
+
<amount-in-cents type="integer">300</amount-in-cents>
|
311
|
+
<description>three</description>
|
312
|
+
</transaction>
|
313
|
+
|
314
|
+
headers:
|
315
|
+
authorization:
|
316
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
317
|
+
content-type:
|
318
|
+
- application/xml
|
319
|
+
accept:
|
320
|
+
- "*/*"
|
321
|
+
user-agent:
|
322
|
+
- Ruby
|
323
|
+
connection:
|
324
|
+
- close
|
325
|
+
response: !ruby/struct:VCR::Response
|
326
|
+
status: !ruby/struct:VCR::ResponseStatus
|
327
|
+
code: 201
|
328
|
+
message: Created
|
329
|
+
headers:
|
330
|
+
server:
|
331
|
+
- nginx/0.7.65
|
332
|
+
date:
|
333
|
+
- Fri, 12 Nov 2010 10:36:54 GMT
|
334
|
+
content-type:
|
335
|
+
- application/xml; charset=utf-8
|
336
|
+
connection:
|
337
|
+
- close
|
338
|
+
cache-control:
|
339
|
+
- no-cache
|
340
|
+
location:
|
341
|
+
- https://recurlytest3-test.recurly.com/transactions/6e4e51593413402d97a05c4f15b7d992
|
342
|
+
x-runtime:
|
343
|
+
- "172"
|
344
|
+
content-length:
|
345
|
+
- "855"
|
346
|
+
set-cookie:
|
347
|
+
- _recurly_session=a77d0dc2888424cd48c1147c16f10a01; domain=.recurly.com; path=/; secure; HttpOnly
|
348
|
+
body: |
|
349
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
350
|
+
<transaction type="Payment">
|
351
|
+
<id>6e4e51593413402d97a05c4f15b7d992</id>
|
352
|
+
<account_code>transaction-list-filled-1289558212</account_code>
|
353
|
+
<action>purchase</action>
|
354
|
+
<date type="datetime">2010-11-12T10:36:54Z</date>
|
355
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
356
|
+
<status>success</status>
|
357
|
+
<message>Test Gateway: Successful test transaction</message>
|
358
|
+
<reference></reference>
|
359
|
+
<cvv_result code="M">Match</cvv_result>
|
360
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
361
|
+
<avs_result_street></avs_result_street>
|
362
|
+
<avs_result_postal></avs_result_postal>
|
363
|
+
<test type="boolean">true</test>
|
364
|
+
<voidable type="boolean">true</voidable>
|
365
|
+
<refundable type="boolean">true</refundable>
|
366
|
+
<credit_card>
|
367
|
+
<type>bogus</type>
|
368
|
+
<last_four>1</last_four>
|
369
|
+
</credit_card>
|
370
|
+
</transaction>
|
371
|
+
|
372
|
+
http_version: "1.1"
|
373
|
+
- !ruby/struct:VCR::HTTPInteraction
|
374
|
+
request: !ruby/struct:VCR::Request
|
375
|
+
method: :get
|
376
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-filled-1289558212/transactions
|
377
|
+
body:
|
378
|
+
headers:
|
379
|
+
authorization:
|
380
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
381
|
+
accept:
|
382
|
+
- application/xml
|
383
|
+
accept-encoding:
|
384
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
385
|
+
user-agent:
|
386
|
+
- Ruby
|
387
|
+
connection:
|
388
|
+
- close
|
389
|
+
response: !ruby/struct:VCR::Response
|
390
|
+
status: !ruby/struct:VCR::ResponseStatus
|
391
|
+
code: 200
|
392
|
+
message: OK
|
393
|
+
headers:
|
394
|
+
server:
|
395
|
+
- nginx/0.7.65
|
396
|
+
date:
|
397
|
+
- Fri, 12 Nov 2010 10:36:57 GMT
|
398
|
+
content-type:
|
399
|
+
- application/xml; charset=utf-8
|
400
|
+
transfer-encoding:
|
401
|
+
- chunked
|
402
|
+
connection:
|
403
|
+
- close
|
404
|
+
x-runtime:
|
405
|
+
- "31"
|
406
|
+
etag:
|
407
|
+
- "\"27da03eaa1eb3f810abba7b669b6fd4f\""
|
408
|
+
cache-control:
|
409
|
+
- private, max-age=0, must-revalidate
|
410
|
+
set-cookie:
|
411
|
+
- _recurly_session=34b18e919a0704a3e003ff290969f416; domain=.recurly.com; path=/; secure; HttpOnly
|
412
|
+
x-ua-compatible:
|
413
|
+
- IE=Edge
|
414
|
+
content-encoding:
|
415
|
+
- gzip
|
416
|
+
body: !binary |
|
417
|
+
H4sIAAAAAAAAA+1WTW/bMAy991cIvqeWZDuOAke9DNupwIB150CR6NaAYweS
|
418
|
+
nK379aP8kY9lK9YBxXrIyTb5+ERReiaLu+/bmuzBuqptVhG7pRGBRremah5X
|
419
|
+
0deHj7NFdCdvCm9V45T2iHLEP+9gFem2rqG3RPKGkEJ31kLj1zv1CCOkajw8
|
420
|
+
go0kK+JTd4/fgf0tNqNFPPl6oG+9qtdIbSuYFj8wp0V85h8ijtmOmXxWz1tk
|
421
|
+
6DNFysrIOaSQsUwkKUtSyo3IFc10WrJskxsheBEjaEArrdsOd4ZlAXlSiVld
|
422
|
+
OT8rK6yDmTG+EFm24AwjzwImjlApueusflIOAqY3DF6j/FSz8OqrLUSSU0Zn
|
423
|
+
jCHzA+XLZL7M0hldLCnWJ4Cm5LZ9blWz1rjBi/okAa7OMWOk88p3TrpOa3Cu
|
424
|
+
iMfvIaMtmvAg5QM4Tz7hct/U85J8GbBlVxMfHCfFKOIpZCCwUALeBw2yiI/v
|
425
|
+
g0/v92sLrqs9CTVdRfeRvFdeP+E1Obim/e3dOfZDJL94C+CJMgZZHFGNIbsW
|
426
|
+
0697OrINVLe47UPoBdfa9RSY2xE02cYDOwSvB+5z7GgbsEMtelVs2rYGhZLw
|
427
|
+
tsNTDp5x8X1bGbWpp3P+BTh5RzBWrGtegB/9IQDXOd743nDy/UcFcAZA8a4n
|
428
|
+
Os9SyrhgSpisTLUQm5LS5D0qYP56BfCrAlBoVwVElz0gyZXQc57rsuRpYsQi
|
429
|
+
Cz9xTcvw1AZ7y/vrAcnrFcCuCrgqIDSnSwUIlRvGGaNMb9J5CipPN1RzAM6Z
|
430
|
+
WCRvNAWpzj+1tvqhwgj0b6NQ9hYyCE34Ogf9pzmoVHWYi/96EBrxL05CZ4OR
|
431
|
+
kzc/AS1q0BLvDAAA
|
432
|
+
|
433
|
+
http_version: "1.1"
|
@@ -0,0 +1,210 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-list-initial-1289558212</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
authorization:
|
18
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
19
|
+
content-type:
|
20
|
+
- application/xml
|
21
|
+
accept:
|
22
|
+
- "*/*"
|
23
|
+
user-agent:
|
24
|
+
- Ruby
|
25
|
+
connection:
|
26
|
+
- close
|
27
|
+
response: !ruby/struct:VCR::Response
|
28
|
+
status: !ruby/struct:VCR::ResponseStatus
|
29
|
+
code: 201
|
30
|
+
message: Created
|
31
|
+
headers:
|
32
|
+
server:
|
33
|
+
- nginx/0.7.65
|
34
|
+
date:
|
35
|
+
- Fri, 12 Nov 2010 10:36:53 GMT
|
36
|
+
content-type:
|
37
|
+
- application/xml; charset=utf-8
|
38
|
+
connection:
|
39
|
+
- close
|
40
|
+
cache-control:
|
41
|
+
- no-cache
|
42
|
+
location:
|
43
|
+
- https://recurlytest3-test.recurly.com/accounts/transaction-list-initial-1289558212
|
44
|
+
x-runtime:
|
45
|
+
- "433"
|
46
|
+
content-length:
|
47
|
+
- "603"
|
48
|
+
set-cookie:
|
49
|
+
- account_credentials=ac7117877b62b94b12083f99f353e89ac902b2f4382249fd2f61f48ff3eadba6dd17935e92d931d1c5716ad9652b28bf3908b4248db69df8e2f8626a4bf7dbcd%3A%3A; domain=.recurly.com; path=/
|
50
|
+
- ""
|
51
|
+
- _recurly_session=d697392270a39755c9d40b5c5f3b3767; domain=.recurly.com; path=/; secure; HttpOnly
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<account>
|
55
|
+
<id>transaction-list-initial-1289558212</id>
|
56
|
+
<account_code>transaction-list-initial-1289558212</account_code>
|
57
|
+
<username></username>
|
58
|
+
<email>verena@test.com</email>
|
59
|
+
<first_name>Verena</first_name>
|
60
|
+
<last_name>Test</last_name>
|
61
|
+
<company_name>Recurly Ruby Gem</company_name>
|
62
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
63
|
+
<closed type="boolean">false</closed>
|
64
|
+
<hosted_login_token>c9f9bdb776c648f4a3889f6697f561fd</hosted_login_token>
|
65
|
+
<created_at type="datetime">2010-11-12T10:36:53Z</created_at>
|
66
|
+
<state>active</state>
|
67
|
+
</account>
|
68
|
+
|
69
|
+
http_version: "1.1"
|
70
|
+
- !ruby/struct:VCR::HTTPInteraction
|
71
|
+
request: !ruby/struct:VCR::Request
|
72
|
+
method: :put
|
73
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-initial-1289558212/billing_info.xml
|
74
|
+
body: |
|
75
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
76
|
+
<billing-info>
|
77
|
+
<address1>123 Test St</address1>
|
78
|
+
<city>San Francisco</city>
|
79
|
+
<state>CA</state>
|
80
|
+
<zip>94115</zip>
|
81
|
+
<country>US</country>
|
82
|
+
<credit-card>
|
83
|
+
<number>1</number>
|
84
|
+
<year type="integer">2011</year>
|
85
|
+
<month type="integer">11</month>
|
86
|
+
<verification-value>123</verification-value>
|
87
|
+
</credit-card>
|
88
|
+
<account-code>transaction-list-initial-1289558212</account-code>
|
89
|
+
<first-name>Verena</first-name>
|
90
|
+
<last-name>Test</last-name>
|
91
|
+
</billing-info>
|
92
|
+
|
93
|
+
headers:
|
94
|
+
authorization:
|
95
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
96
|
+
content-type:
|
97
|
+
- application/xml
|
98
|
+
accept:
|
99
|
+
- "*/*"
|
100
|
+
user-agent:
|
101
|
+
- Ruby
|
102
|
+
connection:
|
103
|
+
- close
|
104
|
+
response: !ruby/struct:VCR::Response
|
105
|
+
status: !ruby/struct:VCR::ResponseStatus
|
106
|
+
code: 200
|
107
|
+
message: OK
|
108
|
+
headers:
|
109
|
+
server:
|
110
|
+
- nginx/0.7.65
|
111
|
+
date:
|
112
|
+
- Fri, 12 Nov 2010 10:36:51 GMT
|
113
|
+
content-type:
|
114
|
+
- application/xml; charset=utf-8
|
115
|
+
connection:
|
116
|
+
- close
|
117
|
+
x-runtime:
|
118
|
+
- "45"
|
119
|
+
etag:
|
120
|
+
- "\"e2786bdc2557f590230ab01f02873511\""
|
121
|
+
cache-control:
|
122
|
+
- private, max-age=0, must-revalidate
|
123
|
+
content-length:
|
124
|
+
- "649"
|
125
|
+
set-cookie:
|
126
|
+
- _recurly_session=03247a323e55fbb5328241b3ff3fb53d; domain=.recurly.com; path=/; secure; HttpOnly
|
127
|
+
x-ua-compatible:
|
128
|
+
- IE=Edge
|
129
|
+
body: |
|
130
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
131
|
+
<billing_info>
|
132
|
+
<account_code>transaction-list-initial-1289558212</account_code>
|
133
|
+
<first_name>Verena</first_name>
|
134
|
+
<last_name>Test</last_name>
|
135
|
+
<address1>123 Test St</address1>
|
136
|
+
<address2></address2>
|
137
|
+
<city>San Francisco</city>
|
138
|
+
<state>CA</state>
|
139
|
+
<country>US</country>
|
140
|
+
<zip>94115</zip>
|
141
|
+
<phone></phone>
|
142
|
+
<vat_number></vat_number>
|
143
|
+
<ip_address></ip_address>
|
144
|
+
<credit_card>
|
145
|
+
<type>bogus</type>
|
146
|
+
<last_four>1</last_four>
|
147
|
+
<month type="integer">11</month>
|
148
|
+
<year type="integer">2011</year>
|
149
|
+
</credit_card>
|
150
|
+
<updated_at type="datetime">2010-11-12T10:36:51Z</updated_at>
|
151
|
+
</billing_info>
|
152
|
+
|
153
|
+
http_version: "1.1"
|
154
|
+
- !ruby/struct:VCR::HTTPInteraction
|
155
|
+
request: !ruby/struct:VCR::Request
|
156
|
+
method: :get
|
157
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-initial-1289558212/transactions
|
158
|
+
body:
|
159
|
+
headers:
|
160
|
+
authorization:
|
161
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
162
|
+
accept:
|
163
|
+
- application/xml
|
164
|
+
accept-encoding:
|
165
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
166
|
+
user-agent:
|
167
|
+
- Ruby
|
168
|
+
connection:
|
169
|
+
- close
|
170
|
+
response: !ruby/struct:VCR::Response
|
171
|
+
status: !ruby/struct:VCR::ResponseStatus
|
172
|
+
code: 200
|
173
|
+
message: OK
|
174
|
+
headers:
|
175
|
+
server:
|
176
|
+
- nginx/0.7.65
|
177
|
+
date:
|
178
|
+
- Fri, 12 Nov 2010 10:36:54 GMT
|
179
|
+
content-type:
|
180
|
+
- application/xml; charset=utf-8
|
181
|
+
transfer-encoding:
|
182
|
+
- chunked
|
183
|
+
connection:
|
184
|
+
- close
|
185
|
+
x-runtime:
|
186
|
+
- "30"
|
187
|
+
etag:
|
188
|
+
- "\"ab19e78c0fb23867494865abfe65983d\""
|
189
|
+
cache-control:
|
190
|
+
- private, max-age=0, must-revalidate
|
191
|
+
set-cookie:
|
192
|
+
- _recurly_session=ae1cb4c5243188becf6eac471d8a6e09; domain=.recurly.com; path=/; secure; HttpOnly
|
193
|
+
x-ua-compatible:
|
194
|
+
- IE=Edge
|
195
|
+
content-encoding:
|
196
|
+
- gzip
|
197
|
+
body: !binary |
|
198
|
+
H4sIAAAAAAAAA32TTY/bIBCG7/kViLvXH5uk3shhL1V7WqnSpmdrjCdZJGxH
|
199
|
+
ME6b/voO/khibdUbMM+8vLxA8fq7seKCzpuu3cv0KZECW93Vpj3t5c/DtyiX
|
200
|
+
r2pVkIPWgyamvKDrGfdSd9bisCLVSohC985hS+UZTjghpiU8oZMqLeLH8sCf
|
201
|
+
0f2T3SRFPNcGkDoCW7K0Mzhv/qi8qI8dd7eTkx9wbVhhcMqSplZYryutEaps
|
202
|
+
m6zTbP2i8xy2FWKSrL88I5tgaKRB667nk3EsqB6SiKzxFJnWkAEbpVn+stnk
|
203
|
+
WZoV8aJjFglRKejpo3PmD4RZAIfVEamB5uTCkEyDUmVJmkRpyvKHJNs9b3eb
|
204
|
+
NEryXcIGAzRbbAaHpi01H/NzSgGHJTN1egLqvbp0pi7iaTLaadB7vkt1QE/i
|
205
|
+
O+/1C6478d5zat4feysoFB7yKOK5ZRRweER+EhpVEd/HY01fLqVD31sSIda9
|
206
|
+
fJPqDUh/8Eu5lebDXfyS/SrVOzlEElDXrOIFtLU4d2zfDnKiCVJPfOZb6yet
|
207
|
+
0g8S7O0OzWvTld2ay1F7yU5rIztmMXyMqussAv8Kcj0WcahMm4eQobLzJd/A
|
208
|
+
I1jP5FyeaI6sb//H34HQwTvdnz1/2cepV6u/vVg7zOoDAAA=
|
209
|
+
|
210
|
+
http_version: "1.1"
|