recurly 0.4.15 → 0.4.16

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/base.rb +35 -0
  2. data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
  3. data/lib/recurly.rb +14 -4
  4. data/lib/recurly/account.rb +6 -3
  5. data/lib/recurly/base.rb +1 -2
  6. data/lib/recurly/subscription.rb +7 -0
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/recurly.yml +4 -4
  9. data/spec/integration/subscription_spec.rb +2 -1
  10. metadata +108 -220
  11. data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
  12. data/spec/vcr/account/close/1313708721.yml +0 -132
  13. data/spec/vcr/account/create-blank/1313708721.yml +0 -44
  14. data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
  15. data/spec/vcr/account/create-min/1313708721.yml +0 -56
  16. data/spec/vcr/account/create/1313708721.yml +0 -60
  17. data/spec/vcr/account/find/1313708721.yml +0 -137
  18. data/spec/vcr/account/list/1313708721.yml +0 -1307
  19. data/spec/vcr/account/update/1313708721.yml +0 -216
  20. data/spec/vcr/billing/create/1313708721.yml +0 -181
  21. data/spec/vcr/billing/destroy/1313708721.yml +0 -240
  22. data/spec/vcr/billing/errors/1313708721.yml +0 -106
  23. data/spec/vcr/billing/find/1313708721.yml +0 -234
  24. data/spec/vcr/billing/update/1313708721.yml +0 -251
  25. data/spec/vcr/charge/create/1313708721.yml +0 -222
  26. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
  27. data/spec/vcr/charge/list-all/1313708721.yml +0 -276
  28. data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
  29. data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
  30. data/spec/vcr/charge/lookup/1313708721.yml +0 -152
  31. data/spec/vcr/coupon/create/1296774903.yml +0 -97
  32. data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
  33. data/spec/vcr/credit/create/1313708090.yml +0 -152
  34. data/spec/vcr/credit/delete/1313708090.yml +0 -211
  35. data/spec/vcr/credit/list/1313708090.yml +0 -276
  36. data/spec/vcr/credit/lookup/1313708090.yml +0 -152
  37. data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
  38. data/spec/vcr/invoice/create/1296674173.yml +0 -302
  39. data/spec/vcr/invoice/list/1296674173.yml +0 -405
  40. data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
  41. data/spec/vcr/plan/all.yml +0 -233
  42. data/spec/vcr/plan/find.yml +0 -136
  43. data/spec/vcr/plan/update.yml +0 -152
  44. data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
  45. data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
  46. data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
  47. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
  48. data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
  49. data/spec/vcr/subscription/change1/1296674173.yml +0 -354
  50. data/spec/vcr/subscription/change2/1296674173.yml +0 -354
  51. data/spec/vcr/subscription/create/1296674173.yml +0 -192
  52. data/spec/vcr/subscription/find/1296674173.yml +0 -244
  53. data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
  54. data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
  55. data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
  56. data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
  57. data/spec/vcr/transaction/all/1311126815.yml +0 -397
  58. data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
  59. data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
  60. data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
  61. data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
  62. data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
  63. data/spec/vcr/transaction/void/1311126815.yml +0 -321
  64. data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
  65. data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,184 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
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-list-initial-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:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/transaction-list-initial-1311126815
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=f7ec2a54761b6dd2fb4f549d6538fbd0; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>transaction-list-initial-1311126815</id>
47
- <account_code>transaction-list-initial-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>fe6b0512610d41568c25fa2011513116</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:02:13Z</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
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-initial-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-list-initial-1311126815</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"8b47654b43bbed6980b784d8f1903ba1\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=99c551da31fd97a815b75992d6fb2d3a; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>transaction-list-initial-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:14Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :get
134
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-initial-1311126815/transactions
135
- body:
136
- headers:
137
- user-agent:
138
- - Recurly Ruby Client v0.4.13
139
- accept:
140
- - application/xml
141
- accept-encoding:
142
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
143
- response: !ruby/struct:VCR::Response
144
- status: !ruby/struct:VCR::ResponseStatus
145
- code: 200
146
- message: OK
147
- headers:
148
- content-type:
149
- - application/xml; charset=utf-8
150
- etag:
151
- - "\"6e407a58485a2444cee94700813768ee\""
152
- cache-control:
153
- - max-age=0, private, must-revalidate
154
- x-ua-compatible:
155
- - IE=Edge
156
- server:
157
- - thin 1.2.11 codename Bat-Shit Crazy
158
- body: |
159
- <?xml version="1.0" encoding="UTF-8"?>
160
- <transactions type="collection">
161
- <current_page type="integer">1</current_page>
162
- <per_page type="integer">50</per_page>
163
- <total_entries type="integer">1</total_entries>
164
- <transaction type="Payment">
165
- <id>f119d34e4e6347fd9814a323e7d9dbd7</id>
166
- <account_code>transaction-list-initial-1311126815</account_code>
167
- <action>authorization</action>
168
- <date type="datetime">2011-09-22T22:02:14Z</date>
169
- <amount_in_cents type="integer">0</amount_in_cents>
170
- <currency>USD</currency>
171
- <status>success</status>
172
- <message>Test Gateway: Successful test transaction</message>
173
- <reference>12345</reference>
174
- <cvv_result code="M">Match</cvv_result>
175
- <avs_result code="D">Street address and postal code match.</avs_result>
176
- <avs_result_street>Y</avs_result_street>
177
- <avs_result_postal>Y</avs_result_postal>
178
- <test type="boolean">true</test>
179
- <voidable type="boolean">false</voidable>
180
- <refundable type="boolean">false</refundable>
181
- </transaction>
182
- </transactions>
183
-
184
- http_version: "1.1"
@@ -1,487 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
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-lookup-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:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/transaction-lookup-1311126815
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=1461127dccc40f9d070ce2042663ef48; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>transaction-lookup-1311126815</id>
47
- <account_code>transaction-lookup-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>f992a0b6b2e94448b585f9e05ca1bea5</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:02:17Z</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
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-lookup-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-lookup-1311126815</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"ee9e1fdd278defcbe4aab907505f1882\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=81a6f51de00ff91952ffcf8990f76517; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>transaction-lookup-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:18Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :post
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-lookup-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:
153
- - application/xml
154
- response: !ruby/struct:VCR::Response
155
- status: !ruby/struct:VCR::ResponseStatus
156
- code: 201
157
- message: Created
158
- headers:
159
- location:
160
- - http://api.lvh.me:3000/transactions/40af6e11e6ce42fe9bb1176582eef12b
161
- content-type:
162
- - application/xml; charset=utf-8
163
- cache-control:
164
- - no-cache
165
- x-ua-compatible:
166
- - IE=Edge
167
- set-cookie:
168
- - _recurly_session=70615e159ad42d1b223b46375eb3b7e2; domain=.lvh.me; path=/; HttpOnly
169
- server:
170
- - thin 1.2.11 codename Bat-Shit Crazy
171
- body: |
172
- <?xml version="1.0" encoding="UTF-8"?>
173
- <transaction type="Payment">
174
- <id>40af6e11e6ce42fe9bb1176582eef12b</id>
175
- <account_code>transaction-lookup-1311126815</account_code>
176
- <action>purchase</action>
177
- <date type="datetime">2011-09-22T22:02:18Z</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
199
- method: :post
200
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
201
- body: |
202
- <?xml version="1.0" encoding="UTF-8"?>
203
- <transaction>
204
- <account>
205
- <account-code>transaction-lookup-1311126815</account-code>
206
- <billing-info>
207
- <credit-card>
208
- </credit-card>
209
- </billing-info>
210
- </account>
211
- <amount-in-cents type="integer">200</amount-in-cents>
212
- <description>two</description>
213
- </transaction>
214
-
215
- headers:
216
- user-agent:
217
- - Recurly Ruby Client v0.4.13
218
- content-type:
219
- - application/xml
220
- response: !ruby/struct:VCR::Response
221
- status: !ruby/struct:VCR::ResponseStatus
222
- code: 201
223
- message: Created
224
- headers:
225
- location:
226
- - http://api.lvh.me:3000/transactions/d30f3a8a85564106b2621a87a0cff4a5
227
- content-type:
228
- - application/xml; charset=utf-8
229
- cache-control:
230
- - no-cache
231
- x-ua-compatible:
232
- - IE=Edge
233
- set-cookie:
234
- - _recurly_session=cbc85a92fafba8545b5a1a6dff429e79; domain=.lvh.me; path=/; HttpOnly
235
- server:
236
- - thin 1.2.11 codename Bat-Shit Crazy
237
- body: |
238
- <?xml version="1.0" encoding="UTF-8"?>
239
- <transaction type="Payment">
240
- <id>d30f3a8a85564106b2621a87a0cff4a5</id>
241
- <account_code>transaction-lookup-1311126815</account_code>
242
- <action>purchase</action>
243
- <date type="datetime">2011-09-22T22:02:19Z</date>
244
- <amount_in_cents type="integer">200</amount_in_cents>
245
- <currency>USD</currency>
246
- <status>success</status>
247
- <message>Test Gateway: Successful test transaction</message>
248
- <reference>12345</reference>
249
- <cvv_result code="M">Match</cvv_result>
250
- <avs_result code="D">Street address and postal code match.</avs_result>
251
- <avs_result_street>Y</avs_result_street>
252
- <avs_result_postal>Y</avs_result_postal>
253
- <test type="boolean">true</test>
254
- <voidable type="boolean">true</voidable>
255
- <refundable type="boolean">true</refundable>
256
- <credit_card>
257
- <type>visa</type>
258
- <last_four>1111</last_four>
259
- </credit_card>
260
- </transaction>
261
-
262
- http_version: "1.1"
263
- - !ruby/struct:VCR::HTTPInteraction
264
- request: !ruby/struct:VCR::Request
265
- method: :post
266
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
267
- body: |
268
- <?xml version="1.0" encoding="UTF-8"?>
269
- <transaction>
270
- <account>
271
- <account-code>transaction-lookup-1311126815</account-code>
272
- <billing-info>
273
- <credit-card>
274
- </credit-card>
275
- </billing-info>
276
- </account>
277
- <amount-in-cents type="integer">300</amount-in-cents>
278
- <description>three</description>
279
- </transaction>
280
-
281
- headers:
282
- user-agent:
283
- - Recurly Ruby Client v0.4.13
284
- content-type:
285
- - application/xml
286
- response: !ruby/struct:VCR::Response
287
- status: !ruby/struct:VCR::ResponseStatus
288
- code: 201
289
- message: Created
290
- headers:
291
- location:
292
- - http://api.lvh.me:3000/transactions/b4ed42a1812f44dc98b3e8310e59f249
293
- content-type:
294
- - application/xml; charset=utf-8
295
- cache-control:
296
- - no-cache
297
- x-ua-compatible:
298
- - IE=Edge
299
- set-cookie:
300
- - _recurly_session=4d39ec478c2d3057b3fff83f5f5267c4; domain=.lvh.me; path=/; HttpOnly
301
- server:
302
- - thin 1.2.11 codename Bat-Shit Crazy
303
- body: |
304
- <?xml version="1.0" encoding="UTF-8"?>
305
- <transaction type="Payment">
306
- <id>b4ed42a1812f44dc98b3e8310e59f249</id>
307
- <account_code>transaction-lookup-1311126815</account_code>
308
- <action>purchase</action>
309
- <date type="datetime">2011-09-22T22:02:19Z</date>
310
- <amount_in_cents type="integer">300</amount_in_cents>
311
- <currency>USD</currency>
312
- <status>success</status>
313
- <message>Test Gateway: Successful test transaction</message>
314
- <reference>12345</reference>
315
- <cvv_result code="M">Match</cvv_result>
316
- <avs_result code="D">Street address and postal code match.</avs_result>
317
- <avs_result_street>Y</avs_result_street>
318
- <avs_result_postal>Y</avs_result_postal>
319
- <test type="boolean">true</test>
320
- <voidable type="boolean">true</voidable>
321
- <refundable type="boolean">true</refundable>
322
- <credit_card>
323
- <type>visa</type>
324
- <last_four>1111</last_four>
325
- </credit_card>
326
- </transaction>
327
-
328
- http_version: "1.1"
329
- - !ruby/struct:VCR::HTTPInteraction
330
- request: !ruby/struct:VCR::Request
331
- method: :get
332
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/40af6e11e6ce42fe9bb1176582eef12b.xml?account_code=transaction-lookup-1311126815
333
- body:
334
- headers:
335
- user-agent:
336
- - Recurly Ruby Client v0.4.13
337
- accept:
338
- - application/xml
339
- accept-encoding:
340
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
341
- response: !ruby/struct:VCR::Response
342
- status: !ruby/struct:VCR::ResponseStatus
343
- code: 200
344
- message: OK
345
- headers:
346
- content-type:
347
- - application/xml; charset=utf-8
348
- etag:
349
- - "\"d1cb35ca76a9c91d8098148477b1b010\""
350
- cache-control:
351
- - max-age=0, private, must-revalidate
352
- x-ua-compatible:
353
- - IE=Edge
354
- server:
355
- - thin 1.2.11 codename Bat-Shit Crazy
356
- body: |
357
- <?xml version="1.0" encoding="UTF-8"?>
358
- <transaction type="Payment">
359
- <id>40af6e11e6ce42fe9bb1176582eef12b</id>
360
- <account_code>transaction-lookup-1311126815</account_code>
361
- <action>purchase</action>
362
- <date type="datetime">2011-09-22T22:02:18Z</date>
363
- <amount_in_cents type="integer">100</amount_in_cents>
364
- <currency>USD</currency>
365
- <status>success</status>
366
- <message>Test Gateway: Successful test transaction</message>
367
- <reference>12345</reference>
368
- <cvv_result code="M">Match</cvv_result>
369
- <avs_result code="D">Street address and postal code match.</avs_result>
370
- <avs_result_street>Y</avs_result_street>
371
- <avs_result_postal>Y</avs_result_postal>
372
- <test type="boolean">true</test>
373
- <voidable type="boolean">true</voidable>
374
- <refundable type="boolean">true</refundable>
375
- <credit_card>
376
- <type>visa</type>
377
- <last_four>1111</last_four>
378
- </credit_card>
379
- </transaction>
380
-
381
- http_version: "1.1"
382
- - !ruby/struct:VCR::HTTPInteraction
383
- request: !ruby/struct:VCR::Request
384
- method: :get
385
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/d30f3a8a85564106b2621a87a0cff4a5.xml?account_code=transaction-lookup-1311126815
386
- body:
387
- headers:
388
- user-agent:
389
- - Recurly Ruby Client v0.4.13
390
- accept:
391
- - application/xml
392
- accept-encoding:
393
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
394
- response: !ruby/struct:VCR::Response
395
- status: !ruby/struct:VCR::ResponseStatus
396
- code: 200
397
- message: OK
398
- headers:
399
- content-type:
400
- - application/xml; charset=utf-8
401
- etag:
402
- - "\"06a4139d887c5c506d56dba7710725da\""
403
- cache-control:
404
- - max-age=0, private, must-revalidate
405
- x-ua-compatible:
406
- - IE=Edge
407
- server:
408
- - thin 1.2.11 codename Bat-Shit Crazy
409
- body: |
410
- <?xml version="1.0" encoding="UTF-8"?>
411
- <transaction type="Payment">
412
- <id>d30f3a8a85564106b2621a87a0cff4a5</id>
413
- <account_code>transaction-lookup-1311126815</account_code>
414
- <action>purchase</action>
415
- <date type="datetime">2011-09-22T22:02:19Z</date>
416
- <amount_in_cents type="integer">200</amount_in_cents>
417
- <currency>USD</currency>
418
- <status>success</status>
419
- <message>Test Gateway: Successful test transaction</message>
420
- <reference>12345</reference>
421
- <cvv_result code="M">Match</cvv_result>
422
- <avs_result code="D">Street address and postal code match.</avs_result>
423
- <avs_result_street>Y</avs_result_street>
424
- <avs_result_postal>Y</avs_result_postal>
425
- <test type="boolean">true</test>
426
- <voidable type="boolean">true</voidable>
427
- <refundable type="boolean">true</refundable>
428
- <credit_card>
429
- <type>visa</type>
430
- <last_four>1111</last_four>
431
- </credit_card>
432
- </transaction>
433
-
434
- http_version: "1.1"
435
- - !ruby/struct:VCR::HTTPInteraction
436
- request: !ruby/struct:VCR::Request
437
- method: :get
438
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/b4ed42a1812f44dc98b3e8310e59f249.xml?account_code=transaction-lookup-1311126815
439
- body:
440
- headers:
441
- user-agent:
442
- - Recurly Ruby Client v0.4.13
443
- accept:
444
- - application/xml
445
- accept-encoding:
446
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
447
- response: !ruby/struct:VCR::Response
448
- status: !ruby/struct:VCR::ResponseStatus
449
- code: 200
450
- message: OK
451
- headers:
452
- content-type:
453
- - application/xml; charset=utf-8
454
- etag:
455
- - "\"f1efb67f94ea75f41ce402256b17c19a\""
456
- cache-control:
457
- - max-age=0, private, must-revalidate
458
- x-ua-compatible:
459
- - IE=Edge
460
- server:
461
- - thin 1.2.11 codename Bat-Shit Crazy
462
- body: |
463
- <?xml version="1.0" encoding="UTF-8"?>
464
- <transaction type="Payment">
465
- <id>b4ed42a1812f44dc98b3e8310e59f249</id>
466
- <account_code>transaction-lookup-1311126815</account_code>
467
- <action>purchase</action>
468
- <date type="datetime">2011-09-22T22:02:19Z</date>
469
- <amount_in_cents type="integer">300</amount_in_cents>
470
- <currency>USD</currency>
471
- <status>success</status>
472
- <message>Test Gateway: Successful test transaction</message>
473
- <reference>12345</reference>
474
- <cvv_result code="M">Match</cvv_result>
475
- <avs_result code="D">Street address and postal code match.</avs_result>
476
- <avs_result_street>Y</avs_result_street>
477
- <avs_result_postal>Y</avs_result_postal>
478
- <test type="boolean">true</test>
479
- <voidable type="boolean">true</voidable>
480
- <refundable type="boolean">true</refundable>
481
- <credit_card>
482
- <type>visa</type>
483
- <last_four>1111</last_four>
484
- </credit_card>
485
- </transaction>
486
-
487
- http_version: "1.1"