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>charge-list-invoiced-1287465632</account-code>
9
+ <account-code>charge-list-invoiced-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/charge-list-invoiced-1287465632
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173
37
+ x-runtime:
38
+ - "696"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "343"
39
- date:
40
- - Sat, 08 Jan 2011 08:04:11 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "595"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:18:36 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=0a351edea1b96ee81f593ce778ad6a31d2a112e630a9a22efc154d37f19a508ce344fa20107cc64df2e385118262410c3d667265aea396c5924fbee0ebb92050%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=4087ddbd0325bd4c05e06c315b870a04f7737c587fbc0af0dd085593a8c94ef4310cd0e004d475d91c71864efd3fb28ad77552c310289fba1d0b78c22515cbed%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=823f1ed7090a9ab073d89bfc9ae4d862; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=022b045e1932d8cff1cade2495e5739e; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>charge-list-invoiced-1287465632</id>
55
- <account_code>charge-list-invoiced-1287465632</account_code>
56
+ <id>charge-list-invoiced-1296674173</id>
57
+ <account_code>charge-list-invoiced-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>dffbccfa20114fe781a0d80256b2e4ae</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:04:11Z</created_at>
65
+ <hosted_login_token>54f6f17cf3e04e19a1af363523e5f757</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:18:36Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,7 +71,7 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :post
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/charges.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <charge>
@@ -78,53 +80,55 @@
78
80
  </charge>
79
81
 
80
82
  headers:
83
+ authorization:
84
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
+ content-type:
86
+ - application/xml
81
87
  accept:
82
88
  - "*/*"
89
+ user-agent:
90
+ - Ruby
83
91
  connection:
84
92
  - close
85
- content-type:
86
- - application/xml
87
- authorization:
88
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
89
93
  response: !ruby/struct:VCR::Response
90
94
  status: !ruby/struct:VCR::ResponseStatus
91
95
  code: 201
92
- message: Created
96
+ message: "Created "
93
97
  headers:
94
- connection:
95
- - close
98
+ cache-control:
99
+ - no-cache
100
+ x-runtime:
101
+ - "414"
96
102
  content-type:
97
103
  - application/xml; charset=utf-8
98
- x-runtime:
99
- - "46"
100
- date:
101
- - Sat, 08 Jan 2011 08:04:12 GMT
102
- server:
103
- - nginx/0.8.53
104
104
  content-length:
105
105
  - "525"
106
+ server:
107
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
+ date:
109
+ - Thu, 03 Feb 2011 22:18:38 GMT
110
+ connection:
111
+ - close
106
112
  set-cookie:
107
- - _recurly_session=1ddd7179f19c5b6792ec4650866fdd46; domain=.recurly.com; path=/; secure; HttpOnly
108
- cache-control:
109
- - no-cache
113
+ - _recurly_session=3a05c7471f94786758e92e6df2bd53a2; domain=.recurly.local; path=/; HttpOnly
110
114
  body: |
111
115
  <?xml version="1.0" encoding="UTF-8"?>
112
116
  <charge type="charge">
113
- <id>4b210bc37b2f4351a20ca1ee5350f7a5</id>
114
- <account_code>charge-list-invoiced-1287465632</account_code>
117
+ <id>bf3a2a356b8640158ec85161a935ac91</id>
118
+ <account_code>charge-list-invoiced-1296674173</account_code>
115
119
  <amount_in_cents type="integer">1000</amount_in_cents>
116
- <start_date type="datetime">2011-01-08T08:04:12Z</start_date>
120
+ <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
117
121
  <end_date nil="true" type="datetime"></end_date>
118
122
  <invoice_number nil="true" type="integer"></invoice_number>
119
123
  <description>charge description</description>
120
- <created_at type="datetime">2011-01-08T08:04:12Z</created_at>
124
+ <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
121
125
  </charge>
122
126
 
123
127
  http_version: "1.1"
124
128
  - !ruby/struct:VCR::HTTPInteraction
125
129
  request: !ruby/struct:VCR::Request
126
130
  method: :post
127
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/charges.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
128
132
  body: |
129
133
  <?xml version="1.0" encoding="UTF-8"?>
130
134
  <charge>
@@ -133,53 +137,55 @@
133
137
  </charge>
134
138
 
135
139
  headers:
140
+ authorization:
141
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
142
+ content-type:
143
+ - application/xml
136
144
  accept:
137
145
  - "*/*"
146
+ user-agent:
147
+ - Ruby
138
148
  connection:
139
149
  - close
