recurly 0.4.2 → 0.4.3

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 (71) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/base.rb +92 -12
  3. data/lib/recurly/formats/xml_with_errors.rb +132 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -4
  6. data/spec/integration/transaction_spec.rb +4 -3
  7. data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
  8. data/spec/vcr/account/close/1297746103.yml +17 -17
  9. data/spec/vcr/account/create-blank/1297746103.yml +4 -4
  10. data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
  11. data/spec/vcr/account/create-min/1297746103.yml +6 -6
  12. data/spec/vcr/account/create/1297746103.yml +6 -6
  13. data/spec/vcr/account/find/1297746103.yml +16 -16
  14. data/spec/vcr/account/list/1297746103.yml +204 -156
  15. data/spec/vcr/account/update/1297746103.yml +29 -29
  16. data/spec/vcr/billing/create/1298594128.yml +21 -21
  17. data/spec/vcr/billing/destroy/1298594128.yml +28 -28
  18. data/spec/vcr/billing/find/1298594128.yml +28 -28
  19. data/spec/vcr/billing/update/1298594128.yml +29 -29
  20. data/spec/vcr/charge/create/1297746103.yml +29 -29
  21. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
  22. data/spec/vcr/charge/list-all/1297746103.yml +41 -41
  23. data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
  24. data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
  25. data/spec/vcr/charge/lookup/1297746103.yml +21 -21
  26. data/spec/vcr/coupon/create/1299714521.yml +25 -25
  27. data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
  28. data/spec/vcr/credit/create/1299714599.yml +21 -21
  29. data/spec/vcr/credit/delete/1299714599.yml +28 -28
  30. data/spec/vcr/credit/list/1299714599.yml +41 -41
  31. data/spec/vcr/credit/lookup/1299714599.yml +21 -21
  32. data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
  33. data/spec/vcr/invoice/create/1297746103.yml +42 -42
  34. data/spec/vcr/invoice/list/1297746103.yml +61 -61
  35. data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
  36. data/spec/vcr/plan/all.yml +65 -52
  37. data/spec/vcr/plan/find.yml +58 -34
  38. data/spec/vcr/plan/update.yml +28 -29
  39. data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
  40. data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
  42. data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
  43. data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
  44. data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
  45. data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
  46. data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
  47. data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
  48. data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
  49. data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
  50. data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
  51. data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
  52. data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
  53. data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
  54. data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
  55. data/spec/vcr/transaction/all/1301883347.yml +387 -0
  56. data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
  57. data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
  58. data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
  59. data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
  60. data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
  61. data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
  62. data/spec/vcr/transaction/void/1301883347.yml +365 -0
  63. data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
  64. metadata +66 -58
  65. data/spec/vcr/transaction/all/1300473500.yml +0 -387
  66. data/spec/vcr/transaction/void/1300473500.yml +0 -620
  67. data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
  68. data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
  69. data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
  70. data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
  71. data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/delete-uninvoiced-1299714599
41
41
  x-runtime:
42
- - "320"
42
+ - "591"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "589"
47
47
  set-cookie:
48
- - _recurly_session=ab3f684140dae26700e75eff5ea7b1f8; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=8da067c29deec331c0d3b3f462722591; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>12df0978701d4584a68906c609af6b64</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:50:47Z</created_at>
65
+ <hosted_login_token>0754d602fdd64839bc05a07db035b8d3</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:21:46Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :post
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <credit>
@@ -81,7 +81,7 @@
81
81
 
82
82
  headers:
83
83
  authorization:
84
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
84
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
85
  content-type:
86
86
  - application/xml
87
87
  accept:
@@ -98,13 +98,13 @@
98
98
  cache-control:
99
99
  - no-cache
100
100
  x-runtime:
101
- - "289"
101
+ - "351"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "520"
106
106
  set-cookie:
107
- - _recurly_session=f600d708a18897ff1249cf76145360a8; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=1d8e369cc2bc57391d60dbe785dc296d; domain=.recurly.local; path=/; HttpOnly
108
108
  connection:
109
109
  - close
110
110
  server:
@@ -112,25 +112,25 @@
112
112
  body: |
113
113
  <?xml version="1.0" encoding="UTF-8"?>
114
114
  <credit type="credit">
