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,264 +1,354 @@
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: :post
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>subscription-change1-1296674173</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>subscription-change1-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/subscription-change1-1296674173
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/subscription-change1-1296674173
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=aef6477bcf6a8f03451528e94fe7ae30; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=9dc69e54d5c73133fcfb72cdcdf91cce; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>subscription-change1-1296674173</id>\n
34
- \ <account_code>subscription-change1-1296674173</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>61de14dd332b41f2abaae1eeaa2a5631</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:02:09Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>subscription-change1-1296674173</id>
47
+ <account_code>subscription-change1-1296674173</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>2ab9a1ee1abf40e4bd3022b556772fc2</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:58Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
42
63
  method: :get
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/site/plans/paid.xml
44
- body: !!null
45
- headers:
46
- user-agent:
47
- - Recurly Ruby Client v0.4.10
48
- accept:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/plans/paid.xml
65
+ body:
66
+ headers:
67
+ user-agent:
68
+ - Recurly Ruby Client v0.4.13
69
+ accept:
49
70
  - application/xml
50
- accept-encoding:
71
+ accept-encoding:
51
72
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
52
- response: !ruby/struct:VCR::Response
53
- status: !ruby/struct:VCR::ResponseStatus
73
+ response: !ruby/struct:VCR::Response
74
+ status: !ruby/struct:VCR::ResponseStatus
54
75
  code: 200
55
76
  message: OK
56
- headers:
57
- content-type:
77
+ headers:
78
+ content-type:
58
79
  - application/xml; charset=utf-8
59
- etag:
60
- - ! '"30df1bac5befaf2f9fc4564c2103a07b"'
61
- cache-control:
80
+ etag:
81
+ - "\"7487d065869e9c487e0a588e1edea5dc\""
82
+ cache-control:
62
83
  - max-age=0, private, must-revalidate
63
- x-ua-compatible:
84
+ x-ua-compatible:
64
85
  - IE=Edge
65
- set-cookie:
66
- - _recurly_session=e5cdd82926aa4298ee715fa072568288; domain=.lvh.me; path=/;
67
- HttpOnly
68
- server:
86
+ server:
69
87
  - thin 1.2.11 codename Bat-Shit Crazy
70
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plan>\n <plan_code>paid</plan_code>\n
71
- \ <name>Paid Plan</name>\n <description></description>\n <success_url></success_url>\n
72
- \ <cancel_url></cancel_url>\n <created_at type=\"datetime\">2011-08-02T14:08:28Z</created_at>\n
73
- \ <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n <setup_fee_in_cents
74
- type=\"integer\">0</setup_fee_in_cents>\n <plan_interval_length type=\"integer\">1</plan_interval_length>\n
75
- \ <plan_interval_unit>months</plan_interval_unit>\n <trial_interval_length
76
- type=\"integer\">0</trial_interval_length>\n <trial_interval_unit>days</trial_interval_unit>\n
77
- \ <add_ons type=\"array\">\n <add_on>\n <add_on_code>special</add_on_code>\n
78
- \ <default_quantity type=\"integer\">1</default_quantity>\n <default_unit_amount_in_cents
79
- type=\"integer\">400</default_unit_amount_in_cents>\n </add_on>\n <add_on>\n
80
- \ <add_on_code>special2</add_on_code>\n <default_quantity type=\"integer\">1</default_quantity>\n
81
- \ <default_unit_amount_in_cents type=\"integer\">1600</default_unit_amount_in_cents>\n
82
- \ </add_on>\n </add_ons>\n</plan>\n"
83
- http_version: '1.1'
84
- - !ruby/struct:VCR::HTTPInteraction
85
- request: !ruby/struct:VCR::Request
88
+ body: |
89
+ <?xml version="1.0" encoding="UTF-8"?>
90
+ <plan>
91
+ <plan_code>paid</plan_code>
92
+ <name>paid</name>
93
+ <description></description>
94
+ <success_url></success_url>
95
+ <cancel_url></cancel_url>
96
+ <created_at type="datetime">2011-09-22T21:54:04Z</created_at>
97
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
98
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
99
+ <plan_interval_length type="integer">1</plan_interval_length>
100
+ <plan_interval_unit>months</plan_interval_unit>
101
+ <trial_interval_length type="integer">0</trial_interval_length>
102
+ <trial_interval_unit>days</trial_interval_unit>
103
+ </plan>
104
+
105
+ http_version: "1.1"
106
+ - !ruby/struct:VCR::HTTPInteraction
107
+ request: !ruby/struct:VCR::Request
86
108
  method: :post
