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,268 +1,225 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
6
- body:
7
- headers:
8
- authorization:
9
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
10
- accept:
5
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
6
+ body: !!null
7
+ headers:
8
+ user-agent:
9
+ - Recurly Ruby Client v0.4.10
10
+ accept:
11
11
  - application/xml
12
- accept-encoding:
12
+ accept-encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- user-agent:
15
- - Ruby
16
- connection:
17
- - close
18
- response: !ruby/struct:VCR::Response
19
- status: !ruby/struct:VCR::ResponseStatus
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
20
16
  code: 200
21
- message: "OK "
22
- headers:
23
- x-runtime:
24
- - "200"
25
- content-type:
17
+ message: OK
18
+ headers:
19
+ content-type:
26
20
  - application/xml; charset=utf-8
27
- etag:
28
- - "\"70b5c605373b1a4346a2d7ed46048dc4\""
29
- cache-control:
30
- - private, max-age=0, must-revalidate
31
- content-length:
32
- - "1150"
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
- date:
36
- - Thu, 03 Feb 2011 22:20:42 GMT
37
- connection:
38
- - close
39
- set-cookie:
40
- - _recurly_session=0b7df87b61e0695c5a443cd31c295598; domain=.recurly.local; path=/; HttpOnly
41
- body: |
42
- <?xml version="1.0" encoding="UTF-8"?>
43
- <plan>
44
- <plan_code>paid</plan_code>
45
- <name>Paid</name>
46
- <description></description>
47
- <success_url></success_url>
48
- <cancel_url></cancel_url>
49
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
50
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
51
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
52
- <plan_interval_length type="integer">1</plan_interval_length>
53
- <plan_interval_unit>months</plan_interval_unit>
54
- <trial_interval_length type="integer">0</trial_interval_length>
55
- <trial_interval_unit>months</trial_interval_unit>
56
- <latest_version depreciated="true">
57
- <version type="integer">1</version>
58
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
59
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
60
- <plan_interval_length type="integer">1</plan_interval_length>
61
- <plan_interval_unit>months</plan_interval_unit>
62
- <trial_interval_length type="integer">0</trial_interval_length>
63
- <trial_interval_unit>months</trial_interval_unit>
64
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
65
- </latest_version>
66
- </plan>
67
-
68
- http_version: "1.1"
69
- - !ruby/struct:VCR::HTTPInteraction
70
- request: !ruby/struct:VCR::Request
21
+ etag:
22
+ - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
23
+ cache-control:
24
+ - max-age=0, private, must-revalidate
25
+ x-ua-compatible:
26
+ - IE=Edge
27
+ set-cookie:
28
+ - _recurly_session=d9e4f503bb5122012f5e5adc517272e3; domain=.lvh.me; path=/;
29
+ HttpOnly
30
+ server:
31
+ - thin 1.2.11 codename Bat-Shit Crazy
32
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
33
+ \ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
34
+ \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
35
+ \ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
36
+ type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
37
+ \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
38
+ type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
39
+ \ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
40
+ \ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
41
+ type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
42
+ \ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
43
+ \ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
44
+ \ </add_on>\n </add_ons>\n</plan>\n"
45
+ http_version: '1.1'
46
+ - !ruby/struct:VCR::HTTPInteraction
47
+ request: !ruby/struct:VCR::Request
71
48
  method: :get
72
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/trial.xml
73
- body:
74
- headers:
75
- authorization:
76
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
77
- accept:
49
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/trial.xml
50
+ body: !!null
51
+ headers:
52
+ user-agent:
53
+ - Recurly Ruby Client v0.4.10
54
+ accept:
78
55
  - application/xml
79
- accept-encoding:
56
+ accept-encoding:
80
57
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
- user-agent:
82
- - Ruby
83
- connection:
84
- - close
85
- response: !ruby/struct:VCR::Response
86
- status: !ruby/struct:VCR::ResponseStatus
58
+ response: !ruby/struct:VCR::Response
59
+ status: !ruby/struct:VCR::ResponseStatus
87
60
  code: 200
88
- message: "OK "
89
- headers:
90
- x-runtime:
91
- - "200"
92
- content-type:
61
+ message: OK
62
+ headers:
63
+ content-type:
93
64
  - application/xml; charset=utf-8
