recurly 0.4.8 → 0.4.10

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 (114) hide show
  1. data/README.md +2 -2
  2. data/lib/recurly.rb +2 -1
  3. data/lib/recurly/account.rb +2 -2
  4. data/lib/recurly/base.rb +30 -12
  5. data/lib/recurly/billing_info.rb +2 -2
  6. data/lib/recurly/exceptions.rb +13 -0
  7. data/lib/recurly/plan.rb +1 -1
  8. data/lib/recurly/subscription.rb +2 -2
  9. data/lib/recurly/transaction.rb +2 -2
  10. data/lib/recurly/transparent.rb +1 -1
  11. data/lib/recurly/verification.rb +77 -0
  12. data/lib/recurly/version.rb +1 -1
  13. data/spec/config/recurly.yml +4 -4
  14. data/spec/integration/account_spec.rb +12 -0
  15. data/spec/integration/billing_info_spec.rb +2 -2
  16. data/spec/integration/charge_spec.rb +0 -1
  17. data/spec/integration/plan_spec.rb +2 -2
  18. data/spec/support/vcr.rb +2 -2
  19. data/spec/unit/verification_spec.rb +76 -0
  20. data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
  21. data/spec/vcr/account/close/1313708721.yml +104 -0
  22. data/spec/vcr/account/create-blank/1313708721.yml +33 -0
  23. data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
  24. data/spec/vcr/account/create-min/1313708721.yml +38 -0
  25. data/spec/vcr/account/create/1313708721.yml +39 -0
  26. data/spec/vcr/account/find/1313708721.yml +107 -0
  27. data/spec/vcr/account/list/1313708721.yml +878 -0
  28. data/spec/vcr/account/update/1313708721.yml +158 -0
  29. data/spec/vcr/billing/create/1313708721.yml +118 -0
  30. data/spec/vcr/billing/destroy/1313708721.yml +177 -0
  31. data/spec/vcr/billing/errors/1313708721.yml +71 -0
  32. data/spec/vcr/billing/find/1313708721.yml +156 -0
  33. data/spec/vcr/billing/update/1313708721.yml +159 -0
  34. data/spec/vcr/charge/create/1313708721.yml +153 -0
  35. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
  36. data/spec/vcr/charge/list-all/1313708721.yml +198 -0
  37. data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
  38. data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
  39. data/spec/vcr/charge/lookup/1313708721.yml +112 -0
  40. data/spec/vcr/coupon/create/1296774903.yml +96 -170
  41. data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
  42. data/spec/vcr/credit/create/1313708090.yml +112 -0
  43. data/spec/vcr/credit/delete/1313708090.yml +171 -0
  44. data/spec/vcr/credit/list/1313708090.yml +198 -0
  45. data/spec/vcr/credit/lookup/1313708090.yml +112 -0
  46. data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
  47. data/spec/vcr/invoice/create/1296674173.yml +182 -328
  48. data/spec/vcr/invoice/list/1296674173.yml +255 -442
  49. data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
  50. data/spec/vcr/plan/all.yml +210 -253
  51. data/spec/vcr/plan/find.yml +115 -187
  52. data/spec/vcr/plan/update.yml +105 -187
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
  56. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
  57. data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
  58. data/spec/vcr/subscription/change1/1296674173.yml +237 -402
  59. data/spec/vcr/subscription/change2/1296674173.yml +238 -402
  60. data/spec/vcr/subscription/create/1296674173.yml +123 -221
  61. data/spec/vcr/subscription/find/1296674173.yml +161 -279
  62. data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
  63. data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
  64. data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
  65. data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
  66. data/spec/vcr/transaction/all/1311126815.yml +215 -0
  67. data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
  68. data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
  69. data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
  70. data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
  71. data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
  72. data/spec/vcr/transaction/refund/1311126815.yml +163 -0
  73. data/spec/vcr/transaction/void/1311126815.yml +215 -0
  74. data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
  75. metadata +207 -154
  76. data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
  77. data/spec/vcr/account/close/1296674173.yml +0 -164
  78. data/spec/vcr/account/create-blank/1296674173.yml +0 -52
  79. data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
  80. data/spec/vcr/account/create-min/1296674173.yml +0 -66
  81. data/spec/vcr/account/create/1296674173.yml +0 -70
  82. data/spec/vcr/account/find/1296674173.yml +0 -169
  83. data/spec/vcr/account/list/1296674173.yml +0 -55
  84. data/spec/vcr/account/update/1296674173.yml +0 -258
  85. data/spec/vcr/billing/create/1296690812.yml +0 -215
  86. data/spec/vcr/billing/destroy/1296690812.yml +0 -294
  87. data/spec/vcr/billing/find/1296690812.yml +0 -280
  88. data/spec/vcr/billing/update/1296690812.yml +0 -297
  89. data/spec/vcr/charge/create/1296674173.yml +0 -262
  90. data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
  91. data/spec/vcr/charge/list-all/1296674173.yml +0 -316
  92. data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
  93. data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
  94. data/spec/vcr/charge/lookup/1296674173.yml +0 -180
  95. data/spec/vcr/coupon/create/1296688818.yml +0 -183
  96. data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
  97. data/spec/vcr/credit/create/1296674173.yml +0 -121
  98. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  99. data/spec/vcr/credit/list/1296674173.yml +0 -121
  100. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  101. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  102. data/spec/vcr/transaction/all/1296674173.yml +0 -389
  103. data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
  104. data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
  105. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  106. data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
  107. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  108. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  109. data/spec/vcr/transaction/void/1296674173.yml +0 -352
  110. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  111. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  112. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  113. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  114. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -0,0 +1,215 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