87
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
88
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <plan-code>paid</plan-code>\n
89
- \ <quantity type=\"integer\">1</quantity>\n <account>\n <account-code>subscription-change1-1296674173</account-code>\n
90
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
91
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
92
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
93
- \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
94
- \ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
95
- \ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
96
- \ <verification-value>123</verification-value>\n </credit-card>\n
97
- \ </billing-info>\n <accept-language nil=\"true\"></accept-language>\n
98
- \ <id>subscription-change1-1296674173</id>\n <username nil=\"true\"></username>\n
99
- \ <balance-in-cents type=\"integer\">0</balance-in-cents>\n <closed type=\"boolean\">false</closed>\n
100
- \ <hosted-login-token>61de14dd332b41f2abaae1eeaa2a5631</hosted-login-token>\n
101
- \ <created-at type=\"datetime\">2011-08-19T20:02:09Z</created-at>\n <state>active</state>\n
102
- \ </account>\n <addons type=\"array\"/>\n</subscription>\n"
103
- headers:
104
- user-agent:
105
- - Recurly Ruby Client v0.4.10
106
- content-type:
109
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
110
+ body: |
111
+ <?xml version="1.0" encoding="UTF-8"?>
112
+ <subscription>
113
+ <plan-code>paid</plan-code>
114
+ <quantity type="integer">1</quantity>
115
+ <account>
116
+ <account-code>subscription-change1-1296674173</account-code>
117
+ <first-name>Verena</first-name>
118
+ <last-name>Test</last-name>
119
+ <email>verena@test.com</email>
120
+ <company-name>Recurly Ruby Gem</company-name>
121
+ <billing-info>
122
+ <first-name>Verena</first-name>
123
+ <last-name>Test</last-name>
124
+ <address1>123 Test St</address1>
125
+ <city>San Francisco</city>
126
+ <state>CA</state>
127
+ <zip>94115</zip>
128
+ <country>US</country>
129
+ <credit-card>
130
+ <number>4111111111111111</number>
131
+ <year type="integer">2012</year>
132
+ <month type="integer">9</month>
133
+ <verification-value>123</verification-value>
134
+ </credit-card>
135
+ </billing-info>
136
+ <accept-language nil="true"></accept-language>
137
+ <id>subscription-change1-1296674173</id>
138
+ <username nil="true"></username>
139
+ <balance-in-cents type="integer">0</balance-in-cents>
140
+ <closed type="boolean">false</closed>
141
+ <hosted-login-token>2ab9a1ee1abf40e4bd3022b556772fc2</hosted-login-token>
142
+ <created-at type="datetime">2011-09-22T22:01:58Z</created-at>
143
+ <state>active</state>
144
+ </account>
145
+ <addons type="array"/>
146
+ </subscription>
147
+
148
+ headers:
149
+ user-agent:
150
+ - Recurly Ruby Client v0.4.13
151
+ content-type:
107
152
  - application/xml
108
- response: !ruby/struct:VCR::Response
109
- status: !ruby/struct:VCR::ResponseStatus
153
+ response: !ruby/struct:VCR::Response
154
+ status: !ruby/struct:VCR::ResponseStatus
110
155
  code: 201
111
156
  message: Created
112
- headers:
113
- content-type:
157
+ headers:
158
+ content-type:
114
159
  - application/xml; charset=utf-8
115
- cache-control:
160
+ cache-control:
116
161
  - no-cache
117
- x-ua-compatible:
162
+ x-ua-compatible:
118
163
  - IE=Edge
119
- set-cookie:
120
- - _recurly_session=be4c55389d3e8035c13d5c641ab7dccf; domain=.lvh.me; path=/;
121
- HttpOnly
122
- server:
164
+ set-cookie:
165
+ - _recurly_session=f1be491ad5c21326fe23152ce1063913; domain=.lvh.me; path=/; HttpOnly
166
+ server:
123
167
  - thin 1.2.11 codename Bat-Shit Crazy
