recurly 0.2.1 → 0.2.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.

Files changed (64) hide show
  1. data/README.md +3 -2
  2. data/lib/recurly/invoice.rb +1 -1
  3. data/lib/recurly/subscription.rb +1 -1
  4. data/lib/recurly/transaction.rb +1 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/subscription_spec.rb +29 -8
  7. data/spec/vcr/account/close/1286666929.yml +159 -0
  8. data/spec/vcr/account/create-blank/1286666929.yml +49 -0
  9. data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
  10. data/spec/vcr/account/create-min/1286666929.yml +63 -0
  11. data/spec/vcr/account/create/1286666929.yml +67 -0
  12. data/spec/vcr/account/find/1286666929.yml +122 -0
  13. data/spec/vcr/account/list/1286666929.yml +1565 -0
  14. data/spec/vcr/account/update/1286666929.yml +250 -0
  15. data/spec/vcr/billing/create/1286682213.yml +210 -0
  16. data/spec/vcr/billing/destroy/1286682213.yml +309 -0
  17. data/spec/vcr/billing/find/1286682213.yml +273 -0
  18. data/spec/vcr/billing/update/1286682213.yml +292 -0
  19. data/spec/vcr/charge/create/1286681273.yml +253 -0
  20. data/spec/vcr/charge/list-all/1286681273.yml +302 -0
  21. data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
  22. data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
  23. data/spec/vcr/charge/lookup/1286681273.yml +171 -0
  24. data/spec/vcr/credit/create/1286681343.yml +171 -0
  25. data/spec/vcr/credit/list/1286681343.yml +299 -0
  26. data/spec/vcr/credit/lookup/1286681343.yml +171 -0
  27. data/spec/vcr/invoice/create/1286679184.yml +337 -0
  28. data/spec/vcr/invoice/list/1286679184.yml +458 -0
  29. data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
  30. data/spec/vcr/plan/all.yml +306 -0
  31. data/spec/vcr/plan/delete/1286677585.yml +217 -0
  32. data/spec/vcr/plan/find.yml +196 -0
  33. data/spec/vcr/plan/update.yml +197 -0
  34. data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
  35. data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
  36. data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
  37. data/spec/vcr/subscription/change1/1287036910.yml +409 -0
  38. data/spec/vcr/subscription/change1/1287037152.yml +409 -0
  39. data/spec/vcr/subscription/change1/1287037325.yml +409 -0
  40. data/spec/vcr/subscription/change1/1287037363.yml +409 -0
  41. data/spec/vcr/subscription/change2/1287036910.yml +409 -0
  42. data/spec/vcr/subscription/change2/1287037152.yml +283 -0
  43. data/spec/vcr/subscription/change2/1287037325.yml +283 -0
  44. data/spec/vcr/subscription/change2/1287037363.yml +409 -0
  45. data/spec/vcr/subscription/create/1287036910.yml +224 -0
  46. data/spec/vcr/subscription/create/1287037152.yml +224 -0
  47. data/spec/vcr/subscription/create/1287037325.yml +224 -0
  48. data/spec/vcr/subscription/create/1287037363.yml +224 -0
  49. data/spec/vcr/subscription/find/1287036910.yml +283 -0
  50. data/spec/vcr/subscription/find/1287037152.yml +283 -0
  51. data/spec/vcr/subscription/find/1287037325.yml +283 -0
  52. data/spec/vcr/subscription/find/1287037363.yml +283 -0
  53. data/spec/vcr/subscription/refund/1287036910.yml +382 -0
  54. data/spec/vcr/subscription/refund/1287037325.yml +382 -0
  55. data/spec/vcr/subscription/refund/1287037363.yml +382 -0
  56. data/spec/vcr/transaction/all/1286674805.yml +387 -0
  57. data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
  58. data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
  59. data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
  60. data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
  61. data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
  62. data/spec/vcr/transaction/refund/1286674805.yml +220 -0
  63. data/spec/vcr/transaction/void/1286674805.yml +668 -0
  64. metadata +118 -4
