recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-refund-1301883347</account-code>
9
+ <account-code>transaction-refund-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-refund-1301883347
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-refund-1296674173
41
37
  x-runtime:
42
- - "481"
38
+ - "793"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "591"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:06:20 GMT
46
+ - Thu, 03 Feb 2011 22:26:18 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=7ad4f11cfd7cede44039d729dd9fa8f2; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=aaa04745895f78fef21de6cb3ab48889f5198ab15f2002faa8006434d503e3efb8fca5d6f8e4b1f908b9a38a525c07b6867bb21eedeff34ee86d4e1655b48dcf%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=ebf7b3e816052b159df0439f47419ace; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>transaction-refund-1301883347</id>
59
- <account_code>transaction-refund-1301883347</account_code>
56
+ <id>transaction-refund-1296674173</id>
57
+ <account_code>transaction-refund-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>da942fb3135d4f40b714f09b37720000</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:06:20Z</created_at>
65
+ <hosted_login_token>a9f4c1839eb44692b198c9d6a3a34b26</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:26:18Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-refund-1301883347/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-refund-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>transaction-refund-1301883347</account-code>
89
+ <account-code>transaction-refund-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1646"
111
+ - "1692"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"2f0e5f78e1419c70175c167efc55d72e\""
115
+ - "\"feb91fdd8ab5c0689b9b14ea6421b36f\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "644"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:06:23 GMT
123
+ - Thu, 03 Feb 2011 22:26:22 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=e2e372d2b822610d7033c7eee9888dd9; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=d151cb317c705c25fa1b722f095b935e; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>transaction-refund-1301883347</account_code>
131
+ <account_code>transaction-refund-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,26 +143,22 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:06:23Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:26:22Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <transaction>
162
160
  <account>
163
- <account-code>transaction-refund-1301883347</account-code>
164
- <billing-info>
165
- <credit-card>
166
- </credit-card>
167
- </billing-info>
161
+ <account-code>transaction-refund-1296674173</account-code>
168
162
  </account>
169
163
  <amount-in-cents type="integer">1000</amount-in-cents>
170
164
  <description>one</description>
@@ -172,13 +166,13 @@
172
166
 
173
167
  headers:
174
168
  authorization:
175
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
176
- user-agent:
177
- - Recurly Ruby Client v0.4.6
169
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
178
170
  content-type:
179
171
  - application/xml
180
172
  accept:
181
173
  - "*/*"
174
+ user-agent:
175
+ - Ruby
182
176
  connection:
183
177
  - close
184
178
  response: !ruby/struct:VCR::Response
@@ -189,28 +183,28 @@
189
183
  cache-control:
190
184
  - no-cache
191
185
  location:
192
- - http://app.recurly.local:3000/transactions/95fcb23b2a7a4348b8dc890222ead7cf
186
+ - http://litle-test.recurly.local:3000/transactions/6c39ecb5829a4c1f825a70348e7add3e
193
187
  x-runtime:
194
- - "2027"
188
+ - "4265"
195
189
  content-type:
196
190
  - application/xml; charset=utf-8
197
191
  content-length:
198
192
  - "860"
199
193
  server:
200
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
194
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
201
195
  date:
202
- - Thu, 21 Apr 2011 18:06:27 GMT
196
+ - Thu, 03 Feb 2011 22:26:28 GMT
203
197
  connection:
204
198
  - close
205
199
  set-cookie:
206
- - _recurly_session=2d6cd1a14110049381f839b2b33d6d74; domain=.recurly.local; path=/; HttpOnly
200
+ - _recurly_session=df2e3662960966fa1964b9cb17f0fa6c; domain=.recurly.local; path=/; HttpOnly
207
201
  body: |
208
202
  <?xml version="1.0" encoding="UTF-8"?>
209
203
  <transaction type="Payment">
210
- <id>95fcb23b2a7a4348b8dc890222ead7cf</id>
211
- <account_code>transaction-refund-1301883347</account_code>
204
+ <id>6c39ecb5829a4c1f825a70348e7add3e</id>
205
+ <account_code>transaction-refund-1296674173</account_code>
212
206
  <action>purchase</action>