124
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-change1-1296674173</id>\n
125
- \ <account_code>subscription-change1-1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
126
- \ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
127
- type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
128
- \ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
129
- type=\"datetime\">2011-08-19T20:02:09Z</activated_at>\n <canceled_at nil=\"true\"
130
- type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
131
- \ <current_period_started_at type=\"datetime\">2011-08-19T20:02:09Z</current_period_started_at>\n
132
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:09Z</current_period_ends_at>\n
133
- \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
134
- nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
135
- \ </add_ons>\n</subscription>\n"
136
- http_version: '1.1'
137
- - !ruby/struct:VCR::HTTPInteraction
138
- request: !ruby/struct:VCR::Request
168
+ body: |
169
+ <?xml version="1.0" encoding="UTF-8"?>
170
+ <subscription>
171
+ <id>subscription-change1-1296674173</id>
172
+ <account_code>subscription-change1-1296674173</account_code>
173
+ <plan>
174
+ <plan_code>paid</plan_code>
175
+ <name>paid</name>
176
+ </plan>
177
+ <state>active</state>
178
+ <quantity type="integer">1</quantity>
179
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
180
+ <total_amount_in_cents type="integer">1400</total_amount_in_cents>
181
+ <activated_at type="datetime">2011-09-22T22:01:58Z</activated_at>
182
+ <canceled_at nil="true" type="datetime"></canceled_at>
183
+ <expires_at nil="true" type="datetime"></expires_at>
184
+ <current_period_started_at type="datetime">2011-09-22T22:01:58Z</current_period_started_at>
185
+ <current_period_ends_at type="datetime">2011-10-22T22:01:58Z</current_period_ends_at>
186
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
187
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
188
+ <add_ons type="array">
189
+ </add_ons>
190
+ </subscription>
191
+
192
+ http_version: "1.1"
193
+ - !ruby/struct:VCR::HTTPInteraction
194
+ request: !ruby/struct:VCR::Request
139
195
  method: :get
140
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
141
- body: !!null
142
- headers:
143
- user-agent:
144
- - Recurly Ruby Client v0.4.10
145
- accept:
196
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
197
+ body:
198
+ headers:
199
+ user-agent:
200
+ - Recurly Ruby Client v0.4.13
201
+ accept:
146
202
  - application/xml
147
- accept-encoding:
203
+ accept-encoding:
148
204
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
149
- response: !ruby/struct:VCR::Response
150
- status: !ruby/struct:VCR::ResponseStatus
205
+ response: !ruby/struct:VCR::Response
206
+ status: !ruby/struct:VCR::ResponseStatus
151
207
  code: 200
152
208
  message: OK
153
- headers:
154
- content-type:
209
+ headers:
210
+ content-type:
155
211
  - application/xml; charset=utf-8
156
- etag:
157
- - ! '"37d09d5de5214f5867dc6b5e2748dbfe"'
158
- cache-control:
212
+ etag:
213
+ - "\"579582286ea695b849fc746f07ae68a3\""
214
+ cache-control:
159
215
  - max-age=0, private, must-revalidate
160
- x-ua-compatible:
216
+ x-ua-compatible:
161
217
  - IE=Edge
162
- set-cookie:
163
- - _recurly_session=22c195a16c7bd1a3e4d2c541808dd39a; domain=.lvh.me; path=/;
164
- HttpOnly
165
- server:
218
+ server:
166
219
  - thin 1.2.11 codename Bat-Shit Crazy
167
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-change1-1296674173</id>\n
168
- \ <account_code>subscription-change1-1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
169
- \ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
170
- type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
171
- \ <total_amount_in_cents type=\"integer\">1200</total_amount_in_cents>\n <activated_at
172
- type=\"datetime\">2011-08-19T20:02:09Z</activated_at>\n <canceled_at nil=\"true\"
173
- type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
174
- \ <current_period_started_at type=\"datetime\">2011-08-19T20:02:09Z</current_period_started_at>\n
175
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:09Z</current_period_ends_at>\n
176
- \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
177
- nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
178
- \ </add_ons>\n</subscription>\n"
179
- http_version: '1.1'
180
- - !ruby/struct:VCR::HTTPInteraction
181
- request: !ruby/struct:VCR::Request
220
+ body: |
221
+ <?xml version="1.0" encoding="UTF-8"?>
222
+ <subscription>
223
+ <id>subscription-change1-1296674173</id>
224
+ <account_code>subscription-change1-1296674173</account_code>
225
+ <plan>
226
+ <plan_code>paid</plan_code>
227
+ <name>paid</name>
228
+ </plan>
229
+ <state>active</state>
230
+ <quantity type="integer">1</quantity>
231
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
232
+ <total_amount_in_cents type="integer">1400</total_amount_in_cents>
233
+ <activated_at type="datetime">2011-09-22T22:01:58Z</activated_at>
234
+ <canceled_at nil="true" type="datetime"></canceled_at>
235
+ <expires_at nil="true" type="datetime"></expires_at>
236
+ <current_period_started_at type="datetime">2011-09-22T22:01:58Z</current_period_started_at>
237
+ <current_period_ends_at type="datetime">2011-10-22T22:01:58Z</current_period_ends_at>
238
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
239
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
240
+ <add_ons type="array">
241
+ </add_ons>
242
+ </subscription>
243
+
244
+ http_version: "1.1"
245
+ - !ruby/struct:VCR::HTTPInteraction
246
+ request: !ruby/struct:VCR::Request
182
247
  method: :put
