recurly 0.3.2 → 0.3.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 (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>invoice-create-1287167121</account-code>
9
+ <account-code>invoice-create-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/invoice-create-1287167121
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/invoice-create-1296674173
37
+ x-runtime:
38
+ - "625"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "345"
39
- date:
40
- - Sat, 08 Jan 2011 08:04:50 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "583"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:19:52 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=d296e3baf2ca0fd8c08f2a62dd306df96d2abd357414319b87e5954a1d1fbcf8fcdb18b0e83ee7aaa8901068bbc64f2044e3a376c4a22c362d232fbefebd976d%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=3c7d095bba0c966730f1aeb3377803f2c1496ec7a1669fffb1cd846740f73e86f3cc6ee9ac52b60ede02aff7c9d6cfb9d50ebdf84cfdf37a48c2f9ada220c7dc%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=5617fda3bf2369e4c4cf59e671ae55b6; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=6a39a2297bacc140dba27348b11b1ee0; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>invoice-create-1287167121</id>
55
- <account_code>invoice-create-1287167121</account_code>
56
+ <id>invoice-create-1296674173</id>
57
+ <account_code>invoice-create-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>904bba7cf9f54d2c964e008b875beae7</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:04:50Z</created_at>
65
+ <hosted_login_token>3946a5d64eb54a8f86d0a0de554ad818</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:19:52Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,64 +71,64 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :put
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>123 Test St</address1>
77
79
  <city>San Francisco</city>
80
+ <state>CA</state>
78
81
  <zip>94115</zip>
79
- <account-code>invoice-create-1287167121</account-code>
80
82
  <country>US</country>
81
83
  <credit-card>
82
- <number>1</number>
83
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
84
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
85
87
  <verification-value>123</verification-value>
86
88
  </credit-card>
87
- <last-name>Test</last-name>
89
+ <account-code>invoice-create-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
91
+ <last-name>Test</last-name>
90
92
  </billing-info>
91
93
 
92
94
  headers:
95
+ authorization:
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
+ content-type:
98
+ - application/xml
93
99
  accept:
94
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
95
103
  connection:
96
104
  - close
97
- content-type:
98
- - application/xml
99
- authorization:
100
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
101
105
  response: !ruby/struct:VCR::Response
102
106
  status: !ruby/struct:VCR::ResponseStatus
103
107
  code: 200
104
- message: OK
108
+ message: "OK "
105
109
  headers:
106
- x-ua-compatible:
107
- - IE=Edge
108
- etag:
109
- - "\"ea72b87da0725cd3a3d044684d01b914\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1626"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "183"
116
- date:
117
- - Sat, 08 Jan 2011 08:04:51 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "638"
122
- set-cookie:
123
- - _recurly_session=139caf37b70f9d836622d4d25970488d; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"6e5eff467632476dcf82ce6e5f1448ef\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "640"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:19:56 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=16d8e55e8749bc490d840959a5e1e4c5; domain=.recurly.local; path=/; HttpOnly
126
128
  body: |
127
129
  <?xml version="1.0" encoding="UTF-8"?>
128
130
  <billing_info>
129
- <account_code>invoice-create-1287167121</account_code>
131
+ <account_code>invoice-create-1296674173</account_code>
130
132
  <first_name>Verena</first_name>
131
133
  <last_name>Test</last_name>
132
134
  <address1>123 Test St</address1>
@@ -139,19 +141,19 @@
139
141
  <vat_number></vat_number>
140
142
  <ip_address></ip_address>
141
143
  <credit_card>
142
- <type>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
144
+ <type>visa</type>
145
+ <last_four>1111</last_four>
146
+ <month type="integer">2</month>
145
147
  <year type="integer">2012</year>
146
148
  </credit_card>
147
- <updated_at type="datetime">2011-01-08T08:04:51Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:19:56Z</updated_at>
148
150
  </billing_info>
149
151
 
150
152
  http_version: "1.1"
151
153
  - !ruby/struct:VCR::HTTPInteraction
152
154
  request: !ruby/struct:VCR::Request
153
155
  method: :post
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/charges.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/charges.xml
155
157
  body: |
156
158
  <?xml version="1.0" encoding="UTF-8"?>
157
159
  <charge>
@@ -160,53 +162,55 @@
160
162
  </charge>
161
163
 
162
164
  headers:
165
+ authorization:
166
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
167
+ content-type:
168
+ - application/xml
163
169
  accept:
164
170
  - "*/*"
171
+ user-agent:
172
+ - Ruby
165
173
  connection:
166
174
  - close
167
- content-type:
168
- - application/xml
169
- authorization:
170
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
171
175
  response: !ruby/struct:VCR::Response
172
176
  status: !ruby/struct:VCR::ResponseStatus
173
177
  code: 201
174
- message: Created
178
+ message: "Created "
175
179
  headers:
176
- connection:
177
- - close
180
+ cache-control:
181
+ - no-cache
182
+ x-runtime:
183
+ - "568"
178
184
  content-type:
179
185
  - application/xml; charset=utf-8
180
- x-runtime:
181
- - "46"
182
- date:
183
- - Sat, 08 Jan 2011 08:04:52 GMT
184
- server:
185
- - nginx/0.8.53
186
186
  content-length:
187
187
  - "519"
188
+ server:
189
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
190
+ date:
191
+ - Thu, 03 Feb 2011 22:19:58 GMT
192
+ connection:
193
+ - close
188
194
  set-cookie:
189
- - _recurly_session=fce5dcd1702a950942e08175ecb19ec7; domain=.recurly.com; path=/; secure; HttpOnly
190
- cache-control:
191
- - no-cache
195
+ - _recurly_session=b817a3ae51328f451f746eba41a1b799; domain=.recurly.local; path=/; HttpOnly
192
196
  body: |
193
197
  <?xml version="1.0" encoding="UTF-8"?>
194
198
  <charge type="charge">
195
- <id>aea9fd3bccaa4f27bdff3278797c767b</id>
196
- <account_code>invoice-create-1287167121</account_code>
199
+ <id>52486d42b875414e99059c4536e50dd2</id>
200
+ <account_code>invoice-create-1296674173</account_code>
197
201
  <amount_in_cents type="integer">1000</amount_in_cents>
198
- <start_date type="datetime">2011-01-08T08:04:52Z</start_date>
202
+ <start_date type="datetime">2011-02-03T22:19:58Z</start_date>
199
203
  <end_date nil="true" type="datetime"></end_date>
200
204
  <invoice_number nil="true" type="integer"></invoice_number>
201
205
  <description>charge description</description>
202
- <created_at type="datetime">2011-01-08T08:04:52Z</created_at>
206
+ <created_at type="datetime">2011-02-03T22:19:58Z</created_at>
203
207
  </charge>
204
208
 
205
209
  http_version: "1.1"
206
210
  - !ruby/struct:VCR::HTTPInteraction
207
211
  request: !ruby/struct:VCR::Request
208
212
  method: :post
209
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/charges.xml
213
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/charges.xml
210
214
  body: |
211
215
  <?xml version="1.0" encoding="UTF-8"?>
212
216
  <charge>
@@ -215,97 +219,101 @@
215
219
  </charge>
216
220
 
217
221
  headers:
222
+ authorization:
223
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
224
+ content-type:
225
+ - application/xml
218
226
  accept:
219
227
  - "*/*"
228
+ user-agent:
229
+ - Ruby
220
230
  connection:
221
231
  - close
222
- content-type:
223
- - application/xml
224
- authorization:
225
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
226
232
  response: !ruby/struct:VCR::Response
227
233
  status: !ruby/struct:VCR::ResponseStatus
228
234
  code: 201
229
- message: Created
235
+ message: "Created "
230
236
  headers:
231
- connection:
232
- - close
237
+ cache-control:
238
+ - no-cache
239
+ x-runtime:
240
+ - "431"
233
241
  content-type:
234
242
  - application/xml; charset=utf-8
235
- x-runtime:
236
- - "49"
237
- date:
238
- - Sat, 08 Jan 2011 08:04:53 GMT
239
- server:
240
- - nginx/0.8.53
241
243
  content-length:
242
244
  - "519"
245
+ server:
246
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
247
+ date:
248
+ - Thu, 03 Feb 2011 22:20:00 GMT
249
+ connection:
250
+ - close
243
251
  set-cookie:
244
- - _recurly_session=c0be633d79150e00eb4558cfe87f0310; domain=.recurly.com; path=/; secure; HttpOnly
245
- cache-control:
246
- - no-cache
252
+ - _recurly_session=f74b0dedf7030825cbd1a20fa21e6284; domain=.recurly.local; path=/; HttpOnly
247
253
  body: |
248
254
  <?xml version="1.0" encoding="UTF-8"?>
249
255
  <charge type="charge">
250
- <id>d372b5b835fa4fd78d20ae5ef704a3eb</id>
251
- <account_code>invoice-create-1287167121</account_code>
256
+ <id>5ae82e2de5b247c68c2bd706b3e172ff</id>
257
+ <account_code>invoice-create-1296674173</account_code>
252
258
  <amount_in_cents type="integer">1500</amount_in_cents>
253
- <start_date type="datetime">2011-01-08T08:04:53Z</start_date>
259
+ <start_date type="datetime">2011-02-03T22:20:00Z</start_date>
254
260
  <end_date nil="true" type="datetime"></end_date>
255
261
  <invoice_number nil="true" type="integer"></invoice_number>
256
262
  <description>charge description</description>
257
- <created_at type="datetime">2011-01-08T08:04:53Z</created_at>
263
+ <created_at type="datetime">2011-02-03T22:20:00Z</created_at>
258
264
  </charge>
259
265
 
260
266
  http_version: "1.1"
261
267
  - !ruby/struct:VCR::HTTPInteraction
262
268
  request: !ruby/struct:VCR::Request
263
269
  method: :post
264
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/invoices.xml
270
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-1296674173/invoices.xml
265
271
  body: |
266
272
  <?xml version="1.0" encoding="UTF-8"?>
267
273
  <invoice>
268
274
  </invoice>
269
275
 
270
276
  headers:
277
+ authorization:
278
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
279
+ content-type:
280
+ - application/xml
271
281
  accept:
272
282
  - "*/*"
283
+ user-agent:
284
+ - Ruby
273
285
  connection:
274
286
  - close
275
- content-type:
276
- - application/xml
277
- authorization:
278
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
279
287
  response: !ruby/struct:VCR::Response
280
288
  status: !ruby/struct:VCR::ResponseStatus
281
289
  code: 201
282
- message: Created
290
+ message: "Created "
283
291
  headers:
292
+ cache-control:
293
+ - no-cache
284
294
  location:
285
- - https://recurlytest3-test.recurly.com/invoices/4fd0a22787954e6b9c7ec9c6aa9f6223
286
- connection:
287
- - close
295
+ - http://litle-test.recurly.local:3000/invoices/a8cfbbab41af409c877fbcf945712871
296
+ x-runtime:
297
+ - "614"
288
298
  content-type:
289
299
  - application/xml; charset=utf-8
290
- x-runtime:
291
- - "65"
292
- date:
293
- - Sat, 08 Jan 2011 08:04:54 GMT
294
- server:
295
- - nginx/0.8.53
296
300
  content-length:
297
- - "1517"
301
+ - "1675"
302
+ server:
303
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
304
+ date:
305
+ - Thu, 03 Feb 2011 22:20:03 GMT
306
+ connection:
307
+ - close
298
308
  set-cookie:
299
- - _recurly_session=0487037a99916c23c92a0c650aa137ac; domain=.recurly.com; path=/; secure; HttpOnly
300
- cache-control:
301
- - no-cache
309
+ - _recurly_session=a0a41ff515b2614c6526317649f8c424; domain=.recurly.local; path=/; HttpOnly
302
310
  body: |
303
311
  <?xml version="1.0" encoding="UTF-8"?>
304
312
  <invoice>
305
- <id>4fd0a22787954e6b9c7ec9c6aa9f6223</id>
306
- <account_code>invoice-create-1287167121</account_code>
307
- <date type="datetime">2011-01-08T08:04:54Z</date>
308
- <invoice_number type="integer">2381</invoice_number>
313
+ <id>a8cfbbab41af409c877fbcf945712871</id>
314
+ <account_code>invoice-create-1296674173</account_code>
315
+ <date type="datetime">2011-02-03T22:20:02Z</date>
316
+ <invoice_number type="integer">1235</invoice_number>
309
317
  <vat_number></vat_number>
310
318
  <status>open</status>
311
319
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -313,24 +321,27 @@
313
321
  <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
314
322
  <paid_in_cents type="integer">0</paid_in_cents>
315
323
  <total_due_in_cents type="integer">2500</total_due_in_cents>
324
+ <discount_in_cents type="integer">0</discount_in_cents>
316
325
  <line_items type="array">
317
326
  <line_item>
318
- <id>aea9fd3bccaa4f27bdff3278797c767b</id>
327
+ <id>52486d42b875414e99059c4536e50dd2</id>
319
328
  <type>charge</type>
320
329
  <amount_in_cents type="integer">1000</amount_in_cents>
321
- <start_date type="datetime">2011-01-08T08:04:52Z</start_date>
330
+ <start_date type="datetime">2011-02-03T22:19:58Z</start_date>
322
331
  <end_date nil="true" type="datetime"></end_date>
323
332
  <description>charge description</description>
324
- <created_at type="datetime">2011-01-08T08:04:52Z</created_at>
333
+ <created_at type="datetime">2011-02-03T22:19:58Z</created_at>
334
+ <applied_coupon_code></applied_coupon_code>
325
335
  </line_item>
326
336
  <line_item>
327
- <id>d372b5b835fa4fd78d20ae5ef704a3eb</id>
337
+ <id>5ae82e2de5b247c68c2bd706b3e172ff</id>
328
338
  <type>charge</type>
329
339
  <amount_in_cents type="integer">1500</amount_in_cents>
330
- <start_date type="datetime">2011-01-08T08:04:53Z</start_date>
340
+ <start_date type="datetime">2011-02-03T22:20:00Z</start_date>
331
341
  <end_date nil="true" type="datetime"></end_date>
332
342
  <description>charge description</description>
333
- <created_at type="datetime">2011-01-08T08:04:53Z</created_at>
343
+ <created_at type="datetime">2011-02-03T22:20:00Z</created_at>
344
+ <applied_coupon_code></applied_coupon_code>
334
345
  </line_item>
335
346
  </line_items>
336
347
  <payments type="array">