@@ -0,0 +1,548 @@
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
+ <company-name>Recurly Ruby Gem</company-name>
10
+ <account-code>transaction-lookup-1286674805</account-code>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <first-name>Verena</first-name>
14
+ </account>
15
+
16
+ headers:
17
+ accept:
18
+ - "*/*"
19
+ connection:
20
+ - close
21
+ content-type:
22
+ - application/xml
23
+ authorization:
24
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
25
+ response: !ruby/struct:VCR::Response
26
+ status: !ruby/struct:VCR::ResponseStatus
27
+ code: 201
28
+ message: Created
29
+ headers:
30
+ location:
31
+ - https://recurlytest3-test.recurly.com/accounts/transaction-lookup-1286674805
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "594"
38
+ date:
39
+ - Thu, 14 Oct 2010 06:17:46 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "591"
44
+ set-cookie:
45
+ - account_credentials=72ec8248e8d917831d0520a49c2f9de2c39146a5e8f726f1b1aa9dafc24313d7aa4529c23491a85b7ae346b7f05d027f1e04d07d602ade78a22728a3952bc564%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=dfdd4a84e9cb1bf345630d2fbaa0188d; domain=.recurly.com; path=/; Secure; HttpOnly
48
+ cache-control:
49
+ - no-cache
50
+ body: |
51
+ <?xml version="1.0" encoding="UTF-8"?>
52
+ <account>
53
+ <id>transaction-lookup-1286674805</id>
54
+ <account_code>transaction-lookup-1286674805</account_code>
55
+ <username></username>
56
+ <email>verena@test.com</email>
57
+ <first_name>Verena</first_name>
58
+ <last_name>Test</last_name>
59
+ <company_name>Recurly Ruby Gem</company_name>
60
+ <balance_in_cents type="integer">0</balance_in_cents>
61
+ <closed type="boolean">false</closed>
62
+ <hosted_login_token>66e8228dc78e400dae4bd823ac78c029</hosted_login_token>
63
+ <created_at type="datetime">2010-10-14T06:17:46Z</created_at>
64
+ <state>active</state>
65
+ </account>
66
+
67
+ http_version: "1.1"
68
+ - !ruby/struct:VCR::HTTPInteraction
69
+ request: !ruby/struct:VCR::Request
70
+ method: :put
71
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-lookup-1286674805/billing_info.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <billing-info>
75
+ <city>San Francisco</city>
76
+ <address1>123 Test St</address1>
77
+ <zip>94115</zip>
78
+ <account-code>transaction-lookup-1286674805</account-code>
79
+ <country>US</country>
80
+ <credit-card>
81
+ <number>1</number>
82
+ <month type="integer">10</month>
83
+ <year type="integer">2011</year>
84
+ <verification-value>123</verification-value>
85
+ </credit-card>
86
+ <last-name>Test</last-name>
87
+ <first-name>Verena</first-name>
88
+ <state>CA</state>
89
+ </billing-info>
90
+
91
+ headers:
92
+ accept:
93
+ - "*/*"
94
+ connection:
95
+ - close
96
+ content-type:
97
+ - application/xml
98
+ authorization:
99
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
100
+ response: !ruby/struct:VCR::Response
101
+ status: !ruby/struct:VCR::ResponseStatus
102
+ code: 200
103
+ message: OK
104
+ headers:
105
+ x-ua-compatible:
106
+ - IE=Edge
107
+ etag:
108
+ - "\"7f8f461d7c8c648db221b0c1188571f8\""
109
+ connection:
110
+ - close
111
+ content-type:
112
+ - application/xml; charset=utf-8
113
+ x-runtime:
114
+ - "57"
115
+ date:
116
+ - Thu, 14 Oct 2010 06:17:47 GMT
117
+ server:
118
+ - nginx/0.7.65
119
+ content-length:
120
+ - "643"
121
+ set-cookie:
122
+ - _recurly_session=64da400d8b2fc2a235c6dc29b0ea351f; domain=.recurly.com; path=/; Secure; HttpOnly
123
+ cache-control:
124
+ - private, max-age=0, must-revalidate
125
+ body: |
126
+ <?xml version="1.0" encoding="UTF-8"?>
127
+ <billing_info>
128
+ <account_code>transaction-lookup-1286674805</account_code>
129
+ <first_name>Verena</first_name>
130
+ <last_name>Test</last_name>
131
+ <address1>123 Test St</address1>
132
+ <address2></address2>
133
+ <city>San Francisco</city>
134
+ <state>CA</state>
135
+ <country>US</country>
136
+ <zip>94115</zip>
137
+ <phone></phone>
138
+ <vat_number></vat_number>
139
+ <ip_address></ip_address>
140
+ <credit_card>
141
+ <type>bogus</type>
142
+ <last_four>1</last_four>
143
+ <month type="integer">10</month>
144
+ <year type="integer">2011</year>
145
+ </credit_card>
146
+ <updated_at type="datetime">2010-10-14T06:17:47Z</updated_at>
147
+ </billing_info>
148
+
149
+ http_version: "1.1"
150
+ - !ruby/struct:VCR::HTTPInteraction
151
+ request: !ruby/struct:VCR::Request
152
+ method: :post
153
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
154
+ body: |
155
+ <?xml version="1.0" encoding="UTF-8"?>
156
+ <transaction>
157
+ <account>
158
+ <account-code>transaction-lookup-1286674805</account-code>
159
+ </account>
160
+ <amount-in-cents type="integer">100</amount-in-cents>
161
+ <description>one</description>
162
+ </transaction>
163
+
164
+ headers:
165
+ accept:
166
+ - "*/*"
167
+ connection:
168
+ - close
169
+ content-type:
170
+ - application/xml
171
+ authorization:
172
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
173
+ response: !ruby/struct:VCR::Response
174
+ status: !ruby/struct:VCR::ResponseStatus
175
+ code: 201
176
+ message: Created
177
+ headers:
178
+ location:
179
+ - https://recurlytest3-test.recurly.com/transactions/463ac0cf270b4641a02d37cdee9f3dd2
180
+ connection:
181
+ - close
182
+ content-type:
183
+ - application/xml; charset=utf-8
184
+ x-runtime:
185
+ - "365"
186
+ date:
187
+ - Thu, 14 Oct 2010 06:17:49 GMT
188
+ server:
189
+ - nginx/0.7.65
190
+ content-length:
191
+ - "850"
192
+ set-cookie:
193
+ - _recurly_session=fa21b238551b30c1d8cb162880fd2228; domain=.recurly.com; path=/; Secure; HttpOnly
194
+ cache-control:
195
+ - no-cache
196
+ body: |
197
+ <?xml version="1.0" encoding="UTF-8"?>
198
+ <transaction type="Payment">
199
+ <id>463ac0cf270b4641a02d37cdee9f3dd2</id>
200
+ <account_code>transaction-lookup-1286674805</account_code>
201
+ <action>purchase</action>
202
+ <date type="datetime">2010-10-14T06:17:48Z</date>
203
+ <amount_in_cents type="integer">100</amount_in_cents>
204
+ <status>success</status>
205
+ <message>Test Gateway: Successful test transaction</message>
206
+ <reference></reference>
207
+ <cvv_result code="M">Match</cvv_result>
208
+ <avs_result code="D">Street address and postal code match.</avs_result>
209
+ <avs_result_street></avs_result_street>
210
+ <avs_result_postal></avs_result_postal>
211
+ <test type="boolean">true</test>
212
+ <voidable type="boolean">true</voidable>
213
+ <refundable type="boolean">true</refundable>
214
+ <credit_card>
215
+ <type>bogus</type>
216
+ <last_four>1</last_four>
217
+ </credit_card>
218
+ </transaction>
219
+
220
+ http_version: "1.1"
221
+ - !ruby/struct:VCR::HTTPInteraction
222
+ request: !ruby/struct:VCR::Request
223
+ method: :post
224
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
225
+ body: |
226
+ <?xml version="1.0" encoding="UTF-8"?>
227
+ <transaction>
228
+ <account>
229
+ <account-code>transaction-lookup-1286674805</account-code>
230
+ </account>
231
+ <amount-in-cents type="integer">200</amount-in-cents>
232
+ <description>two</description>
233
+ </transaction>
234
+
235
+ headers:
236
+ accept:
237
+ - "*/*"
238
+ connection:
239
+ - close
240
+ content-type:
241
+ - application/xml
242
+ authorization:
243
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
244
+ response: !ruby/struct:VCR::Response
245
+ status: !ruby/struct:VCR::ResponseStatus
246
+ code: 201
247
+ message: Created
248
+ headers:
249
+ location:
250
+ - https://recurlytest3-test.recurly.com/transactions/362916ac9f154d9ab9eccd0903bc241e
251
+ connection:
252
+ - close
253
+ content-type:
254
+ - application/xml; charset=utf-8
255
+ x-runtime:
256
+ - "588"
257
+ date:
258
+ - Thu, 14 Oct 2010 06:17:50 GMT
259
+ server:
260
+ - nginx/0.7.65
261
+ content-length:
262
+ - "850"
263
+ set-cookie:
264
+ - _recurly_session=9c4caf53fac809e468cba229e32a307c; domain=.recurly.com; path=/; Secure; HttpOnly
265
+ cache-control:
266
+ - no-cache
267
+ body: |
268
+ <?xml version="1.0" encoding="UTF-8"?>
269
+ <transaction type="Payment">
270
+ <id>362916ac9f154d9ab9eccd0903bc241e</id>
271
+ <account_code>transaction-lookup-1286674805</account_code>
272
+ <action>purchase</action>
273
+ <date type="datetime">2010-10-14T06:17:49Z</date>
274
+ <amount_in_cents type="integer">200</amount_in_cents>
275
+ <status>success</status>
276
+ <message>Test Gateway: Successful test transaction</message>
277
+ <reference></reference>
278
+ <cvv_result code="M">Match</cvv_result>
279
+ <avs_result code="D">Street address and postal code match.</avs_result>
280
+ <avs_result_street></avs_result_street>
281
+ <avs_result_postal></avs_result_postal>
282
+ <test type="boolean">true</test>
283
+ <voidable type="boolean">true</voidable>
284
+ <refundable type="boolean">true</refundable>
285
+ <credit_card>
286
+ <type>bogus</type>
287
+ <last_four>1</last_four>
288
+ </credit_card>
289
+ </transaction>
290
+
291
+ http_version: "1.1"
292
+ - !ruby/struct:VCR::HTTPInteraction
293
+ request: !ruby/struct:VCR::Request
294
+ method: :post
295
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
296
+ body: |
297
+ <?xml version="1.0" encoding="UTF-8"?>
298
+ <transaction>
299
+ <account>
300
+ <account-code>transaction-lookup-1286674805</account-code>
301
+ </account>
302
+ <amount-in-cents type="integer">300</amount-in-cents>
303
+ <description>three</description>
304
+ </transaction>
305
+
306
+ headers:
307
+ accept:
308
+ - "*/*"
309
+ connection:
310
+ - close
311
+ content-type:
312
+ - application/xml
313
+ authorization:
314
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
315
+ response: !ruby/struct:VCR::Response
316
+ status: !ruby/struct:VCR::ResponseStatus
317
+ code: 201
318
+ message: Created
319
+ headers:
320
+ location:
321
+ - https://recurlytest3-test.recurly.com/transactions/75f8d5c28fc44478a06aa57047e1de06
322
+ connection:
323
+ - close
324
+ content-type:
325
+ - application/xml; charset=utf-8
326
+ x-runtime:
327
+ - "464"
328
+ date:
329
+ - Thu, 14 Oct 2010 06:17:51 GMT
330
+ server:
331
+ - nginx/0.7.65
332
+ content-length:
333
+ - "850"
334
+ set-cookie:
335
+ - _recurly_session=26ff0f02734c0da22351a81ae43e0508; domain=.recurly.com; path=/; Secure; HttpOnly
336
+ cache-control:
337
+ - no-cache
338
+ body: |
339
+ <?xml version="1.0" encoding="UTF-8"?>
340
+ <transaction type="Payment">
341
+ <id>75f8d5c28fc44478a06aa57047e1de06</id>
342
+ <account_code>transaction-lookup-1286674805</account_code>
343
+ <action>purchase</action>
344
+ <date type="datetime">2010-10-14T06:17:51Z</date>
345
+ <amount_in_cents type="integer">300</amount_in_cents>
346
+ <status>success</status>
347
+ <message>Test Gateway: Successful test transaction</message>
348
+ <reference></reference>
349
+ <cvv_result code="M">Match</cvv_result>
350
+ <avs_result code="D">Street address and postal code match.</avs_result>
351
+ <avs_result_street></avs_result_street>
352
+ <avs_result_postal></avs_result_postal>
353
+ <test type="boolean">true</test>
354
+ <voidable type="boolean">true</voidable>
355
+ <refundable type="boolean">true</refundable>
356
+ <credit_card>
357
+ <type>bogus</type>
358
+ <last_four>1</last_four>
359
+ </credit_card>
360
+ </transaction>
361
+
362
+ http_version: "1.1"
363
+ - !ruby/struct:VCR::HTTPInteraction
364
+ request: !ruby/struct:VCR::Request
365
+ method: :get
366
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/463ac0cf270b4641a02d37cdee9f3dd2.xml?account_code=transaction-lookup-1286674805
367
+ body:
368
+ headers:
369
+ accept:
370
+ - application/xml
371
+ connection:
372
+ - close
373
+ authorization:
374
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
375
+ response: !ruby/struct:VCR::Response
376
+ status: !ruby/struct:VCR::ResponseStatus
377
+ code: 200
378
+ message: OK
379
+ headers:
380
+ x-ua-compatible:
381
+ - IE=Edge
382
+ etag:
383
+ - "\"5286793fcb44a5ebcaff14a277c233d7\""
384
+ connection:
385
+ - close
386
+ content-type:
387
+ - application/xml; charset=utf-8
388
+ x-runtime:
389
+ - "19"
390
+ date:
391
+ - Thu, 14 Oct 2010 06:17:52 GMT
392
+ server:
393
+ - nginx/0.7.65
394
+ content-length:
395
+ - "850"
396
+ set-cookie:
397
+ - _recurly_session=58f5ea4adb63660fc7b02a1ffa3c6536; domain=.recurly.com; path=/; Secure; HttpOnly
398
+ cache-control:
399
+ - private, max-age=0, must-revalidate
400
+ body: |
401
+ <?xml version="1.0" encoding="UTF-8"?>
402
+ <transaction type="Payment">
403
+ <id>463ac0cf270b4641a02d37cdee9f3dd2</id>
404
+ <account_code>transaction-lookup-1286674805</account_code>
405
+ <action>purchase</action>
406
+ <date type="datetime">2010-10-14T06:17:48Z</date>
407
+ <amount_in_cents type="integer">100</amount_in_cents>
408
+ <status>success</status>
409
+ <message>Test Gateway: Successful test transaction</message>
410
+ <reference></reference>
411
+ <cvv_result code="M">Match</cvv_result>
412
+ <avs_result code="D">Street address and postal code match.</avs_result>
413
+ <avs_result_street></avs_result_street>
414
+ <avs_result_postal></avs_result_postal>
415
+ <test type="boolean">true</test>
416
+ <voidable type="boolean">true</voidable>
417
+ <refundable type="boolean">true</refundable>
418
+ <credit_card>
419
+ <type>bogus</type>
420
+ <last_four>1</last_four>
421
+ </credit_card>
422
+ </transaction>
423
+
424
+ http_version: "1.1"
425
+ - !ruby/struct:VCR::HTTPInteraction
426
+ request: !ruby/struct:VCR::Request
427
+ method: :get
428
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/362916ac9f154d9ab9eccd0903bc241e.xml?account_code=transaction-lookup-1286674805
429
+ body:
430
+ headers:
431
+ accept:
432
+ - application/xml
433
+ connection:
434
+ - close
435
+ authorization:
436
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
437
+ response: !ruby/struct:VCR::Response
438
+ status: !ruby/struct:VCR::ResponseStatus
439
+ code: 200
440
+ message: OK
441
+ headers:
442
+ x-ua-compatible:
443
+ - IE=Edge
444
+ etag:
445
+ - "\"754e325e5cc2587fae1a9fa0b6e698a9\""
446
+ connection:
447
+ - close
448
+ content-type:
449
+ - application/xml; charset=utf-8
450
+ x-runtime:
451
+ - "35"
452
+ date:
453
+ - Thu, 14 Oct 2010 06:17:52 GMT
454
+ server:
455
+ - nginx/0.7.65
456
+ content-length:
457
+ - "850"
458
+ set-cookie:
459
+ - _recurly_session=240bf65024ed646abe1a2d7a057a30bb; domain=.recurly.com; path=/; Secure; HttpOnly
460
+ cache-control:
461
+ - private, max-age=0, must-revalidate
462
+ body: |
463
+ <?xml version="1.0" encoding="UTF-8"?>
464
+ <transaction type="Payment">
465
+ <id>362916ac9f154d9ab9eccd0903bc241e</id>
466
+ <account_code>transaction-lookup-1286674805</account_code>
467
+ <action>purchase</action>
468
+ <date type="datetime">2010-10-14T06:17:49Z</date>
469
+ <amount_in_cents type="integer">200</amount_in_cents>
470
+ <status>success</status>
471
+ <message>Test Gateway: Successful test transaction</message>
472
+ <reference></reference>
473
+ <cvv_result code="M">Match</cvv_result>
474
+ <avs_result code="D">Street address and postal code match.</avs_result>
475
+ <avs_result_street></avs_result_street>
476
+ <avs_result_postal></avs_result_postal>
477
+ <test type="boolean">true</test>
478
+ <voidable type="boolean">true</voidable>
479
+ <refundable type="boolean">true</refundable>
480
+ <credit_card>
481
+ <type>bogus</type>
482
+ <last_four>1</last_four>
483
+ </credit_card>
484
+ </transaction>
485
+
486
+ http_version: "1.1"
487
+ - !ruby/struct:VCR::HTTPInteraction
488
+ request: !ruby/struct:VCR::Request
489
+ method: :get
490
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/75f8d5c28fc44478a06aa57047e1de06.xml?account_code=transaction-lookup-1286674805
491
+ body:
492
+ headers:
493
+ accept:
494
+ - application/xml
495
+ connection:
496
+ - close
497
+ authorization:
498
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
499
+ response: !ruby/struct:VCR::Response
500
+ status: !ruby/struct:VCR::ResponseStatus
501
+ code: 200
502
+ message: OK
503
+ headers:
504
+ x-ua-compatible:
505
+ - IE=Edge
506
+ etag:
507
+ - "\"4aa9a479f41b06d964f0132f67b17de9\""
508
+ connection:
509
+ - close
510
+ content-type:
511
+ - application/xml; charset=utf-8
512
+ x-runtime:
513
+ - "16"
514
+ date:
515
+ - Thu, 14 Oct 2010 06:17:53 GMT
516
+ server:
517
+ - nginx/0.7.65
518
+ content-length:
519
+ - "850"
520
+ set-cookie:
521
+ - _recurly_session=8f01306db4da17b5dde4c3ec30174922; domain=.recurly.com; path=/; Secure; HttpOnly
522
+ cache-control:
523
+ - private, max-age=0, must-revalidate
524
+ body: |
525
+ <?xml version="1.0" encoding="UTF-8"?>
526
+ <transaction type="Payment">
527
+ <id>75f8d5c28fc44478a06aa57047e1de06</id>
528
+ <account_code>transaction-lookup-1286674805</account_code>
529
+ <action>purchase</action>
530
+ <date type="datetime">2010-10-14T06:17:51Z</date>
531
+ <amount_in_cents type="integer">300</amount_in_cents>
532
+ <status>success</status>
533
+ <message>Test Gateway: Successful test transaction</message>
534
+ <reference></reference>
535
+ <cvv_result code="M">Match</cvv_result>
536
+ <avs_result code="D">Street address and postal code match.</avs_result>
537
+ <avs_result_street></avs_result_street>
538
+ <avs_result_postal></avs_result_postal>
539
+ <test type="boolean">true</test>
540
+ <voidable type="boolean">true</voidable>
541
+ <refundable type="boolean">true</refundable>
542
+ <credit_card>
543
+ <type>bogus</type>
544
+ <last_four>1</last_four>
545
+ </credit_card>
546
+ </transaction>
547
+
548
+ http_version: "1.1"