recurly 0.4.0 → 0.4.1

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/connection.rb +10 -0
  2. data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
  3. data/lib/recurly.rb +7 -2
  4. data/lib/recurly/transparent.rb +4 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/transaction_spec.rb +5 -2
  7. data/spec/unit/transparent_spec.rb +59 -1
  8. data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
  9. data/spec/vcr/account/close/1297746103.yml +23 -30
  10. data/spec/vcr/account/create-blank/1297746103.yml +5 -7
  11. data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
  12. data/spec/vcr/account/create-min/1297746103.yml +8 -11
  13. data/spec/vcr/account/create/1297746103.yml +8 -11
  14. data/spec/vcr/account/find/1297746103.yml +22 -29
  15. data/spec/vcr/account/list/1297746103.yml +150 -196
  16. data/spec/vcr/account/update/1297746103.yml +37 -46
  17. data/spec/vcr/billing/create/1298594128.yml +24 -31
  18. data/spec/vcr/billing/destroy/1298594128.yml +35 -46
  19. data/spec/vcr/billing/find/1298594128.yml +32 -41
  20. data/spec/vcr/billing/update/1298594128.yml +32 -41
  21. data/spec/vcr/charge/create/1297746103.yml +36 -45
  22. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
  23. data/spec/vcr/charge/list-all/1297746103.yml +51 -62
  24. data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
  25. data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
  26. data/spec/vcr/charge/lookup/1297746103.yml +28 -35
  27. data/spec/vcr/coupon/create/1299714521.yml +23 -30
  28. data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
  29. data/spec/vcr/credit/create/1299714599.yml +28 -35
  30. data/spec/vcr/credit/delete/1299714599.yml +41 -52
  31. data/spec/vcr/credit/list/1299714599.yml +51 -62
  32. data/spec/vcr/credit/lookup/1299714599.yml +28 -35
  33. data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
  34. data/spec/vcr/invoice/create/1297746103.yml +50 -61
  35. data/spec/vcr/invoice/list/1297746103.yml +73 -88
  36. data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
  37. data/spec/vcr/plan/all.yml +18 -24
  38. data/spec/vcr/plan/find.yml +18 -24
  39. data/spec/vcr/plan/update.yml +18 -24
  40. data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
  42. data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
  43. data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
  44. data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
  45. data/spec/vcr/subscription/change1/1297746103.yml +55 -68
  46. data/spec/vcr/subscription/change2/1297746103.yml +55 -68
  47. data/spec/vcr/subscription/create/1297746103.yml +25 -32
  48. data/spec/vcr/subscription/find/1297746103.yml +35 -44
  49. data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
  50. data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
  51. data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
  52. data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
  53. data/spec/vcr/transaction/all/1300473500.yml +387 -0
  54. data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
  55. data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
  56. data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
  57. data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
  58. data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
  59. data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
  60. data/spec/vcr/transaction/void/1300473500.yml +620 -0
  61. metadata +21 -20
  62. data/spec/vcr/transaction/all/1297746103.yml +0 -389
  63. data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
  64. data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
  65. data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -6,7 +6,7 @@
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-list-initial-1297746103</account-code>
9
+ <account-code>transaction-list-initial-1300473500</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
@@ -32,32 +32,29 @@
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: "Created "
35
+ message: Created
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-list-initial-1297746103
40
+ - http://app.recurly.local:3000/accounts/transaction-list-initial-1300473500
41
41
  x-runtime:
42
- - "702"
42
+ - "347"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "603"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:56:02 GMT
47
+ set-cookie:
48
+ - _recurly_session=d26ba38f59b3eed45e4bc6c694a70c60; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=775131bae3f7cb52828fde81c1c134523f8291daa60739c0ae06644dc2c8a0017b81f02ad7a1b958b4d08ce4289fcb536c56485524236667cbf69e8ecae272e1%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=7fa8476c29f115ca45b71ddb87cc22ce; domain=.recurly.local; path=/; HttpOnly
51
+ server:
52
+ - thin 1.2.7 codename No Hup
56
53
  body: |
57
54
  <?xml version="1.0" encoding="UTF-8"?>
58
55
  <account>
59
- <id>transaction-list-initial-1297746103</id>
60
- <account_code>transaction-list-initial-1297746103</account_code>
56
+ <id>transaction-list-initial-1300473500</id>
57
+ <account_code>transaction-list-initial-1300473500</account_code>
61
58
  <username></username>