6
+ body: !!null
7
+ headers:
8
+ user-agent:
9
+ - Recurly Ruby Client v0.4.10
10
+ accept:
11
+ - application/xml
12
+ accept-encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ content-type:
20
+ - application/xml; charset=utf-8
21
+ etag:
22
+ - ! '"35aa17ccbb103968733b98221d264f6d"'
23
+ cache-control:
24
+ - max-age=0, private, must-revalidate
25
+ x-ua-compatible:
26
+ - IE=Edge
27
+ set-cookie:
28
+ - _recurly_session=d2bdf3a850cd635379850e96e27b6de1; domain=.lvh.me; path=/;
29
+ HttpOnly
30
+ server:
31
+ - thin 1.2.11 codename Bat-Shit Crazy
32
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
33
+ \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">20</per_page>\n
34
+ \ <total_entries type=\"integer\">30</total_entries>\n <transaction type=\"Payment\">\n
35
+ \ <id>32cfb90011604574ba6aab6143920ed2</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
36
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:51Z</date>\n
37
+ \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
38
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
39
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
40
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
41
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
42
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
43
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
44
+ type=\"Payment\">\n <id>04ca114c1e794a8e9a2d527d6272be8e</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
45
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:48Z</date>\n
46
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
47
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
48
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
49
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
50
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
51
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
52
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
53
+ type=\"Payment\">\n <id>5ac4756d027a484fa5a520f15bd08ddf</id>\n <account_code>transaction-create-with-accout-1311126815</account_code>\n
54
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:44Z</date>\n
55
+ \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
56
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
57
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
58
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
59
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
60
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
61
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
62
+ type=\"Payment\">\n <id>70fecf8471b14ab2a1b7a4cc2b787dae</id>\n <account_code>subscription-refund-none-1296674173</account_code>\n
63
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:40Z</date>\n
64
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
65
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
66
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
67
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
68
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
69
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
70
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
71
+ type=\"Payment\">\n <id>a9a75227ccd7407da4f859ac8a94eb07</id>\n <account_code>subscription-refund-partial-1296674173</account_code>\n
72
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:35Z</date>\n
73
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
74
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
75
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
76
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
77
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
78
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
79
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
80
+ type=\"Payment\">\n <id>41aa2da2fee8432d85009a21f9081d38</id>\n <account_code>subscription-refund-full-1296674173</account_code>\n
81
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:31Z</date>\n
82
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
83
+ \ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
84
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
85
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
86
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
87
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
88
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
89
+ type=\"Payment\">\n <id>73295d7b48b84887a23e1e62156cc6e5</id>\n <account_code>subscription-cancel-with-code-1296674173</account_code>\n
90
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:27Z</date>\n
91
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
92
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
93
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
94
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
95
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
96
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
97
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
98
+ type=\"Payment\">\n <id>e660ec8537e044bd9c5f86284ca46b82</id>\n <account_code>subscription-cancel-1296674173</account_code>\n
99
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:23Z</date>\n
100
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
101
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
102
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
103
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
104
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
105
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
106
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
107
+ type=\"Payment\">\n <id>b7fcca1dbe474d70bc05fb7e07f8c2ca</id>\n <account_code>subscription-reactivate-1296674173</account_code>\n
108
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:19Z</date>\n
109
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
110
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
111
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
112
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
113
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
114
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
115
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
116
+ type=\"Payment\">\n <id>8dab3c684c1f4a3fa770ca4418b5afd0</id>\n <account_code>1296674173</account_code>\n
117
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:15Z</date>\n
118
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
119
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
120
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
121
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
122
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
123
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
124
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
125
+ type=\"Payment\">\n <id>23cd0b38f55043578ce8da7a88799a4a</id>\n <account_code>subscription-change1-1296674173</account_code>\n
126
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:11Z</date>\n
127
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
128
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
129
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
130
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
131
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
132
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
133
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
134
+ type=\"Payment\">\n <id>8dfc067b22104b8faf8f6e13cbf97c32</id>\n <account_code>subscription-create-1296674173</account_code>\n
135
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:07Z</date>\n
136
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
137
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
138
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
139
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
140
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
141
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
142
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
143
+ type=\"Payment\">\n <id>638e6349cd984aa69f1021546a062361</id>\n <account_code>subscription-find-1296674173</account_code>\n
144
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:04Z</date>\n
145
+ \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
146
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
147
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
148
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
149
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
150
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
151
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
152
+ type=\"Payment\">\n <id>c3f003585c7c4a41a6ae621e2ff3efa1</id>\n <account_code>invoice-lookup-1296674173</account_code>\n
153
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:59Z</date>\n
154
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
155
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
156
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
157
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
158
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
159
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
160
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
161
+ type=\"Payment\">\n <id>0d956c44a83d45989c1fb632b11f93e6</id>\n <account_code>invoice-list-1296674173</account_code>\n
162
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:55Z</date>\n
163
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
164
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
165
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
166
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
167
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
168
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
169
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
170
+ type=\"Payment\">\n <id>5fb945bdc1a44df9b609ff9ba5be5715</id>\n <account_code>invoice-create-no-charges-1296674173</account_code>\n
171
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:52Z</date>\n
172
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
173
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
174
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
175
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
176
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
177
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
178
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
179
+ type=\"Payment\">\n <id>eaee3ad3634c4aa3a069229f42f7494d</id>\n <account_code>invoice-create-1296674173</account_code>\n
180
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:48Z</date>\n
181
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
182
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
183
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
184
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
185
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
186
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
187
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
188
+ type=\"Payment\">\n <id>d760eb0ab20a4f559127fcd66735a616</id>\n <account_code>charge-create-1313708721</account_code>\n
189
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:40Z</date>\n
190
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
191
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
192
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
193
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
194
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
195
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
196
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
197
+ type=\"Payment\">\n <id>9db0658c8bcf419aa0f0c8d953b50a8f</id>\n <account_code>billing-destroy-1313708721</account_code>\n
198
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:34Z</date>\n
199
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
200
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
201
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
202
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
203
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
204
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
205
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
206
+ type=\"Payment\">\n <id>dc4518cb2913474dbe73389530e468de</id>\n <account_code>billing-find-1313708721</account_code>\n
207
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:01:31Z</date>\n
208
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
209
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
210
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
211
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
212
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
213
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
214
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
215
+ http_version: '1.1'
@@ -0,0 +1,51 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
7
+ \ <account-code>transaction-create-with-accout-1311126815</account-code>\n
8
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
9
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
10
+ \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
11
+ \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
12
+ \ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
13
+ \ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
14
+ \ <verification-value>123</verification-value>\n </credit-card>\n
15
+ \ </billing-info>\n </account>\n <amount-in-cents type=\"integer\">700</amount-in-cents>\n
16
+ \ <description>setup fee of 7 dollarz</description>\n</transaction>\n"
17
+ headers:
18
+ user-agent:
19
+ - Recurly Ruby Client v0.4.10
20
+ content-type:
21
+ - application/xml
22
+ response: !ruby/struct:VCR::Response
23
+ status: !ruby/struct:VCR::ResponseStatus
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ location:
28
+ - http://app.lvh.me:3000/transactions/5ac4756d027a484fa5a520f15bd08ddf
29
+ content-type:
30
+ - application/xml; charset=utf-8
31
+ cache-control:
32
+ - no-cache
33
+ x-ua-compatible:
34
+ - IE=Edge
35
+ set-cookie:
36
+ - _recurly_session=e7702aac805c227f2c7395b4db13be58; domain=.lvh.me; path=/;
37
+ HttpOnly
38
+ server:
39
+ - thin 1.2.11 codename Bat-Shit Crazy
40
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
41
+ \ <id>5ac4756d027a484fa5a520f15bd08ddf</id>\n <account_code>transaction-create-with-accout-1311126815</account_code>\n
42
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:44Z</date>\n
43
+ \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
44
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
45
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
46
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
47
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
48
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
49
+ \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
50
+ \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
51
+ http_version: '1.1'
@@ -0,0 +1,125 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>transaction-create-with-account-1311126815</account-code>\n
7
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
+ \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
+ headers:
11
+ user-agent:
12
+ - Recurly Ruby Client v0.4.10
13
+ content-type:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/transaction-create-with-account-1311126815
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=8a4eeefb110720c56e7224f202a4f143; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-create-with-account-1311126815</id>\n
34
+ \ <account_code>transaction-create-with-account-1311126815</account_code>\n
35
+ \ <username></username>\n <email>verena@test.com</email>\n <first_name>Verena</first_name>\n
36
+ \ <last_name>Test</last_name>\n <company_name>Recurly Ruby Gem</company_name>\n
37
+ \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
38
+ \ <hosted_login_token>61373a5be444421a971305f279eab98b</hosted_login_token>\n
39
+ \ <created_at type=\"datetime\">2011-08-19T20:02:46Z</created_at>\n <state>active</state>\n</account>\n"
40
+ http_version: '1.1'
41
+ - !ruby/struct:VCR::HTTPInteraction
42
+ request: !ruby/struct:VCR::Request
43
+ method: :put
44
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-create-with-account-1311126815/billing_info.xml
45
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
46
+ \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
47
+ Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
48
+ \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
49
+ \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
50
+ \ </credit-card>\n <account-code>transaction-create-with-account-1311126815</account-code>\n</billing-info>\n"
51
+ headers:
52
+ user-agent:
53
+ - Recurly Ruby Client v0.4.10
54
+ content-type:
55
+ - application/xml
56
+ response: !ruby/struct:VCR::Response
57
+ status: !ruby/struct:VCR::ResponseStatus
58
+ code: 200
59
+ message: OK
60
+ headers:
61
+ content-type:
62
+ - application/xml; charset=utf-8
63
+ etag:
64
+ - ! '"16942786728b1da5759cea1a2be3a607"'
65
+ cache-control:
66
+ - max-age=0, private, must-revalidate
67
+ x-ua-compatible:
68
+ - IE=Edge
69
+ set-cookie:
70
+ - _recurly_session=0e7f533899fa9ee3f0a7910af1eab870; domain=.lvh.me; path=/;
71
+ HttpOnly
72
+ server:
73
+ - thin 1.2.11 codename Bat-Shit Crazy
74
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
75
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
76
+ Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
77
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
78
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
79
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
80
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:02:50Z</updated_at>\n</billing_info>\n"
81
+ http_version: '1.1'
82
+ - !ruby/struct:VCR::HTTPInteraction
83
+ request: !ruby/struct:VCR::Request
84
+ method: :post
85
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
86
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
87
+ \ <account-code>transaction-create-with-account-1311126815</account-code>\n
88
+ \ <billing-info>\n <credit-card>\n </credit-card>\n </billing-info>\n
89
+ \ </account>\n <amount-in-cents type=\"integer\">700</amount-in-cents>\n <description>test
90
+ transaction for $7</description>\n</transaction>\n"
91
+ headers:
92
+ user-agent:
93
+ - Recurly Ruby Client v0.4.10
94
+ content-type:
95
+ - application/xml
96
+ response: !ruby/struct:VCR::Response
97
+ status: !ruby/struct:VCR::ResponseStatus
98
+ code: 201
99
+ message: Created
100
+ headers:
101
+ location:
102
+ - http://app.lvh.me:3000/transactions/32cfb90011604574ba6aab6143920ed2
103
+ content-type:
104
+ - application/xml; charset=utf-8
105
+ cache-control:
106
+ - no-cache
107
+ x-ua-compatible:
108
+ - IE=Edge
109
+ set-cookie:
110
+ - _recurly_session=8e339173b47853568a0bbbb038548b73; domain=.lvh.me; path=/;
111
+ HttpOnly
112
+ server:
113
+ - thin 1.2.11 codename Bat-Shit Crazy
114
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
115
+ \ <id>32cfb90011604574ba6aab6143920ed2</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
116
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:51Z</date>\n
117
+ \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
118
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
119
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
120
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
121
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
122
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
123
+ \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
124
+ \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
125
+ http_version: '1.1'
@@ -0,0 +1,349 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>transaction-list-filled-1311126815</account-code>\n
7
+ \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
+ \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
+ \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
+ headers:
11
+ user-agent:
12
+ - Recurly Ruby Client v0.4.10
13
+ content-type:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/transaction-list-filled-1311126815
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=8e51591c2ae39cb2ea9762e0d23232bc; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-list-filled-1311126815</id>\n
34
+ \ <account_code>transaction-list-filled-1311126815</account_code>\n <username></username>\n
35
+ \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
+ \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
+ \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>e9988504bd594babb69c1fb4dcbc607d</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:02:56Z</created_at>\n <state>active</state>\n</account>\n"
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
42
+ method: :put
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-1311126815/billing_info.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
+ \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
+ Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
+ \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
+ \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
+ \ </credit-card>\n <account-code>transaction-list-filled-1311126815</account-code>\n</billing-info>\n"
50
+ headers:
51
+ user-agent:
52
+ - Recurly Ruby Client v0.4.10
53
+ content-type:
54
+ - application/xml
55
+ response: !ruby/struct:VCR::Response
56
+ status: !ruby/struct:VCR::ResponseStatus
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ content-type:
61
+ - application/xml; charset=utf-8
62
+ etag:
63
+ - ! '"8458b5b6582dc8533529d42cb30867fe"'
64
+ cache-control:
65
+ - max-age=0, private, must-revalidate
66
+ x-ua-compatible:
67
+ - IE=Edge
68
+ set-cookie:
69
+ - _recurly_session=c73120f6895b813871c61a5eb60212d0; domain=.lvh.me; path=/;
70
+ HttpOnly
71
+ server:
72
+ - thin 1.2.11 codename Bat-Shit Crazy
73
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-list-filled-1311126815</account_code>\n
74
+ \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
+ Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
+ \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
77
+ \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
+ \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
+ \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:03:00Z</updated_at>\n</billing_info>\n"
80
+ http_version: '1.1'
81
+ - !ruby/struct:VCR::HTTPInteraction
82
+ request: !ruby/struct:VCR::Request
83
+ method: :post
84
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
85
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
86
+ \ <account-code>transaction-list-filled-1311126815</account-code>\n <billing-info>\n
87
+ \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
88
+ \ <amount-in-cents type=\"integer\">100</amount-in-cents>\n <description>one</description>\n</transaction>\n"
89
+ headers:
90
+ user-agent:
91
+ - Recurly Ruby Client v0.4.10
92
+ content-type:
93
+ - application/xml
94
+ response: !ruby/struct:VCR::Response
95
+ status: !ruby/struct:VCR::ResponseStatus
96
+ code: 201
97
+ message: Created
98
+ headers:
99
+ location:
100
+ - http://app.lvh.me:3000/transactions/3d28d911feda43a9bc1303c107d13bcf
101
+ content-type:
102
+ - application/xml; charset=utf-8
103
+ cache-control:
104
+ - no-cache
105
+ x-ua-compatible:
106
+ - IE=Edge
107
+ set-cookie:
108
+ - _recurly_session=b648fb564ffad13e156da57618a823b2; domain=.lvh.me; path=/;
109
+ HttpOnly
110
+ server:
111
+ - thin 1.2.11 codename Bat-Shit Crazy
112
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
113
+ \ <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
114
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</date>\n
115
+ \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
116
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
117
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
118
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
119
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
120
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
121
+ \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
122
+ \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
123
+ http_version: '1.1'
124
+ - !ruby/struct:VCR::HTTPInteraction
125
+ request: !ruby/struct:VCR::Request
126
+ method: :post
127
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
128
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
129
+ \ <account-code>transaction-list-filled-1311126815</account-code>\n <billing-info>\n
130
+ \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
131
+ \ <amount-in-cents type=\"integer\">200</amount-in-cents>\n <description>two</description>\n</transaction>\n"
132
+ headers:
133
+ user-agent:
134
+ - Recurly Ruby Client v0.4.10
135
+ content-type:
136
+ - application/xml
137
+ response: !ruby/struct:VCR::Response
138
+ status: !ruby/struct:VCR::ResponseStatus
139
+ code: 201
140
+ message: Created
141
+ headers:
142
+ location:
143
+ - http://app.lvh.me:3000/transactions/9f88f115c89f412398fa2099af402a53
144
+ content-type:
145
+ - application/xml; charset=utf-8
146
+ cache-control:
147
+ - no-cache
148
+ x-ua-compatible:
149
+ - IE=Edge
150
+ set-cookie:
151
+ - _recurly_session=ea58f11ca47066c08555bea8f2c924b6; domain=.lvh.me; path=/;
152
+ HttpOnly
153
+ server:
154
+ - thin 1.2.11 codename Bat-Shit Crazy
155
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
156
+ \ <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
157
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
158
+ \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
159
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
160
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
161
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
162
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
163
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
164
+ \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
165
+ \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
166
+ http_version: '1.1'
167
+ - !ruby/struct:VCR::HTTPInteraction
168
+ request: !ruby/struct:VCR::Request
169
+ method: :post
170
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
171
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
172
+ \ <account-code>transaction-list-filled-1311126815</account-code>\n <billing-info>\n
173
+ \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
174
+ \ <amount-in-cents type=\"integer\">300</amount-in-cents>\n <description>three</description>\n</transaction>\n"
175
+ headers:
176
+ user-agent:
177
+ - Recurly Ruby Client v0.4.10
178
+ content-type:
179
+ - application/xml
180
+ response: !ruby/struct:VCR::Response
181
+ status: !ruby/struct:VCR::ResponseStatus
182
+ code: 201
183
+ message: Created
184
+ headers:
185
+ location:
186
+ - http://app.lvh.me:3000/transactions/3680e3c2479d4e1baac068855dd7c858
187
+ content-type:
188
+ - application/xml; charset=utf-8
189
+ cache-control:
190
+ - no-cache
191
+ x-ua-compatible:
192
+ - IE=Edge
193
+ set-cookie:
194
+ - _recurly_session=673f2a980b940ab7b9bf1119ddc47366; domain=.lvh.me; path=/;
195
+ HttpOnly
196
+ server:
197
+ - thin 1.2.11 codename Bat-Shit Crazy
198
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
199
+ \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
200
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
201
+ \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
202
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
203
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
204
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
205
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
206
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
207
+ \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
208
+ \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
209
+ http_version: '1.1'
210
+ - !ruby/struct:VCR::HTTPInteraction
211
+ request: !ruby/struct:VCR::Request
212
+ method: :get
213
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
214
+ body: !!null
215
+ headers:
216
+ user-agent:
217
+ - Recurly Ruby Client v0.4.10
218
+ accept:
219
+ - application/xml
220
+ accept-encoding:
221
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
+ response: !ruby/struct:VCR::Response
223
+ status: !ruby/struct:VCR::ResponseStatus
224
+ code: 200
225
+ message: OK
226
+ headers:
227
+ content-type:
228
+ - application/xml; charset=utf-8
229
+ etag:
230
+ - ! '"c31656db53dc70c1d7819373ab8ff45b"'
231
+ cache-control:
232
+ - max-age=0, private, must-revalidate
233
+ x-ua-compatible:
234
+ - IE=Edge
235
+ set-cookie:
236
+ - _recurly_session=e47ce3d4548bf6e8836c38c8aabc9fee; domain=.lvh.me; path=/;
237
+ HttpOnly
238
+ server:
239
+ - thin 1.2.11 codename Bat-Shit Crazy
240
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
241
+ \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">50</per_page>\n
242
+ \ <total_entries type=\"integer\">4</total_entries>\n <transaction type=\"Payment\">\n
243
+ \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
244
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
245
+ \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
246
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
247
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
248
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
249
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
250
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
251
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
252
+ type=\"Payment\">\n <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
253
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
254
+ \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
255
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
256
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
257
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
258
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
259
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
260
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
261
+ type=\"Payment\">\n <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
262
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</date>\n
263
+ \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
264
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
265
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
266
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
267
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
268
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
269
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
270
+ type=\"Payment\">\n <id>eeb4782d846a49598c7a3c914fbc33b0</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
271
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:58Z</date>\n
272
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
273
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
274
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
275
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
276
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
277
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
278
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
279
+ http_version: '1.1'
280
+ - !ruby/struct:VCR::HTTPInteraction
281
+ request: !ruby/struct:VCR::Request
282
+ method: :get
283
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
284
+ body: !!null
285
+ headers:
286
+ user-agent:
287
+ - Recurly Ruby Client v0.4.10
288
+ accept:
289
+ - application/xml
290
+ accept-encoding:
291
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
292
+ response: !ruby/struct:VCR::Response
293
+ status: !ruby/struct:VCR::ResponseStatus
294
+ code: 200
295
+ message: OK
296
+ headers:
297
+ content-type:
298
+ - application/xml; charset=utf-8
299
+ etag:
300
+ - ! '"c31656db53dc70c1d7819373ab8ff45b"'
301
+ cache-control:
302
+ - max-age=0, private, must-revalidate
303
+ x-ua-compatible:
304
+ - IE=Edge
305
+ set-cookie:
306
+ - _recurly_session=4dbfc4d14a0680a1a18fdfd8007ff95e; domain=.lvh.me; path=/;
307
+ HttpOnly
308
+ server:
309
+ - thin 1.2.11 codename Bat-Shit Crazy
310
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
311
+ \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">50</per_page>\n
312
+ \ <total_entries type=\"integer\">4</total_entries>\n <transaction type=\"Payment\">\n
313
+ \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
314
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
315
+ \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
316
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
317
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
318
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
319
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
320
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
321
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
322
+ type=\"Payment\">\n <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
323
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
324
+ \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
325
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
326
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
327
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
328
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
329
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
330
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
331
+ type=\"Payment\">\n <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
332
+ \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</date>\n
333
+ \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
334
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
335
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
336
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
337
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
338
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
339
+ \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
340
+ type=\"Payment\">\n <id>eeb4782d846a49598c7a3c914fbc33b0</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
341
+ \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:58Z</date>\n
342
+ \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
343
+ \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
344
+ \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
345
+ \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
346
+ \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
347
+ \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
348
+ \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
349
+ http_version: '1.1'