94
- etag:
95
- - "\"1c3543a74edbf6c1e0257022eb26ce10\""
96
- cache-control:
97
- - private, max-age=0, must-revalidate
98
- content-length:
99
- - "1152"
100
- server:
101
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
102
- date:
103
- - Thu, 03 Feb 2011 22:20:44 GMT
104
- connection:
105
- - close
106
- set-cookie:
107
- - _recurly_session=429b4f6957e2b914f097ad7073e0077e; domain=.recurly.local; path=/; HttpOnly
108
- body: |
109
- <?xml version="1.0" encoding="UTF-8"?>
110
- <plan>
111
- <plan_code>trial</plan_code>
112
- <name>Trial</name>
113
- <description></description>
114
- <success_url></success_url>
115
- <cancel_url></cancel_url>
116
- <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
117
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
118
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
119
- <plan_interval_length type="integer">1</plan_interval_length>
120
- <plan_interval_unit>months</plan_interval_unit>
121
- <trial_interval_length type="integer">1</trial_interval_length>
122
- <trial_interval_unit>months</trial_interval_unit>
123
- <latest_version depreciated="true">
124
- <version type="integer">1</version>
125
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
126
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
- <plan_interval_length type="integer">1</plan_interval_length>
128
- <plan_interval_unit>months</plan_interval_unit>
129
- <trial_interval_length type="integer">1</trial_interval_length>
130
- <trial_interval_unit>months</trial_interval_unit>
131
- <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
132
- </latest_version>
133
- </plan>
134
-
135
- http_version: "1.1"
136
- - !ruby/struct:VCR::HTTPInteraction
137
- request: !ruby/struct:VCR::Request
65
+ etag:
66
+ - ! '"59cde5d8005c9fb406f30e3b3e4a776d"'
67
+ cache-control:
68
+ - max-age=0, private, must-revalidate
69
+ x-ua-compatible:
70
+ - IE=Edge
71
+ set-cookie:
72
+ - _recurly_session=7401cd2b61acf4b58290cb0cb623d819; domain=.lvh.me; path=/;
73
+ HttpOnly
74
+ server:
75
+ - thin 1.2.11 codename Bat-Shit Crazy
76
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>trial</plan_code>\n
77
+ \ <name>Trial</name>\n <description></description>\n <success_url></success_url>\n
78
+ \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
79
+ \ <unit_amount_in_cents type=\"integer\">500</unit_amount_in_cents>\n <setup_fee_in_cents
80
+ type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
81
+ \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
82
+ type=\"integer\">1</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n
83
+ \ <add_ons type=\"array\">\n <add_on>\n <add_on_code>coffee</add_on_code>\n
84
+ \ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
85
+ type=\"integer\">100</default_unit_amount_in_cents>\n </add_on>\n </add_ons>\n</plan>\n"
86
+ http_version: '1.1'
87
+ - !ruby/struct:VCR::HTTPInteraction
88
+ request: !ruby/struct:VCR::Request
138
89
  method: :get
139
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans.xml
140
- body:
141
- headers:
142
- authorization:
143
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
144
- accept:
90
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans.xml
91
+ body: !!null
92
+ headers:
93
+ user-agent:
94
+ - Recurly Ruby Client v0.4.10
95
+ accept:
145
96
  - application/xml
146
- accept-encoding:
97
+ accept-encoding:
147
98
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
148
- user-agent:
149
- - Ruby
150
- connection:
151
- - close
152
- response: !ruby/struct:VCR::Response
153
- status: !ruby/struct:VCR::ResponseStatus
99
+ response: !ruby/struct:VCR::Response
100
+ status: !ruby/struct:VCR::ResponseStatus
154
101
  code: 200
155
- message: "OK "
156
- headers:
157
- x-runtime:
158
- - "209"
159
- content-type:
102
+ message: OK
103
+ headers:
104
+ content-type:
160
105
  - application/xml; charset=utf-8
