recurly 0.4.11 → 0.4.13

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 (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,225 +1,233 @@
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://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:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
6
+ body:
7
+ headers:
8
+ user-agent:
9
+ - Recurly Ruby Client v0.4.13
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
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
16
  code: 200
17
17
  message: OK
18
- headers:
19
- content-type:
18
+ headers:
19
+ content-type:
20
20
  - application/xml; charset=utf-8
21
- etag:
22
- - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
23
- cache-control:
21
+ etag:
22
+ - "\"7487d065869e9c487e0a588e1edea5dc\""
23
+ cache-control:
24
24
  - max-age=0, private, must-revalidate
25
- x-ua-compatible:
25
+ x-ua-compatible:
26
26
  - IE=Edge
27
- set-cookie:
28
- - _recurly_session=d9e4f503bb5122012f5e5adc517272e3; domain=.lvh.me; path=/;
29
- HttpOnly
30
- server:
27
+ server:
31
28
  - 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
29
+ body: |
30
+ <?xml version="1.0" encoding="UTF-8"?>
31
+ <plan>
32
+ <plan_code>paid</plan_code>
33
+ <name>paid</name>
34
+ <description></description>
35
+ <success_url></success_url>
36
+ <cancel_url></cancel_url>
37
+ <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
38
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
39
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
40
+ <plan_interval_length type="integer">1</plan_interval_length>
41
+ <plan_interval_unit>months</plan_interval_unit>
42
+ <trial_interval_length type="integer">0</trial_interval_length>
43
+ <trial_interval_unit>days</trial_interval_unit>
44
+ </plan>
45
+
46
+ http_version: "1.1"
47
+ - !ruby/struct:VCR::HTTPInteraction
48
+ request: !ruby/struct:VCR::Request
48
49
  method: :get
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:
50
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/trial.xml
51
+ body:
52
+ headers:
53
+ user-agent:
54
+ - Recurly Ruby Client v0.4.13
55
+ accept:
55
56
  - application/xml
56
- accept-encoding:
57
+ accept-encoding:
57
58
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
- response: !ruby/struct:VCR::Response
59
- status: !ruby/struct:VCR::ResponseStatus
59
+ response: !ruby/struct:VCR::Response
60
+ status: !ruby/struct:VCR::ResponseStatus
60
61
  code: 200
61
62
  message: OK
62
- headers:
63
- content-type:
63
+ headers:
64
+ content-type:
64
65
  - application/xml; charset=utf-8
65
- etag:
66
- - ! '"59cde5d8005c9fb406f30e3b3e4a776d"'
67
- cache-control:
66
+ etag:
67
+ - "\"30194122ddc8b67ae0416d6254a14cb0\""
68
+ cache-control:
68
69
  - max-age=0, private, must-revalidate
69
- x-ua-compatible:
70
+ x-ua-compatible:
70
71
  - IE=Edge
71
- set-cookie:
72
- - _recurly_session=7401cd2b61acf4b58290cb0cb623d819; domain=.lvh.me; path=/;
73
- HttpOnly
74
- server:
72
+ server:
75
73
  - 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
74
+ body: |
75
+ <?xml version="1.0" encoding="UTF-8"?>
76
+ <plan>
77
+ <plan_code>trial</plan_code>
78
+ <name>Trial</name>
79
+ <description></description>
80
+ <success_url></success_url>
81
+ <cancel_url></cancel_url>
82
+ <created_at type="datetime">2011-09-22T21:58:23Z</created_at>
83
+ <unit_amount_in_cents type="integer"></unit_amount_in_cents>
84
+ <setup_fee_in_cents type="integer"></setup_fee_in_cents>
85
+ <plan_interval_length type="integer">1</plan_interval_length>
86
+ <plan_interval_unit>months</plan_interval_unit>
87
+ <trial_interval_length type="integer">1</trial_interval_length>
88
+ <trial_interval_unit>months</trial_interval_unit>
89
+ </plan>
90
+
91
+ http_version: "1.1"
92
+ - !ruby/struct:VCR::HTTPInteraction
93
+ request: !ruby/struct:VCR::Request
89
94
  method: :get
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:
95
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans.xml
96
+ body:
97
+ headers:
98
+ user-agent:
99
+ - Recurly Ruby Client v0.4.13
100
+ accept:
96
101
  - application/xml
97
- accept-encoding:
102
+ accept-encoding:
98
103
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
- response: !ruby/struct:VCR::Response
100
- status: !ruby/struct:VCR::ResponseStatus
104
+ response: !ruby/struct:VCR::Response
105
+ status: !ruby/struct:VCR::ResponseStatus
101
106
  code: 200
102
107
  message: OK
103
- headers:
104
- content-type:
108
+ headers:
109
+ content-type:
105
110
  - application/xml; charset=utf-8
106
- etag:
107
- - ! '"df989bca22273007969e130f98441d2c"'
108
- cache-control:
111
+ etag:
112
+ - "\"cb1e8859959a6bd90e38cf0a22bcafe8\""
113
+ cache-control:
109
114
  - max-age=0, private, must-revalidate
110
- x-ua-compatible:
115
+ x-ua-compatible:
111
116
  - IE=Edge
112
- set-cookie:
113
- - _recurly_session=2ce8c5ad5812131e5b42d06dc3089e66; domain=.lvh.me; path=/;
114
- HttpOnly
115
- server:
117
+ server:
116
118
  - 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'
119
+ body: |
120
+ <?xml version="1.0" encoding="UTF-8"?>
121
+ <plans type="array">
122
+ <plan>
123
+ <plan_code>bronze</plan_code>
124
+ <name>Bronze</name>
125
+ <description></description>
126
+ <created_at type="datetime">2011-01-22T00:06:38Z</created_at>
127
+ <plan_interval_length type="integer">1</plan_interval_length>
128
+ <plan_interval_unit>months</plan_interval_unit>
129
+ <trial_interval_length type="integer">0</trial_interval_length>
130
+ <trial_interval_unit>days</trial_interval_unit>
131
+ <unit_amount_in_cents type="integer" depreciated="true">100</unit_amount_in_cents>
132
+ <setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
133
+ <currencies type="array">
134
+ <currency>
135
+ <currency_code>USD</currency_code>
136
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
137
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
138
+ </currency>
139
+ </currencies>
140
+ </plan>
141
+ <plan>
142
+ <plan_code>gold</plan_code>
143
+ <name>Gold</name>
144
+ <description></description>
145
+ <created_at type="datetime">2011-05-05T22:27:14Z</created_at>
146
+ <plan_interval_length type="integer">1</plan_interval_length>
147
+ <plan_interval_unit>months</plan_interval_unit>
148
+ <trial_interval_length type="integer">0</trial_interval_length>
149
+ <trial_interval_unit>days</trial_interval_unit>
150
+ <unit_amount_in_cents type="integer" depreciated="true">1200</unit_amount_in_cents>
151
+ <setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
152
+ <currencies type="array">
153
+ <currency>
154
+ <currency_code>USD</currency_code>
155
+ <unit_amount_in_cents type="integer">1200</unit_amount_in_cents>
156
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
157
+ </currency>
158
+ </currencies>
159
+ </plan>
160
+ <plan>
161
+ <plan_code>paid</plan_code>
162
+ <name>paid</name>
163
+ <description></description>
164
+ <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
165
+ <plan_interval_length type="integer">1</plan_interval_length>
166
+ <plan_interval_unit>months</plan_interval_unit>
167
+ <trial_interval_length type="integer">0</trial_interval_length>
168
+ <trial_interval_unit>days</trial_interval_unit>
169
+ <unit_amount_in_cents type="integer" depreciated="true">1400</unit_amount_in_cents>
170
+ <setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
171
+ <currencies type="array">
172
+ <currency>
173
+ <currency_code>USD</currency_code>
174
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
175
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
176
+ </currency>
177
+ </currencies>
178
+ </plan>
179
+ <plan>
180
+ <plan_code>platinum</plan_code>
181
+ <name>Platinum</name>
182
+ <description></description>
183
+ <created_at type="datetime">2011-03-02T19:23:33Z</created_at>
184
+ <plan_interval_length type="integer">3</plan_interval_length>
185
+ <plan_interval_unit>months</plan_interval_unit>
186
+ <trial_interval_length type="integer">7</trial_interval_length>
187
+ <trial_interval_unit>days</trial_interval_unit>
188
+ <unit_amount_in_cents type="integer" depreciated="true">5500</unit_amount_in_cents>
189
+ <setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
190
+ <currencies type="array">
191
+ <currency>
192
+ <currency_code>USD</currency_code>
193
+ <unit_amount_in_cents type="integer">5500</unit_amount_in_cents>
194
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
195
+ </currency>
196
+ </currencies>
197
+ </plan>
198
+ <plan>
199
+ <plan_code>test</plan_code>
200
+ <name>Test Plan</name>
201
+ <description></description>
202
+ <created_at type="datetime">2011-09-22T21:58:24Z</created_at>
203
+ <plan_interval_length type="integer">1</plan_interval_length>
204
+ <plan_interval_unit>months</plan_interval_unit>
205
+ <trial_interval_length type="integer">0</trial_interval_length>
206
+ <trial_interval_unit>months</trial_interval_unit>
207
+ <unit_amount_in_cents type="integer" depreciated="true">200</unit_amount_in_cents>
208
+ <setup_fee_in_cents type="integer" depreciated="true">0</setup_fee_in_cents>
209
+ <currencies type="array">
210
+ <currency>
211
+ <currency_code>USD</currency_code>
212
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
213
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
214
+ </currency>
215
+ </currencies>
216
+ </plan>
217
+ <plan>
218
+ <plan_code>trial</plan_code>
219
+ <name>Trial</name>
220
+ <description></description>
221
+ <created_at type="datetime">2011-09-22T21:58:23Z</created_at>
222
+ <plan_interval_length type="integer">1</plan_interval_length>
223
+ <plan_interval_unit>months</plan_interval_unit>
224
+ <trial_interval_length type="integer">1</trial_interval_length>
225
+ <trial_interval_unit>months</trial_interval_unit>
226
+ <unit_amount_in_cents type="integer" depreciated="true"></unit_amount_in_cents>
227
+ <setup_fee_in_cents type="integer" depreciated="true"></setup_fee_in_cents>
228
+ <currencies type="array">
229
+ </currencies>
230
+ </plan>
231
+ </plans>
232
+
233
+ http_version: "1.1"
@@ -1,130 +1,136 @@
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://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:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
6
+ body:
7
+ headers:
8
+ user-agent:
9
+ - Recurly Ruby Client v0.4.13
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
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
16
  code: 200
17
17
  message: OK
18
- headers:
19
- content-type:
18
+ headers:
19
+ content-type:
20
20
  - application/xml; charset=utf-8
21
- etag:
22
- - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
23
- cache-control:
21
+ etag:
22
+ - "\"7487d065869e9c487e0a588e1edea5dc\""
23
+ cache-control:
24
24
  - max-age=0, private, must-revalidate
25
- x-ua-compatible:
25
+ x-ua-compatible:
26
26
  - IE=Edge
27
- set-cookie:
28
- - _recurly_session=3643c8ab3450be051149e45eadab0d15; domain=.lvh.me; path=/;
29
- HttpOnly
30
- server:
27
+ server:
31
28
  - 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
29
+ body: |
30
+ <?xml version="1.0" encoding="UTF-8"?>
31
+ <plan>
32
+ <plan_code>paid</plan_code>
33
+ <name>paid</name>
34
+ <description></description>
35
+ <success_url></success_url>
36
+ <cancel_url></cancel_url>
37
+ <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
38
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
39
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
40
+ <plan_interval_length type="integer">1</plan_interval_length>
41
+ <plan_interval_unit>months</plan_interval_unit>
42
+ <trial_interval_length type="integer">0</trial_interval_length>
43
+ <trial_interval_unit>days</trial_interval_unit>
44
+ </plan>
45
+
46
+ http_version: "1.1"
47
+ - !ruby/struct:VCR::HTTPInteraction
48
+ request: !ruby/struct:VCR::Request
48
49
  method: :get
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:
50
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/trial.xml
51
+ body:
52
+ headers:
53
+ user-agent:
54
+ - Recurly Ruby Client v0.4.13
55
+ accept:
55
56
  - application/xml
56
- accept-encoding:
57
+ accept-encoding:
57
58
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
- response: !ruby/struct:VCR::Response
59
- status: !ruby/struct:VCR::ResponseStatus
59
+ response: !ruby/struct:VCR::Response
60
+ status: !ruby/struct:VCR::ResponseStatus
60
61
  code: 200
61
62
  message: OK
62
- headers:
63
- content-type:
63
+ headers:
64
+ content-type:
64
65
  - application/xml; charset=utf-8
65
- etag:
66
- - ! '"59cde5d8005c9fb406f30e3b3e4a776d"'
67
- cache-control:
66
+ etag:
67
+ - "\"30194122ddc8b67ae0416d6254a14cb0\""
68
+ cache-control:
68
69
  - max-age=0, private, must-revalidate
69
- x-ua-compatible:
70
+ x-ua-compatible:
70
71
  - IE=Edge
71
- set-cookie:
72
- - _recurly_session=d266e38e7a8156e14dc271db8848b26a; domain=.lvh.me; path=/;
73
- HttpOnly
74
- server:
72
+ server:
75
73
  - 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
74
+ body: |
75
+ <?xml version="1.0" encoding="UTF-8"?>
76
+ <plan>
77
+ <plan_code>trial</plan_code>
78
+ <name>Trial</name>
79
+ <description></description>
80
+ <success_url></success_url>
81
+ <cancel_url></cancel_url>
82
+ <created_at type="datetime">2011-09-22T21:58:23Z</created_at>
83
+ <unit_amount_in_cents type="integer"></unit_amount_in_cents>
84
+ <setup_fee_in_cents type="integer"></setup_fee_in_cents>
85
+ <plan_interval_length type="integer">1</plan_interval_length>
86
+ <plan_interval_unit>months</plan_interval_unit>
87
+ <trial_interval_length type="integer">1</trial_interval_length>
88
+ <trial_interval_unit>months</trial_interval_unit>
89
+ </plan>
90
+
91
+ http_version: "1.1"
92
+ - !ruby/struct:VCR::HTTPInteraction
93
+ request: !ruby/struct:VCR::Request
89
94
  method: :get
90
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
91
- body: !!null
92
- headers:
93
- user-agent:
94
- - Recurly Ruby Client v0.4.10
95
- accept:
95
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
96
+ body:
97
+ headers:
98
+ user-agent:
99
+ - Recurly Ruby Client v0.4.13
100
+ accept:
96
101
  - application/xml
97
- accept-encoding:
102
+ accept-encoding:
98
103
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
- response: !ruby/struct:VCR::Response
100
- status: !ruby/struct:VCR::ResponseStatus
104
+ response: !ruby/struct:VCR::Response
105
+ status: !ruby/struct:VCR::ResponseStatus
101
106
  code: 200
102
107
  message: OK
103
- headers:
104
- content-type:
108
+ headers:
109
+ content-type:
105
110
  - application/xml; charset=utf-8
106
- etag:
107
- - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
108
- cache-control:
111
+ etag:
112
+ - "\"7487d065869e9c487e0a588e1edea5dc\""
113
+ cache-control:
109
114
  - max-age=0, private, must-revalidate
110
- x-ua-compatible:
115
+ x-ua-compatible:
111
116
  - IE=Edge
112
- set-cookie:
113
- - _recurly_session=b9274a09d589568c9cf06ecbd9a3f904; domain=.lvh.me; path=/;
114
- HttpOnly
115
- server:
117
+ server:
116
118
  - thin 1.2.11 codename Bat-Shit Crazy
117
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
118
- \ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
119
- \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
120
- \ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
121
- type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
122
- \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
123
- type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
124
- \ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
125
- \ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
126
- type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
127
- \ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
128
- \ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
129
- \ </add_on>\n </add_ons>\n</plan>\n"
130
- http_version: '1.1'
119
+ body: |
120
+ <?xml version="1.0" encoding="UTF-8"?>
121
+ <plan>
122
+ <plan_code>paid</plan_code>
123
+ <name>paid</name>
124
+ <description></description>
125
+ <success_url></success_url>
126
+ <cancel_url></cancel_url>
127
+ <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
128
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
129
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
130
+ <plan_interval_length type="integer">1</plan_interval_length>
131
+ <plan_interval_unit>months</plan_interval_unit>
132
+ <trial_interval_length type="integer">0</trial_interval_length>
133
+ <trial_interval_unit>days</trial_interval_unit>
134
+ </plan>
135
+
136
+ http_version: "1.1"