62
59
  <email>verena@test.com</email>
63
60
  <first_name>Verena</first_name>
@@ -65,8 +62,8 @@
65
62
  <company_name>Recurly Ruby Gem</company_name>
66
63
  <balance_in_cents type="integer">0</balance_in_cents>
67
64
  <closed type="boolean">false</closed>
68
- <hosted_login_token>5ff0bddfb7a7499a942f85eb755038cd</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:56:02Z</created_at>
65
+ <hosted_login_token>3c79eba0ca274f85a7d67474bb344961</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:56:34Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -74,7 +71,7 @@
74
71
  - !ruby/struct:VCR::HTTPInteraction
75
72
  request: !ruby/struct:VCR::Request
76
73
  method: :put
77
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1297746103/billing_info.xml
74
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1300473500/billing_info.xml
78
75
  body: |
79
76
  <?xml version="1.0" encoding="UTF-8"?>
80
77
  <billing-info>
@@ -91,7 +88,7 @@
91
88
  <month type="integer">3</month>
92
89
  <verification-value>123</verification-value>
93
90
  </credit-card>
94
- <account-code>transaction-list-initial-1297746103</account-code>
91
+ <account-code>transaction-list-initial-1300473500</account-code>
95
92
  </billing-info>
96
93
 
97
94
  headers:
@@ -108,30 +105,28 @@
108
105
  response: !ruby/struct:VCR::Response
109
106
  status: !ruby/struct:VCR::ResponseStatus
110
107
  code: 200
111
- message: "OK "
108
+ message: OK
112
109
  headers:
113
110
  x-runtime:
114
- - "3181"
111
+ - "6292"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"4ec99dbe572aecace619ed3e9aaebd7c\""
115
+ - "\"6f7761ededf9b27066b1778f1df4ae35\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "650"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:56:08 GMT
120
+ set-cookie:
121
+ - _recurly_session=92507290f20b20928a2255538f54e6b1; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=210cddf17aa45b59dad4f477d3ec3c3d; domain=.recurly.local; path=/; HttpOnly
124
+ server:
125
+ - thin 1.2.7 codename No Hup
131
126
  body: |
132
127
  <?xml version="1.0" encoding="UTF-8"?>
133
128
  <billing_info>
134
- <account_code>transaction-list-initial-1297746103</account_code>
129
+ <account_code>transaction-list-initial-1300473500</account_code>
135
130
  <first_name>Verena</first_name>
136
131
  <last_name>Test</last_name>
137
132
  <address1>123 Test St</address1>
@@ -149,14 +144,14 @@
149
144
  <month type="integer">3</month>
150
145
  <year type="integer">2012</year>
151
146
  </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:56:08Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:56:43Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
156
151
  - !ruby/struct:VCR::HTTPInteraction
157
152
  request: !ruby/struct:VCR::Request
158
153
  method: :get
159
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1297746103/transactions
154
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-initial-1300473500/transactions
160
155
  body:
161
156
  headers:
162
157
  authorization:
@@ -172,26 +167,24 @@
172
167
  response: !ruby/struct:VCR::Response
173
168
  status: !ruby/struct:VCR::ResponseStatus
174
169
  code: 200
175
- message: "OK "
170
+ message: OK
176
171
  headers:
177
172
  x-runtime:
178
- - "278"
173
+ - "408"
179
174
  content-type:
180
175
  - application/xml; charset=utf-8
181
176
  etag:
182
- - "\"4e16708d77cf1dcc43d76ebdd0a19397\""
177
+ - "\"a50f265462ed28a3deeb42691e54feb3\""
183
178
  cache-control:
184
179
  - private, max-age=0, must-revalidate
185
180
  content-length:
186
- - "1004"
187
- server:
188
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
189
- date:
190
- - Fri, 11 Mar 2011 18:56:10 GMT
181
+ - "939"
182
+ set-cookie:
183
+ - _recurly_session=c4b595725d620749a3287eefda54a6d2; domain=.recurly.local; path=/; HttpOnly
191
184
  connection:
192
185
  - close
193
- set-cookie:
194
- - _recurly_session=88d6b92607f150b26c2bd32610f431f0; domain=.recurly.local; path=/; HttpOnly
186
+ server:
187
+ - thin 1.2.7 codename No Hup
195
188
  body: |
196
189
  <?xml version="1.0" encoding="UTF-8"?>
197
190
  <transactions type="collection">
