recurly 0.4.8 → 0.4.10

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 (114) hide show
  1. data/README.md +2 -2
  2. data/lib/recurly.rb +2 -1
  3. data/lib/recurly/account.rb +2 -2
  4. data/lib/recurly/base.rb +30 -12
  5. data/lib/recurly/billing_info.rb +2 -2
  6. data/lib/recurly/exceptions.rb +13 -0
  7. data/lib/recurly/plan.rb +1 -1
  8. data/lib/recurly/subscription.rb +2 -2
  9. data/lib/recurly/transaction.rb +2 -2
  10. data/lib/recurly/transparent.rb +1 -1
  11. data/lib/recurly/verification.rb +77 -0
  12. data/lib/recurly/version.rb +1 -1
  13. data/spec/config/recurly.yml +4 -4
  14. data/spec/integration/account_spec.rb +12 -0
  15. data/spec/integration/billing_info_spec.rb +2 -2
  16. data/spec/integration/charge_spec.rb +0 -1
  17. data/spec/integration/plan_spec.rb +2 -2
  18. data/spec/support/vcr.rb +2 -2
  19. data/spec/unit/verification_spec.rb +76 -0
  20. data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
  21. data/spec/vcr/account/close/1313708721.yml +104 -0
  22. data/spec/vcr/account/create-blank/1313708721.yml +33 -0
  23. data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
  24. data/spec/vcr/account/create-min/1313708721.yml +38 -0
  25. data/spec/vcr/account/create/1313708721.yml +39 -0
  26. data/spec/vcr/account/find/1313708721.yml +107 -0
  27. data/spec/vcr/account/list/1313708721.yml +878 -0
  28. data/spec/vcr/account/update/1313708721.yml +158 -0
  29. data/spec/vcr/billing/create/1313708721.yml +118 -0
  30. data/spec/vcr/billing/destroy/1313708721.yml +177 -0
  31. data/spec/vcr/billing/errors/1313708721.yml +71 -0
  32. data/spec/vcr/billing/find/1313708721.yml +156 -0
  33. data/spec/vcr/billing/update/1313708721.yml +159 -0
  34. data/spec/vcr/charge/create/1313708721.yml +153 -0
  35. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
  36. data/spec/vcr/charge/list-all/1313708721.yml +198 -0
  37. data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
  38. data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
  39. data/spec/vcr/charge/lookup/1313708721.yml +112 -0
  40. data/spec/vcr/coupon/create/1296774903.yml +96 -170
  41. data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
  42. data/spec/vcr/credit/create/1313708090.yml +112 -0
  43. data/spec/vcr/credit/delete/1313708090.yml +171 -0
  44. data/spec/vcr/credit/list/1313708090.yml +198 -0
  45. data/spec/vcr/credit/lookup/1313708090.yml +112 -0
  46. data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
  47. data/spec/vcr/invoice/create/1296674173.yml +182 -328
  48. data/spec/vcr/invoice/list/1296674173.yml +255 -442
  49. data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
  50. data/spec/vcr/plan/all.yml +210 -253
  51. data/spec/vcr/plan/find.yml +115 -187
  52. data/spec/vcr/plan/update.yml +105 -187
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
  56. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
  57. data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
  58. data/spec/vcr/subscription/change1/1296674173.yml +237 -402
  59. data/spec/vcr/subscription/change2/1296674173.yml +238 -402
  60. data/spec/vcr/subscription/create/1296674173.yml +123 -221
  61. data/spec/vcr/subscription/find/1296674173.yml +161 -279
  62. data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
  63. data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
  64. data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
  65. data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
  66. data/spec/vcr/transaction/all/1311126815.yml +215 -0
  67. data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
  68. data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
  69. data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
  70. data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
  71. data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
  72. data/spec/vcr/transaction/refund/1311126815.yml +163 -0
  73. data/spec/vcr/transaction/void/1311126815.yml +215 -0
  74. data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
  75. metadata +207 -154
  76. data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
  77. data/spec/vcr/account/close/1296674173.yml +0 -164
  78. data/spec/vcr/account/create-blank/1296674173.yml +0 -52
  79. data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
  80. data/spec/vcr/account/create-min/1296674173.yml +0 -66
  81. data/spec/vcr/account/create/1296674173.yml +0 -70
  82. data/spec/vcr/account/find/1296674173.yml +0 -169
  83. data/spec/vcr/account/list/1296674173.yml +0 -55
  84. data/spec/vcr/account/update/1296674173.yml +0 -258
  85. data/spec/vcr/billing/create/1296690812.yml +0 -215
  86. data/spec/vcr/billing/destroy/1296690812.yml +0 -294
  87. data/spec/vcr/billing/find/1296690812.yml +0 -280
  88. data/spec/vcr/billing/update/1296690812.yml +0 -297
  89. data/spec/vcr/charge/create/1296674173.yml +0 -262
  90. data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
  91. data/spec/vcr/charge/list-all/1296674173.yml +0 -316
  92. data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
  93. data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
  94. data/spec/vcr/charge/lookup/1296674173.yml +0 -180
  95. data/spec/vcr/coupon/create/1296688818.yml +0 -183
  96. data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
  97. data/spec/vcr/credit/create/1296674173.yml +0 -121
  98. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  99. data/spec/vcr/credit/list/1296674173.yml +0 -121
  100. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  101. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  102. data/spec/vcr/transaction/all/1296674173.yml +0 -389
  103. data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
  104. data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
  105. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  106. data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
  107. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  108. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  109. data/spec/vcr/transaction/void/1296674173.yml +0 -352
  110. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  111. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  112. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  113. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  114. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,316 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>charge-list-all-1296674173</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