115
- <id>ad3ae5b6d64041ab80e268d16b45fece</id>
115
+ <id>05562b9372a8438899744cf12f7760c1</id>
116
116
  <account_code>delete-uninvoiced-1299714599</account_code>
117
117
  <amount_in_cents type="integer">-1315</amount_in_cents>
118
- <start_date type="datetime">2011-03-18T18:50:49Z</start_date>
118
+ <start_date type="datetime">2011-04-04T02:21:48Z</start_date>
119
119
  <end_date nil="true" type="datetime"></end_date>
120
120
  <invoice_number nil="true" type="integer"></invoice_number>
121
121
  <description>free moniez 4 u</description>
122
- <created_at type="datetime">2011-03-18T18:50:49Z</created_at>
122
+ <created_at type="datetime">2011-04-04T02:21:48Z</created_at>
123
123
  </credit>
124
124
 
125
125
  http_version: "1.1"
126
126
  - !ruby/struct:VCR::HTTPInteraction
127
127
  request: !ruby/struct:VCR::Request
128
128
  method: :get
129
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/ad3ae5b6d64041ab80e268d16b45fece.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/05562b9372a8438899744cf12f7760c1.xml
130
130
  body:
131
131
  headers:
132
132
  authorization:
133
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
133
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
134
134
  accept:
135
135
  - application/xml
136
136
  accept-encoding:
@@ -145,17 +145,17 @@
145
145
  message: OK
146
146
  headers:
147
147
  x-runtime:
148
- - "274"
148
+ - "326"
149
149
  content-type:
150
150
  - application/xml; charset=utf-8
151
151
  etag:
152
- - "\"97cf949642d041db158a61d65df145a4\""
152
+ - "\"8d87bcac78c47729114f197d16d2f7b5\""
153
153
  cache-control:
154
154
  - private, max-age=0, must-revalidate
155
155
  content-length:
156
156
  - "520"
157
157
  set-cookie:
158
- - _recurly_session=8cd359e3304c1448359ce5f68287023b; domain=.recurly.local; path=/; HttpOnly
158
+ - _recurly_session=f3a561fb717980527a4f5983a2ae22a0; domain=.recurly.local; path=/; HttpOnly
159
159
  connection:
160
160
  - close
161
161
  server:
@@ -163,25 +163,25 @@
163
163
  body: |
164
164
  <?xml version="1.0" encoding="UTF-8"?>
165
165
  <credit type="credit">
166
- <id>ad3ae5b6d64041ab80e268d16b45fece</id>
166
+ <id>05562b9372a8438899744cf12f7760c1</id>
167
167
  <account_code>delete-uninvoiced-1299714599</account_code>
168
168
  <amount_in_cents type="integer">-1315</amount_in_cents>
169
- <start_date type="datetime">2011-03-18T18:50:49Z</start_date>
169
+ <start_date type="datetime">2011-04-04T02:21:48Z</start_date>
170
170
  <end_date nil="true" type="datetime"></end_date>
171
171
  <invoice_number nil="true" type="integer"></invoice_number>
172
172
  <description>free moniez 4 u</description>
173
- <created_at type="datetime">2011-03-18T18:50:49Z</created_at>
173
+ <created_at type="datetime">2011-04-04T02:21:48Z</created_at>
174
174
  </credit>
175
175
 
176
176
  http_version: "1.1"
177
177
  - !ruby/struct:VCR::HTTPInteraction
178
178
  request: !ruby/struct:VCR::Request
179
179
  method: :delete
180
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/ad3ae5b6d64041ab80e268d16b45fece.xml
180
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/05562b9372a8438899744cf12f7760c1.xml
181
181
  body:
182
182
  headers:
183
183
  authorization:
184
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
184
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
185
185
  accept:
186
186
  - application/xml
187
187
  user-agent:
@@ -196,13 +196,13 @@
196
196
  cache-control:
197
197
  - no-cache
198
198
  x-runtime:
199
- - "270"
199
+ - "90"
200
200
  content-type:
201
201
  - application/xml; charset=utf-8
202
202
  content-length:
203
203
  - "1"
204
204
  set-cookie:
205
- - _recurly_session=994f34feec711acc42b8b301de5c945f; domain=.recurly.local; path=/; HttpOnly
205
+ - _recurly_session=6a10b85bffa67105269134f0cd154a55; domain=.recurly.local; path=/; HttpOnly
206
206
  connection:
