recurly 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (64) hide show
  1. data/README.md +3 -2
  2. data/lib/recurly/invoice.rb +1 -1
  3. data/lib/recurly/subscription.rb +1 -1
  4. data/lib/recurly/transaction.rb +1 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/subscription_spec.rb +29 -8
  7. data/spec/vcr/account/close/1286666929.yml +159 -0
  8. data/spec/vcr/account/create-blank/1286666929.yml +49 -0
  9. data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
  10. data/spec/vcr/account/create-min/1286666929.yml +63 -0
  11. data/spec/vcr/account/create/1286666929.yml +67 -0
  12. data/spec/vcr/account/find/1286666929.yml +122 -0
  13. data/spec/vcr/account/list/1286666929.yml +1565 -0
  14. data/spec/vcr/account/update/1286666929.yml +250 -0
  15. data/spec/vcr/billing/create/1286682213.yml +210 -0
  16. data/spec/vcr/billing/destroy/1286682213.yml +309 -0
  17. data/spec/vcr/billing/find/1286682213.yml +273 -0
  18. data/spec/vcr/billing/update/1286682213.yml +292 -0
  19. data/spec/vcr/charge/create/1286681273.yml +253 -0
  20. data/spec/vcr/charge/list-all/1286681273.yml +302 -0
  21. data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
  22. data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
  23. data/spec/vcr/charge/lookup/1286681273.yml +171 -0
  24. data/spec/vcr/credit/create/1286681343.yml +171 -0
  25. data/spec/vcr/credit/list/1286681343.yml +299 -0
  26. data/spec/vcr/credit/lookup/1286681343.yml +171 -0
  27. data/spec/vcr/invoice/create/1286679184.yml +337 -0
  28. data/spec/vcr/invoice/list/1286679184.yml +458 -0
  29. data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
  30. data/spec/vcr/plan/all.yml +306 -0
  31. data/spec/vcr/plan/delete/1286677585.yml +217 -0
  32. data/spec/vcr/plan/find.yml +196 -0
  33. data/spec/vcr/plan/update.yml +197 -0
  34. data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
  35. data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
  36. data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
  37. data/spec/vcr/subscription/change1/1287036910.yml +409 -0
  38. data/spec/vcr/subscription/change1/1287037152.yml +409 -0
  39. data/spec/vcr/subscription/change1/1287037325.yml +409 -0
  40. data/spec/vcr/subscription/change1/1287037363.yml +409 -0
  41. data/spec/vcr/subscription/change2/1287036910.yml +409 -0
  42. data/spec/vcr/subscription/change2/1287037152.yml +283 -0
  43. data/spec/vcr/subscription/change2/1287037325.yml +283 -0
  44. data/spec/vcr/subscription/change2/1287037363.yml +409 -0
  45. data/spec/vcr/subscription/create/1287036910.yml +224 -0
  46. data/spec/vcr/subscription/create/1287037152.yml +224 -0
  47. data/spec/vcr/subscription/create/1287037325.yml +224 -0
  48. data/spec/vcr/subscription/create/1287037363.yml +224 -0
  49. data/spec/vcr/subscription/find/1287036910.yml +283 -0
  50. data/spec/vcr/subscription/find/1287037152.yml +283 -0
  51. data/spec/vcr/subscription/find/1287037325.yml +283 -0
  52. data/spec/vcr/subscription/find/1287037363.yml +283 -0
  53. data/spec/vcr/subscription/refund/1287036910.yml +382 -0
  54. data/spec/vcr/subscription/refund/1287037325.yml +382 -0
  55. data/spec/vcr/subscription/refund/1287037363.yml +382 -0
  56. data/spec/vcr/transaction/all/1286674805.yml +387 -0
  57. data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
  58. data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
  59. data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
  60. data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
  61. data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
  62. data/spec/vcr/transaction/refund/1286674805.yml +220 -0
  63. data/spec/vcr/transaction/void/1286674805.yml +668 -0
  64. metadata +118 -4