213
- <date type="datetime">2011-04-21T18:06:27Z</date>
207
+ <date type="datetime">2011-02-03T22:26:25Z</date>
214
208
  <amount_in_cents type="integer">1000</amount_in_cents>
215
209
  <status>success</status>
216
210
  <message>Test Gateway: Successful test transaction</message>
@@ -232,15 +226,15 @@
232
226
  - !ruby/struct:VCR::HTTPInteraction
233
227
  request: !ruby/struct:VCR::Request
234
228
  method: :delete
235
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/95fcb23b2a7a4348b8dc890222ead7cf.xml?action=refund&amount=1000
229
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/6c39ecb5829a4c1f825a70348e7add3e.xml?action=refund&amount=1000
236
230
  body:
237
231
  headers:
238
232
  authorization:
239
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
240
- user-agent:
241
- - Recurly Ruby Client v0.4.6
233
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
242
234
  accept:
243
235
  - application/xml
236
+ user-agent:
237
+ - Ruby
244
238
  connection:
245
239
  - close
246
240
  response: !ruby/struct:VCR::Response
@@ -249,30 +243,30 @@
249
243
  message: "OK "
250
244
  headers:
251
245
  x-runtime:
252
- - "558"
246
+ - "780"
253
247
  content-type:
254
248
  - application/xml; charset=utf-8
255
249
  etag:
256
- - "\"8a67d7221aecc6d9cd8179c083095316\""
250
+ - "\"0e8cc745bc2bfded2ff1758673051f0d\""
257
251
  cache-control:
258
252
  - private, max-age=0, must-revalidate
259
253
  content-length:
260
254
  - "859"
261
255
  server:
262
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
256
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
263
257
  date:
264
- - Thu, 21 Apr 2011 18:06:30 GMT
258
+ - Thu, 03 Feb 2011 22:26:31 GMT
265
259
  connection:
266
260
  - close
267
261
  set-cookie:
268
- - _recurly_session=72bfb9597015f82a976f13d9feba40a0; domain=.recurly.local; path=/; HttpOnly
262
+ - _recurly_session=e3f4e177709fcd3920158faa0ae16961; domain=.recurly.local; path=/; HttpOnly
269
263
  body: |
270
264
  <?xml version="1.0" encoding="UTF-8"?>
271
265
  <transaction type="Payment">
272
- <id>95fcb23b2a7a4348b8dc890222ead7cf</id>
273
- <account_code>transaction-refund-1301883347</account_code>
266
+ <id>6c39ecb5829a4c1f825a70348e7add3e</id>
267
+ <account_code>transaction-refund-1296674173</account_code>
274
268
  <action>purchase</action>
275
- <date type="datetime">2011-04-21T18:06:27Z</date>
269
+ <date type="datetime">2011-02-03T22:26:25Z</date>
276
270
  <amount_in_cents type="integer">1000</amount_in_cents>
277
271
  <status>void</status>
278
272
  <message>Test Gateway: Successful test transaction</message>
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-void-1301883347</account-code>
9
+ <account-code>transaction-void-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-void-1301883347
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-void-1296674173
41
37
  x-runtime:
42
- - "289"
38
+ - "899"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "587"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:06:05 GMT
46
+ - Thu, 03 Feb 2011 22:26:00 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=4294bf46373414b474c49595d06cffc5; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=82756c4697af4c5d0bb2ce034c6d191e19b499a019dae325855e6d1ff19277bd33e65b1a3cd30449c68ea88be78bf00a6524194518c87e71d644b41cbc973aca%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=e16d80bc7e4d27b2c21badad8d61ae2f; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>transaction-void-1301883347</id>
59
- <account_code>transaction-void-1301883347</account_code>
56
+ <id>transaction-void-1296674173</id>
57
+ <account_code>transaction-void-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>c3566ae822a04e028bcdb10be3fcc845</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:06:05Z</created_at>
65
+ <hosted_login_token>1f33673b49fa4a329514a460614c847e</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:26:00Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-void-1301883347/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-void-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>transaction-void-1301883347</account-code>
89
+ <account-code>transaction-void-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "2037"
111
+ - "1762"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"928fd795d56a994d1befb5eaf4098912\""
115
+ - "\"70c401337a4c43d807abef5650fd1dfc\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "642"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:06:09 GMT
123
+ - Thu, 03 Feb 2011 22:26:04 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=624dadc72d1902f0da46e2fe678a6c49; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=767d2a523e660bd5c4d27803317be1bb; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>transaction-void-1301883347</account_code>
131
+ <account_code>transaction-void-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,26 +143,22 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:06:09Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:26:04Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <transaction>
162
160
  <account>