@@ -199,21 +192,21 @@
199
192
  <per_page type="integer">50</per_page>
200
193
  <total_entries type="integer">1</total_entries>
201
194
  <transaction type="Payment">
202
- <id>ae768b53826543f98f81379f504b3922</id>
203
- <account_code>transaction-list-initial-1297746103</account_code>
195
+ <id>a805083a038a454d9b9f699d8555cb11</id>
196
+ <account_code>transaction-list-initial-1300473500</account_code>
204
197
  <action>authorization</action>
205
- <date type="datetime">2011-03-11T18:56:07Z</date>
206
- <amount_in_cents type="integer">0</amount_in_cents>
207
- <status>success</status>
208
- <message>Test Gateway: Successful test transaction</message>
209
- <reference>12345</reference>
210
- <cvv_result code="M">Match</cvv_result>
211
- <avs_result code="D">Street address and postal code match.</avs_result>
212
- <avs_result_street>Y</avs_result_street>
213
- <avs_result_postal>Y</avs_result_postal>
214
- <test type="boolean">true</test>
198
+ <date type="datetime">2011-03-18T18:56:41Z</date>
199
+ <amount_in_cents type="integer">100</amount_in_cents>
200
+ <status>void</status>
201
+ <message>Approved</message>
202
+ <reference>819793155761849880</reference>
203
+ <cvv_result code=""></cvv_result>
204
+ <avs_result code=""></avs_result>
205
+ <avs_result_street></avs_result_street>
206
+ <avs_result_postal></avs_result_postal>
207
+ <test type="boolean">false</test>
215
208
  <voidable type="boolean">false</voidable>
216
- <refundable type="boolean">true</refundable>
209
+ <refundable type="boolean">false</refundable>
217
210
  </transaction>
218
211
  </transactions>
219
212
 
