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/credit-lookup-1299714599
41
41
  x-runtime:
42
- - "570"
42
+ - "322"
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:50:15 GMT
47
+ set-cookie:
48
+ - _recurly_session=22fc64347c71e2bec443c619237dd2d9; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=22fe71f091c12892cf6379e75c25f5ad358be97e5b599c793582cc9fcd2a7c5a184bac74bba24ea8ba0142066ab626a79d7c2ea0fce9ba36e4284b3b74594db3%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=497f3ef2dde85dcb02fd91337441235f; 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>fa18cfe4d40a4efeb0da03dd79c04361</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:50:15Z</created_at>
65
+ <hosted_login_token>8950a5c700854bcc9423ffb80b4ab6be</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:50:40Z</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
- - "223"
101
+ - "293"
105
102
  content-type:
106
103
  - application/xml; charset=utf-8
107
104
  content-length:
108
105
  - "516"
109
- server:
110
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
111
- date:
112
- - Fri, 11 Mar 2011 18:50:17 GMT
106
+ set-cookie:
107
+ - _recurly_session=911b82e19cb1b91ad6885d2e56b77622; domain=.recurly.local; path=/; HttpOnly
113
108
  connection:
114
109
  - close
115
- set-cookie:
116
- - _recurly_session=0b46fcf860d9e41f9f46ab558797b38c; 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>0bca01a675a34f779c50155b80db952f</id>
115
+ <id>aec44045895745198e8822110625ea08</id>
121
116
  <account_code>credit-lookup-1299714599</account_code>
122
117
  <amount_in_cents type="integer">-1315</amount_in_cents>
123
- <start_date type="datetime">2011-03-11T18:50:17Z</start_date>
118
+ <start_date type="datetime">2011-03-18T18:50:42Z</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 4 u</description>
127
- <created_at type="datetime">2011-03-11T18:50:17Z</created_at>
122
+ <created_at type="datetime">2011-03-18T18:50:43Z</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-lookup-1299714599/credits/0bca01a675a34f779c50155b80db952f.xml
129
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/aec44045895745198e8822110625ea08.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
- - "199"
148
+ - "288"
154
149
  content-type:
155
150
  - application/xml; charset=utf-8
156
151
  etag:
157
- - "\"d64d0a8760d29e86ff14722726d946c9\""
152
+ - "\"04962d41905b5eb4549f2e34a1c585ef\""
158
153
  cache-control:
159
154
  - private, max-age=0, must-revalidate
160
155
  content-length:
161
156
  - "516"
162
- server:
163
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
164
- date:
165
- - Fri, 11 Mar 2011 18:50:19 GMT
157
+ set-cookie:
158
+ - _recurly_session=04c5dbda94209f026d6ef79ef14ad91e; domain=.recurly.local; path=/; HttpOnly
166
159
  connection:
167
160
  - close
168
- set-cookie:
169
- - _recurly_session=89a729c62c3edc4c05799cf5dead21ac; 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>0bca01a675a34f779c50155b80db952f</id>
166
+ <id>aec44045895745198e8822110625ea08</id>
174
167
  <account_code>credit-lookup-1299714599</account_code>
175
168
  <amount_in_cents type="integer">-1315</amount_in_cents>
176
- <start_date type="datetime">2011-03-11T18:50:17Z</start_date>
169
+ <start_date type="datetime">2011-03-18T18:50:42Z</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 4 u</description>
180
- <created_at type="datetime">2011-03-11T18:50:17Z</created_at>
173
+ <created_at type="datetime">2011-03-18T18:50:43Z</created_at>
181
174
  </credit>
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/invoice-create-no-charges-1297746103
41
41
  x-runtime:
42
- - "584"
42
+ - "324"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "605"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:50:47 GMT
47
+ set-cookie:
48
+ - _recurly_session=0b777dbe5f59ec7ab7619de4cb0ff990; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=6532e5d18afa5b0d8db9fdd7243a90eb7a300e041200b536322a37ca342716deaa42f1a83bab56fe669e6c1b9071a18d56b8d82aedf5b17d71cd6d444ee7e125%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=9a5660c2955d7897cc0b9f81a6ff8849; 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>3b1d53b96b884eeaac47c2256b25afa4</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:50:47Z</created_at>
65
+ <hosted_login_token>7cc09470fe55483b821ac25fee3b7f53</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:51:14Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -108,26 +105,24 @@
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
- - "1842"
111
+ - "6450"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"6ffcd26c84c0d119dabba77ea8e090eb\""
115
+ - "\"03543697f9184c5c45fbdfcf48bd1258\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "651"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:50:51 GMT
120
+ set-cookie:
121
+ - _recurly_session=d03e29a90592c322a256cd1ecfd5a9da; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=2987a67198ef3e0284063f9fb8596862; 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>
@@ -149,7 +144,7 @@
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:50:51Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:51:22Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -181,19 +176,17 @@
181
176
  cache-control:
182
177
  - no-cache
183
178
  x-runtime:
184
- - "193"
179
+ - "272"
185
180
  content-type:
186
181
  - application/xml; charset=utf-8
187
182
  content-length:
188
183
  - "98"
189
- server:
190
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
191
- date:
192
- - Fri, 11 Mar 2011 18:50:54 GMT
184
+ set-cookie:
185
+ - _recurly_session=d3fec01238073251b25bdd8ce9dede50; domain=.recurly.local; path=/; HttpOnly
193
186
  connection:
194
187
  - close
195
- set-cookie:
196
- - _recurly_session=b0367c21cafebd33a50a6bd5a663e9a0; domain=.recurly.local; path=/; HttpOnly
188
+ server:
189
+ - thin 1.2.7 codename No Hup
197
190
  body: |
198
191
  <?xml version="1.0" encoding="UTF-8"?>
199
192
  <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/invoice-create-1297746103
41
41
  x-runtime:
42
- - "571"
42
+ - "325"
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:50:33 GMT
47
+ set-cookie:
48
+ - _recurly_session=37812aa5268edd52234264f58a591e69; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=221fd9945fb1540d826eb17cbd8efaff74034ce0eab0791bac4282f0886574cb88a8a0930e8a97921513a751644ae574d2a24fadf75c8c72b897789874d75f12%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=e273ac85c9a0c59f6dfb7625c4c318a6; 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>eb41534ce6014c8f9690eb3ab1ddfcc9</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:50:33Z</created_at>
65
+ <hosted_login_token>fa1994ef78bf417f8ac0b7fbf2a91fd6</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:50:57Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -108,26 +105,24 @@
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
- - "1608"
111
+ - "6393"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"9fd2b0035afb6a86834033476c7fb662\""
115
+ - "\"277bcb23eb7ddba09645aabffc4f08dd\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "640"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:50:37 GMT
120
+ set-cookie:
121
+ - _recurly_session=42f7a09c58f6f917c068f1b500a0a03c; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=45d696eefbe4c9dbc3bbed0322252b50; 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>
@@ -149,7 +144,7 @@
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:50:37Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:51:05Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -178,35 +173,33 @@
178
173
  response: !ruby/struct:VCR::Response
179
174
  status: !ruby/struct:VCR::ResponseStatus
180
175
  code: 201
181
- message: "Created "
176
+ message: Created
182
177
  headers:
183
178
  cache-control:
184
179
  - no-cache
185
180
  x-runtime:
186
- - "224"
181
+ - "300"
187
182
  content-type:
188
183
  - application/xml; charset=utf-8
189
184
  content-length:
190
185
  - "519"
191
- server:
192
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
193
- date:
194
- - Fri, 11 Mar 2011 18:50:39 GMT
186
+ set-cookie:
187
+ - _recurly_session=3c2efc7357e3fbd29104838c09d8edac; domain=.recurly.local; path=/; HttpOnly
195
188
  connection:
196
189
  - close
197
- set-cookie:
198
- - _recurly_session=95aadc382547c28754c54b6f4d4a0c63; domain=.recurly.local; path=/; HttpOnly
190
+ server:
191
+ - thin 1.2.7 codename No Hup
199
192
  body: |
200
193
  <?xml version="1.0" encoding="UTF-8"?>
201
194
  <charge type="charge">
202
- <id>df42eb6baec0405c9610b93256c7723a</id>
195
+ <id>e125eff8c4214e45b221296329e9f2ba</id>
203
196
  <account_code>invoice-create-1297746103</account_code>
204
197
  <amount_in_cents type="integer">1000</amount_in_cents>
205
- <start_date type="datetime">2011-03-11T18:50:39Z</start_date>
198
+ <start_date type="datetime">2011-03-18T18:51:07Z</start_date>
206
199
  <end_date nil="true" type="datetime"></end_date>
207
200
  <invoice_number nil="true" type="integer"></invoice_number>
208
201
  <description>charge description</description>
209
- <created_at type="datetime">2011-03-11T18:50:39Z</created_at>
202
+ <created_at type="datetime">2011-03-18T18:51:08Z</created_at>
210
203
  </charge>
211
204
 
212
205
  http_version: "1.1"
@@ -235,35 +228,33 @@
235
228
  response: !ruby/struct:VCR::Response
236
229
  status: !ruby/struct:VCR::ResponseStatus
237
230
  code: 201
238
- message: "Created "
231
+ message: Created
239
232
  headers:
240
233
  cache-control:
241
234
  - no-cache
242
235
  x-runtime:
243
- - "230"
236
+ - "299"
244
237
  content-type:
245
238
  - application/xml; charset=utf-8
246
239
  content-length:
247
240
  - "519"
248
- server:
249
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
250
- date:
251
- - Fri, 11 Mar 2011 18:50:42 GMT
241
+ set-cookie:
242
+ - _recurly_session=3464ecdd6fdc0db08921f06fd8c29c83; domain=.recurly.local; path=/; HttpOnly
252
243
  connection:
253
244
  - close