207
207
  - close
208
208
  server:
@@ -212,11 +212,11 @@
212
212
  - !ruby/struct:VCR::HTTPInteraction
213
213
  request: !ruby/struct:VCR::Request
214
214
  method: :get
215
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/ad3ae5b6d64041ab80e268d16b45fece.xml
215
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/05562b9372a8438899744cf12f7760c1.xml
216
216
  body:
217
217
  headers:
218
218
  authorization:
219
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
219
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
220
220
  accept:
221
221
  - application/xml
222
222
  accept-encoding:
@@ -237,7 +237,7 @@
237
237
  content-length:
238
238
  - "92"
239
239
  set-cookie:
240
- - _recurly_session=2b273091314a4a688c9db1635eeeb8ca; domain=.recurly.local; path=/; HttpOnly
240
+ - _recurly_session=20826e913be7c06e81225c2e828bdfeb; domain=.recurly.local; path=/; HttpOnly
241
241
  connection:
242
242
  - close
243
243
  server:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,7 +20,7 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
23
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
24
24
  content-type:
25
25
  - application/xml
26
26
  accept:
@@ -39,13 +39,13 @@
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/credit-list-1299714599
41
41
  x-runtime:
42
- - "327"
42
+ - "413"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "577"
47
47
  set-cookie:
48
- - _recurly_session=88799713331aaad28eb6685049ee0d42; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=a92cab33e2d6ccc0ef885432efe536ed; domain=.recurly.local; path=/; HttpOnly
49
49
  connection:
50
50
  - close
51
51
  server:
@@ -62,8 +62,8 @@
62
62
  <company_name>Recurly Ruby Gem</company_name>
63
63
  <balance_in_cents type="integer">0</balance_in_cents>
64
64
  <closed type="boolean">false</closed>
65
- <hosted_login_token>a1a5005682ef4d5c8f9d9a248a0fdf7f</hosted_login_token>
66
- <created_at type="datetime">2011-03-18T18:50:30Z</created_at>
65
+ <hosted_login_token>d82c60f7d0f246e9b61c5d56cc0316d7</hosted_login_token>
66
+ <created_at type="datetime">2011-04-04T02:21:26Z</created_at>
67
67
  <state>active</state>
68
68
  </account>
69
69
 
@@ -71,7 +71,7 @@
71
71
  - !ruby/struct:VCR::HTTPInteraction
72
72
  request: !ruby/struct:VCR::Request
73
73
  method: :post
74
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
74
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
75
75
  body: |
76
76
  <?xml version="1.0" encoding="UTF-8"?>
77
77
  <credit>
@@ -81,7 +81,7 @@
81
81
 
82
82
  headers:
83
83
  authorization:
84
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
84
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
85
85
  content-type:
86
86
  - application/xml
87
87
  accept:
@@ -98,13 +98,13 @@
98
98
  cache-control:
99
99
  - no-cache
100
100
  x-runtime:
101
- - "283"
101
+ - "356"
102
102
  content-type:
103
103
  - application/xml; charset=utf-8
104
104
  content-length:
105
105
  - "501"
106
106
  set-cookie:
107
- - _recurly_session=3c821285ab81b4f5a76503b41be248f9; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=091a5822bc5209899fdd97c2fd767e08; domain=.recurly.local; path=/; HttpOnly
108
108
  connection:
109
109
  - close
110
110
  server:
@@ -112,21 +112,21 @@
112
112
  body: |
113
113
  <?xml version="1.0" encoding="UTF-8"?>
114
114
  <credit type="credit">
115
- <id>4f108de951c24067b4439f697703c58b</id>
115
+ <id>34e5dad45b184b78a3702731e83fb9ae</id>
116
116
  <account_code>credit-list-1299714599</account_code>
117
117
  <amount_in_cents type="integer">-100</amount_in_cents>
118
- <start_date type="datetime">2011-03-18T18:50:32Z</start_date>
118
+ <start_date type="datetime">2011-04-04T02:21:28Z</start_date>
119
119
  <end_date nil="true" type="datetime"></end_date>
120
120
  <invoice_number nil="true" type="integer"></invoice_number>
121
121
  <description>one</description>
122
- <created_at type="datetime">2011-03-18T18:50:32Z</created_at>
122
+ <created_at type="datetime">2011-04-04T02:21:28Z</created_at>
123
123
  </credit>