161
- etag:
162
- - "\"5877ae9ad610a0b3b7b2b4c310440d4c\""
163
- cache-control:
164
- - private, max-age=0, must-revalidate
165
- content-length:
166
- - "4464"
167
- server:
168
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
- date:
170
- - Thu, 03 Feb 2011 22:20:46 GMT
171
- connection:
172
- - close
173
- set-cookie:
174
- - _recurly_session=7e9e5159e6949b9b8f3d61470737dd58; domain=.recurly.local; path=/; HttpOnly
175
- body: |
176
- <?xml version="1.0" encoding="UTF-8"?>
177
- <plans type="array">
178
- <plan>
179
- <plan_code>gold</plan_code>
180
- <name>Gold</name>
181
- <description></description>
182
- <created_at type="datetime">2011-02-01T19:28:50Z</created_at>
183
- <unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
184
- <setup_fee_in_cents type="integer">2000</setup_fee_in_cents>
185
- <plan_interval_length type="integer">1</plan_interval_length>
186
- <plan_interval_unit>months</plan_interval_unit>
187
- <trial_interval_length type="integer">0</trial_interval_length>
188
- <trial_interval_unit>days</trial_interval_unit>
189
- <latest_version depreciated="true">
190
- <version type="integer">1</version>
191
- <unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
192
- <setup_fee_in_cents type="integer">2000</setup_fee_in_cents>
193
- <plan_interval_length type="integer">1</plan_interval_length>
194
- <plan_interval_unit>months</plan_interval_unit>
195
- <trial_interval_length type="integer">0</trial_interval_length>
196
- <trial_interval_unit>days</trial_interval_unit>
197
- <created_at type="datetime">2011-02-01T19:28:50Z</created_at>
198
- </latest_version>
199
- </plan>
200
- <plan>
201
- <plan_code>paid</plan_code>
202
- <name>Paid</name>
203
- <description></description>
204
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
205
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
206
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
207
- <plan_interval_length type="integer">1</plan_interval_length>
208
- <plan_interval_unit>months</plan_interval_unit>
209
- <trial_interval_length type="integer">0</trial_interval_length>
210
- <trial_interval_unit>months</trial_interval_unit>
211
- <latest_version depreciated="true">
212
- <version type="integer">1</version>
213
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
214
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
215
- <plan_interval_length type="integer">1</plan_interval_length>
216
- <plan_interval_unit>months</plan_interval_unit>
217
- <trial_interval_length type="integer">0</trial_interval_length>
218
- <trial_interval_unit>months</trial_interval_unit>
219
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
220
- </latest_version>
221
- </plan>
222
- <plan>
223
- <plan_code>test</plan_code>
224
- <name>Test Plan</name>
225
- <description></description>
226
- <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
227
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
228
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
229
- <plan_interval_length type="integer">1</plan_interval_length>
230
- <plan_interval_unit>months</plan_interval_unit>
231
- <trial_interval_length type="integer">0</trial_interval_length>
232
- <trial_interval_unit>months</trial_interval_unit>
233
- <latest_version depreciated="true">
234
- <version type="integer">1</version>
235
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
236
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
237
- <plan_interval_length type="integer">1</plan_interval_length>
238
- <plan_interval_unit>months</plan_interval_unit>
239
- <trial_interval_length type="integer">0</trial_interval_length>
240
- <trial_interval_unit>months</trial_interval_unit>
241
- <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
242
- </latest_version>
243
- </plan>
244
- <plan>
245
- <plan_code>trial</plan_code>
246
- <name>Trial</name>
247
- <description></description>
248
- <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
249
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
250
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
251
- <plan_interval_length type="integer">1</plan_interval_length>
252
- <plan_interval_unit>months</plan_interval_unit>
253
- <trial_interval_length type="integer">1</trial_interval_length>
254
- <trial_interval_unit>months</trial_interval_unit>
255
- <latest_version depreciated="true">
256
- <version type="integer">1</version>
257
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
258
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
259
- <plan_interval_length type="integer">1</plan_interval_length>
260
- <plan_interval_unit>months</plan_interval_unit>
261
- <trial_interval_length type="integer">1</trial_interval_length>
262
- <trial_interval_unit>months</trial_interval_unit>
263
- <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
264
- </latest_version>
265
- </plan>
266
- </plans>
267
-
268
- http_version: "1.1"
106
+ etag:
107
+ - ! '"df989bca22273007969e130f98441d2c"'
108
+ cache-control:
109
+ - max-age=0, private, must-revalidate
110
+ x-ua-compatible:
111
+ - IE=Edge
112
+ set-cookie:
113
+ - _recurly_session=2ce8c5ad5812131e5b42d06dc3089e66; domain=.lvh.me; path=/;
114
+ HttpOnly
115
+ server:
116
+ - thin 1.2.11 codename Bat-Shit Crazy
117
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plans type=\"array\">\n
118
+ \ <plan>\n <plan_code>gold</plan_code>\n <name>Gold</name>\n <description></description>\n
119
+ \ <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n <plan_interval_length
120
+ type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
121
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
122
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">1500</unit_amount_in_cents>\n
123
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
124
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
125
+ \ <unit_amount_in_cents type=\"integer\">1500</unit_amount_in_cents>\n
126
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
127
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>gonzo-gold</plan_code>\n
128
+ \ <name>Gonzo</name>\n <description></description>\n <created_at type=\"datetime\">2011-08-02T22:22:21Z</created_at>\n
129
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
130
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
131
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">3400</unit_amount_in_cents>\n
132
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">2300</setup_fee_in_cents>\n
133
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
134
+ \ <unit_amount_in_cents type=\"integer\">3400</unit_amount_in_cents>\n
135
+ \ <setup_fee_in_cents type=\"integer\">2300</setup_fee_in_cents>\n </currency>\n
136
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>hello</plan_code>\n <name>Hello</name>\n
137
+ \ <description></description>\n <created_at type=\"datetime\">2011-08-04T20:16:58Z</created_at>\n
138
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
139
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
140
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">1234</unit_amount_in_cents>\n
141
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
142
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
143
+ \ <unit_amount_in_cents type=\"integer\">1234</unit_amount_in_cents>\n
144
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
145
+ \ <currency>\n <currency_code>GBP</currency_code>\n <unit_amount_in_cents
146
+ type=\"integer\">1999</unit_amount_in_cents>\n <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n
147
+ \ </currency>\n <currency>\n <currency_code>EUR</currency_code>\n
148
+ \ <unit_amount_in_cents type=\"integer\">2999</unit_amount_in_cents>\n
149
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
150
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>paid</plan_code>\n <name>Paid
151
+ Plan</name>\n <description></description>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
152
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
153
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
154
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">1200</unit_amount_in_cents>\n
155
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
156
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
157
+ \ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
158
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
159
+ \ <currency>\n <currency_code>GBP</currency_code>\n <unit_amount_in_cents
160
+ type=\"integer\">1400</unit_amount_in_cents>\n <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n
161
+ \ </currency>\n <currency>\n <currency_code>EUR</currency_code>\n
162
+ \ <unit_amount_in_cents type=\"integer\">1300</unit_amount_in_cents>\n
163
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
164
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>plan</plan_code>\n <name>Plan</name>\n
165
+ \ <description></description>\n <created_at type=\"datetime\">2011-08-13T19:01:23Z</created_at>\n
166
+ \ <plan_interval_length type=\"integer\">12</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
167
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
168
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">4500</unit_amount_in_cents>\n
169
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
170
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
171
+ \ <unit_amount_in_cents type=\"integer\">4500</unit_amount_in_cents>\n
172
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
173
+ \ <currency>\n <currency_code>GBP</currency_code>\n <unit_amount_in_cents
174
+ type=\"integer\">5000</unit_amount_in_cents>\n <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n
175
+ \ </currency>\n <currency>\n <currency_code>EUR</currency_code>\n
176
+ \ <unit_amount_in_cents type=\"integer\">7800</unit_amount_in_cents>\n
177
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
178
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>temp</plan_code>\n <name>Temp</name>\n
179
+ \ <description></description>\n <created_at type=\"datetime\">2011-08-14T02:09:11Z</created_at>\n
180
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
181
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
182
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">500</unit_amount_in_cents>\n
183
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
184
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
185
+ \ <unit_amount_in_cents type=\"integer\">500</unit_amount_in_cents>\n
186
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
187
+ \ <currency>\n <currency_code>GBP</currency_code>\n <unit_amount_in_cents
188
+ type=\"integer\">600</unit_amount_in_cents>\n <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n
189
+ \ </currency>\n <currency>\n <currency_code>EUR</currency_code>\n
190
+ \ <unit_amount_in_cents type=\"integer\">700</unit_amount_in_cents>\n
191
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
192
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>test</plan_code>\n <name>Test
193
+ Plan</name>\n <description></description>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
194
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
195
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n
196
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">200</unit_amount_in_cents>\n
197
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
198
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
199
+ \ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n
200
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
201
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>trial</plan_code>\n <name>Trial</name>\n
202
+ \ <description></description>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
203
+ \ <plan_interval_length type=\"integer\">1</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
204
+ \ <trial_interval_length type=\"integer\">1</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n
205
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">500</unit_amount_in_cents>\n
206
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
207
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
208
+ \ <unit_amount_in_cents type=\"integer\">500</unit_amount_in_cents>\n
209
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
210
+ \ <currency>\n <currency_code>GBP</currency_code>\n <unit_amount_in_cents
211
+ type=\"integer\">1400</unit_amount_in_cents>\n <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n
212
+ \ </currency>\n <currency>\n <currency_code>EUR</currency_code>\n
213
+ \ <unit_amount_in_cents type=\"integer\">300</unit_amount_in_cents>\n
214
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
215
+ \ </currencies>\n </plan>\n <plan>\n <plan_code>yearly</plan_code>\n
216
+ \ <name>Yearly</name>\n <description></description>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
217
+ \ <plan_interval_length type=\"integer\">12</plan_interval_length>\n <plan_interval_unit>months</plan_interval_unit>\n
218
+ \ <trial_interval_length type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
219
+ \ <unit_amount_in_cents type=\"integer\" depreciated=\"true\">2995</unit_amount_in_cents>\n
220
+ \ <setup_fee_in_cents type=\"integer\" depreciated=\"true\">0</setup_fee_in_cents>\n
221
+ \ <currencies type=\"array\">\n <currency>\n <currency_code>USD</currency_code>\n
222
+ \ <unit_amount_in_cents type=\"integer\">2995</unit_amount_in_cents>\n
223
+ \ <setup_fee_in_cents type=\"integer\">0</setup_fee_in_cents>\n </currency>\n
224
+ \ </currencies>\n </plan>\n</plans>\n"
225
+ http_version: '1.1'