183
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
184
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <quantity
185
- type=\"integer\">2</quantity>\n <timeframe>now</timeframe>\n</subscription>\n"
186
- headers:
187
- user-agent:
188
- - Recurly Ruby Client v0.4.10
189
- content-type:
248
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
249
+ body: |
250
+ <?xml version="1.0" encoding="UTF-8"?>
251
+ <subscription>
252
+ <quantity type="integer">2</quantity>
253
+ <timeframe>now</timeframe>
254
+ </subscription>
255
+
256
+ headers:
257
+ user-agent:
258
+ - Recurly Ruby Client v0.4.13
259
+ content-type:
190
260
  - application/xml
191
- response: !ruby/struct:VCR::Response
192
- status: !ruby/struct:VCR::ResponseStatus
261
+ response: !ruby/struct:VCR::Response
262
+ status: !ruby/struct:VCR::ResponseStatus
193
263
  code: 200
194
264
  message: OK
195
- headers:
196
- content-type:
265
+ headers:
266
+ content-type:
197
267
  - application/xml; charset=utf-8
198
- etag:
199
- - ! '"a59e9a5402df602c97ab5c4588fb04ee"'
200
- cache-control:
268
+ etag:
269
+ - "\"1e7e0437e59b4b3d610641df0b672986\""
270
+ cache-control:
201
271
  - max-age=0, private, must-revalidate
202
- x-ua-compatible:
272
+ x-ua-compatible:
203
273
  - IE=Edge
204
- set-cookie:
205
- - _recurly_session=d91c23dd32f62f9fe33c3b891ef62495; domain=.lvh.me; path=/;
206
- HttpOnly
207
- server:
274
+ set-cookie:
275
+ - _recurly_session=d243f58fc4b03c62eb1920743dd0ba92; domain=.lvh.me; path=/; HttpOnly
276
+ server:
208
277
  - thin 1.2.11 codename Bat-Shit Crazy
209
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-change1-1296674173</id>\n
210
- \ <account_code>subscription-change1-1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
211
- \ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
212
- type=\"integer\">2</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
213
- \ <total_amount_in_cents type=\"integer\">2400</total_amount_in_cents>\n <activated_at
214
- type=\"datetime\">2011-08-19T20:02:09Z</activated_at>\n <canceled_at nil=\"true\"
215
- type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
216
- \ <current_period_started_at type=\"datetime\">2011-08-19T20:02:09Z</current_period_started_at>\n
217
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:09Z</current_period_ends_at>\n
218
- \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
219
- nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
220
- \ </add_ons>\n</subscription>\n"
221
- http_version: '1.1'
222
- - !ruby/struct:VCR::HTTPInteraction
223
- request: !ruby/struct:VCR::Request
278
+ body: |
279
+ <?xml version="1.0" encoding="UTF-8"?>
280
+ <subscription>
281
+ <id>subscription-change1-1296674173</id>
282
+ <account_code>subscription-change1-1296674173</account_code>
283
+ <plan>
284
+ <plan_code>paid</plan_code>
285
+ <name>paid</name>
286
+ </plan>
287
+ <state>active</state>
288
+ <quantity type="integer">2</quantity>
289
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
290
+ <total_amount_in_cents type="integer">2800</total_amount_in_cents>
291
+ <activated_at type="datetime">2011-09-22T22:01:58Z</activated_at>
292
+ <canceled_at nil="true" type="datetime"></canceled_at>
293
+ <expires_at nil="true" type="datetime"></expires_at>
294
+ <current_period_started_at type="datetime">2011-09-22T22:01:58Z</current_period_started_at>
295
+ <current_period_ends_at type="datetime">2011-10-22T22:01:58Z</current_period_ends_at>
296
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
297
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
298
+ <add_ons type="array">
299
+ </add_ons>
300
+ </subscription>
301
+
302
+ http_version: "1.1"
303
+ - !ruby/struct:VCR::HTTPInteraction
304
+ request: !ruby/struct:VCR::Request
224
305
  method: :get