140
- content-type:
141
- - application/xml
142
- authorization:
143
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
144
150
  response: !ruby/struct:VCR::Response
145
151
  status: !ruby/struct:VCR::ResponseStatus
146
152
  code: 201
147
- message: Created
153
+ message: "Created "
148
154
  headers:
149
- connection:
150
- - close
155
+ cache-control:
156
+ - no-cache
157
+ x-runtime:
158
+ - "546"
151
159
  content-type:
152
160
  - application/xml; charset=utf-8
153
- x-runtime:
154
- - "48"
155
- date:
156
- - Sat, 08 Jan 2011 08:04:14 GMT
157
- server:
158
- - nginx/0.8.53
159
161
  content-length:
160
162
  - "525"
163
+ server:
164
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
+ date:
166
+ - Thu, 03 Feb 2011 22:18:40 GMT
167
+ connection:
168
+ - close
161
169
  set-cookie:
162
- - _recurly_session=906f02bae0881d8bfced840281363e6d; domain=.recurly.com; path=/; secure; HttpOnly
163
- cache-control:
164
- - no-cache
170
+ - _recurly_session=4c93a2760771e2940efbb597b2d02973; domain=.recurly.local; path=/; HttpOnly
165
171
  body: |
166
172
  <?xml version="1.0" encoding="UTF-8"?>
167
173
  <charge type="charge">
168
- <id>ca54eec0577d4496ab7a987a9f703407</id>
169
- <account_code>charge-list-invoiced-1287465632</account_code>
174
+ <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
175
+ <account_code>charge-list-invoiced-1296674173</account_code>
170
176
  <amount_in_cents type="integer">1000</amount_in_cents>
171
- <start_date type="datetime">2011-01-08T08:04:13Z</start_date>
177
+ <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
172
178
  <end_date nil="true" type="datetime"></end_date>
173
179
  <invoice_number nil="true" type="integer"></invoice_number>
174
180
  <description>charge description</description>
175
- <created_at type="datetime">2011-01-08T08:04:13Z</created_at>
181
+ <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
176
182
  </charge>
177
183
 
178
184
  http_version: "1.1"
179
185
  - !ruby/struct:VCR::HTTPInteraction
180
186
  request: !ruby/struct:VCR::Request
181
187
  method: :post
182
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/charges.xml
188
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
183
189
  body: |
184
190
  <?xml version="1.0" encoding="UTF-8"?>
185
191
  <charge>
@@ -188,97 +194,101 @@
188
194
  </charge>
189
195
 
190
196
  headers:
197
+ authorization:
198
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
199
+ content-type:
200
+ - application/xml
191
201
  accept:
192
202
  - "*/*"
203
+ user-agent:
204
+ - Ruby
193
205
  connection:
194
206
  - close
195
- content-type:
196
- - application/xml
197
- authorization:
198
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
199
207
  response: !ruby/struct:VCR::Response
200
208
  status: !ruby/struct:VCR::ResponseStatus
201
209
  code: 201
202
- message: Created
210
+ message: "Created "
203
211
  headers:
204
- connection:
205
- - close
212
+ cache-control:
213
+ - no-cache
214
+ x-runtime:
215
+ - "426"
206
216
  content-type:
207
217
  - application/xml; charset=utf-8
208
- x-runtime:
209
- - "42"
210
- date:
211
- - Sat, 08 Jan 2011 08:04:14 GMT
212
- server:
213
- - nginx/0.8.53
214
218
  content-length:
215
219
  - "525"
220
+ server:
221
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
222
+ date:
223
+ - Thu, 03 Feb 2011 22:18:42 GMT
224
+ connection:
225
+ - close
216
226
  set-cookie:
217
- - _recurly_session=4d614f4cbc8c376f6c0ea9d2a470e881; domain=.recurly.com; path=/; secure; HttpOnly
218
- cache-control:
219
- - no-cache
227
+ - _recurly_session=e82e3773619012bbb294b8edf5e75a91; domain=.recurly.local; path=/; HttpOnly
220
228
  body: |
221
229
  <?xml version="1.0" encoding="UTF-8"?>
222
230
  <charge type="charge">
223
- <id>4ae83f6b2e8c4344b441c197e606a49a</id>
224
- <account_code>charge-list-invoiced-1287465632</account_code>
231
+ <id>6e3838fdbe96424785a617143a8b7c3e</id>
232
+ <account_code>charge-list-invoiced-1296674173</account_code>
225
233
  <amount_in_cents type="integer">1000</amount_in_cents>
