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,262 +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-create-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-create-1296674173
37
- x-runtime:
38
- - "617"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "581"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:18:52 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=ac2d3ff26a5cc9fbce9ab7db67e65967f2a39283fa32485f57d48e13e6ef18c57f1bbf3011f920f70e7812006be532b30449ed01321226803b75a439107324ab%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=113f5be12cb23c0fd167532d10b249a9; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>charge-create-1296674173</id>
57
- <account_code>charge-create-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>27ecd1988c45454083103fd7b342eaa1</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:18:52Z</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: :put
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/billing_info.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <billing-info>
78
- <address1>123 Test St</address1>
79
- <city>San Francisco</city>
80
- <state>CA</state>
81
- <zip>94115</zip>
82
- <country>US</country>
83
- <credit-card>
84
- <number>4111111111111111</number>
85
- <year type="integer">2012</year>
86
- <month type="integer">2</month>
87
- <verification-value>123</verification-value>
88
- </credit-card>
89
- <account-code>charge-create-1296674173</account-code>
90
- <first-name>Verena</first-name>
91
- <last-name>Test</last-name>
92
- </billing-info>
93
-
94
- headers:
95
- authorization:
96
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
- content-type:
98
- - application/xml
99
- accept:
100
- - "*/*"
101
- user-agent:
102
- - Ruby
103
- connection:
104
- - close
105
- response: !ruby/struct:VCR::Response
106
- status: !ruby/struct:VCR::ResponseStatus
107
- code: 200
108
- message: "OK "
109
- headers:
110
- x-runtime:
111
- - "1617"
112
- content-type:
113
- - application/xml; charset=utf-8
114
- etag:
115
- - "\"071e9bdb8fbbd9648ed0d753efae29f6\""
116
- cache-control:
117
- - private, max-age=0, must-revalidate
118
- content-length:
119
- - "639"
120
- server:
121
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
- date:
123
- - Thu, 03 Feb 2011 22:18:55 GMT
124
- connection:
125
- - close
126
- set-cookie:
127
- - _recurly_session=b11382935805a828d264b7aa8220f6a4; domain=.recurly.local; path=/; HttpOnly
128
- body: |
129
- <?xml version="1.0" encoding="UTF-8"?>
130
- <billing_info>
131
- <account_code>charge-create-1296674173</account_code>
132
- <first_name>Verena</first_name>
133
- <last_name>Test</last_name>
134
- <address1>123 Test St</address1>
135
- <address2></address2>
136
- <city>San Francisco</city>
137
- <state>CA</state>
138
- <country>US</country>
139
- <zip>94115</zip>
140
- <phone></phone>
141
- <vat_number></vat_number>
142
- <ip_address></ip_address>
143
- <credit_card>
144
- <type>visa</type>
145
- <last_four>1111</last_four>
146
- <month type="integer">2</month>
147
- <year type="integer">2012</year>
148
- </credit_card>
149
- <updated_at type="datetime">2011-02-03T22:18:55Z</updated_at>
150
- </billing_info>
151
-
152
- http_version: "1.1"
153
- - !ruby/struct:VCR::HTTPInteraction
154
- request: !ruby/struct:VCR::Request
155
- method: :post
156
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges.xml
157
- body: |
158
- <?xml version="1.0" encoding="UTF-8"?>
159
- <charge>
160
- <amount type="float">2.5</amount>
161
- <description>virtual cow maintence fee</description>
162
- </charge>
163
-
164
- headers:
165
- authorization:
166
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
167
- content-type:
168
- - application/xml
169
- accept:
170
- - "*/*"
171
- user-agent:
172
- - Ruby
173
- connection:
174
- - close
175
- response: !ruby/struct:VCR::Response
176
- status: !ruby/struct:VCR::ResponseStatus
177
- code: 201
178
- message: "Created "
179
- headers:
180
- cache-control:
181
- - no-cache
182
- x-runtime:
183
- - "529"
184
- content-type:
185
- - application/xml; charset=utf-8
186
- content-length:
187
- - "524"
188
- server:
189
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
190
- date:
191
- - Thu, 03 Feb 2011 22:18:57 GMT
192
- connection:
193
- - close
194
- set-cookie:
195
- - _recurly_session=4815ded9fb580deec6d468c20b2d1137; domain=.recurly.local; path=/; HttpOnly
196
- body: |
197
- <?xml version="1.0" encoding="UTF-8"?>
198
- <charge type="charge">
199
- <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
200
- <account_code>charge-create-1296674173</account_code>
201
- <amount_in_cents type="integer">250</amount_in_cents>
202
- <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
203
- <end_date nil="true" type="datetime"></end_date>
204
- <invoice_number nil="true" type="integer"></invoice_number>
205
- <description>virtual cow maintence fee</description>
206
- <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
207
- </charge>
208
-
209
- http_version: "1.1"
210
- - !ruby/struct:VCR::HTTPInteraction
211
- request: !ruby/struct:VCR::Request
212
- method: :get
213
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-create-1296674173/charges/d6a8833fc6d144ccb2f35bf55d29df6c.xml
214
- body:
215
- headers:
216
- authorization:
217
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
218
- accept:
219
- - application/xml
220
- accept-encoding:
221
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
- user-agent:
223
- - Ruby
224
- connection:
225
- - close
226
- response: !ruby/struct:VCR::Response
227
- status: !ruby/struct:VCR::ResponseStatus
228
- code: 200
229
- message: "OK "
230
- headers:
231
- x-runtime:
232
- - "78"
233
- content-type:
234
- - application/xml; charset=utf-8
235
- etag:
236
- - "\"6fae388c9450f5a26c1bee90a16cafc8\""
237
- cache-control:
238
- - private, max-age=0, must-revalidate
239
- content-length:
240
- - "524"
241
- server:
242
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
243
- date:
244
- - Thu, 03 Feb 2011 22:18:59 GMT
245
- connection:
246
- - close
247
- set-cookie:
248
- - _recurly_session=f7c2a16179c7e89abb4bb839c1fd30c8; domain=.recurly.local; path=/; HttpOnly
249
- body: |
250
- <?xml version="1.0" encoding="UTF-8"?>
251
- <charge type="charge">
252
- <id>d6a8833fc6d144ccb2f35bf55d29df6c</id>
253
- <account_code>charge-create-1296674173</account_code>
254
- <amount_in_cents type="integer">250</amount_in_cents>
255
- <start_date type="datetime">2011-02-03T22:18:57Z</start_date>
256
- <end_date nil="true" type="datetime"></end_date>
257
- <invoice_number nil="true" type="integer"></invoice_number>
258
- <description>virtual cow maintence fee</description>
259
- <created_at type="datetime">2011-02-03T22:18:57Z</created_at>
260
- </charge>
261
-
262
- http_version: "1.1"
@@ -1,307 +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-delete-uinvoiced-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-delete-uinvoiced-1296674173
37
- x-runtime:
38
- - "612"
39
- content-type:
40
- - application/xml; charset=utf-8
41
- content-length:
42
- - "601"
43
- server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
- date:
46
- - Thu, 03 Feb 2011 22:19:08 GMT
47
- connection:
48
- - close
49
- set-cookie:
50
- - account_credentials=67c52e2238a94f049ce9067dd0e5e40155d98b8b736ff5b50d2eff0d94c39f046aad16baddac437ac3e9048cf15c3c362a523413d1bd04004458952e65640421%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=bf44f7b5ddd11b8752428837ce3ed346; domain=.recurly.local; path=/; HttpOnly
53
- body: |
54
- <?xml version="1.0" encoding="UTF-8"?>
55
- <account>
56
- <id>charge-delete-uinvoiced-1296674173</id>
57
- <account_code>charge-delete-uinvoiced-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>501b55e9573f462d9a65f899d7ca02f4</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:19:08Z</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-delete-uinvoiced-1296674173/charges.xml
75
- body: |
76
- <?xml version="1.0" encoding="UTF-8"?>
77
- <charge>
78
- <amount type="float">13.15</amount>
79
- <description>inconvenience fee</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
- - "423"
102
- content-type:
103
- - application/xml; charset=utf-8
104
- content-length:
105
- - "527"
106
- server:
107
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
108
- date:
109
- - Thu, 03 Feb 2011 22:19:10 GMT
110
- connection:
111
- - close
112
- set-cookie:
113
- - _recurly_session=0e4d67aae671c0a295a3135409cbe0b2; domain=.recurly.local; path=/; HttpOnly
114
- body: |
115
- <?xml version="1.0" encoding="UTF-8"?>
116
- <charge type="charge">
117
- <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
118
- <account_code>charge-delete-uinvoiced-1296674173</account_code>
119
- <amount_in_cents type="integer">1315</amount_in_cents>
120
- <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
121
- <end_date nil="true" type="datetime"></end_date>
122
- <invoice_number nil="true" type="integer"></invoice_number>
123
- <description>inconvenience fee</description>
124
- <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
125
- </charge>
126
-
127
- http_version: "1.1"
128
- - !ruby/struct:VCR::HTTPInteraction
129
- request: !ruby/struct:VCR::Request
130
- method: :get
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
132
- body:
133
- headers:
134
- authorization:
135
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
136
- accept:
137
- - application/xml
138
- accept-encoding:
139
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
- user-agent:
141
- - Ruby
142
- connection:
143
- - close
144
- response: !ruby/struct:VCR::Response
145
- status: !ruby/struct:VCR::ResponseStatus
146
- code: 200
147
- message: "OK "
148
- headers:
149
- x-runtime:
150
- - "192"
151
- content-type:
152
- - application/xml; charset=utf-8
153
- etag:
154
- - "\"293c3c813870537a99089933db7fc977\""
155
- cache-control:
156
- - private, max-age=0, must-revalidate
157
- content-length:
158
- - "527"
159
- server:
160
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
161
- date:
162
- - Thu, 03 Feb 2011 22:19:12 GMT
163
- connection:
164
- - close
165
- set-cookie:
166
- - _recurly_session=192c6d2a2bdcfecc85d05b0829c9bf1c; domain=.recurly.local; path=/; HttpOnly
167
- body: |
168
- <?xml version="1.0" encoding="UTF-8"?>
169
- <charge type="charge">
170
- <id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
171
- <account_code>charge-delete-uinvoiced-1296674173</account_code>
172
- <amount_in_cents type="integer">1315</amount_in_cents>
173
- <start_date type="datetime">2011-02-03T22:19:10Z</start_date>
174
- <end_date nil="true" type="datetime"></end_date>
175
- <invoice_number nil="true" type="integer"></invoice_number>
176
- <description>inconvenience fee</description>
177
- <created_at type="datetime">2011-02-03T22:19:10Z</created_at>
178
- </charge>
179
-
180
- http_version: "1.1"
181
- - !ruby/struct:VCR::HTTPInteraction
182
- request: !ruby/struct:VCR::Request
183
- method: :delete
184
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
185
- body:
186
- headers:
187
- authorization:
188
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
189
- accept:
190
- - application/xml
191
- user-agent:
192
- - Ruby
193
- connection:
194
- - close
195
- response: !ruby/struct:VCR::Response
196
- status: !ruby/struct:VCR::ResponseStatus
197
- code: 200
198
- message: "OK "
199
- headers:
200
- cache-control:
201
- - no-cache
202
- x-runtime:
203
- - "400"
204
- content-type:
205
- - application/xml; charset=utf-8
206
- content-length:
207
- - "1"
208
- server:
209
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
210
- date:
211
- - Thu, 03 Feb 2011 22:19:14 GMT
212
- connection:
213
- - close
214
- set-cookie:
215
- - _recurly_session=6130797c0f8bfd1f9e8d88925e921fce; domain=.recurly.local; path=/; HttpOnly
216
- body: " "
217
- http_version: "1.1"
218
- - !ruby/struct:VCR::HTTPInteraction
219
- request: !ruby/struct:VCR::Request
220
- method: :get
221
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
222
- body:
223
- headers:
224
- authorization:
225
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
226
- accept:
227
- - application/xml
228
- accept-encoding:
229
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
230
- user-agent:
231
- - Ruby
232
- connection:
233
- - close
234
- response: !ruby/struct:VCR::Response
235
- status: !ruby/struct:VCR::ResponseStatus
236
- code: 404
237
- message: "Not Found "
238
- headers:
239
- cache-control:
240
- - no-cache
241
- content-type:
242
- - application/xml; charset=utf-8
243
- content-length:
244
- - "92"
245
- server:
246
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
247
- date:
248
- - Thu, 03 Feb 2011 22:19:16 GMT
249
- connection:
250
- - close
251
- set-cookie:
252
- - _recurly_session=39b21e6b931a36d5c4f58fe12159b30b; domain=.recurly.local; path=/; HttpOnly
253
- body: |
254
- <?xml version="1.0" encoding="UTF-8"?>
255
- <errors>
256
- <error>Charge not found</error>
257
- </errors>
258
-
259
- http_version: "1.1"
260
- - !ruby/struct:VCR::HTTPInteraction
261
- request: !ruby/struct:VCR::Request
262
- method: :post
263
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/invoices.xml
264
- body: |
265
- <?xml version="1.0" encoding="UTF-8"?>
266
- <invoice>
267
- </invoice>
268
-
269
- headers:
270
- authorization:
271
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
272
- content-type:
273
- - application/xml
274
- accept:
275
- - "*/*"
276
- user-agent:
277
- - Ruby
278
- connection:
279
- - close
280
- response: !ruby/struct:VCR::Response
281
- status: !ruby/struct:VCR::ResponseStatus
282
- code: 422
283
- message: ""
284
- headers:
285
- cache-control:
286
- - no-cache
287
- x-runtime:
288
- - "53"
289
- content-type:
290
- - application/xml; charset=utf-8
291
- content-length:
292
- - "98"
293
- server:
294
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
295
- date:
296
- - Thu, 03 Feb 2011 22:19:18 GMT
297
- connection:
298
- - close
299
- set-cookie:
300
- - _recurly_session=c1278f0d4182588ca84fac1777a95e87; domain=.recurly.local; path=/; HttpOnly
301
- body: |
302
- <?xml version="1.0" encoding="UTF-8"?>
303
- <errors>
304
- <error>No charges to invoice.</error>
305
- </errors>
306
-
307
- http_version: "1.1"