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,202 +1,130 @@
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
- - "70"
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:48 GMT
37
- connection:
38
- - close
39
- set-cookie:
40
- - _recurly_session=06b515611cfae5c612449ba7b7c063b1; 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=3643c8ab3450be051149e45eadab0d15; 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
- - "268"
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:50 GMT
104
- connection:
105
- - close
106
- set-cookie:
107
- - _recurly_session=38c960e386b133aa9b7a5c20c91bc2d3; 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=d266e38e7a8156e14dc271db8848b26a; 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/paid.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/paid.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
- - "207"
159
- content-type:
102
+ message: OK
103
+ headers:
104
+ content-type:
160
105
  - application/xml; charset=utf-8
161
- etag:
162
- - "\"70b5c605373b1a4346a2d7ed46048dc4\""
163
- cache-control:
164
- - private, max-age=0, must-revalidate
165
- content-length:
166
- - "1150"
167
- server:
168
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
169
- date:
170
- - Thu, 03 Feb 2011 22:20:52 GMT
171
- connection:
172
- - close
173
- set-cookie:
174
- - _recurly_session=cfc756e17d3299cdd0822df8960ea032; domain=.recurly.local; path=/; HttpOnly
175
- body: |
176
- <?xml version="1.0" encoding="UTF-8"?>
177
- <plan>
178
- <plan_code>paid</plan_code>
179
- <name>Paid</name>
180
- <description></description>
181
- <success_url></success_url>
182
- <cancel_url></cancel_url>
183
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
184
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
185
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
186
- <plan_interval_length type="integer">1</plan_interval_length>
187
- <plan_interval_unit>months</plan_interval_unit>
188
- <trial_interval_length type="integer">0</trial_interval_length>
189
- <trial_interval_unit>months</trial_interval_unit>
190
- <latest_version depreciated="true">
191
- <version type="integer">1</version>
192
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
193
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
194
- <plan_interval_length type="integer">1</plan_interval_length>
195
- <plan_interval_unit>months</plan_interval_unit>
196
- <trial_interval_length type="integer">0</trial_interval_length>
197
- <trial_interval_unit>months</trial_interval_unit>
198
- <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
199
- </latest_version>
200
- </plan>
201
-
202
- http_version: "1.1"
106
+ etag:
107
+ - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
108
+ cache-control:
109
+ - max-age=0, private, must-revalidate
110
+ x-ua-compatible:
111
+ - IE=Edge
112
+ set-cookie:
113
+ - _recurly_session=b9274a09d589568c9cf06ecbd9a3f904; 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<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'
@@ -1,201 +1,119 @@
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/test.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/test.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
- - "214"
25
- content-type:
17
+ message: OK
18
+ headers:
19
+ content-type:
26
20
  - application/xml; charset=utf-8
27
- etag:
28
- - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
29
- cache-control:
30
- - private, max-age=0, must-revalidate
31
- content-length:
32
- - "1153"
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
- date:
36
- - Thu, 03 Feb 2011 22:20:55 GMT
37
- connection:
38
- - close
39
- set-cookie:
40
- - _recurly_session=2c7f4cc9d4185d0d2d2c0370d015824b; domain=.recurly.local; path=/; HttpOnly
41
- body: |
42
- <?xml version="1.0" encoding="UTF-8"?>
43
- <plan>
44
- <plan_code>test</plan_code>
45
- <name>Test Plan</name>
46
- <description></description>
47
- <success_url></success_url>
48
- <cancel_url></cancel_url>
49
- <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
50
- <unit_amount_in_cents type="integer">200</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">200</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:10:51Z</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
+ - ! '"dafe33cb9edb7dee5277e875786e0443"'
23
+ cache-control:
24
+ - max-age=0, private, must-revalidate
25
+ x-ua-compatible:
26
+ - IE=Edge
27
+ set-cookie:
28
+ - _recurly_session=c378d616f949f7be2b07ba1d133a20a0; 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>test</plan_code>\n
33
+ \ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
34
+ \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
35
+ \ <unit_amount_in_cents type=\"integer\">200</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>months</trial_interval_unit>\n</plan>\n"
39
+ http_version: '1.1'
40
+ - !ruby/struct:VCR::HTTPInteraction
41
+ request: !ruby/struct:VCR::Request
71
42
  method: :put