@@ -0,0 +1,217 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <plan>
9
+ <name>Test Plan 1286677585</name>
10
+ <plan-code>test_1286677585</plan-code>
11
+ <trial-interval-length type="integer">0</trial-interval-length>
12
+ <unit-amount-in-cents type="integer">100</unit-amount-in-cents>
13
+ <trial-interval-unit>months</trial-interval-unit>
14
+ <plan-interval-unit>months</plan-interval-unit>
15
+ <plan-interval-length type="integer">1</plan-interval-length>
16
+ </plan>
17
+
18
+ headers:
19
+ accept:
20
+ - "*/*"
21
+ connection:
22
+ - close
23
+ content-type:
24
+ - application/xml
25
+ authorization:
26
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
27
+ response: !ruby/struct:VCR::Response
28
+ status: !ruby/struct:VCR::ResponseStatus
29
+ code: 201
30
+ message: Created
31
+ headers:
32
+ location:
33
+ - https://recurlytest3-test.recurly.com/company/plans/test_1286677585
34
+ connection:
35
+ - close
36
+ content-type:
37
+ - application/xml; charset=utf-8
38
+ x-runtime:
39
+ - "37"
40
+ date:
41
+ - Thu, 14 Oct 2010 06:16:57 GMT
42
+ server:
43
+ - nginx/0.7.65
44
+ content-length:
45
+ - "1175"
46
+ set-cookie:
47
+ - _recurly_session=a9eb661de77cc24b4d5f7f606d7fdab3; domain=.recurly.com; path=/; Secure; HttpOnly
48
+ cache-control:
49
+ - no-cache
50
+ body: |
51
+ <?xml version="1.0" encoding="UTF-8"?>
52
+ <plan>
53
+ <plan_code>test_1286677585</plan_code>
54
+ <name>Test Plan 1286677585</name>
55
+ <description></description>
56
+ <success_url></success_url>
57
+ <cancel_url></cancel_url>
58
+ <created_at type="datetime">2010-10-14T06:16:57Z</created_at>
59
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
60
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
61
+ <plan_interval_length type="integer">1</plan_interval_length>
62
+ <plan_interval_unit>months</plan_interval_unit>
63
+ <trial_interval_length type="integer">0</trial_interval_length>
64
+ <trial_interval_unit>months</trial_interval_unit>
65
+ <latest_version depreciated="true">
66
+ <version type="integer">1</version>
67
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
68
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
69
+ <plan_interval_length type="integer">1</plan_interval_length>
70
+ <plan_interval_unit>months</plan_interval_unit>
71
+ <trial_interval_length type="integer">0</trial_interval_length>
72
+ <trial_interval_unit>months</trial_interval_unit>
73
+ <created_at type="datetime">2010-10-14T06:16:57Z</created_at>
74
+ </latest_version>
75
+ </plan>
76
+
77
+ http_version: "1.1"
78
+ - !ruby/struct:VCR::HTTPInteraction
79
+ request: !ruby/struct:VCR::Request
80
+ method: :get
81
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
82
+ body:
83
+ headers:
84
+ accept:
85
+ - application/xml
86
+ connection:
87
+ - close
88
+ authorization:
89
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
90
+ response: !ruby/struct:VCR::Response
91
+ status: !ruby/struct:VCR::ResponseStatus
92
+ code: 200
93
+ message: OK
94
+ headers:
95
+ x-ua-compatible:
96
+ - IE=Edge
97
+ etag:
98
+ - "\"29a090ce443d09321a7623322b9902b4\""
99
+ connection:
100
+ - close
101
+ content-type:
102
+ - application/xml; charset=utf-8
103
+ x-runtime:
104
+ - "13"
105
+ date:
106
+ - Thu, 14 Oct 2010 06:16:58 GMT
107
+ server:
108
+ - nginx/0.7.65
109
+ content-length:
110
+ - "1175"
111
+ set-cookie:
112
+ - _recurly_session=678e5a35e9ca215078fdd584fc56f73f; domain=.recurly.com; path=/; Secure; HttpOnly
113
+ cache-control:
114
+ - private, max-age=0, must-revalidate
115
+ body: |
116
+ <?xml version="1.0" encoding="UTF-8"?>
117
+ <plan>
118
+ <plan_code>test_1286677585</plan_code>
119
+ <name>Test Plan 1286677585</name>
120
+ <description></description>
121
+ <success_url></success_url>
122
+ <cancel_url></cancel_url>
123
+ <created_at type="datetime">2010-10-14T06:16:57Z</created_at>
124
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
125
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
126
+ <plan_interval_length type="integer">1</plan_interval_length>
127
+ <plan_interval_unit>months</plan_interval_unit>
128
+ <trial_interval_length type="integer">0</trial_interval_length>
129
+ <trial_interval_unit>months</trial_interval_unit>
130
+ <latest_version depreciated="true">
131
+ <version type="integer">1</version>
132
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
133
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
134
+ <plan_interval_length type="integer">1</plan_interval_length>
135
+ <plan_interval_unit>months</plan_interval_unit>
136
+ <trial_interval_length type="integer">0</trial_interval_length>
137
+ <trial_interval_unit>months</trial_interval_unit>
138
+ <created_at type="datetime">2010-10-14T06:16:57Z</created_at>
139
+ </latest_version>
140
+ </plan>
141
+
142
+ http_version: "1.1"
143
+ - !ruby/struct:VCR::HTTPInteraction
144
+ request: !ruby/struct:VCR::Request
145
+ method: :delete
146
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
147
+ body:
148
+ headers:
149
+ accept:
150
+ - application/xml
151
+ connection:
152
+ - close
153
+ authorization:
154
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
155
+ response: !ruby/struct:VCR::Response
156
+ status: !ruby/struct:VCR::ResponseStatus
157
+ code: 200
158
+ message: OK
159
+ headers:
160
+ x-ua-compatible:
161
+ - IE=Edge
162
+ connection:
163
+ - close
164
+ content-type:
165
+ - application/xml; charset=utf-8
166
+ x-runtime:
167
+ - "22"
168
+ date:
169
+ - Thu, 14 Oct 2010 06:16:58 GMT
170
+ server:
171
+ - nginx/0.7.65
172
+ content-length:
173
+ - "1"
174
+ set-cookie:
175
+ - _recurly_session=590330945660d99e1c687354fb6d62df; domain=.recurly.com; path=/; Secure; HttpOnly
176
+ cache-control:
177
+ - no-cache
178
+ body: " "
179
+ http_version: "1.1"
180
+ - !ruby/struct:VCR::HTTPInteraction
181
+ request: !ruby/struct:VCR::Request
182
+ method: :get
183
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test_1286677585.xml
184
+ body:
185
+ headers:
186
+ accept:
187
+ - application/xml
188
+ connection:
189
+ - close
190
+ authorization:
191
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
192
+ response: !ruby/struct:VCR::Response
193
+ status: !ruby/struct:VCR::ResponseStatus
194
+ code: 404
195
+ message: Not Found
196
+ headers:
197
+ connection:
198
+ - close
199
+ content-type:
200
+ - application/xml; charset=utf-8
201
+ date:
202
+ - Thu, 14 Oct 2010 06:16:59 GMT
203
+ server:
204
+ - nginx/0.7.65
205
+ content-length:
206
+ - "90"
207
+ set-cookie:
208
+ - _recurly_session=a8a1cfa0b674b0de6a51d991d049cbf4; domain=.recurly.com; path=/; Secure; HttpOnly
209
+ cache-control:
210
+ - no-cache
211
+ body: |
212
+ <?xml version="1.0" encoding="UTF-8"?>
213
+ <errors>
214
+ <error>Plan not found</error>
215
+ </errors>
216
+
217
+ http_version: "1.1"
@@ -0,0 +1,196 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/xml
10
+ connection:
11
+ - close
12
+ authorization:
13
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ x-ua-compatible:
20
+ - IE=Edge
21
+ etag:
22
+ - "\"31910d9b30fecc5e62f25a1ce00278e0\""
23
+ connection:
24
+ - close
25
+ content-type:
26
+ - application/xml; charset=utf-8
27
+ x-runtime:
28
+ - "155"
29
+ date:
30
+ - Thu, 14 Oct 2010 06:16:53 GMT
31
+ server:
32
+ - nginx/0.7.65
33
+ content-length:
34
+ - "1150"
35
+ set-cookie:
36
+ - _recurly_session=1287e552d81d423fbc24a9e2e1a286ec; domain=.recurly.com; path=/; Secure; HttpOnly
37
+ cache-control:
38
+ - private, max-age=0, must-revalidate
39
+ body: |
40
+ <?xml version="1.0" encoding="UTF-8"?>
41
+ <plan>
42
+ <plan_code>paid</plan_code>
43
+ <name>Paid</name>
44
+ <description></description>
45
+ <success_url></success_url>
46
+ <cancel_url></cancel_url>
47
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
48
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
49
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
+ <plan_interval_length type="integer">1</plan_interval_length>
51
+ <plan_interval_unit>months</plan_interval_unit>
52
+ <trial_interval_length type="integer">0</trial_interval_length>
53
+ <trial_interval_unit>months</trial_interval_unit>
54
+ <latest_version depreciated="true">
55
+ <version type="integer">1</version>
56
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
57
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
58
+ <plan_interval_length type="integer">1</plan_interval_length>
59
+ <plan_interval_unit>months</plan_interval_unit>
60
+ <trial_interval_length type="integer">0</trial_interval_length>
61
+ <trial_interval_unit>months</trial_interval_unit>
62
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
63
+ </latest_version>
64
+ </plan>
65
+
66
+ http_version: "1.1"
67
+ - !ruby/struct:VCR::HTTPInteraction
68
+ request: !ruby/struct:VCR::Request
69
+ method: :get
70
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/trial.xml
71
+ body:
72
+ headers:
73
+ accept:
74
+ - application/xml
75
+ connection:
76
+ - close
77
+ authorization:
78
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
79
+ response: !ruby/struct:VCR::Response
80
+ status: !ruby/struct:VCR::ResponseStatus
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ x-ua-compatible:
85
+ - IE=Edge
86
+ etag:
87
+ - "\"d407cea7e325b47787bbd552110eb51a\""
88
+ connection:
89
+ - close
90
+ content-type:
91
+ - application/xml; charset=utf-8
92
+ x-runtime:
93
+ - "13"
94
+ date:
95
+ - Thu, 14 Oct 2010 06:16:54 GMT
96
+ server:
97
+ - nginx/0.7.65
98
+ content-length:
99
+ - "1164"
100
+ set-cookie:
101
+ - _recurly_session=e26df8af8911bae83f016ea7282ee303; domain=.recurly.com; path=/; Secure; HttpOnly
102
+ cache-control:
103
+ - private, max-age=0, must-revalidate
104
+ body: |
105
+ <?xml version="1.0" encoding="UTF-8"?>
106
+ <plan>
107
+ <plan_code>trial</plan_code>
108
+ <name>Trial</name>
109
+ <description>a trial plan</description>
110
+ <success_url></success_url>
111
+ <cancel_url></cancel_url>
112
+ <created_at type="datetime">2010-09-18T07:29:06Z</created_at>
113
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
114
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
115
+ <plan_interval_length type="integer">1</plan_interval_length>
116
+ <plan_interval_unit>months</plan_interval_unit>
117
+ <trial_interval_length type="integer">1</trial_interval_length>
118
+ <trial_interval_unit>months</trial_interval_unit>
119
+ <latest_version depreciated="true">
120
+ <version type="integer">1</version>
121
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
122
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
123
+ <plan_interval_length type="integer">1</plan_interval_length>
124
+ <plan_interval_unit>months</plan_interval_unit>
125
+ <trial_interval_length type="integer">1</trial_interval_length>
126
+ <trial_interval_unit>months</trial_interval_unit>
127
+ <created_at type="datetime">2010-09-18T11:29:08Z</created_at>
128
+ </latest_version>
129
+ </plan>
130
+
131
+ http_version: "1.1"
132
+ - !ruby/struct:VCR::HTTPInteraction
133
+ request: !ruby/struct:VCR::Request
134
+ method: :get
135
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
136
+ body:
137
+ headers:
138
+ accept:
139
+ - application/xml
140
+ connection:
141
+ - close
142
+ authorization:
143
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
144
+ response: !ruby/struct:VCR::Response
145
+ status: !ruby/struct:VCR::ResponseStatus
146
+ code: 200
147
+ message: OK
148
+ headers:
149
+ x-ua-compatible:
150
+ - IE=Edge
151
+ etag:
152
+ - "\"31910d9b30fecc5e62f25a1ce00278e0\""
153
+ connection:
154
+ - close
155
+ content-type:
156
+ - application/xml; charset=utf-8
157
+ x-runtime:
158
+ - "14"
159
+ date:
160
+ - Thu, 14 Oct 2010 06:16:54 GMT
161
+ server:
162
+ - nginx/0.7.65
163
+ content-length:
164
+ - "1150"
165
+ set-cookie:
166
+ - _recurly_session=2202eb7d1659034beeb6d06da90eb521; domain=.recurly.com; path=/; Secure; HttpOnly
167
+ cache-control:
168
+ - private, max-age=0, must-revalidate
169
+ body: |
170
+ <?xml version="1.0" encoding="UTF-8"?>
171
+ <plan>
172
+ <plan_code>paid</plan_code>
173
+ <name>Paid</name>
174
+ <description></description>
175
+ <success_url></success_url>
176
+ <cancel_url></cancel_url>
177
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
178
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
179
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
180
+ <plan_interval_length type="integer">1</plan_interval_length>
181
+ <plan_interval_unit>months</plan_interval_unit>
182
+ <trial_interval_length type="integer">0</trial_interval_length>
183
+ <trial_interval_unit>months</trial_interval_unit>
184
+ <latest_version depreciated="true">
185
+ <version type="integer">1</version>
186
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
187
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
188
+ <plan_interval_length type="integer">1</plan_interval_length>
189
+ <plan_interval_unit>months</plan_interval_unit>
190
+ <trial_interval_length type="integer">0</trial_interval_length>
191
+ <trial_interval_unit>months</trial_interval_unit>
192
+ <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
193
+ </latest_version>
194
+ </plan>
195
+
196
+ http_version: "1.1"
@@ -0,0 +1,197 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test.xml
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/xml
10
+ connection:
11
+ - close
12
+ authorization:
13
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ x-ua-compatible:
20
+ - IE=Edge
21
+ etag:
22
+ - "\"51fa62d633fbc00f21ce1e22803a8e82\""
23
+ connection:
24
+ - close
25
+ content-type:
26
+ - application/xml; charset=utf-8
27
+ x-runtime:
28
+ - "37"
29
+ date:
30
+ - Thu, 14 Oct 2010 06:16:55 GMT
31
+ server:
32
+ - nginx/0.7.65
33
+ content-length:
34
+ - "1153"
35
+ set-cookie:
36
+ - _recurly_session=0c13e441ab9e080f9e0a497e0d3616f4; domain=.recurly.com; path=/; Secure; HttpOnly
37
+ cache-control:
38
+ - private, max-age=0, must-revalidate
39
+ body: |
40
+ <?xml version="1.0" encoding="UTF-8"?>
41
+ <plan>
42
+ <plan_code>test</plan_code>
43
+ <name>Test Plan</name>
44
+ <description></description>
45
+ <success_url></success_url>
46
+ <cancel_url></cancel_url>
47
+ <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
48
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
49
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
50
+ <plan_interval_length type="integer">1</plan_interval_length>
51
+ <plan_interval_unit>months</plan_interval_unit>
52
+ <trial_interval_length type="integer">0</trial_interval_length>
53
+ <trial_interval_unit>months</trial_interval_unit>
54
+ <latest_version depreciated="true">
55
+ <version type="integer">1</version>
56
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
57
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
58
+ <plan_interval_length type="integer">1</plan_interval_length>
59
+ <plan_interval_unit>months</plan_interval_unit>
60
+ <trial_interval_length type="integer">0</trial_interval_length>
61
+ <trial_interval_unit>months</trial_interval_unit>
62
+ <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
63
+ </latest_version>
64
+ </plan>
65
+
66
+ http_version: "1.1"
67
+ - !ruby/struct:VCR::HTTPInteraction
68
+ request: !ruby/struct:VCR::Request
69
+ method: :put
70
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test.xml
71
+ body: |
72
+ <?xml version="1.0" encoding="UTF-8"?>
73
+ <plan>
74
+ <name>Test Plan</name>
75
+ <cancel-url type="yaml" nil="true"></cancel-url>
76
+ <created-at type="datetime">2010-09-19T01:31:33Z</created-at>
77
+ <plan-code>test</plan-code>
78
+ <latest-version>
79
+ <created-at type="datetime">2010-09-19T01:36:06Z</created-at>
80
+ <trial-interval-length type="integer">0</trial-interval-length>
81
+ <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
82
+ <version type="integer">1</version>
83
+ <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
84
+ <depreciated>true</depreciated>
85
+ <trial-interval-unit>months</trial-interval-unit>
86
+ <plan-interval-unit>months</plan-interval-unit>
87
+ <plan-interval-length type="integer">1</plan-interval-length>
88
+ </latest-version>
89
+ <trial-interval-length type="integer">0</trial-interval-length>
90
+ <setup-fee-in-cents type="integer">0</setup-fee-in-cents>
91
+ <unit-amount-in-cents type="integer">200</unit-amount-in-cents>
92
+ <description type="yaml" nil="true"></description>
93
+ <trial-interval-unit>months</trial-interval-unit>
94
+ <success-url type="yaml" nil="true"></success-url>
95
+ <plan-interval-unit>months</plan-interval-unit>
96
+ <plan-interval-length type="integer">1</plan-interval-length>
97
+ </plan>
98
+
99
+ headers:
100
+ accept:
101
+ - "*/*"
102
+ connection:
103
+ - close
104
+ content-type:
105
+ - application/xml
106
+ authorization:
107
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
108
+ response: !ruby/struct:VCR::Response
109
+ status: !ruby/struct:VCR::ResponseStatus
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ x-ua-compatible:
114
+ - IE=Edge
115
+ connection:
116
+ - close
117
+ content-type:
118
+ - application/xml; charset=utf-8
119
+ x-runtime:
120
+ - "22"
121
+ date:
122
+ - Thu, 14 Oct 2010 06:16:56 GMT
123
+ server:
124
+ - nginx/0.7.65
125
+ content-length:
126
+ - "1"
127
+ set-cookie:
128
+ - _recurly_session=2fae7789eae7f8743f81dae0eb0b0569; domain=.recurly.com; path=/; Secure; HttpOnly
129
+ cache-control:
130
+ - no-cache
131
+ body: " "
132
+ http_version: "1.1"
133
+ - !ruby/struct:VCR::HTTPInteraction
134
+ request: !ruby/struct:VCR::Request
135
+ method: :get
136
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/test.xml
137
+ body:
138
+ headers:
139
+ accept:
140
+ - application/xml
141
+ connection:
142
+ - close
143
+ authorization:
144
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
145
+ response: !ruby/struct:VCR::Response
146
+ status: !ruby/struct:VCR::ResponseStatus
147
+ code: 200
148
+ message: OK
149
+ headers:
150
+ x-ua-compatible:
151
+ - IE=Edge
152
+ etag:
153
+ - "\"51fa62d633fbc00f21ce1e22803a8e82\""
154
+ connection:
155
+ - close
156
+ content-type:
157
+ - application/xml; charset=utf-8
158
+ x-runtime:
159
+ - "13"
160
+ date:
161
+ - Thu, 14 Oct 2010 06:16:56 GMT
162
+ server:
163
+ - nginx/0.7.65
164
+ content-length:
165
+ - "1153"
166
+ set-cookie:
167
+ - _recurly_session=3caba745222e7586e753a7a9a773f293; domain=.recurly.com; path=/; Secure; HttpOnly
168
+ cache-control:
169
+ - private, max-age=0, must-revalidate
170
+ body: |
171
+ <?xml version="1.0" encoding="UTF-8"?>
172
+ <plan>
173
+ <plan_code>test</plan_code>
174
+ <name>Test Plan</name>
175
+ <description></description>
176
+ <success_url></success_url>
177
+ <cancel_url></cancel_url>
178
+ <created_at type="datetime">2010-09-19T01:31:33Z</created_at>
179
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
180
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
181
+ <plan_interval_length type="integer">1</plan_interval_length>
182
+ <plan_interval_unit>months</plan_interval_unit>
183
+ <trial_interval_length type="integer">0</trial_interval_length>
184
+ <trial_interval_unit>months</trial_interval_unit>
185
+ <latest_version depreciated="true">
186
+ <version type="integer">1</version>
187
+ <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
188
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
189
+ <plan_interval_length type="integer">1</plan_interval_length>
190
+ <plan_interval_unit>months</plan_interval_unit>
191
+ <trial_interval_length type="integer">0</trial_interval_length>
192
+ <trial_interval_unit>months</trial_interval_unit>
193
+ <created_at type="datetime">2010-09-19T01:36:06Z</created_at>
194
+ </latest_version>
195
+ </plan>
196
+
197
+ http_version: "1.1"