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
@@ -32,27 +32,24 @@
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
40
  - http://app.recurly.local:3000/accounts/charge-lookup-1297746103
41
41
  x-runtime:
42
- - "437"
42
+ - "309"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:49:22 GMT
47
+ set-cookie:
48
+ - _recurly_session=379a122f942f56596dd785281d78e323; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=cefcc5eb3e571c3fafbaae2afe195d1e2c6636f88742eeb2c1dcfcab0e9751c2fe4f418eb11bbb277effcbe3f2af1aea337483fcb39ae63432b21efbe5aec280%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=952e2b12ba4c18a9064f67e930840b5a; 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>
@@ -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>77053eb1dbd74050b7362d981562a502</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:49:22Z</created_at>
65
+ <hosted_login_token>b4aaf82288b4477d8bae70fa4f6e1038</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:49:50Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -96,42 +93,40 @@
96
93
  response: !ruby/struct:VCR::Response
97
94
  status: !ruby/struct:VCR::ResponseStatus
98
95
  code: 201
99
- message: "Created "
96
+ message: Created
100
97
  headers:
101
98
  cache-control:
102
99
  - no-cache
103
100
  x-runtime:
104
- - "246"
101
+ - "287"
105
102
  content-type:
106
103
  - application/xml; charset=utf-8
107
104
  content-length:
108
105
  - "517"
109
- server:
110
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
111
- date:
112
- - Fri, 11 Mar 2011 18:49:24 GMT
106
+ set-cookie:
107
+ - _recurly_session=9aaca1a0e31954d12e26b668a59b8103; domain=.recurly.local; path=/; HttpOnly
113
108
  connection:
114
109
  - close
115
- set-cookie:
116
- - _recurly_session=291d18787a0fa468be66531f0a11c526; domain=.recurly.local; path=/; HttpOnly
110
+ server:
111
+ - thin 1.2.7 codename No Hup
117
112
  body: |
118
113
  <?xml version="1.0" encoding="UTF-8"?>
119
114
  <charge type="charge">
120
- <id>d2eee537ec79476695a4e1bf8bbf7d8d</id>
115
+ <id>f4dfd129b09e4879b21f0daeb669f9d6</id>
121
116
  <account_code>charge-lookup-1297746103</account_code>
122
117
  <amount_in_cents type="integer">1315</amount_in_cents>
123
- <start_date type="datetime">2011-03-11T18:49:23Z</start_date>
118
+ <start_date type="datetime">2011-03-18T18:49:52Z</start_date>
124
119
  <end_date nil="true" type="datetime"></end_date>
125
120
  <invoice_number nil="true" type="integer"></invoice_number>
126
121
  <description>inconvenience fee</description>
127
- <created_at type="datetime">2011-03-11T18:49:24Z</created_at>
122
+ <created_at type="datetime">2011-03-18T18:49:52Z</created_at>
128
123
  </charge>
129
124
 
130
125
  http_version: "1.1"
131
126
  - !ruby/struct:VCR::HTTPInteraction
132
127
  request: !ruby/struct:VCR::Request
133
128
  method: :get
134
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/d2eee537ec79476695a4e1bf8bbf7d8d.xml
129
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-lookup-1297746103/charges/f4dfd129b09e4879b21f0daeb669f9d6.xml
135
130
  body:
136
131
  headers:
137
132
  authorization:
@@ -147,37 +142,35 @@
147
142
  response: !ruby/struct:VCR::Response
148
143
  status: !ruby/struct:VCR::ResponseStatus
149
144
  code: 200
150
- message: "OK "
145
+ message: OK
151
146
  headers:
152
147
  x-runtime:
153
- - "193"
148
+ - "265"
154
149
  content-type:
155
150
  - application/xml; charset=utf-8
156
151
  etag:
157
- - "\"b7d6fc8e32eeadfa879379ad3b113209\""
152
+ - "\"67b16d0c7bd5b0868d26e68526f20169\""
158
153
  cache-control:
159
154
  - private, max-age=0, must-revalidate
160
155
  content-length:
161
156
  - "517"