226
- <start_date type="datetime">2011-01-08T08:04:14Z</start_date>
234
+ <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
227
235
  <end_date nil="true" type="datetime"></end_date>
228
236
  <invoice_number nil="true" type="integer"></invoice_number>
229
237
  <description>charge description</description>
230
- <created_at type="datetime">2011-01-08T08:04:14Z</created_at>
238
+ <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
231
239
  </charge>
232
240
 
233
241
  http_version: "1.1"
234
242
  - !ruby/struct:VCR::HTTPInteraction
235
243
  request: !ruby/struct:VCR::Request
236
244
  method: :post
237
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/invoices.xml
245
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/invoices.xml
238
246
  body: |
239
247
  <?xml version="1.0" encoding="UTF-8"?>
240
248
  <invoice>
241
249
  </invoice>
242
250
 
243
251
  headers:
252
+ authorization:
253
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
254
+ content-type:
255
+ - application/xml
244
256
  accept:
245
257
  - "*/*"
258
+ user-agent:
259
+ - Ruby
246
260
  connection:
247
261
  - close
248
- content-type:
249
- - application/xml
250
- authorization:
251
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
252
262
  response: !ruby/struct:VCR::Response
253
263
  status: !ruby/struct:VCR::ResponseStatus
254
264
  code: 201
255
- message: Created
265
+ message: "Created "
256
266
  headers:
267
+ cache-control:
268
+ - no-cache
257
269
  location:
258
- - https://recurlytest3-test.recurly.com/invoices/70389a2bbebf45c490231d9c4cb6bbcf
259
- connection:
260
- - close
270
+ - http://litle-test.recurly.local:3000/invoices/cc12d2655f42489fa334d2ae6d811f0f
271
+ x-runtime:
272
+ - "776"
261
273
  content-type:
262
274
  - application/xml; charset=utf-8
263
- x-runtime:
264
- - "170"
265
- date:
266
- - Sat, 08 Jan 2011 08:04:16 GMT
267
- server:
268
- - nginx/0.8.53
269
275
  content-length:
270
- - "1934"
276
+ - "2142"
277
+ server:
278
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
279
+ date:
280
+ - Thu, 03 Feb 2011 22:18:45 GMT
281
+ connection:
282
+ - close
271
283
  set-cookie:
272
- - _recurly_session=99d99a69cbc6f66aa2d14cf75f2e44da; domain=.recurly.com; path=/; secure; HttpOnly
273
- cache-control:
274
- - no-cache
284
+ - _recurly_session=b1e283914c28445cadea137e64af4be2; domain=.recurly.local; path=/; HttpOnly
275
285
  body: |
276
286
  <?xml version="1.0" encoding="UTF-8"?>
277
287
  <invoice>
278
- <id>70389a2bbebf45c490231d9c4cb6bbcf</id>
279
- <account_code>charge-list-invoiced-1287465632</account_code>
280
- <date type="datetime">2011-01-08T08:04:16Z</date>
281
- <invoice_number type="integer">2380</invoice_number>
288
+ <id>cc12d2655f42489fa334d2ae6d811f0f</id>
289
+ <account_code>charge-list-invoiced-1296674173</account_code>
290
+ <date type="datetime">2011-02-03T22:18:45Z</date>
291
+ <invoice_number type="integer">1234</invoice_number>
282
292
  <vat_number></vat_number>
283
293
  <status>open</status>
284
294
  <subtotal_in_cents type="integer">3000</subtotal_in_cents>
@@ -286,33 +296,37 @@
286
296
  <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
287
297
  <paid_in_cents type="integer">0</paid_in_cents>
288
298
  <total_due_in_cents type="integer">3000</total_due_in_cents>
299
+ <discount_in_cents type="integer">0</discount_in_cents>
289
300
  <line_items type="array">
290
301
  <line_item>
291
- <id>4b210bc37b2f4351a20ca1ee5350f7a5</id>
302
+ <id>bf3a2a356b8640158ec85161a935ac91</id>
292
303
  <type>charge</type>
293
304
  <amount_in_cents type="integer">1000</amount_in_cents>
294
- <start_date type="datetime">2011-01-08T08:04:12Z</start_date>
305
+ <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
295
306
  <end_date nil="true" type="datetime"></end_date>
296
307
  <description>charge description</description>
297
- <created_at type="datetime">2011-01-08T08:04:12Z</created_at>
308
+ <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
309
+ <applied_coupon_code></applied_coupon_code>
298
310
  </line_item>
299
311
  <line_item>
