recurly 0.4.11 → 0.4.13

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 (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,215 +1,321 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
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-void-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:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-void-1311126815</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
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/transaction-void-1311126815
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/transaction-void-1311126815
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=c530d29f0228cfe8f6c054824d4ed32c; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=ab5e9281595641e2756969cdadbf7641; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-void-1311126815</id>\n
34
- \ <account_code>transaction-void-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>9a468a881ad64640a3775ade7df064fc</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:03:14Z</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
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>transaction-void-1311126815</id>
47
+ <account_code>transaction-void-1311126815</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>0ca35620abd64d5db4433ba292bb28e4</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:02:19Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-void-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-void-1311126815</account-code>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-void-1311126815/billing_info.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <billing-info>
68
+ <first-name>Verena</first-name>
69
+ <last-name>Test</last-name>
70
+ <address1>123 Test St</address1>
71
+ <city>San Francisco</city>
72
+ <state>CA</state>
73
+ <zip>94115</zip>
74
+ <country>US</country>
75
+ <credit-card>
76
+ <number>4111111111111111</number>
77
+ <year type="integer">2012</year>
78
+ <month type="integer">9</month>
79
+ <verification-value>123</verification-value>
80
+ </credit-card>
81
+ <account-code>transaction-void-1311126815</account-code>
82
+ </billing-info>
83
+
84
+ headers:
85
+ user-agent:
86
+ - Recurly Ruby Client v0.4.13
87
+ content-type:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"94b1411e0be7f585d4ff1ac2062fb378"'
64
- cache-control:
96
+ etag:
97
+ - "\"235b1fc07f7ba646b856ccabc1a0603f\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=19f72787d250d4f422ec8b622fbf110a; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=23bd1446cc4374963100b9e0cc49e202; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-void-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:18Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>transaction-void-1311126815</account_code>
110
+ <first_name>Verena</first_name>
111
+ <last_name>Test</last_name>
112
+ <address1>123 Test St</address1>
113
+ <address2></address2>
114
+ <city>San Francisco</city>
115
+ <state>CA</state>
116
+ <country>US</country>
117
+ <zip>94115</zip>
118
+ <phone></phone>
119
+ <vat_number></vat_number>
120
+ <ip_address></ip_address>
121
+ <credit_card>
122
+ <type>visa</type>
123
+ <last_four>1111</last_four>
124
+ <month type="integer">9</month>
125
+ <year type="integer">2012</year>
126
+ </credit_card>
127
+ <updated_at type="datetime">2011-09-22T22:02:20Z</updated_at>
128
+ </billing_info>
129
+
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
83
133
  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-void-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:
134
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
135
+ body: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <transaction>
138
+ <account>
139
+ <account-code>transaction-void-1311126815</account-code>
140
+ <billing-info>
141
+ <credit-card>
142
+ </credit-card>
143
+ </billing-info>
144
+ </account>
145
+ <amount-in-cents type="integer">100</amount-in-cents>
146
+ <description>one</description>
147
+ </transaction>
148
+
149
+ headers:
150
+ user-agent:
151
+ - Recurly Ruby Client v0.4.13
152
+ content-type:
93
153
  - application/xml
94
- response: !ruby/struct:VCR::Response
95
- status: !ruby/struct:VCR::ResponseStatus
154
+ response: !ruby/struct:VCR::Response
155
+ status: !ruby/struct:VCR::ResponseStatus
96
156
  code: 201
97
157
  message: Created
98
- headers:
99
- location:
100
- - http://app.lvh.me:3000/transactions/3662cf1f73ea4aa69591ad1be8ea0921
101
- content-type:
158
+ headers:
159
+ location:
160
+ - http://api.lvh.me:3000/transactions/d8002ce706b342f4800ff8fedec27443
161
+ content-type:
102
162
  - application/xml; charset=utf-8
103
- cache-control:
163
+ cache-control:
104
164
  - no-cache
105
- x-ua-compatible:
165
+ x-ua-compatible:
106
166
  - IE=Edge
107
- set-cookie:
108
- - _recurly_session=d28cd2ff869b4c46d1edbd260f14652a; domain=.lvh.me; path=/;
109
- HttpOnly
110
- server:
167
+ set-cookie:
168
+ - _recurly_session=ae7e09f2e21726d13e8499282682f2a5; domain=.lvh.me; path=/; HttpOnly
169
+ server:
111
170
  - thin 1.2.11 codename Bat-Shit Crazy
112
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
113
- \ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
114
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</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
171
+ body: |
172
+ <?xml version="1.0" encoding="UTF-8"?>
173
+ <transaction type="Payment">
174
+ <id>d8002ce706b342f4800ff8fedec27443</id>
175
+ <account_code>transaction-void-1311126815</account_code>
176
+ <action>purchase</action>
177
+ <date type="datetime">2011-09-22T22:02:21Z</date>
178
+ <amount_in_cents type="integer">100</amount_in_cents>
179
+ <currency>USD</currency>
180
+ <status>success</status>
181
+ <message>Test Gateway: Successful test transaction</message>
182
+ <reference>12345</reference>
183
+ <cvv_result code="M">Match</cvv_result>
184
+ <avs_result code="D">Street address and postal code match.</avs_result>
185
+ <avs_result_street>Y</avs_result_street>
186
+ <avs_result_postal>Y</avs_result_postal>
187
+ <test type="boolean">true</test>
188
+ <voidable type="boolean">true</voidable>
189
+ <refundable type="boolean">true</refundable>
190
+ <credit_card>
191
+ <type>visa</type>
192
+ <last_four>1111</last_four>
193
+ </credit_card>
194
+ </transaction>
195
+
196
+ http_version: "1.1"
197
+ - !ruby/struct:VCR::HTTPInteraction
198
+ request: !ruby/struct:VCR::Request
126
199
  method: :delete
127
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/3662cf1f73ea4aa69591ad1be8ea0921.xml?action=void
128
- body: !!null
129
- headers:
130
- user-agent:
131
- - Recurly Ruby Client v0.4.10
132
- accept:
200
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/d8002ce706b342f4800ff8fedec27443.xml?action=void
201
+ body:
202
+ headers:
203
+ user-agent:
204
+ - Recurly Ruby Client v0.4.13
205
+ accept:
133
206
  - application/xml
134
- response: !ruby/struct:VCR::Response
135
- status: !ruby/struct:VCR::ResponseStatus
207
+ response: !ruby/struct:VCR::Response
208
+ status: !ruby/struct:VCR::ResponseStatus
136
209
  code: 200
137
210
  message: OK
138
- headers:
139
- content-type:
211
+ headers:
212
+ content-type:
140
213
  - application/xml; charset=utf-8
141
- etag:
142
- - ! '"89640203e23e12eef4cb5426a3cd520b"'
143
- cache-control:
214
+ etag:
215
+ - "\"73a93b1826aa9fa0e35c41a18cb91f51\""
216
+ cache-control:
144
217
  - max-age=0, private, must-revalidate
145
- x-ua-compatible:
218
+ x-ua-compatible:
146
219
  - IE=Edge
147
- set-cookie:
148
- - _recurly_session=37a1469f6504b193dabe7d760b3575b9; domain=.lvh.me; path=/;
149
- HttpOnly
150
- server:
220
+ set-cookie:
221
+ - _recurly_session=03a3682bf6b623c8ee3a595ca510e256; domain=.lvh.me; path=/; HttpOnly
222
+ server:
151
223
  - thin 1.2.11 codename Bat-Shit Crazy
152
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
153
- \ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
154
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</date>\n
155
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
156
- \ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
157
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
158
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
159
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
160
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
161
- \ <refundable type=\"boolean\">false</refundable>\n <credit_card>\n <type>visa</type>\n
162
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
163
- http_version: '1.1'
164
- - !ruby/struct:VCR::HTTPInteraction
165
- request: !ruby/struct:VCR::Request
224
+ body: |
225
+ <?xml version="1.0" encoding="UTF-8"?>
226
+ <transaction type="Payment">
227
+ <id>d8002ce706b342f4800ff8fedec27443</id>
228
+ <account_code>transaction-void-1311126815</account_code>
229
+ <action>purchase</action>
230
+ <date type="datetime">2011-09-22T22:02:21Z</date>
231
+ <amount_in_cents type="integer">100</amount_in_cents>
232
+ <currency>USD</currency>
233
+ <status>void</status>
234
+ <message>Test Gateway: Successful test transaction</message>
235
+ <reference>12345</reference>
236
+ <cvv_result code="M">Match</cvv_result>
237
+ <avs_result code="D">Street address and postal code match.</avs_result>
238
+ <avs_result_street>Y</avs_result_street>
239
+ <avs_result_postal>Y</avs_result_postal>
240
+ <test type="boolean">true</test>
241
+ <voidable type="boolean">false</voidable>
242
+ <refundable type="boolean">false</refundable>
243
+ <credit_card>
244
+ <type>visa</type>
245
+ <last_four>1111</last_four>
246
+ </credit_card>
247
+ </transaction>
248
+
249
+ http_version: "1.1"
250
+ - !ruby/struct:VCR::HTTPInteraction
251
+ request: !ruby/struct:VCR::Request
166
252
  method: :get
167
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml?show=voided
168
- body: !!null
169
- headers:
170
- user-agent:
171
- - Recurly Ruby Client v0.4.10
172
- accept:
253
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml?show=voided
254
+ body:
255
+ headers:
256
+ user-agent:
257
+ - Recurly Ruby Client v0.4.13
258
+ accept:
173
259
  - application/xml
174
- accept-encoding:
260
+ accept-encoding:
175
261
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
176
- response: !ruby/struct:VCR::Response
177
- status: !ruby/struct:VCR::ResponseStatus
262
+ response: !ruby/struct:VCR::Response
263
+ status: !ruby/struct:VCR::ResponseStatus
178
264
  code: 200
179
265
  message: OK
180
- headers:
181
- content-type:
266
+ headers:
267
+ content-type:
182
268
  - application/xml; charset=utf-8
183
- etag:
184
- - ! '"13725465fa6e5d5f7a56cce0feb1b653"'
185
- cache-control:
269
+ etag:
270
+ - "\"e42e47aa8904e284c448850bce8a2c8b\""
271
+ cache-control:
186
272
  - max-age=0, private, must-revalidate
187
- x-ua-compatible:
273
+ x-ua-compatible:
188
274
  - IE=Edge
189
- set-cookie:
190
- - _recurly_session=9fd6d18fb730464f65042b4758a3d6e0; domain=.lvh.me; path=/;
191
- HttpOnly
192
- server:
275
+ server:
193
276
  - thin 1.2.11 codename Bat-Shit Crazy
194
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
195
- \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">20</per_page>\n
196
- \ <total_entries type=\"integer\">2</total_entries>\n <transaction type=\"Payment\">\n
197
- \ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
198
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</date>\n
199
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
200
- \ <status>void</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>41aa2da2fee8432d85009a21f9081d38</id>\n <account_code>subscription-refund-full-1296674173</account_code>\n
207
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:31Z</date>\n
208
- \ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
209
- \ <status>void</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'
277
+ body: |
278
+ <?xml version="1.0" encoding="UTF-8"?>
279
+ <transactions type="collection">
280
+ <current_page type="integer">1</current_page>
281
+ <per_page type="integer">20</per_page>
282
+ <total_entries type="integer">2</total_entries>
283
+ <transaction type="Payment">
284
+ <id>d8002ce706b342f4800ff8fedec27443</id>
285
+ <account_code>transaction-void-1311126815</account_code>
286
+ <action>purchase</action>
287
+ <date type="datetime">2011-09-22T22:02:21Z</date>
288
+ <amount_in_cents type="integer">100</amount_in_cents>
289
+ <currency>USD</currency>
290
+ <status>void</status>
291
+ <message>Test Gateway: Successful test transaction</message>
292
+ <reference>12345</reference>
293
+ <cvv_result code="M">Match</cvv_result>
294
+ <avs_result code="D">Street address and postal code match.</avs_result>
295
+ <avs_result_street>Y</avs_result_street>
296
+ <avs_result_postal>Y</avs_result_postal>
297
+ <test type="boolean">true</test>
298
+ <voidable type="boolean">false</voidable>
299
+ <refundable type="boolean">false</refundable>
300
+ </transaction>
301
+ <transaction type="Payment">
302
+ <id>99fc30f3435c476fac16717eaba27440</id>
303
+ <account_code>subscription-refund-full-1296674173</account_code>
304
+ <action>purchase</action>
305
+ <date type="datetime">2011-09-22T22:02:06Z</date>
306
+ <amount_in_cents type="integer">1400</amount_in_cents>
307
+ <currency>USD</currency>
308
+ <status>void</status>
309
+ <message>Test Gateway: Successful test transaction</message>
310
+ <reference>12345</reference>
311
+ <cvv_result code="M">Match</cvv_result>
312
+ <avs_result code="D">Street address and postal code match.</avs_result>
313
+ <avs_result_street>Y</avs_result_street>
314
+ <avs_result_postal>Y</avs_result_postal>
315
+ <test type="boolean">true</test>
316
+ <voidable type="boolean">false</voidable>
317
+ <refundable type="boolean">false</refundable>
318
+ </transaction>
319
+ </transactions>
320
+
321
+ http_version: "1.1"