162
- server:
163
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
164
- date:
165
- - Fri, 11 Mar 2011 18:49:26 GMT
157
+ set-cookie:
158
+ - _recurly_session=9b4b179f122df6619011b5d5fb2e3f49; domain=.recurly.local; path=/; HttpOnly
166
159
  connection:
167
160
  - close
168
- set-cookie:
169
- - _recurly_session=fa3495760547666389e3adf0ccc40d6d; domain=.recurly.local; path=/; HttpOnly
161
+ server:
162
+ - thin 1.2.7 codename No Hup
170
163
  body: |
171
164
  <?xml version="1.0" encoding="UTF-8"?>
172
165
  <charge type="charge">
173
- <id>d2eee537ec79476695a4e1bf8bbf7d8d</id>
166
+ <id>f4dfd129b09e4879b21f0daeb669f9d6</id>
174
167
  <account_code>charge-lookup-1297746103</account_code>
175
168
  <amount_in_cents type="integer">1315</amount_in_cents>
176
- <start_date type="datetime">2011-03-11T18:49:23Z</start_date>
169
+ <start_date type="datetime">2011-03-18T18:49:52Z</start_date>
177
170
  <end_date nil="true" type="datetime"></end_date>
178
171
  <invoice_number nil="true" type="integer"></invoice_number>
179
172
  <description>inconvenience fee</description>
180
- <created_at type="datetime">2011-03-11T18:49:24Z</created_at>
173
+ <created_at type="datetime">2011-03-18T18:49:52Z</created_at>
181
174
  </charge>
182
175
 
183
176
  http_version: "1.1"
@@ -32,27 +32,24 @@
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
40
  - http://app.recurly.local:3000/accounts/coupon-create-1299714521
41
41
  x-runtime:
42
- - "565"
42
+ - "326"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:49:41 GMT
47
+ set-cookie:
48
+ - _recurly_session=57d77f78fdb18c161f75f79089d94ec3; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=c49e830ed38fe3e84df54568e5cc8a82317488cda09a2e9f5e68bd947df13035865ff17599a9aab90b78747db0731e3f5de995896f523ba003047c8970b11f97%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=9353d1436b27bb983025a044b08abf4b; 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>
@@ -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>a474946404734812824125db7d65e64c</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:49:41Z</created_at>
65
+ <hosted_login_token>3d932a9bb411423a8671586e63dfa971</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:50:08Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -95,24 +92,22 @@
95
92
  response: !ruby/struct:VCR::Response
96
93
  status: !ruby/struct:VCR::ResponseStatus
97
94
  code: 201
98
- message: "Created "
95
+ message: Created
99
96
  headers:
100
97
  cache-control:
101
98
  - no-cache
102
99
  x-runtime:
103
- - "376"
100
+ - "322"
104
101
  content-type:
105
102
  - application/xml; charset=utf-8
106
103
  content-length:
107
104
  - "519"
108
- server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
110
- date:
111
- - Fri, 11 Mar 2011 18:49:44 GMT
105
+ set-cookie:
106
+ - _recurly_session=d169041a5084580f01891b95c6c91233; domain=.recurly.local; path=/; HttpOnly
112
107
  connection:
113
108
  - close
114
- set-cookie:
115
- - _recurly_session=793c52546ba220ad6fa9a1f3d116bc56; domain=.recurly.local; path=/; HttpOnly
109
+ server:
110
+ - thin 1.2.7 codename No Hup
116
111
  body: |
117
112
  <?xml version="1.0" encoding="UTF-8"?>
118
113
  <coupon>
@@ -123,7 +118,7 @@
123
118
  <discount_percent type="integer">15</discount_percent>
124
119
  <redemption>
125
120
  <account_code>coupon-create-1299714521</account_code>
126
- <redeemed_at type="datetime">2011-03-11T18:49:44Z</redeemed_at>
121
+ <redeemed_at type="datetime">2011-03-18T18:50:11Z</redeemed_at>
127
122
  <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
128
123
  </redemption>
129
124
  </coupon>
@@ -148,26 +143,24 @@
148
143
  response: !ruby/struct:VCR::Response