72
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
73
- body: |
74
- <?xml version="1.0" encoding="UTF-8"?>
75
- <plan>
76
- <plan-code>test</plan-code>
77
- <name>Test Plan</name>
78
- <description type="yaml" nil="true"></description>
79
- <success-url type="yaml" nil="true"></success-url>
80
- <cancel-url type="yaml" nil="true"></cancel-url>
81
- <created-at type="datetime">2011-02-02T21:10:47Z</created-at>
82
- <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
83
- <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
84
- <plan-interval-length type="integer">1</plan-interval-length>
85
- <plan-interval-unit>months</plan-interval-unit>
86
- <trial-interval-length type="integer">0</trial-interval-length>
87
- <trial-interval-unit>months</trial-interval-unit>
88
- <latest-version>
89
- <depreciated>true</depreciated>
90
- <version type="integer">1</version>
91
- <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
92
- <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
93
- <plan-interval-length type="integer">1</plan-interval-length>
94
- <plan-interval-unit>months</plan-interval-unit>
95
- <trial-interval-length type="integer">0</trial-interval-length>
96
- <trial-interval-unit>months</trial-interval-unit>
97
- <created-at type="datetime">2011-02-02T21:10:51Z</created-at>
98
- </latest-version>
99
- </plan>
100
-
101
- headers:
102
- authorization:
103
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
104
- content-type:
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/test.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan-code>test</plan-code>\n
45
+ \ <name>Test Plan</name>\n <description nil=\"true\"></description>\n <success-url
46
+ nil=\"true\"></success-url>\n <cancel-url nil=\"true\"></cancel-url>\n <created-at
47
+ type=\"datetime\">2011-08-17T23:23:17Z</created-at>\n <unit-amount-in-cents
48
+ type=\"integer\">200</unit-amount-in-cents>\n <setup-fee-in-cents type=\"integer\">0</setup-fee-in-cents>\n
49
+ \ <plan-interval-length type=\"integer\">1</plan-interval-length>\n <plan-interval-unit>months</plan-interval-unit>\n
50
+ \ <trial-interval-length type=\"integer\">0</trial-interval-length>\n <trial-interval-unit>months</trial-interval-unit>\n</plan>\n"
51
+ headers:
52
+ user-agent:
53
+ - Recurly Ruby Client v0.4.10
54
+ content-type:
105
55
  - application/xml
106
- accept:
107
- - "*/*"
108
- user-agent:
109
- - Ruby
110
- connection:
111
- - close
112
- response: !ruby/struct:VCR::Response
113
- status: !ruby/struct:VCR::ResponseStatus
56
+ response: !ruby/struct:VCR::Response
57
+ status: !ruby/struct:VCR::ResponseStatus
114
58
  code: 200
115
- message: "OK "
116
- headers:
117
- cache-control:
118
- - no-cache
119
- x-runtime:
120
- - "254"
121
- content-type:
59
+ message: OK
60
+ headers:
61
+ content-type:
122
62
  - application/xml; charset=utf-8