225
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
226
- body: !!null
227
- headers:
228
- user-agent:
229
- - Recurly Ruby Client v0.4.10
230
- accept:
306
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/subscription-change1-1296674173/subscription.xml
307
+ body:
308
+ headers:
309
+ user-agent:
310
+ - Recurly Ruby Client v0.4.13
311
+ accept:
231
312
  - application/xml
232
- accept-encoding:
313
+ accept-encoding:
233
314
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
234
- response: !ruby/struct:VCR::Response
235
- status: !ruby/struct:VCR::ResponseStatus
315
+ response: !ruby/struct:VCR::Response
316
+ status: !ruby/struct:VCR::ResponseStatus
236
317
  code: 200
237
318
  message: OK
238
- headers:
239
- content-type:
319
+ headers:
320
+ content-type:
240
321
  - application/xml; charset=utf-8
241
- etag:
242
- - ! '"a59e9a5402df602c97ab5c4588fb04ee"'
243
- cache-control:
322
+ etag:
323
+ - "\"1e7e0437e59b4b3d610641df0b672986\""
324
+ cache-control:
244
325
  - max-age=0, private, must-revalidate
245
- x-ua-compatible:
326
+ x-ua-compatible:
246
327
  - IE=Edge
247
- set-cookie:
248
- - _recurly_session=85d829c4a2904ffcc5a80dbce1ce6bfc; domain=.lvh.me; path=/;
249
- HttpOnly
250
- server:
328
+ server:
251
329
  - thin 1.2.11 codename Bat-Shit Crazy
252
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<subscription>\n <id>subscription-change1-1296674173</id>\n
253
- \ <account_code>subscription-change1-1296674173</account_code>\n <plan>\n <plan_code>paid</plan_code>\n
254
- \ <name>Paid Plan</name>\n </plan>\n <state>active</state>\n <quantity
255
- type=\"integer\">2</quantity>\n <unit_amount_in_cents type=\"integer\">1200</unit_amount_in_cents>\n
256
- \ <total_amount_in_cents type=\"integer\">2400</total_amount_in_cents>\n <activated_at
257
- type=\"datetime\">2011-08-19T20:02:09Z</activated_at>\n <canceled_at nil=\"true\"
258
- type=\"datetime\"></canceled_at>\n <expires_at nil=\"true\" type=\"datetime\"></expires_at>\n
259
- \ <current_period_started_at type=\"datetime\">2011-08-19T20:02:09Z</current_period_started_at>\n
260
- \ <current_period_ends_at type=\"datetime\">2011-09-19T20:02:09Z</current_period_ends_at>\n
261
- \ <trial_started_at nil=\"true\" type=\"datetime\"></trial_started_at>\n <trial_ends_at
262
- nil=\"true\" type=\"datetime\"></trial_ends_at>\n <add_ons type=\"array\">\n
263
- \ </add_ons>\n</subscription>\n"
264
- http_version: '1.1'
330
+ body: |
331
+ <?xml version="1.0" encoding="UTF-8"?>
332
+ <subscription>
333
+ <id>subscription-change1-1296674173</id>
334
+ <account_code>subscription-change1-1296674173</account_code>
335
+ <plan>
336
+ <plan_code>paid</plan_code>
337
+ <name>paid</name>
338
+ </plan>
339
+ <state>active</state>
340
+ <quantity type="integer">2</quantity>
341
+ <unit_amount_in_cents type="integer">1400</unit_amount_in_cents>
342
+ <total_amount_in_cents type="integer">2800</total_amount_in_cents>
343
+ <activated_at type="datetime">2011-09-22T22:01:58Z</activated_at>
344
+ <canceled_at nil="true" type="datetime"></canceled_at>
345
+ <expires_at nil="true" type="datetime"></expires_at>
346
+ <current_period_started_at type="datetime">2011-09-22T22:01:58Z</current_period_started_at>
347
+ <current_period_ends_at type="datetime">2011-10-22T22:01:58Z</current_period_ends_at>
348
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
349
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
350
+ <add_ons type="array">
351
+ </add_ons>
352
+ </subscription>
353
+
354
+ http_version: "1.1"