254
- set-cookie:
255
- - _recurly_session=91874e9b0853cb20d1dd9a7e34fe13b5; domain=.recurly.local; path=/; HttpOnly
245
+ server:
246
+ - thin 1.2.7 codename No Hup
256
247
  body: |
257
248
  <?xml version="1.0" encoding="UTF-8"?>
258
249
  <charge type="charge">
259
- <id>7be4f307999543b3836010ab35a60148</id>
250
+ <id>6f23f439b96741ac898cd0935a0c58db</id>
260
251
  <account_code>invoice-create-1297746103</account_code>
261
252
  <amount_in_cents type="integer">1500</amount_in_cents>
262
- <start_date type="datetime">2011-03-11T18:50:42Z</start_date>
253
+ <start_date type="datetime">2011-03-18T18:51:10Z</start_date>
263
254
  <end_date nil="true" type="datetime"></end_date>
264
255
  <invoice_number nil="true" type="integer"></invoice_number>
265
256
  <description>charge description</description>
266
- <created_at type="datetime">2011-03-11T18:50:42Z</created_at>
257
+ <created_at type="datetime">2011-03-18T18:51:10Z</created_at>
267
258
  </charge>
268
259
 
269
260
  http_version: "1.1"
@@ -290,33 +281,31 @@
290
281
  response: !ruby/struct:VCR::Response
291
282
  status: !ruby/struct:VCR::ResponseStatus
292
283
  code: 201
293
- message: "Created "
284
+ message: Created
294
285
  headers:
295
286
  cache-control:
296
287
  - no-cache
297
288
  location:
298
- - http://app.recurly.local:3000/invoices/5c7112b0d1444f70b53860b06f571cdf
289
+ - http://app.recurly.local:3000/invoices/34b973f57fb14e598235f41028742007
299
290
  x-runtime:
300
- - "712"
291
+ - "612"
301
292
  content-type:
302
293
  - application/xml; charset=utf-8
303
294
  content-length:
304
295
  - "1675"
305
- server:
306
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
307
- date:
308
- - Fri, 11 Mar 2011 18:50:45 GMT
296
+ set-cookie:
297
+ - _recurly_session=dc4c85f281dcdc66f9d214145058ccd6; domain=.recurly.local; path=/; HttpOnly
309
298
  connection:
310
299
  - close
311
- set-cookie:
312
- - _recurly_session=dcf3ff82425cde8d644dd8df2355d5f6; domain=.recurly.local; path=/; HttpOnly
300
+ server:
301
+ - thin 1.2.7 codename No Hup
313
302
  body: |
314
303
  <?xml version="1.0" encoding="UTF-8"?>
315
304
  <invoice>
316
- <id>5c7112b0d1444f70b53860b06f571cdf</id>
305
+ <id>34b973f57fb14e598235f41028742007</id>
317
306
  <account_code>invoice-create-1297746103</account_code>
318
- <date type="datetime">2011-03-11T18:50:45Z</date>
319
- <invoice_number type="integer">1527</invoice_number>
307
+ <date type="datetime">2011-03-18T18:51:12Z</date>
308
+ <invoice_number type="integer">2060</invoice_number>
320
309
  <vat_number></vat_number>
321
310
  <status>open</status>
322
311
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -327,23 +316,23 @@
327
316
  <discount_in_cents type="integer">0</discount_in_cents>
328
317
  <line_items type="array">
329
318
  <line_item>
330
- <id>df42eb6baec0405c9610b93256c7723a</id>
319
+ <id>e125eff8c4214e45b221296329e9f2ba</id>
331
320
  <type>charge</type>
332
321
  <amount_in_cents type="integer">1000</amount_in_cents>
333
- <start_date type="datetime">2011-03-11T18:50:39Z</start_date>
322
+ <start_date type="datetime">2011-03-18T18:51:07Z</start_date>
334
323
  <end_date nil="true" type="datetime"></end_date>
335
324
  <description>charge description</description>
336
- <created_at type="datetime">2011-03-11T18:50:39Z</created_at>
325
+ <created_at type="datetime">2011-03-18T18:51:08Z</created_at>
337
326
  <applied_coupon_code></applied_coupon_code>
338
327
  </line_item>
339
328
  <line_item>
340
- <id>7be4f307999543b3836010ab35a60148</id>
329
+ <id>6f23f439b96741ac898cd0935a0c58db</id>
341
330
  <type>charge</type>
342
331
  <amount_in_cents type="integer">1500</amount_in_cents>
343
- <start_date type="datetime">2011-03-11T18:50:42Z</start_date>
332
+ <start_date type="datetime">2011-03-18T18:51:10Z</start_date>
344
333
  <end_date nil="true" type="datetime"></end_date>
345
334
  <description>charge description</description>
346
- <created_at type="datetime">2011-03-11T18:50:42Z</created_at>
335
+ <created_at type="datetime">2011-03-18T18:51:10Z</created_at>
347
336
  <applied_coupon_code></applied_coupon_code>
348
337
  </line_item>
349
338
  </line_items>