300
- <id>ca54eec0577d4496ab7a987a9f703407</id>
312
+ <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
301
313
  <type>charge</type>
302
314
  <amount_in_cents type="integer">1000</amount_in_cents>
303
- <start_date type="datetime">2011-01-08T08:04:13Z</start_date>
315
+ <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
304
316
  <end_date nil="true" type="datetime"></end_date>
305
317
  <description>charge description</description>
306
- <created_at type="datetime">2011-01-08T08:04:13Z</created_at>
318
+ <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
319
+ <applied_coupon_code></applied_coupon_code>
307
320
  </line_item>
308
321
  <line_item>
309
- <id>4ae83f6b2e8c4344b441c197e606a49a</id>
322
+ <id>6e3838fdbe96424785a617143a8b7c3e</id>
310
323
  <type>charge</type>
311
324
  <amount_in_cents type="integer">1000</amount_in_cents>
312
- <start_date type="datetime">2011-01-08T08:04:14Z</start_date>
325
+ <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
313
326
  <end_date nil="true" type="datetime"></end_date>
314
327
  <description>charge description</description>
315
- <created_at type="datetime">2011-01-08T08:04:14Z</created_at>
328
+ <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
329
+ <applied_coupon_code></applied_coupon_code>
316
330
  </line_item>
317
331
  </line_items>
318
332
  <payments type="array">
@@ -323,7 +337,7 @@
323
337
  - !ruby/struct:VCR::HTTPInteraction
324
338
  request: !ruby/struct:VCR::Request
325
339
  method: :post
326
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/charges.xml
340
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
327
341
  body: |
328
342
  <?xml version="1.0" encoding="UTF-8"?>
329
343
  <charge>
@@ -332,118 +346,122 @@
332
346
  </charge>
333
347
 
334
348
  headers:
349
+ authorization:
350
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
351
+ content-type:
352
+ - application/xml
335
353
  accept:
336
354
  - "*/*"
355
+ user-agent:
356
+ - Ruby
337
357
  connection:
338
358
  - close
339
- content-type:
340
- - application/xml
341
- authorization:
342
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
343
359
  response: !ruby/struct:VCR::Response
344
360
  status: !ruby/struct:VCR::ResponseStatus
345
361
  code: 201
346
- message: Created
362
+ message: "Created "
347
363
  headers:
348
- connection:
349
- - close
364
+ cache-control:
365
+ - no-cache
366
+ x-runtime:
367
+ - "612"
350
368
  content-type:
351
369
  - application/xml; charset=utf-8
352
- x-runtime:
353
- - "44"
354
- date:
355
- - Sat, 08 Jan 2011 08:04:17 GMT
356
- server:
357
- - nginx/0.8.53
358
370
  content-length:
359
371
  - "525"
372
+ server:
373
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
374
+ date:
375
+ - Thu, 03 Feb 2011 22:18:47 GMT
376
+ connection:
377
+ - close
360
378
  set-cookie:
361
- - _recurly_session=8a2dab9db72501d410971a6b194a426b; domain=.recurly.com; path=/; secure; HttpOnly
362
- cache-control:
363
- - no-cache
379
+ - _recurly_session=95c9fe1d3e2494e3ccc938cfbc8a7356; domain=.recurly.local; path=/; HttpOnly
364
380
  body: |
365
381
  <?xml version="1.0" encoding="UTF-8"?>
366
382
  <charge type="charge">
367
- <id>bfd3a0e3d32e45fcbc8fd2f48810bf61</id>
368
- <account_code>charge-list-invoiced-1287465632</account_code>
383
+ <id>a10fba2153044725b5ca1d9f9a44731f</id>
384
+ <account_code>charge-list-invoiced-1296674173</account_code>
369
385
  <amount_in_cents type="integer">1000</amount_in_cents>
370
- <start_date type="datetime">2011-01-08T08:04:17Z</start_date>
386
+ <start_date type="datetime">2011-02-03T22:18:47Z</start_date>
371
387
  <end_date nil="true" type="datetime"></end_date>
372
388
  <invoice_number nil="true" type="integer"></invoice_number>
373
389
  <description>charge description</description>
374
- <created_at type="datetime">2011-01-08T08:04:17Z</created_at>
390
+ <created_at type="datetime">2011-02-03T22:18:47Z</created_at>
375
391
  </charge>
376
392
 
377
393
  http_version: "1.1"
378
394
  - !ruby/struct:VCR::HTTPInteraction
379
395
  request: !ruby/struct:VCR::Request
380
396
  method: :get