123
- content-length:
124
- - "1"
125
- server:
126
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
127
- date:
128
- - Thu, 03 Feb 2011 22:20:57 GMT
129
- connection:
130
- - close
131
- set-cookie:
132
- - _recurly_session=fa7066b1d7a3b600898c36c4d30001bd; domain=.recurly.local; path=/; HttpOnly
133
- body: " "
134
- http_version: "1.1"
135
- - !ruby/struct:VCR::HTTPInteraction
136
- request: !ruby/struct:VCR::Request
63
+ etag:
64
+ - ! '"dafe33cb9edb7dee5277e875786e0443"'
65
+ cache-control:
66
+ - max-age=0, private, must-revalidate
67
+ x-ua-compatible:
68
+ - IE=Edge
69
+ set-cookie:
70
+ - _recurly_session=9831a42716f42fc603e1b5aff75ffd2b; domain=.lvh.me; path=/;
71
+ HttpOnly
72
+ server:
73
+ - thin 1.2.11 codename Bat-Shit Crazy
74
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>test</plan_code>\n
75
+ \ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
76
+ \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
77
+ \ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n <setup_fee_in_cents
78
+ type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
79
+ \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
80
+ type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n</plan>\n"
81
+ http_version: '1.1'
82
+ - !ruby/struct:VCR::HTTPInteraction
83
+ request: !ruby/struct:VCR::Request
137
84
  method: :get
138
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test.xml
139
- body:
140
- headers:
141
- authorization:
142
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
143
- accept:
85
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/test.xml
86
+ body: !!null
87
+ headers:
88
+ user-agent:
89
+ - Recurly Ruby Client v0.4.10
90
+ accept:
144
91
  - application/xml
145
- accept-encoding:
92
+ accept-encoding:
146
93
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
147
- user-agent:
148
- - Ruby
149
- connection:
150
- - close
151
- response: !ruby/struct:VCR::Response
152
- status: !ruby/struct:VCR::ResponseStatus
94
+ response: !ruby/struct:VCR::Response
95
+ status: !ruby/struct:VCR::ResponseStatus
153
96
  code: 200
154
- message: "OK "
155
- headers:
156
- x-runtime:
157
- - "208"
158
- content-type:
97
+ message: OK
98
+ headers:
99
+ content-type:
159
100
  - application/xml; charset=utf-8
160
- etag:
161
- - "\"ebfc9c6f5bcdfbc9ba658e70a75d94a3\""
162
- cache-control:
163
- - private, max-age=0, must-revalidate
164
- content-length:
165
- - "1153"
166
- server:
167
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
168
- date:
169
- - Thu, 03 Feb 2011 22:20:59 GMT
170
- connection:
171
- - close
172
- set-cookie:
173
- - _recurly_session=943ed2e9e815ec4c7024797c220fda48; domain=.recurly.local; path=/; HttpOnly
174
- body: |
175
- <?xml version="1.0" encoding="UTF-8"?>
176
- <plan>
177
- <plan_code>test</plan_code>
178
- <name>Test Plan</name>
179
- <description></description>
180
- <success_url></success_url>
181
- <cancel_url></cancel_url>
182
- <created_at type="datetime">2011-02-02T21:10:47Z</created_at>
183
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
184
- <setup_fee_in_cents type="integer">0</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>months</trial_interval_unit>
189
- <latest_version depreciated="true">
190
- <version type="integer">1</version>
191
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
192
- <setup_fee_in_cents type="integer">0</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>months</trial_interval_unit>
197
- <created_at type="datetime">2011-02-02T21:10:51Z</created_at>
198
- </latest_version>
199
- </plan>
200
-
201
- http_version: "1.1"
101
+ etag:
102
+ - ! '"dafe33cb9edb7dee5277e875786e0443"'
103
+ cache-control:
104
+ - max-age=0, private, must-revalidate
105
+ x-ua-compatible:
106
+ - IE=Edge
107
+ set-cookie:
108
+ - _recurly_session=cfdac8f12dcc825c9ace442dab9d77e9; domain=.lvh.me; path=/;
109
+ HttpOnly
110
+ server:
111
+ - thin 1.2.11 codename Bat-Shit Crazy
112
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>test</plan_code>\n
113
+ \ <name>Test Plan</name>\n <description></description>\n <success_url></success_url>\n
114
+ \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-17T23:23:17Z</created_at>\n
115
+ \ <unit_amount_in_cents type=\"integer\">200</unit_amount_in_cents>\n <setup_fee_in_cents
116
+ type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
117
+ \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
118
+ type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>months</trial_interval_unit>\n</plan>\n"
119
+ http_version: '1.1'