124
124
 
125
125
  http_version: "1.1"
126
126
  - !ruby/struct:VCR::HTTPInteraction
127
127
  request: !ruby/struct:VCR::Request
128
128
  method: :post
129
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
129
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
130
130
  body: |
131
131
  <?xml version="1.0" encoding="UTF-8"?>
132
132
  <credit>
@@ -136,7 +136,7 @@
136
136
 
137
137
  headers:
138
138
  authorization:
139
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
139
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
140
140
  content-type:
141
141
  - application/xml
142
142
  accept:
@@ -153,13 +153,13 @@
153
153
  cache-control:
154
154
  - no-cache
155
155
  x-runtime:
156
- - "290"
156
+ - "364"
157
157
  content-type:
158
158
  - application/xml; charset=utf-8
159
159
  content-length:
160
160
  - "501"
161
161
  set-cookie:
162
- - _recurly_session=6982ddf988bdd27d8e7ca7f88f126617; domain=.recurly.local; path=/; HttpOnly
162
+ - _recurly_session=f98bd44fcef17082840f93c4476b82c6; domain=.recurly.local; path=/; HttpOnly
163
163
  connection:
164
164
  - close
165
165
  server:
@@ -167,21 +167,21 @@
167
167
  body: |
168
168
  <?xml version="1.0" encoding="UTF-8"?>
169
169
  <credit type="credit">
170
- <id>b43c6b3646054b27a621420dae68f9fc</id>
170
+ <id>e0d7945f51164da396a5d816296922d3</id>
171
171
  <account_code>credit-list-1299714599</account_code>
172
172
  <amount_in_cents type="integer">-200</amount_in_cents>
173
- <start_date type="datetime">2011-03-18T18:50:34Z</start_date>
173
+ <start_date type="datetime">2011-04-04T02:21:31Z</start_date>
174
174
  <end_date nil="true" type="datetime"></end_date>
175
175
  <invoice_number nil="true" type="integer"></invoice_number>
176
176
  <description>two</description>
177
- <created_at type="datetime">2011-03-18T18:50:34Z</created_at>
177
+ <created_at type="datetime">2011-04-04T02:21:31Z</created_at>
178
178
  </credit>
179
179
 
180
180
  http_version: "1.1"
181
181
  - !ruby/struct:VCR::HTTPInteraction
182
182
  request: !ruby/struct:VCR::Request
183
183
  method: :post
184
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
184
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
185
185
  body: |
186
186
  <?xml version="1.0" encoding="UTF-8"?>
187
187
  <credit>
@@ -191,7 +191,7 @@
191
191
 
192
192
  headers:
193
193
  authorization:
194
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
194
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
195
195
  content-type:
196
196
  - application/xml
197
197
  accept:
@@ -208,13 +208,13 @@
208
208
  cache-control:
209
209
  - no-cache
210
210
  x-runtime:
211
- - "286"
211
+ - "373"
212
212
  content-type:
213
213
  - application/xml; charset=utf-8
214
214
  content-length:
215
215
  - "503"
216
216
  set-cookie:
217
- - _recurly_session=40a7dfb1d3c60b0aa35ae12283e71499; domain=.recurly.local; path=/; HttpOnly
217
+ - _recurly_session=0830333bee90abfb74dfe5fbe27994af; domain=.recurly.local; path=/; HttpOnly
218
218
  connection:
219
219
  - close
220
220
  server:
@@ -222,25 +222,25 @@
222
222
  body: |
223
223
  <?xml version="1.0" encoding="UTF-8"?>
224
224
  <credit type="credit">
225
- <id>ad5a7bf457244a598a93a196c54c7d9f</id>
225
+ <id>73356acf232f494f87b9aa1a5972e39d</id>
226
226
  <account_code>credit-list-1299714599</account_code>
227
227
  <amount_in_cents type="integer">-300</amount_in_cents>
228
- <start_date type="datetime">2011-03-18T18:50:36Z</start_date>
228
+ <start_date type="datetime">2011-04-04T02:21:33Z</start_date>
229
229
  <end_date nil="true" type="datetime"></end_date>
230
230
  <invoice_number nil="true" type="integer"></invoice_number>
231
231
  <description>three</description>