163
- <account-code>transaction-void-1301883347</account-code>
164
- <billing-info>
165
- <credit-card>
166
- </credit-card>
167
- </billing-info>
161
+ <account-code>transaction-void-1296674173</account-code>
168
162
  </account>
169
163
  <amount-in-cents type="integer">100</amount-in-cents>
170
164
  <description>one</description>
@@ -172,13 +166,13 @@
172
166
 
173
167
  headers:
174
168
  authorization:
175
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
176
- user-agent:
177
- - Recurly Ruby Client v0.4.6
169
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
178
170
  content-type:
179
171
  - application/xml
180
172
  accept:
181
173
  - "*/*"
174
+ user-agent:
175
+ - Ruby
182
176
  connection:
183
177
  - close
184
178
  response: !ruby/struct:VCR::Response
@@ -189,28 +183,28 @@
189
183
  cache-control:
190
184
  - no-cache
191
185
  location:
192
- - http://app.recurly.local:3000/transactions/bf8b0d7553124b45aea56a37addf5d30
186
+ - http://litle-test.recurly.local:3000/transactions/0ce0c2d62de64377a9c1c6f4ca0767e9
193
187
  x-runtime:
194
- - "2186"
188
+ - "4314"
195
189
  content-type:
196
190
  - application/xml; charset=utf-8
197
191
  content-length:
198
192
  - "857"
199
193
  server:
200
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
194
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
201
195
  date:
202
- - Thu, 21 Apr 2011 18:06:13 GMT
196
+ - Thu, 03 Feb 2011 22:26:10 GMT
203
197
  connection:
204
198
  - close
205
199
  set-cookie:
206
- - _recurly_session=ae99105f8380c89d08343128bbe30cde; domain=.recurly.local; path=/; HttpOnly
200
+ - _recurly_session=405c188e9fb327d044029aae2b70f968; domain=.recurly.local; path=/; HttpOnly
207
201
  body: |
208
202
  <?xml version="1.0" encoding="UTF-8"?>
209
203
  <transaction type="Payment">
210
- <id>bf8b0d7553124b45aea56a37addf5d30</id>
211
- <account_code>transaction-void-1301883347</account_code>
204
+ <id>0ce0c2d62de64377a9c1c6f4ca0767e9</id>
205
+ <account_code>transaction-void-1296674173</account_code>
212
206
  <action>purchase</action>
213
- <date type="datetime">2011-04-21T18:06:12Z</date>
207
+ <date type="datetime">2011-02-03T22:26:07Z</date>
214
208
  <amount_in_cents type="integer">100</amount_in_cents>
215
209
  <status>success</status>
216
210
  <message>Test Gateway: Successful test transaction</message>
@@ -232,15 +226,15 @@
232
226
  - !ruby/struct:VCR::HTTPInteraction
233
227
  request: !ruby/struct:VCR::Request
234
228
  method: :delete
235
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/bf8b0d7553124b45aea56a37addf5d30.xml?action=void
229
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/0ce0c2d62de64377a9c1c6f4ca0767e9.xml?action=void
236
230
  body:
237
231
  headers:
238
232
  authorization:
239
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
240
- user-agent:
241
- - Recurly Ruby Client v0.4.6
233
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
242
234
  accept:
243
235
  - application/xml
236
+ user-agent:
237
+ - Ruby
244
238
  connection:
245
239
  - close
246
240
  response: !ruby/struct:VCR::Response
@@ -249,30 +243,30 @@
249
243
  message: "OK "
250
244
  headers:
251
245
  x-runtime:
252
- - "387"
246
+ - "497"
253
247
  content-type:
254
248
  - application/xml; charset=utf-8
255
249
  etag:
256
- - "\"7bc194df2afca424a1fd11940acc2b76\""
250
+ - "\"2fa159b95ffba0ff731efa2ec06c108e\""
257
251
  cache-control:
258
252
  - private, max-age=0, must-revalidate
259
253
  content-length:
260
254
  - "856"
261
255
  server:
262
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
256
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
263
257
  date:
264
- - Thu, 21 Apr 2011 18:06:15 GMT
258
+ - Thu, 03 Feb 2011 22:26:13 GMT
265
259
  connection:
266
260
  - close
267
261
  set-cookie:
268
- - _recurly_session=549c1083d34ca970cab55ada67d22e43; domain=.recurly.local; path=/; HttpOnly
262
+ - _recurly_session=e97a4ea7a4bc9321531047259d1b9b47; domain=.recurly.local; path=/; HttpOnly
269
263
  body: |
270
264
  <?xml version="1.0" encoding="UTF-8"?>
271
265
  <transaction type="Payment">
272
- <id>bf8b0d7553124b45aea56a37addf5d30</id>
273
- <account_code>transaction-void-1301883347</account_code>
266
+ <id>0ce0c2d62de64377a9c1c6f4ca0767e9</id>
267
+ <account_code>transaction-void-1296674173</account_code>
274
268
  <action>purchase</action>
275
- <date type="datetime">2011-04-21T18:06:12Z</date>
269
+ <date type="datetime">2011-02-03T22:26:07Z</date>
276
270
  <amount_in_cents type="integer">100</amount_in_cents>
277
271
  <status>void</status>
278
272
  <message>Test Gateway: Successful test transaction</message>
@@ -294,17 +288,17 @@
294
288
  - !ruby/struct:VCR::HTTPInteraction
295
289
  request: !ruby/struct:VCR::Request
296
290
  method: :get
297
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml?show=voided
291
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml?show=voided
298
292
  body:
299
293
  headers:
300
294
  authorization:
301
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
302
- user-agent:
303
- - Recurly Ruby Client v0.4.6
295
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
304
296
  accept:
305
297
  - application/xml
306
298
  accept-encoding:
307
299
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
300
+ user-agent:
301
+ - Ruby
308
302
  connection:
309
303
  - close
310
304
  response: !ruby/struct:VCR::Response
@@ -313,23 +307,23 @@
313
307
  message: "OK "
314
308
  headers:
315
309
  x-runtime:
316
- - "347"
310
+ - "341"
317
311
  content-type:
318
312
  - application/xml; charset=utf-8
319
313
  etag:
320
- - "\"533428bdc243be2561b359ac8c39140e\""
314
+ - "\"ff8937537dcd0d6f2000e4e298d05023\""
321
315
  cache-control:
322
316
  - private, max-age=0, must-revalidate
323
317
  content-length:
324
318
  - "991"
325
319
  server:
326
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
320
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
327
321
  date:
328
- - Thu, 21 Apr 2011 18:06:18 GMT
322
+ - Thu, 03 Feb 2011 22:26:15 GMT
329
323
  connection:
330
324
  - close
331
325
  set-cookie:
332
- - _recurly_session=dedb245b083882dfa73a5a54721e6e98; domain=.recurly.local; path=/; HttpOnly
326
+ - _recurly_session=ee733a74cab77353b2a5347712d1a822; domain=.recurly.local; path=/; HttpOnly
333
327
  body: |
334
328
  <?xml version="1.0" encoding="UTF-8"?>
335
329
  <transactions type="collection">
@@ -337,10 +331,10 @@
337
331
  <per_page type="integer">20</per_page>
338
332
  <total_entries type="integer">1</total_entries>
339
333
  <transaction type="Payment">
340
- <id>bf8b0d7553124b45aea56a37addf5d30</id>
341
- <account_code>transaction-void-1301883347</account_code>
334
+ <id>0ce0c2d62de64377a9c1c6f4ca0767e9</id>
335
+ <account_code>transaction-void-1296674173</account_code>
342
336
  <action>purchase</action>
343
- <date type="datetime">2011-04-21T18:06:12Z</date>
337
+ <date type="datetime">2011-02-03T22:26:07Z</date>
344
338
  <amount_in_cents type="integer">100</amount_in_cents>
345
339
  <status>void</status>
346
340
  <message>Test Gateway: Successful test transaction</message>