21
- - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
30
- code: 201
31
- message: "Created "
32
- headers:
33
- cache-control:
34
- - no-cache
35
- location:
36
- - http://litle-test.recurly.local:3000/accounts/charge-list-all-1296674173
37
- x-runtime:
38
- - "584"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "585"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:18:14 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=46c62bf884c90f7de1505e10fd730db5e351ad264ffdb46477c4374c36122b2ac1fad5f0c83808d86ae0c1a532c4d950dad8473dbd48c82a1e6c7807a44a7c1d%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=a7db7b9987b5b28e622c7d5acda24499; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>charge-list-all-1296674173</id>
57
- <account_code>charge-list-all-1296674173</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>9875f451d6494d24a349d5ca6f39d468</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:14Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
73
- method: :post
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <charge>
78
- <amount type="float">10.0</amount>
79
- <description>charge description</description>
80
- </charge>
81
-
82
- headers:
83
- authorization:
84
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
- content-type:
86
- - application/xml
87
- accept:
88
- - "*/*"
89
- user-agent:
90
- - Ruby
91
- connection:
92
- - close
93
- response: !ruby/struct:VCR::Response
94
- status: !ruby/struct:VCR::ResponseStatus
95
- code: 201
96
- message: "Created "
97
- headers:
98
- cache-control:
99
- - no-cache
100
- x-runtime:
101
- - "412"
102
- content-type:
103
- - application/xml; charset=utf-8
104
- content-length:
105
- - "520"
106
- server:
107
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
- date:
109
- - Thu, 03 Feb 2011 22:18:16 GMT
110
- connection:
111
- - close
112
- set-cookie:
113
- - _recurly_session=ad6b1b152a840aaf19b61039e633aff8; domain=.recurly.local; path=/; HttpOnly
114
- body: |
115
- <?xml version="1.0" encoding="UTF-8"?>
116
- <charge type="charge">
117
- <id>e0891709cf1041298754ba1212aa3d39</id>
118
- <account_code>charge-list-all-1296674173</account_code>
119
- <amount_in_cents type="integer">1000</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
121
- <end_date nil="true" type="datetime"></end_date>
122
- <invoice_number nil="true" type="integer"></invoice_number>
123
- <description>charge description</description>
124
- <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
125
- </charge>
126
-
127
- http_version: "1.1"
128
- - !ruby/struct:VCR::HTTPInteraction
129
- request: !ruby/struct:VCR::Request
130
- method: :post
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
132
- body: |
133
- <?xml version="1.0" encoding="UTF-8"?>
134
- <charge>
135
- <amount type="float">10.0</amount>
136
- <description>charge description</description>
137
- </charge>
138
-
139
- headers:
140
- authorization:
141
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
142
- content-type:
143
- - application/xml
144
- accept:
145
- - "*/*"
146
- user-agent:
147
- - Ruby
148
- connection:
149
- - close
150
- response: !ruby/struct:VCR::Response
151
- status: !ruby/struct:VCR::ResponseStatus
152
- code: 201
153
- message: "Created "
154
- headers:
155
- cache-control:
156
- - no-cache
157
- x-runtime:
158
- - "397"
159
- content-type:
160
- - application/xml; charset=utf-8
161
- content-length:
162
- - "520"
163
- server:
164
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
165
- date:
166
- - Thu, 03 Feb 2011 22:18:18 GMT
167
- connection:
168
- - close
169
- set-cookie:
170
- - _recurly_session=94bc7acf0b1e113247d80cf356538fc2; domain=.recurly.local; path=/; HttpOnly
171
- body: |
172
- <?xml version="1.0" encoding="UTF-8"?>
173
- <charge type="charge">
174
- <id>088a6c2fc44b4c3fb530518d1bff639e</id>
175
- <account_code>charge-list-all-1296674173</account_code>
176
- <amount_in_cents type="integer">1000</amount_in_cents>
177
- <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
178
- <end_date nil="true" type="datetime"></end_date>
179
- <invoice_number nil="true" type="integer"></invoice_number>
180
- <description>charge description</description>
181
- <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
182
- </charge>
183
-
184
- http_version: "1.1"
185
- - !ruby/struct:VCR::HTTPInteraction
186
- request: !ruby/struct:VCR::Request
187
- method: :post
188
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
189
- body: |
190
- <?xml version="1.0" encoding="UTF-8"?>
191
- <charge>
192
- <amount type="float">10.0</amount>
193
- <description>charge description</description>
194
- </charge>
195
-
196
- headers:
197
- authorization:
198
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
199
- content-type:
200
- - application/xml
201
- accept:
202
- - "*/*"
203
- user-agent:
204
- - Ruby
205
- connection:
206
- - close
207
- response: !ruby/struct:VCR::Response
208
- status: !ruby/struct:VCR::ResponseStatus
209
- code: 201
210
- message: "Created "
211
- headers:
212
- cache-control:
213
- - no-cache
214
- x-runtime:
215
- - "399"
216
- content-type:
217
- - application/xml; charset=utf-8
218
- content-length:
219
- - "520"
220
- server:
221
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
222
- date:
223
- - Thu, 03 Feb 2011 22:18:20 GMT
224
- connection:
225
- - close
226
- set-cookie:
227
- - _recurly_session=e3c9bfbe1820d82b4cad61c8c9b5a0a9; domain=.recurly.local; path=/; HttpOnly
228
- body: |
229
- <?xml version="1.0" encoding="UTF-8"?>
230
- <charge type="charge">
231
- <id>e83ca6220d694443852943b682f7eda9</id>
232
- <account_code>charge-list-all-1296674173</account_code>
233
- <amount_in_cents type="integer">1000</amount_in_cents>
234
- <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
235
- <end_date nil="true" type="datetime"></end_date>
236
- <invoice_number nil="true" type="integer"></invoice_number>
237
- <description>charge description</description>
238
- <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
239
- </charge>
240
-
241
- http_version: "1.1"
242
- - !ruby/struct:VCR::HTTPInteraction
243
- request: !ruby/struct:VCR::Request
244
- method: :get
245
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
246
- body:
247
- headers:
248
- authorization:
249
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
250
- accept:
251
- - application/xml
252
- accept-encoding:
253
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
254
- user-agent:
255
- - Ruby
256
- connection:
257
- - close
258
- response: !ruby/struct:VCR::Response
259
- status: !ruby/struct:VCR::ResponseStatus
260
- code: 200
261
- message: "OK "
262
- headers:
263
- x-runtime:
264
- - "75"
265
- content-type:
266
- - application/xml; charset=utf-8
267
- etag:
268
- - "\"c578f5f32688fc3bd46bd29630a6e05a\""
269
- cache-control:
270
- - private, max-age=0, must-revalidate
271
- content-length:
272
- - "1576"
273
- server:
274
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
275
- date:
276
- - Thu, 03 Feb 2011 22:18:22 GMT
277
- connection:
278
- - close
279
- set-cookie:
280
- - _recurly_session=4d2e91ee8767725148c3bc91473c8bec; domain=.recurly.local; path=/; HttpOnly
281
- body: |
282
- <?xml version="1.0" encoding="UTF-8"?>
283
- <charges type="array">
284
- <charge type="charge">
285
- <id>e83ca6220d694443852943b682f7eda9</id>
286
- <account_code>charge-list-all-1296674173</account_code>
287
- <amount_in_cents type="integer">1000</amount_in_cents>
288
- <start_date type="datetime">2011-02-03T22:18:20Z</start_date>
289
- <end_date nil="true" type="datetime"></end_date>
290
- <invoice_number nil="true" type="integer"></invoice_number>
291
- <description>charge description</description>
292
- <created_at type="datetime">2011-02-03T22:18:20Z</created_at>
293
- </charge>
294
- <charge type="charge">
295
- <id>088a6c2fc44b4c3fb530518d1bff639e</id>
296
- <account_code>charge-list-all-1296674173</account_code>
297
- <amount_in_cents type="integer">1000</amount_in_cents>
298
- <start_date type="datetime">2011-02-03T22:18:17Z</start_date>
299
- <end_date nil="true" type="datetime"></end_date>
300
- <invoice_number nil="true" type="integer"></invoice_number>
301
- <description>charge description</description>
302
- <created_at type="datetime">2011-02-03T22:18:18Z</created_at>
303
- </charge>
304
- <charge type="charge">
305
- <id>e0891709cf1041298754ba1212aa3d39</id>
306
- <account_code>charge-list-all-1296674173</account_code>
307
- <amount_in_cents type="integer">1000</amount_in_cents>
308
- <start_date type="datetime">2011-02-03T22:18:15Z</start_date>
309
- <end_date nil="true" type="datetime"></end_date>
310
- <invoice_number nil="true" type="integer"></invoice_number>
311
- <description>charge description</description>
312
- <created_at type="datetime">2011-02-03T22:18:15Z</created_at>
313
- </charge>
314
- </charges>
315
-
316
- http_version: "1.1"
@@ -1,468 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>charge-list-invoiced-1296674173</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <accept-language type="yaml" nil="true"></accept-language>
15
- </account>
16
-
17
- headers:
18
- authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
- content-type:
21
- - application/xml
22
- accept:
23
- - "*/*"
24
- user-agent:
25
- - Ruby
26
- connection:
27
- - close
28
- response: !ruby/struct:VCR::Response
29
- status: !ruby/struct:VCR::ResponseStatus
30
- code: 201
31
- message: "Created "
32
- headers:
33
- cache-control:
34
- - no-cache
35
- location:
36
- - http://litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173
37
- x-runtime:
38
- - "696"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
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
49
- set-cookie:
50
- - account_credentials=4087ddbd0325bd4c05e06c315b870a04f7737c587fbc0af0dd085593a8c94ef4310cd0e004d475d91c71864efd3fb28ad77552c310289fba1d0b78c22515cbed%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=022b045e1932d8cff1cade2495e5739e; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>charge-list-invoiced-1296674173</id>
57
- <account_code>charge-list-invoiced-1296674173</account_code>
58
- <username></username>
59
- <email>verena@test.com</email>
60
- <first_name>Verena</first_name>
61
- <last_name>Test</last_name>
62
- <company_name>Recurly Ruby Gem</company_name>
63
- <balance_in_cents type="integer">0</balance_in_cents>
64
- <closed type="boolean">false</closed>
65
- <hosted_login_token>54f6f17cf3e04e19a1af363523e5f757</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:36Z</created_at>
67
- <state>active</state>
68
- </account>
69
-
70
- http_version: "1.1"
71
- - !ruby/struct:VCR::HTTPInteraction
72
- request: !ruby/struct:VCR::Request
73
- method: :post
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <charge>
78
- <amount type="float">10.0</amount>
79
- <description>charge description</description>
80
- </charge>
81
-
82
- headers:
83
- authorization:
84
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
85
- content-type:
86
- - application/xml
87
- accept:
88
- - "*/*"
89
- user-agent:
90
- - Ruby
91
- connection:
92
- - close
93
- response: !ruby/struct:VCR::Response
94
- status: !ruby/struct:VCR::ResponseStatus
95
- code: 201
96
- message: "Created "
97
- headers:
98
- cache-control:
99
- - no-cache
100
- x-runtime:
101
- - "414"
102
- content-type:
103
- - application/xml; charset=utf-8
104
- content-length:
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
112
- set-cookie:
113
- - _recurly_session=3a05c7471f94786758e92e6df2bd53a2; domain=.recurly.local; path=/; HttpOnly
114
- body: |
115
- <?xml version="1.0" encoding="UTF-8"?>
116
- <charge type="charge">
117
- <id>bf3a2a356b8640158ec85161a935ac91</id>
118
- <account_code>charge-list-invoiced-1296674173</account_code>
119
- <amount_in_cents type="integer">1000</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
121
- <end_date nil="true" type="datetime"></end_date>
122
- <invoice_number nil="true" type="integer"></invoice_number>
123
- <description>charge description</description>
124
- <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
125
- </charge>
126
-
127
- http_version: "1.1"
128
- - !ruby/struct:VCR::HTTPInteraction
129
- request: !ruby/struct:VCR::Request
130
- method: :post
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
132
- body: |
133
- <?xml version="1.0" encoding="UTF-8"?>
134
- <charge>
135
- <amount type="float">10.0</amount>
136
- <description>charge description</description>
137
- </charge>
138
-
139
- headers:
140
- authorization:
141
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
142
- content-type:
143
- - application/xml
144
- accept:
145
- - "*/*"
146
- user-agent:
147
- - Ruby
148
- connection:
149
- - close
150
- response: !ruby/struct:VCR::Response
151
- status: !ruby/struct:VCR::ResponseStatus
152
- code: 201
153
- message: "Created "
154
- headers:
155
- cache-control:
156
- - no-cache
157
- x-runtime:
158
- - "546"
159
- content-type:
160
- - application/xml; charset=utf-8
161
- content-length:
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
169
- set-cookie:
170
- - _recurly_session=4c93a2760771e2940efbb597b2d02973; domain=.recurly.local; path=/; HttpOnly
171
- body: |
172
- <?xml version="1.0" encoding="UTF-8"?>
173
- <charge type="charge">
174
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
175
- <account_code>charge-list-invoiced-1296674173</account_code>
176
- <amount_in_cents type="integer">1000</amount_in_cents>
177
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
178
- <end_date nil="true" type="datetime"></end_date>
179
- <invoice_number nil="true" type="integer"></invoice_number>
180
- <description>charge description</description>
181
- <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
182
- </charge>
183
-
184
- http_version: "1.1"
185
- - !ruby/struct:VCR::HTTPInteraction
186
- request: !ruby/struct:VCR::Request
187
- method: :post
188
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
189
- body: |
190
- <?xml version="1.0" encoding="UTF-8"?>
191
- <charge>
192
- <amount type="float">10.0</amount>
193
- <description>charge description</description>
194
- </charge>
195
-
196
- headers:
197
- authorization:
198
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
199
- content-type:
200
- - application/xml
201
- accept:
202
- - "*/*"
203
- user-agent:
204
- - Ruby
205
- connection:
206
- - close
207
- response: !ruby/struct:VCR::Response
208
- status: !ruby/struct:VCR::ResponseStatus
209
- code: 201
210
- message: "Created "
211
- headers:
212
- cache-control:
213
- - no-cache
214
- x-runtime:
215
- - "426"
216
- content-type:
217
- - application/xml; charset=utf-8
218
- content-length:
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
226
- set-cookie:
227
- - _recurly_session=e82e3773619012bbb294b8edf5e75a91; domain=.recurly.local; path=/; HttpOnly
228
- body: |
229
- <?xml version="1.0" encoding="UTF-8"?>
230
- <charge type="charge">
231
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
232
- <account_code>charge-list-invoiced-1296674173</account_code>
233
- <amount_in_cents type="integer">1000</amount_in_cents>
234
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
235
- <end_date nil="true" type="datetime"></end_date>
236
- <invoice_number nil="true" type="integer"></invoice_number>
237
- <description>charge description</description>
238
- <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
239
- </charge>
240
-
241
- http_version: "1.1"
242
- - !ruby/struct:VCR::HTTPInteraction
243
- request: !ruby/struct:VCR::Request
244
- method: :post
245
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/invoices.xml
246
- body: |
247
- <?xml version="1.0" encoding="UTF-8"?>
248
- <invoice>
249
- </invoice>
250
-
251
- headers:
252
- authorization:
253
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
254
- content-type:
255
- - application/xml
256
- accept:
257
- - "*/*"
258
- user-agent:
259
- - Ruby
260
- connection:
261
- - close
262
- response: !ruby/struct:VCR::Response
263
- status: !ruby/struct:VCR::ResponseStatus
264
- code: 201
265
- message: "Created "
266
- headers:
267
- cache-control:
268
- - no-cache
269
- location:
270
- - http://litle-test.recurly.local:3000/invoices/cc12d2655f42489fa334d2ae6d811f0f
271
- x-runtime:
272
- - "776"
273
- content-type:
274
- - application/xml; charset=utf-8
275
- content-length:
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
283
- set-cookie:
284
- - _recurly_session=b1e283914c28445cadea137e64af4be2; domain=.recurly.local; path=/; HttpOnly
285
- body: |
286
- <?xml version="1.0" encoding="UTF-8"?>
287
- <invoice>
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>
292
- <vat_number></vat_number>
293
- <status>open</status>
294
- <subtotal_in_cents type="integer">3000</subtotal_in_cents>
295
- <total_in_cents type="integer">3000</total_in_cents>
296
- <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
297
- <paid_in_cents type="integer">0</paid_in_cents>
298
- <total_due_in_cents type="integer">3000</total_due_in_cents>
299
- <discount_in_cents type="integer">0</discount_in_cents>
300
- <line_items type="array">
301
- <line_item>
302
- <id>bf3a2a356b8640158ec85161a935ac91</id>
303
- <type>charge</type>
304
- <amount_in_cents type="integer">1000</amount_in_cents>
305
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
306
- <end_date nil="true" type="datetime"></end_date>
307
- <description>charge description</description>
308
- <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
309
- <applied_coupon_code></applied_coupon_code>
310
- </line_item>
311
- <line_item>
312
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
313
- <type>charge</type>
314
- <amount_in_cents type="integer">1000</amount_in_cents>
315
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
316
- <end_date nil="true" type="datetime"></end_date>
317
- <description>charge description</description>
318
- <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
319
- <applied_coupon_code></applied_coupon_code>
320
- </line_item>
321
- <line_item>
322
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
323
- <type>charge</type>
324
- <amount_in_cents type="integer">1000</amount_in_cents>
325
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
326
- <end_date nil="true" type="datetime"></end_date>
327
- <description>charge description</description>
328
- <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
329
- <applied_coupon_code></applied_coupon_code>
330
- </line_item>
331
- </line_items>
332
- <payments type="array">
333
- </payments>
334
- </invoice>
335
-
336
- http_version: "1.1"
337
- - !ruby/struct:VCR::HTTPInteraction
338
- request: !ruby/struct:VCR::Request
339
- method: :post
340
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml
341
- body: |
342
- <?xml version="1.0" encoding="UTF-8"?>
343
- <charge>
344
- <amount type="float">10.0</amount>
345
- <description>charge description</description>
346
- </charge>
347
-
348
- headers:
349
- authorization:
350
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
351
- content-type:
352
- - application/xml
353
- accept:
354
- - "*/*"
355
- user-agent:
356
- - Ruby
357
- connection:
358
- - close
359
- response: !ruby/struct:VCR::Response
360
- status: !ruby/struct:VCR::ResponseStatus
361
- code: 201
362
- message: "Created "
363
- headers:
364
- cache-control:
365
- - no-cache
366
- x-runtime:
367
- - "612"
368
- content-type:
369
- - application/xml; charset=utf-8
370
- content-length:
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
378
- set-cookie:
379
- - _recurly_session=95c9fe1d3e2494e3ccc938cfbc8a7356; domain=.recurly.local; path=/; HttpOnly
380
- body: |
381
- <?xml version="1.0" encoding="UTF-8"?>
382
- <charge type="charge">
383
- <id>a10fba2153044725b5ca1d9f9a44731f</id>
384
- <account_code>charge-list-invoiced-1296674173</account_code>
385
- <amount_in_cents type="integer">1000</amount_in_cents>
386
- <start_date type="datetime">2011-02-03T22:18:47Z</start_date>
387
- <end_date nil="true" type="datetime"></end_date>
388
- <invoice_number nil="true" type="integer"></invoice_number>
389
- <description>charge description</description>
390
- <created_at type="datetime">2011-02-03T22:18:47Z</created_at>
391
- </charge>
392
-
393
- http_version: "1.1"
394
- - !ruby/struct:VCR::HTTPInteraction
395
- request: !ruby/struct:VCR::Request
396
- method: :get
397
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-invoiced-1296674173/charges.xml?show=invoiced
398
- body:
399
- headers:
400
- authorization:
401
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
402
- accept:
403
- - application/xml
404
- accept-encoding:
405
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
406
- user-agent:
407
- - Ruby
408
- connection:
409
- - close
410
- response: !ruby/struct:VCR::Response
411
- status: !ruby/struct:VCR::ResponseStatus
412
- code: 200
413
- message: "OK "
414
- headers:
415
- x-runtime:
416
- - "89"
417
- content-type:
418
- - application/xml; charset=utf-8
419
- etag:
420
- - "\"92aaa73a344da4a7e795008f0667420f\""
421
- cache-control:
422
- - private, max-age=0, must-revalidate
423
- content-length:
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
431
- set-cookie:
432
- - _recurly_session=fca52c32f80e982da0cf256075901000; domain=.recurly.local; path=/; HttpOnly
433
- body: |
434
- <?xml version="1.0" encoding="UTF-8"?>
435
- <charges type="array">
436
- <charge type="charge">
437
- <id>6e3838fdbe96424785a617143a8b7c3e</id>
438
- <account_code>charge-list-invoiced-1296674173</account_code>
439
- <amount_in_cents type="integer">1000</amount_in_cents>
440
- <start_date type="datetime">2011-02-03T22:18:42Z</start_date>
441
- <end_date nil="true" type="datetime"></end_date>
442
- <invoice_number type="integer">1234</invoice_number>
443
- <description>charge description</description>
444
- <created_at type="datetime">2011-02-03T22:18:42Z</created_at>
445
- </charge>
446
- <charge type="charge">
447
- <id>8379e1a5fe6d4ada979f3fbc366b31b0</id>
448
- <account_code>charge-list-invoiced-1296674173</account_code>
449
- <amount_in_cents type="integer">1000</amount_in_cents>
450
- <start_date type="datetime">2011-02-03T22:18:40Z</start_date>
451
- <end_date nil="true" type="datetime"></end_date>
452
- <invoice_number type="integer">1234</invoice_number>
453
- <description>charge description</description>
454
- <created_at type="datetime">2011-02-03T22:18:40Z</created_at>
455
- </charge>
456
- <charge type="charge">
457
- <id>bf3a2a356b8640158ec85161a935ac91</id>
458
- <account_code>charge-list-invoiced-1296674173</account_code>
459
- <amount_in_cents type="integer">1000</amount_in_cents>
460
- <start_date type="datetime">2011-02-03T22:18:37Z</start_date>
461
- <end_date nil="true" type="datetime"></end_date>
462
- <invoice_number type="integer">1234</invoice_number>
463
- <description>charge description</description>
464
- <created_at type="datetime">2011-02-03T22:18:38Z</created_at>
465
- </charge>
466
- </charges>
467
-
468
- http_version: "1.1"