@@ -0,0 +1,561 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-lookup-1300473500</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 type="yaml" nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ authorization:
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
24
+ content-type:
25
+ - application/xml
26
+ accept:
27
+ - "*/*"
28
+ user-agent:
29
+ - Ruby
30
+ connection:
31
+ - close
32
+ response: !ruby/struct:VCR::Response
33
+ status: !ruby/struct:VCR::ResponseStatus
34
+ code: 201
35
+ message: Created
36
+ headers:
37
+ cache-control:
38
+ - no-cache
39
+ location:
40
+ - http://app.recurly.local:3000/accounts/transaction-lookup-1300473500
41
+ x-runtime:
42
+ - "357"
43
+ content-type:
44
+ - application/xml; charset=utf-8
45
+ content-length:
46
+ - "591"
47
+ set-cookie:
48
+ - _recurly_session=300d0b7cdba66a350a054cfaa2358db5; domain=.recurly.local; path=/; HttpOnly
49
+ connection:
50
+ - close
51
+ server:
52
+ - thin 1.2.7 codename No Hup
53
+ body: |
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <account>
56
+ <id>transaction-lookup-1300473500</id>
57
+ <account_code>transaction-lookup-1300473500</account_code>
58
+ <username></username>
59
+ <email>verena@test.com</email>
60
+ <first_name>Verena</first_name>
61
+ <last_name>Test</last_name>
62
+ <company_name>Recurly Ruby Gem</company_name>
63
+ <balance_in_cents type="integer">0</balance_in_cents>
64
+ <closed type="boolean">false</closed>
65
+ <hosted_login_token>873ca3ba63a94ac288274fb80e26990f</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:57:28Z</created_at>
67
+ <state>active</state>
68
+ </account>
69
+
70
+ http_version: "1.1"
71
+ - !ruby/struct:VCR::HTTPInteraction
72
+ request: !ruby/struct:VCR::Request
73
+ method: :put
74
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-lookup-1300473500/billing_info.xml
75
+ body: |
76
+ <?xml version="1.0" encoding="UTF-8"?>
77
+ <billing-info>
78
+ <first-name>Verena</first-name>
79
+ <last-name>Test</last-name>
80
+ <address1>123 Test St</address1>
81
+ <city>San Francisco</city>
82
+ <state>CA</state>
83
+ <zip>94115</zip>
84
+ <country>US</country>
85
+ <credit-card>
86
+ <number>4111111111111111</number>
87
+ <year type="integer">2012</year>
88
+ <month type="integer">3</month>
89
+ <verification-value>123</verification-value>
90
+ </credit-card>
91
+ <account-code>transaction-lookup-1300473500</account-code>
92
+ </billing-info>
93
+
94
+ headers:
95
+ authorization:
96
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
97
+ content-type:
98
+ - application/xml
99
+ accept:
100
+ - "*/*"
101
+ user-agent:
102
+ - Ruby
103
+ connection:
104
+ - close
105
+ response: !ruby/struct:VCR::Response
106
+ status: !ruby/struct:VCR::ResponseStatus
107
+ code: 200
108
+ message: OK
109
+ headers:
110
+ x-runtime:
111
+ - "5879"
112
+ content-type:
113
+ - application/xml; charset=utf-8
114
+ etag:
115
+ - "\"78c20b90bb81f25963d1d41fe8ffefaa\""
116
+ cache-control:
117
+ - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "644"
120
+ set-cookie:
121
+ - _recurly_session=d8515e54564d195c076fd693b12dbf81; domain=.recurly.local; path=/; HttpOnly
122
+ connection:
123
+ - close
124
+ server:
125
+ - thin 1.2.7 codename No Hup
126
+ body: |
127
+ <?xml version="1.0" encoding="UTF-8"?>
128
+ <billing_info>
129
+ <account_code>transaction-lookup-1300473500</account_code>
130
+ <first_name>Verena</first_name>
131
+ <last_name>Test</last_name>
132
+ <address1>123 Test St</address1>
133
+ <address2></address2>
134
+ <city>San Francisco</city>
135
+ <state>CA</state>
136
+ <country>US</country>
137
+ <zip>94115</zip>
138
+ <phone></phone>
139
+ <vat_number></vat_number>
140
+ <ip_address></ip_address>
141
+ <credit_card>
142
+ <type>visa</type>
143
+ <last_four>1111</last_four>
144
+ <month type="integer">3</month>
145
+ <year type="integer">2012</year>
146
+ </credit_card>
147
+ <updated_at type="datetime">2011-03-18T18:57:37Z</updated_at>
148
+ </billing_info>
149
+
150
+ http_version: "1.1"
151
+ - !ruby/struct:VCR::HTTPInteraction
152
+ request: !ruby/struct:VCR::Request
153
+ method: :post
154
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
155
+ body: |
156
+ <?xml version="1.0" encoding="UTF-8"?>
157
+ <transaction>
158
+ <account>
159
+ <account-code>transaction-lookup-1300473500</account-code>
160
+ <billing-info>
161
+ <credit-card>
162
+ </credit-card>
163
+ </billing-info>
164
+ </account>
165
+ <amount-in-cents type="integer">100</amount-in-cents>
166
+ <description>one</description>
167
+ </transaction>
168
+
169
+ headers:
170
+ authorization:
171
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
172
+ content-type:
173
+ - application/xml
174
+ accept:
175
+ - "*/*"
176
+ user-agent:
177
+ - Ruby
178
+ connection:
179
+ - close
180
+ response: !ruby/struct:VCR::Response
181
+ status: !ruby/struct:VCR::ResponseStatus
182
+ code: 201
183
+ message: Created
184
+ headers:
185
+ cache-control:
186
+ - no-cache
187
+ location:
188
+ - http://app.recurly.local:3000/transactions/20465557d4014dc9b19e0a4ed0529917
189
+ x-runtime:
190
+ - "6056"
191
+ content-type:
192
+ - application/xml; charset=utf-8
193
+ content-length:
194
+ - "794"
195
+ set-cookie:
196
+ - _recurly_session=f49cc290c8f8da124020cd57e1f0c4e1; domain=.recurly.local; path=/; HttpOnly
197
+ connection:
198
+ - close
199
+ server:
200
+ - thin 1.2.7 codename No Hup
201
+ body: |
202
+ <?xml version="1.0" encoding="UTF-8"?>
203
+ <transaction type="Payment">
204
+ <id>20465557d4014dc9b19e0a4ed0529917</id>
205
+ <account_code>transaction-lookup-1300473500</account_code>
206
+ <action>purchase</action>
207
+ <date type="datetime">2011-03-18T18:57:42Z</date>
208
+ <amount_in_cents type="integer">100</amount_in_cents>
209
+ <status>success</status>
210
+ <message>Approved</message>
211
+ <reference>819793155777085479</reference>
212
+ <cvv_result code=""></cvv_result>
213
+ <avs_result code=""></avs_result>
214
+ <avs_result_street></avs_result_street>
215
+ <avs_result_postal></avs_result_postal>
216
+ <test type="boolean">false</test>
217
+ <voidable type="boolean">true</voidable>
218
+ <refundable type="boolean">true</refundable>
219
+ <credit_card>
220
+ <type>visa</type>
221
+ <last_four>1111</last_four>
222
+ </credit_card>
223
+ </transaction>
224
+
225
+ http_version: "1.1"
226
+ - !ruby/struct:VCR::HTTPInteraction
227
+ request: !ruby/struct:VCR::Request
228
+ method: :post
229
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
230
+ body: |
231
+ <?xml version="1.0" encoding="UTF-8"?>
232
+ <transaction>
233
+ <account>
234
+ <account-code>transaction-lookup-1300473500</account-code>
235
+ <billing-info>
236
+ <credit-card>
237
+ </credit-card>
238
+ </billing-info>
239
+ </account>
240
+ <amount-in-cents type="integer">200</amount-in-cents>
241
+ <description>two</description>
242
+ </transaction>
243
+
244
+ headers:
245
+ authorization:
246
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
247
+ content-type:
248
+ - application/xml
249
+ accept:
250
+ - "*/*"
251
+ user-agent:
252
+ - Ruby
253
+ connection:
254
+ - close
255
+ response: !ruby/struct:VCR::Response
256
+ status: !ruby/struct:VCR::ResponseStatus
257
+ code: 201
258
+ message: Created
259
+ headers:
260
+ cache-control:
261
+ - no-cache
262
+ location:
263
+ - http://app.recurly.local:3000/transactions/99407f4467804a34b39b573ccd36b3ee
264
+ x-runtime:
265
+ - "6030"
266
+ content-type:
267
+ - application/xml; charset=utf-8
268
+ content-length:
269
+ - "794"
270
+ set-cookie:
271
+ - _recurly_session=c458a1a8327cbc35cc3bddb237e9ff38; domain=.recurly.local; path=/; HttpOnly
272
+ connection:
273
+ - close
274
+ server:
275
+ - thin 1.2.7 codename No Hup
276
+ body: |
277
+ <?xml version="1.0" encoding="UTF-8"?>
278
+ <transaction type="Payment">
279
+ <id>99407f4467804a34b39b573ccd36b3ee</id>
280
+ <account_code>transaction-lookup-1300473500</account_code>
281
+ <action>purchase</action>
282
+ <date type="datetime">2011-03-18T18:57:50Z</date>
283
+ <amount_in_cents type="integer">200</amount_in_cents>
284
+ <status>success</status>
285
+ <message>Approved</message>
286
+ <reference>819793155777085495</reference>
287
+ <cvv_result code=""></cvv_result>
288
+ <avs_result code=""></avs_result>
289
+ <avs_result_street></avs_result_street>
290
+ <avs_result_postal></avs_result_postal>
291
+ <test type="boolean">false</test>
292
+ <voidable type="boolean">true</voidable>
293
+ <refundable type="boolean">true</refundable>
294
+ <credit_card>
295
+ <type>visa</type>
296
+ <last_four>1111</last_four>
297
+ </credit_card>
298
+ </transaction>
299
+
300
+ http_version: "1.1"
301
+ - !ruby/struct:VCR::HTTPInteraction
302
+ request: !ruby/struct:VCR::Request
303
+ method: :post
304
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
305
+ body: |
306
+ <?xml version="1.0" encoding="UTF-8"?>
307
+ <transaction>
308
+ <account>
309
+ <account-code>transaction-lookup-1300473500</account-code>
310
+ <billing-info>
311
+ <credit-card>
312
+ </credit-card>
313
+ </billing-info>
314
+ </account>
315
+ <amount-in-cents type="integer">300</amount-in-cents>
316
+ <description>three</description>
317
+ </transaction>
318
+
319
+ headers:
320
+ authorization:
321
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
322
+ content-type:
323
+ - application/xml
324
+ accept:
325
+ - "*/*"
326
+ user-agent:
327
+ - Ruby
328
+ connection:
329
+ - close
330
+ response: !ruby/struct:VCR::Response
331
+ status: !ruby/struct:VCR::ResponseStatus
332
+ code: 201
333
+ message: Created
334
+ headers:
335
+ cache-control:
336
+ - no-cache
337
+ location:
338
+ - http://app.recurly.local:3000/transactions/76cd94a3691649a790239e97d69af2ed
339
+ x-runtime:
340
+ - "6377"
341
+ content-type:
342
+ - application/xml; charset=utf-8
343
+ content-length:
344
+ - "794"
345
+ set-cookie:
346
+ - _recurly_session=9da9a6d07dd93e112372a38eabea33e1; domain=.recurly.local; path=/; HttpOnly
347
+ connection:
348
+ - close
349
+ server:
350
+ - thin 1.2.7 codename No Hup
351
+ body: |
352
+ <?xml version="1.0" encoding="UTF-8"?>
353
+ <transaction type="Payment">
354
+ <id>76cd94a3691649a790239e97d69af2ed</id>
355
+ <account_code>transaction-lookup-1300473500</account_code>
356
+ <action>purchase</action>
357
+ <date type="datetime">2011-03-18T18:57:58Z</date>
358
+ <amount_in_cents type="integer">300</amount_in_cents>
359
+ <status>success</status>
360
+ <message>Approved</message>
361
+ <reference>819793155777085537</reference>
362
+ <cvv_result code=""></cvv_result>
363
+ <avs_result code=""></avs_result>
364
+ <avs_result_street></avs_result_street>
365
+ <avs_result_postal></avs_result_postal>
366
+ <test type="boolean">false</test>
367
+ <voidable type="boolean">true</voidable>
368
+ <refundable type="boolean">true</refundable>
369
+ <credit_card>
370
+ <type>visa</type>
371
+ <last_four>1111</last_four>
372
+ </credit_card>
373
+ </transaction>
374
+
375
+ http_version: "1.1"
376
+ - !ruby/struct:VCR::HTTPInteraction
377
+ request: !ruby/struct:VCR::Request
378
+ method: :get
379
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/20465557d4014dc9b19e0a4ed0529917.xml?account_code=transaction-lookup-1300473500
380
+ body:
381
+ headers:
382
+ authorization:
383
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
384
+ accept:
385
+ - application/xml
386
+ accept-encoding:
387
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
388
+ user-agent:
389
+ - Ruby
390
+ connection:
391
+ - close
392
+ response: !ruby/struct:VCR::Response
393
+ status: !ruby/struct:VCR::ResponseStatus
394
+ code: 200
395
+ message: OK
396
+ headers:
397
+ x-runtime:
398
+ - "467"
399
+ content-type:
400
+ - application/xml; charset=utf-8
401
+ etag:
402
+ - "\"245e06abb46eb141c7305073a23f8cf3\""
403
+ cache-control:
404
+ - private, max-age=0, must-revalidate
405
+ content-length:
406
+ - "794"
407
+ set-cookie:
408
+ - _recurly_session=055fc40573da96b3eed01415013c9b1e; domain=.recurly.local; path=/; HttpOnly
409
+ connection:
410
+ - close
411
+ server:
412
+ - thin 1.2.7 codename No Hup
413
+ body: |
414
+ <?xml version="1.0" encoding="UTF-8"?>
415
+ <transaction type="Payment">
416
+ <id>20465557d4014dc9b19e0a4ed0529917</id>
417
+ <account_code>transaction-lookup-1300473500</account_code>
418
+ <action>purchase</action>
419
+ <date type="datetime">2011-03-18T18:57:42Z</date>
420
+ <amount_in_cents type="integer">100</amount_in_cents>
421
+ <status>success</status>
422
+ <message>Approved</message>
423
+ <reference>819793155777085479</reference>
424
+ <cvv_result code=""></cvv_result>
425
+ <avs_result code=""></avs_result>
426
+ <avs_result_street></avs_result_street>
427
+ <avs_result_postal></avs_result_postal>
428
+ <test type="boolean">false</test>
429
+ <voidable type="boolean">true</voidable>
430
+ <refundable type="boolean">true</refundable>
431
+ <credit_card>
432
+ <type>visa</type>
433
+ <last_four>1111</last_four>
434
+ </credit_card>
435
+ </transaction>
436
+
437
+ http_version: "1.1"
438
+ - !ruby/struct:VCR::HTTPInteraction
439
+ request: !ruby/struct:VCR::Request
440
+ method: :get
441
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/99407f4467804a34b39b573ccd36b3ee.xml?account_code=transaction-lookup-1300473500
442
+ body:
443
+ headers:
444
+ authorization:
445
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
446
+ accept:
447
+ - application/xml
448
+ accept-encoding:
449
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
450
+ user-agent:
451
+ - Ruby
452
+ connection:
453
+ - close
454
+ response: !ruby/struct:VCR::Response
455
+ status: !ruby/struct:VCR::ResponseStatus
456
+ code: 200
457
+ message: OK
458
+ headers:
459
+ x-runtime:
460
+ - "377"
461
+ content-type:
462
+ - application/xml; charset=utf-8
463
+ etag:
464
+ - "\"1bce770df35620d6a2e1cc28a6eb2af7\""
465
+ cache-control:
466
+ - private, max-age=0, must-revalidate
467
+ content-length:
468
+ - "794"
469
+ set-cookie:
470
+ - _recurly_session=c4576ab682276425355439da5192b848; domain=.recurly.local; path=/; HttpOnly
471
+ connection:
472
+ - close
473
+ server:
474
+ - thin 1.2.7 codename No Hup
475
+ body: |
476
+ <?xml version="1.0" encoding="UTF-8"?>
477
+ <transaction type="Payment">
478
+ <id>99407f4467804a34b39b573ccd36b3ee</id>
479
+ <account_code>transaction-lookup-1300473500</account_code>
480
+ <action>purchase</action>
481
+ <date type="datetime">2011-03-18T18:57:50Z</date>
482
+ <amount_in_cents type="integer">200</amount_in_cents>
483
+ <status>success</status>
484
+ <message>Approved</message>
485
+ <reference>819793155777085495</reference>
486
+ <cvv_result code=""></cvv_result>
487
+ <avs_result code=""></avs_result>
488
+ <avs_result_street></avs_result_street>
489
+ <avs_result_postal></avs_result_postal>
490
+ <test type="boolean">false</test>
491
+ <voidable type="boolean">true</voidable>
492
+ <refundable type="boolean">true</refundable>
493
+ <credit_card>
494
+ <type>visa</type>
495
+ <last_four>1111</last_four>
496
+ </credit_card>
497
+ </transaction>
498
+
499
+ http_version: "1.1"
500
+ - !ruby/struct:VCR::HTTPInteraction
501
+ request: !ruby/struct:VCR::Request
502
+ method: :get
503
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions/76cd94a3691649a790239e97d69af2ed.xml?account_code=transaction-lookup-1300473500
504
+ body:
505
+ headers:
506
+ authorization:
507
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
508
+ accept:
509
+ - application/xml
510
+ accept-encoding:
511
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
512
+ user-agent:
513
+ - Ruby
514
+ connection:
515
+ - close
516
+ response: !ruby/struct:VCR::Response
517
+ status: !ruby/struct:VCR::ResponseStatus
518
+ code: 200
519
+ message: OK
520
+ headers:
521
+ x-runtime:
522
+ - "372"
523
+ content-type:
524
+ - application/xml; charset=utf-8
525
+ etag:
526
+ - "\"113bf2b75a7afc73a3a3f2021739b6b6\""
527
+ cache-control:
528
+ - private, max-age=0, must-revalidate
529
+ content-length:
530
+ - "794"
531
+ set-cookie:
532
+ - _recurly_session=1966c4582fb4364db44c27aaa883a333; domain=.recurly.local; path=/; HttpOnly
533
+ connection:
534
+ - close
535
+ server:
536
+ - thin 1.2.7 codename No Hup
537
+ body: |
538
+ <?xml version="1.0" encoding="UTF-8"?>
539
+ <transaction type="Payment">
540
+ <id>76cd94a3691649a790239e97d69af2ed</id>
541
+ <account_code>transaction-lookup-1300473500</account_code>
542
+ <action>purchase</action>
543
+ <date type="datetime">2011-03-18T18:57:58Z</date>
544
+ <amount_in_cents type="integer">300</amount_in_cents>
545
+ <status>success</status>
546
+ <message>Approved</message>
547
+ <reference>819793155777085537</reference>
548
+ <cvv_result code=""></cvv_result>
549
+ <avs_result code=""></avs_result>
550
+ <avs_result_street></avs_result_street>
551
+ <avs_result_postal></avs_result_postal>
552
+ <test type="boolean">false</test>
553
+ <voidable type="boolean">true</voidable>
554
+ <refundable type="boolean">true</refundable>
555
+ <credit_card>
556
+ <type>visa</type>
557
+ <last_four>1111</last_four>
558
+ </credit_card>
559
+ </transaction>
560
+
561
+ http_version: "1.1"