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
@@ -0,0 +1,225 @@
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>subscription-addons-add-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/subscription-addons-add-1296674173
37
+ x-runtime:
38
+ - "665"
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:17:22 GMT
47
+ connection:
48
+ - close
49
+ set-cookie:
50
+ - account_credentials=b10008504b80fa0535f772db641156997545730d19eff1bb14543261204538190642a01b920e0165b22b37cbabd8a844ff19cf62d5a8818c525e773037c26264%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=f847209e91f72d847fd8aa815fe0889e; domain=.recurly.local; path=/; HttpOnly
53
+ body: |
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <account>
56
+ <id>subscription-addons-add-1296674173</id>
57
+ <account_code>subscription-addons-add-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>3d8d1daa750b4990b23985ef36c1b008</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:22Z</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: :get
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
75
+ body:
76
+ headers:
77
+ authorization:
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
79
+ accept:
80
+ - application/xml
81
+ accept-encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
85
+ connection:
86
+ - close
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: "OK "
91
+ headers:
92
+ x-runtime:
93
+ - "175"
94
+ content-type:
95
+ - application/xml; charset=utf-8
96
+ etag:
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
98
+ cache-control:
99
+ - private, max-age=0, must-revalidate
100
+ content-length:
101
+ - "1150"
102
+ server:
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
+ date:
105
+ - Thu, 03 Feb 2011 22:17:24 GMT
106
+ connection:
107
+ - close
108
+ set-cookie:
109
+ - _recurly_session=e28ad738775ba58881f73cdd96ce6201; domain=.recurly.local; path=/; HttpOnly
110
+ body: |
111
+ <?xml version="1.0" encoding="UTF-8"?>
112
+ <plan>
113
+ <plan_code>paid</plan_code>
114
+ <name>Paid</name>
115
+ <description></description>
116
+ <success_url></success_url>
117
+ <cancel_url></cancel_url>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
119
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
120
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
121
+ <plan_interval_length type="integer">1</plan_interval_length>
122
+ <plan_interval_unit>months</plan_interval_unit>
123
+ <trial_interval_length type="integer">0</trial_interval_length>
124
+ <trial_interval_unit>months</trial_interval_unit>
125
+ <latest_version depreciated="true">
126
+ <version type="integer">1</version>
127
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
+ <plan_interval_length type="integer">1</plan_interval_length>
130
+ <plan_interval_unit>months</plan_interval_unit>
131
+ <trial_interval_length type="integer">0</trial_interval_length>
132
+ <trial_interval_unit>months</trial_interval_unit>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
134
+ </latest_version>
135
+ </plan>
136
+
137
+ http_version: "1.1"
138
+ - !ruby/struct:VCR::HTTPInteraction
139
+ request: !ruby/struct:VCR::Request
140
+ method: :post
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-add-1296674173/subscription.xml
142
+ body: |
143
+ <?xml version="1.0" encoding="UTF-8"?>
144
+ <subscription>
145
+ <plan-code>paid</plan-code>
146
+ <quantity type="integer">1</quantity>
147
+ <account>
148
+ <account-code>subscription-addons-add-1296674173</account-code>
149
+ <first-name>Verena</first-name>
150
+ <last-name>Test</last-name>
151
+ <email>verena@test.com</email>
152
+ <company-name>Recurly Ruby Gem</company-name>
153
+ <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>subscription-addons-add-1296674173</id>
155
+ <username type="yaml" nil="true"></username>
156
+ <balance-in-cents type="integer">0</balance-in-cents>
157
+ <closed type="boolean">false</closed>
158
+ <hosted-login-token>3d8d1daa750b4990b23985ef36c1b008</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:17:22Z</created-at>
160
+ <state>active</state>
161
+ <billing-info>
162
+ <address1>123 Test St</address1>
163
+ <city>San Francisco</city>
164
+ <state>CA</state>
165
+ <zip>94115</zip>
166
+ <country>US</country>
167
+ <credit-card>
168
+ <number>4111111111111111</number>
169
+ <year type="integer">2012</year>
170
+ <month type="integer">2</month>
171
+ <verification-value>123</verification-value>
172
+ </credit-card>
173
+ <first-name>Verena</first-name>
174
+ <last-name>Test</last-name>
175
+ </billing-info>
176
+ </account>
177
+ <add-ons type="array">
178
+ <add-on>
179
+ <add-on-code>special</add-on-code>
180
+ <quantity type="integer">1</quantity>
181
+ <unit-amount type="integer">10</unit-amount>
182
+ </add-on>
183
+ </add-ons>
184
+ </subscription>
185
+
186
+ headers:
187
+ authorization:
188
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
189
+ content-type:
190
+ - application/xml
191
+ accept:
192
+ - "*/*"
193
+ user-agent:
194
+ - Ruby
195
+ connection:
196
+ - close
197
+ response: !ruby/struct:VCR::Response
198
+ status: !ruby/struct:VCR::ResponseStatus
199
+ code: 422
200
+ message: ""
201
+ headers:
202
+ cache-control:
203
+ - no-cache
204
+ x-runtime:
205
+ - "575"
206
+ content-type:
207
+ - application/xml; charset=utf-8
208
+ content-length:
209
+ - "228"
210
+ server:
211
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
212
+ date:
213
+ - Thu, 03 Feb 2011 22:17:26 GMT
214
+ connection:
215
+ - close
216
+ set-cookie:
217
+ - _recurly_session=8d2dc7e4941757f497997e9071ad8a66; domain=.recurly.local; path=/; HttpOnly
218
+ body: |
219
+ <?xml version="1.0" encoding="UTF-8"?>
220
+ <errors>
221
+ <error field="subscriptions">Subscriptions is invalid</error>
222
+ <error field="subscription_add_ons.add_on_id">Subscription add ons.add on Add On Code not found</error>
223
+ </errors>
224
+
225
+ http_version: "1.1"
@@ -0,0 +1,225 @@
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>subscription-addons-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/subscription-addons-create-1296674173
37
+ x-runtime:
38
+ - "559"
39
+ content-type:
40
+ - application/xml; charset=utf-8
41
+ content-length:
42
+ - "607"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:17:16 GMT
47
+ connection:
48
+ - close
49
+ set-cookie:
50
+ - account_credentials=15a5f2f9bb843bb70247bcb7260a3449212053079d099e6899afced4f72de356f6462b8436488af3398b241539ae599c5d4f6824e65a083dc5088700c260f43e%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=fe47112405f2dbceb8685136f76796a9; domain=.recurly.local; path=/; HttpOnly
53
+ body: |
54
+ <?xml version="1.0" encoding="UTF-8"?>
55
+ <account>
56
+ <id>subscription-addons-create-1296674173</id>
57
+ <account_code>subscription-addons-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>56ae50cc980a415b89ea3d0dffda7bfc</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:17:16Z</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: :get
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
75
+ body:
76
+ headers:
77
+ authorization:
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
79
+ accept:
80
+ - application/xml
81
+ accept-encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
85
+ connection:
86
+ - close
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: "OK "
91
+ headers:
92
+ x-runtime:
93
+ - "191"
94
+ content-type:
95
+ - application/xml; charset=utf-8
96
+ etag:
97
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
98
+ cache-control:
99
+ - private, max-age=0, must-revalidate
100
+ content-length:
101
+ - "1150"
102
+ server:
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
+ date:
105
+ - Thu, 03 Feb 2011 22:17:18 GMT
106
+ connection:
107
+ - close
108
+ set-cookie:
109
+ - _recurly_session=f168b0bac9e8c30e9280992dd48b5749; domain=.recurly.local; path=/; HttpOnly
110
+ body: |
111
+ <?xml version="1.0" encoding="UTF-8"?>
112
+ <plan>
113
+ <plan_code>paid</plan_code>
114
+ <name>Paid</name>
115
+ <description></description>
116
+ <success_url></success_url>
117
+ <cancel_url></cancel_url>
118
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
119
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
120
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
121
+ <plan_interval_length type="integer">1</plan_interval_length>
122
+ <plan_interval_unit>months</plan_interval_unit>
123
+ <trial_interval_length type="integer">0</trial_interval_length>
124
+ <trial_interval_unit>months</trial_interval_unit>
125
+ <latest_version depreciated="true">
126
+ <version type="integer">1</version>
127
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
128
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
129
+ <plan_interval_length type="integer">1</plan_interval_length>
130
+ <plan_interval_unit>months</plan_interval_unit>
131
+ <trial_interval_length type="integer">0</trial_interval_length>
132
+ <trial_interval_unit>months</trial_interval_unit>
133
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
134
+ </latest_version>
135
+ </plan>
136
+
137
+ http_version: "1.1"
138
+ - !ruby/struct:VCR::HTTPInteraction
139
+ request: !ruby/struct:VCR::Request
140
+ method: :post
141
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-addons-create-1296674173/subscription.xml
142
+ body: |
143
+ <?xml version="1.0" encoding="UTF-8"?>
144
+ <subscription>
145
+ <plan-code>paid</plan-code>
146
+ <quantity type="integer">1</quantity>
147
+ <account>
148
+ <account-code>subscription-addons-create-1296674173</account-code>
149
+ <first-name>Verena</first-name>
150
+ <last-name>Test</last-name>
151
+ <email>verena@test.com</email>
152
+ <company-name>Recurly Ruby Gem</company-name>
153
+ <accept-language type="yaml" nil="true"></accept-language>
154
+ <id>subscription-addons-create-1296674173</id>
155
+ <username type="yaml" nil="true"></username>
156
+ <balance-in-cents type="integer">0</balance-in-cents>
157
+ <closed type="boolean">false</closed>
158
+ <hosted-login-token>56ae50cc980a415b89ea3d0dffda7bfc</hosted-login-token>
159
+ <created-at type="datetime">2011-02-03T22:17:16Z</created-at>
160
+ <state>active</state>
161
+ <billing-info>
162
+ <address1>123 Test St</address1>
163
+ <city>San Francisco</city>
164
+ <state>CA</state>
165
+ <zip>94115</zip>
166
+ <country>US</country>
167
+ <credit-card>
168
+ <number>4111111111111111</number>
169
+ <year type="integer">2012</year>
170
+ <month type="integer">2</month>
171
+ <verification-value>123</verification-value>
172
+ </credit-card>
173
+ <first-name>Verena</first-name>
174
+ <last-name>Test</last-name>
175
+ </billing-info>
176
+ </account>
177
+ <add-ons type="array">
178
+ <add-on>
179
+ <add-on-code>special</add-on-code>
180
+ <quantity type="integer">1</quantity>
181
+ <unit-amount type="integer">10</unit-amount>
182
+ </add-on>
183
+ </add-ons>
184
+ </subscription>
185
+
186
+ headers:
187
+ authorization:
188
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
189
+ content-type:
190
+ - application/xml
191
+ accept:
192
+ - "*/*"
193
+ user-agent:
194
+ - Ruby
195
+ connection:
196
+ - close
197
+ response: !ruby/struct:VCR::Response
198
+ status: !ruby/struct:VCR::ResponseStatus
199
+ code: 422
200
+ message: ""
201
+ headers:
202
+ cache-control:
203
+ - no-cache
204
+ x-runtime:
205
+ - "589"
206
+ content-type:
207
+ - application/xml; charset=utf-8
208
+ content-length:
209
+ - "228"
210
+ server:
211
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
212
+ date:
213
+ - Thu, 03 Feb 2011 22:17:20 GMT
214
+ connection:
215
+ - close
216
+ set-cookie:
217
+ - _recurly_session=0019c1a7f6d137a9bfeabf58ebb8bbf8; domain=.recurly.local; path=/; HttpOnly
218
+ body: |
219
+ <?xml version="1.0" encoding="UTF-8"?>
220
+ <errors>
221
+ <error field="subscriptions">Subscriptions is invalid</error>
222
+ <error field="subscription_add_ons.add_on_id">Subscription add ons.add on Add On Code not found</error>
223
+ </errors>
224
+
225
+ http_version: "1.1"