149
144
  status: !ruby/struct:VCR::ResponseStatus
150
145
  code: 200
151
- message: "OK "
146
+ message: OK
152
147
  headers:
153
148
  x-runtime:
154
- - "327"
149
+ - "314"
155
150
  content-type:
156
151
  - application/xml; charset=utf-8
157
152
  etag:
158
- - "\"bb6b757f674150db31d747121a250e55\""
153
+ - "\"571d6883dd534839fa3c04668884c715\""
159
154
  cache-control:
160
155
  - private, max-age=0, must-revalidate
161
156
  content-length:
162
157
  - "519"
163
- server:
164
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
- date:
166
- - Fri, 11 Mar 2011 18:49:46 GMT
158
+ set-cookie:
159
+ - _recurly_session=b19e178c9c42a99169984b339361daff; domain=.recurly.local; path=/; HttpOnly
167
160
  connection:
168
161
  - close
169
- set-cookie:
170
- - _recurly_session=0333dba6e7458413a215bb1e6d7121a6; domain=.recurly.local; path=/; HttpOnly
162
+ server:
163
+ - thin 1.2.7 codename No Hup
171
164
  body: |
172
165
  <?xml version="1.0" encoding="UTF-8"?>
173
166
  <coupon>
@@ -178,7 +171,7 @@
178
171
  <discount_percent type="integer">15</discount_percent>
179
172
  <redemption>
180
173
  <account_code>coupon-create-1299714521</account_code>
181
- <redeemed_at type="datetime">2011-03-11T18:49:44Z</redeemed_at>
174
+ <redeemed_at type="datetime">2011-03-18T18:50:11Z</redeemed_at>
182
175
  <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
183
176
  </redemption>
184
177
  </coupon>
@@ -32,27 +32,24 @@
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
40
  - http://app.recurly.local:3000/accounts/coupon-destroy-1299714521
41
41
  x-runtime:
42
- - "559"
42
+ - "338"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:49:48 GMT
47
+ set-cookie:
48
+ - _recurly_session=aec96f1cab0d90e577a3ede2435d38b9; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=947fd645f934f7313decb566b66dccee41b8a2a50f0c75cdd7c76419f9c6884b43d10693c840d510471e1fd086800c28f1e4b80af5c50500db0a39fc513b9304%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=ed4c37176cdfe8020f05ebb39ae3b997; 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>
@@ -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>6249dca8ed234895ba8a6b5df8552663</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:49:48Z</created_at>
65
+ <hosted_login_token>50e18f0341e84987acc0b0c7398eb3d7</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:50:15Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -95,24 +92,22 @@
95
92
  response: !ruby/struct:VCR::Response
96
93
  status: !ruby/struct:VCR::ResponseStatus
97
94
  code: 201
98
- message: "Created "
95
+ message: Created
99
96
  headers:
100
97
  cache-control:
101
98
  - no-cache
102
99
  x-runtime:
103
- - "250"
100
+ - "336"
104
101
  content-type:
105
102
  - application/xml; charset=utf-8
106
103
  content-length:
107
104
  - "521"
108
- server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
110
- date:
111
- - Fri, 11 Mar 2011 18:49:50 GMT
105
+ set-cookie:
106
+ - _recurly_session=47d10ceb97a378fac954c166e114b1eb; domain=.recurly.local; path=/; HttpOnly
112
107
  connection:
113
108
  - close
114
- set-cookie:
115
- - _recurly_session=6e8e02a35bda68aa4322d2c9d518497b; domain=.recurly.local; path=/; HttpOnly
109
+ server:
110
+ - thin 1.2.7 codename No Hup
116
111
  body: |
117
112
  <?xml version="1.0" encoding="UTF-8"?>
118
113
  <coupon>
@@ -123,7 +118,7 @@
123
118
  <discount_percent type="integer">15</discount_percent>
124
119
  <redemption>
125
120
  <account_code>coupon-destroy-1299714521</account_code>