232
- <created_at type="datetime">2011-03-18T18:50:36Z</created_at>
232
+ <created_at type="datetime">2011-04-04T02:21:33Z</created_at>
233
233
  </credit>
234
234
 
235
235
  http_version: "1.1"
236
236
  - !ruby/struct:VCR::HTTPInteraction
237
237
  request: !ruby/struct:VCR::Request
238
238
  method: :get
239
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
239
+ uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-list-1299714599/credits.xml
240
240
  body:
241
241
  headers:
242
242
  authorization:
243
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
243
+ - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
244
244
  accept:
245
245
  - application/xml
246
246
  accept-encoding:
@@ -255,17 +255,17 @@
255
255
  message: OK
256
256
  headers:
257
257
  x-runtime:
258
- - "78"
258
+ - "127"
259
259
  content-type:
260
260
  - application/xml; charset=utf-8
261
261
  etag:
262
- - "\"5144be666afb2ec40654b2bf80b4df9a\""
262
+ - "\"0bf0df14ca169cb9e48e8095d660a4c4\""
263
263
  cache-control:
264
264
  - private, max-age=0, must-revalidate
265
265
  content-length:
266
266
  - "1521"
267
267
  set-cookie:
268
- - _recurly_session=7c67dece8d0af084e2ed956e2bd5c7f4; domain=.recurly.local; path=/; HttpOnly
268
+ - _recurly_session=a694939d2a8f73d6dd36db1ef3ae8dd5; domain=.recurly.local; path=/; HttpOnly
269
269
  connection:
270
270
  - close
271
271
  server:
@@ -274,34 +274,34 @@
274
274
  <?xml version="1.0" encoding="UTF-8"?>
275
275
  <credits type="array">
276
276
  <credit type="credit">
277
- <id>ad5a7bf457244a598a93a196c54c7d9f</id>
277
+ <id>73356acf232f494f87b9aa1a5972e39d</id>
278
278
  <account_code>credit-list-1299714599</account_code>
279
279
  <amount_in_cents type="integer">-300</amount_in_cents>
280
- <start_date type="datetime">2011-03-18T18:50:36Z</start_date>
280
+ <start_date type="datetime">2011-04-04T02:21:33Z</start_date>
281
281
  <end_date nil="true" type="datetime"></end_date>
282
282
  <invoice_number nil="true" type="integer"></invoice_number>
283
283
  <description>three</description>
284
- <created_at type="datetime">2011-03-18T18:50:36Z</created_at>
284
+ <created_at type="datetime">2011-04-04T02:21:33Z</created_at>
285
285
  </credit>
286
286
  <credit type="credit">
287
- <id>b43c6b3646054b27a621420dae68f9fc</id>
287
+ <id>e0d7945f51164da396a5d816296922d3</id>
288
288
  <account_code>credit-list-1299714599</account_code>
289
289
  <amount_in_cents type="integer">-200</amount_in_cents>
290
- <start_date type="datetime">2011-03-18T18:50:34Z</start_date>
290
+ <start_date type="datetime">2011-04-04T02:21:31Z</start_date>
291
291
  <end_date nil="true" type="datetime"></end_date>
292
292
  <invoice_number nil="true" type="integer"></invoice_number>
293
293
  <description>two</description>
294
- <created_at type="datetime">2011-03-18T18:50:34Z</created_at>
294
+ <created_at type="datetime">2011-04-04T02:21:31Z</created_at>
295
295
  </credit>
296
296
  <credit type="credit">
297
- <id>4f108de951c24067b4439f697703c58b</id>
297
+ <id>34e5dad45b184b78a3702731e83fb9ae</id>
298
298
  <account_code>credit-list-1299714599</account_code>
299
299
  <amount_in_cents type="integer">-100</amount_in_cents>
300
- <start_date type="datetime">2011-03-18T18:50:32Z</start_date>
300
+ <start_date type="datetime">2011-04-04T02:21:28Z</start_date>
301
301
  <end_date nil="true" type="datetime"></end_date>
302
302
  <invoice_number nil="true" type="integer"></invoice_number>
303
303
  <description>one</description>
304
- <created_at type="datetime">2011-03-18T18:50:32Z</created_at>
304
+ <created_at type="datetime">2011-04-04T02:21:28Z</created_at>
305
305
  </credit>
306
306
  </credits>
307
307