381
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/charge-list-invoiced-1287465632/charges.xml?show=invoiced
397
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml?show=invoiced
382
398
  body:
383
399
  headers:
400
+ authorization:
401
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
384
402
  accept:
385
403
  - application/xml
404
+ accept-encoding:
405
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
406
+ user-agent:
407
+ - Ruby
386
408
  connection:
387
409
  - close
388
- authorization:
389
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
390
410
  response: !ruby/struct:VCR::Response
391
411
  status: !ruby/struct:VCR::ResponseStatus
392
412
  code: 200
393
- message: OK
413
+ message: "OK "
394
414
  headers:
395
- x-ua-compatible:
396
- - IE=Edge
397
- etag:
398
- - "\"65600c79e9b14a3f640cbf59b8f97b40\""
399
- connection:
400
- - close
415
+ x-runtime:
416
+ - "89"
401
417
  content-type:
402
418
  - application/xml; charset=utf-8
403
- x-runtime:
404
- - "17"
405
- date:
406
- - Sat, 08 Jan 2011 08:04:17 GMT
407
- server:
408
- - nginx/0.8.53
419
+ etag:
420
+ - "\"92aaa73a344da4a7e795008f0667420f\""
421
+ cache-control:
422
+ - private, max-age=0, must-revalidate
409
423
  content-length:
410
424
  - "1570"
425
+ server:
426
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
427
+ date:
428
+ - Thu, 03 Feb 2011 22:18:49 GMT
429
+ connection:
430
+ - close
411
431
  set-cookie:
412
- - _recurly_session=9d9a47a10efed60d9dd3b2b43d268344; domain=.recurly.com; path=/; secure; HttpOnly
413
- cache-control:
414
- - private, max-age=0, must-revalidate
432
+ - _recurly_session=fca52c32f80e982da0cf256075901000; domain=.recurly.local; path=/; HttpOnly
415
433
  body: |
416
434
  <?xml version="1.0" encoding="UTF-8"?>
417
435
  <charges type="array">
418
436
  <charge type="charge">
419
- <id>4ae83f6b2e8c4344b441c197e606a49a</id>
420
- <account_code>charge-list-invoiced-1287465632</account_code>
437
+ <id>6e3838fdbe96424785a617143a8b7c3e</id>
438
+ <account_code>charge-list-invoiced-1296674173</account_code>
421
439
  <amount_in_cents type="integer">1000</amount_in_cents>
422
- <start_date type="datetime">2011-01-08T08:04:14Z</start_date>
440
+ <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
423
441
  <end_date nil="true" type="datetime"></end_date>
424
- <invoice_number type="integer">2380</invoice_number>
442
+ <invoice_number type="integer">1234</invoice_number>
425
443
  <description>charge description</description>
426
- <created_at type="datetime">2011-01-08T08:04:14Z</created_at>
444
+ <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
427
445
  </charge>
428
446
  <charge type="charge">
429
- <id>ca54eec0577d4496ab7a987a9f703407</id>
430
- <account_code>charge-list-invoiced-1287465632</account_code>
447
+ <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
448
+ <account_code>charge-list-invoiced-1296674173</account_code>
431
449
  <amount_in_cents type="integer">1000</amount_in_cents>
432
- <start_date type="datetime">2011-01-08T08:04:13Z</start_date>
450
+ <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
433
451
  <end_date nil="true" type="datetime"></end_date>
434
- <invoice_number type="integer">2380</invoice_number>
452
+ <invoice_number type="integer">1234</invoice_number>
435
453
  <description>charge description</description>
436
- <created_at type="datetime">2011-01-08T08:04:13Z</created_at>
454
+ <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
437
455
  </charge>
438
456
  <charge type="charge">
439
- <id>4b210bc37b2f4351a20ca1ee5350f7a5</id>
440
- <account_code>charge-list-invoiced-1287465632</account_code>
457
+ <id>bf3a2a356b8640158ec85161a935ac91</id>
458
+ <account_code>charge-list-invoiced-1296674173</account_code>
441
459
  <amount_in_cents type="integer">1000</amount_in_cents>
442
- <start_date type="datetime">2011-01-08T08:04:12Z</start_date>
460
+ <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
443
461
  <end_date nil="true" type="datetime"></end_date>
444
- <invoice_number type="integer">2380</invoice_number>
462
+ <invoice_number type="integer">1234</invoice_number>
445
463
  <description>charge description</description>
446
- <created_at type="datetime">2011-01-08T08:04:12Z</created_at>
464
+ <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
447
465
  </charge>
448
466
  </charges>
449
467