126
- <redeemed_at type="datetime">2011-03-11T18:49:50Z</redeemed_at>
121
+ <redeemed_at type="datetime">2011-03-18T18:50:17Z</redeemed_at>
127
122
  <total_discounted_in_cents type="integer">0</total_discounted_in_cents>
128
123
  </redemption>
129
124
  </coupon>
@@ -146,24 +141,22 @@
146
141
  response: !ruby/struct:VCR::Response
147
142
  status: !ruby/struct:VCR::ResponseStatus
148
143
  code: 200
149
- message: "OK "
144
+ message: OK
150
145
  headers:
151
146
  cache-control:
152
147
  - no-cache
153
148
  x-runtime:
154
- - "204"
149
+ - "298"
155
150
  content-type:
156
151
  - application/xml; charset=utf-8
157
152
  content-length:
158
153
  - "1"
159
- server:
160
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
161
- date:
162
- - Fri, 11 Mar 2011 18:49:53 GMT
154
+ set-cookie:
155
+ - _recurly_session=e1cbce85c47d6916d9dbbe52f36a4827; domain=.recurly.local; path=/; HttpOnly
163
156
  connection:
164
157
  - close
165
- set-cookie:
166
- - _recurly_session=f69aafbe08c4b55ebf1630ae4e4722e6; domain=.recurly.local; path=/; HttpOnly
158
+ server:
159
+ - thin 1.2.7 codename No Hup
167
160
  body: " "
168
161
  http_version: "1.1"
169
162
  - !ruby/struct:VCR::HTTPInteraction
@@ -185,7 +178,7 @@
185
178
  response: !ruby/struct:VCR::Response
186
179
  status: !ruby/struct:VCR::ResponseStatus
187
180
  code: 404
188
- message: "Not Found "
181
+ message: Not Found
189
182
  headers:
190
183
  cache-control:
191
184
  - no-cache
@@ -193,14 +186,12 @@
193
186
  - application/xml; charset=utf-8
194
187
  content-length:
195
188
  - "92"
196
- server:
197
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
198
- date:
199
- - Fri, 11 Mar 2011 18:49:55 GMT
189
+ set-cookie:
190
+ - _recurly_session=241162d8d2273c6837e6871f108d2867; domain=.recurly.local; path=/; HttpOnly
200
191
  connection:
201
192
  - close
202
- set-cookie:
203
- - _recurly_session=c6ff26c9c370548871de60a3c0083823; domain=.recurly.local; path=/; HttpOnly
193
+ server:
194
+ - thin 1.2.7 codename No Hup
204
195
  body: |
205
196
  <?xml version="1.0" encoding="UTF-8"?>
206
197
  <errors>
@@ -32,27 +32,24 @@
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
40
  - http://app.recurly.local:3000/accounts/credit-create-1299714599
41
41
  x-runtime:
42
- - "439"
42
+ - "320"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:49:57 GMT
47
+ set-cookie:
48
+ - _recurly_session=0a562c399b84d54f0d06115cfdd3642d; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=495220f8521542269cbde4abfb2ca30e51cfc696f594c16edf627a1265135e262517fc50143e9e329639e61827f14ea358c829a79b9f067a38226aeb1b9201df%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=c334af861198953880be06c2bcd7a8d1; 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>
@@ -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>cb1a4b1c480846a6818446c9c712f7f8</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:49:57Z</created_at>
65
+ <hosted_login_token>4ff8530c3885461cb5ccc521d29e89d8</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:50:24Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -96,42 +93,40 @@
96
93
  response: !ruby/struct:VCR::Response
97
94
  status: !ruby/struct:VCR::ResponseStatus
98
95
  code: 201
99
- message: "Created "
96
+ message: Created
100
97
  headers:
101
98
  cache-control:
102
99
  - no-cache
103
100
  x-runtime:
104
- - "229"
101
+ - "287"
105
102
  content-type:
106
103
  - application/xml; charset=utf-8
107
104
  content-length:
108
105
  - "512"
109
- server:
110
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
111
- date:
112
- - Fri, 11 Mar 2011 18:49:59 GMT
106
+ set-cookie:
107
+ - _recurly_session=b75ef790496714bacb6d9541067ca75f; domain=.recurly.local; path=/; HttpOnly
113
108
  connection:
114
109
  - close
115
- set-cookie:
116
- - _recurly_session=ab81d3b144883cce4250d3bee66228b9; domain=.recurly.local; path=/; HttpOnly
110
+ server:
111
+ - thin 1.2.7 codename No Hup
117
112
  body: |
118
113
  <?xml version="1.0" encoding="UTF-8"?>
119
114
  <credit type="credit">
120
- <id>5aef8d81f0964dab852b01cf7be6a564</id>
115
+ <id>f144a5d3e1a64c06a4e13f984bd42857</id>
121
116
  <account_code>credit-create-1299714599</account_code>
122
117
  <amount_in_cents type="integer">-1005</amount_in_cents>
123
- <start_date type="datetime">2011-03-11T18:49:59Z</start_date>
118
+ <start_date type="datetime">2011-03-18T18:50:26Z</start_date>
124
119
  <end_date nil="true" type="datetime"></end_date>
125
120
  <invoice_number nil="true" type="integer"></invoice_number>
126
121
  <description>free moniez</description>
127
- <created_at type="datetime">2011-03-11T18:49:59Z</created_at>
122
+ <created_at type="datetime">2011-03-18T18:50:26Z</created_at>
128
123
  </credit>
129
124
 
130
125
  http_version: "1.1"
131
126
  - !ruby/struct:VCR::HTTPInteraction
132
127
  request: !ruby/struct:VCR::Request
133
128
  method: :get
134
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-create-1299714599/credits/5aef8d81f0964dab852b01cf7be6a564.xml
129
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-create-1299714599/credits/f144a5d3e1a64c06a4e13f984bd42857.xml
135
130
  body:
136
131
  headers:
137
132
  authorization:
@@ -147,37 +142,35 @@
147
142
  response: !ruby/struct:VCR::Response
148
143
  status: !ruby/struct:VCR::ResponseStatus
149
144
  code: 200
150
- message: "OK "
145
+ message: OK
151
146
  headers:
152
147
  x-runtime:
153
- - "198"
148
+ - "81"
154
149
  content-type:
155
150
  - application/xml; charset=utf-8
156
151
  etag:
157
- - "\"62b4f4c3427d8c6b868565126ac16dc3\""
152
+ - "\"6e0f33da8513f3111cdb4f266b9ce788\""
158
153
  cache-control:
159
154
  - private, max-age=0, must-revalidate
160
155
  content-length:
161
156
  - "512"
162
- server:
163
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
164
- date:
165
- - Fri, 11 Mar 2011 18:50:01 GMT
157
+ set-cookie:
158
+ - _recurly_session=c0daee0b01ca0ed3cb009d7eb1a6462e; domain=.recurly.local; path=/; HttpOnly
166
159
  connection:
167
160
  - close
168
- set-cookie:
169
- - _recurly_session=007d90729b0c1e3e5709af6e67f8ca00; domain=.recurly.local; path=/; HttpOnly
161
+ server:
162
+ - thin 1.2.7 codename No Hup
170
163
  body: |
171
164
  <?xml version="1.0" encoding="UTF-8"?>
172
165
  <credit type="credit">
173
- <id>5aef8d81f0964dab852b01cf7be6a564</id>
166
+ <id>f144a5d3e1a64c06a4e13f984bd42857</id>
174
167
  <account_code>credit-create-1299714599</account_code>
175
168
  <amount_in_cents type="integer">-1005</amount_in_cents>
176
- <start_date type="datetime">2011-03-11T18:49:59Z</start_date>
169
+ <start_date type="datetime">2011-03-18T18:50:26Z</start_date>
177
170
  <end_date nil="true" type="datetime"></end_date>
178
171
  <invoice_number nil="true" type="integer"></invoice_number>
179
172
  <description>free moniez</description>
180
- <created_at type="datetime">2011-03-11T18:49:59Z</created_at>
173
+ <created_at type="datetime">2011-03-18T18:50:26Z</created_at>
181
174
  </credit>
182
175
 
183
176
  http_version: "1.1"