recurly 0.3.2 → 0.3.3
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.
- data/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>subscription-refund-none-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/subscription-refund-none-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "825"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "347"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:06:04 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "603"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:24:03 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=2d1fcfa254c5a971cef7581c4387750d3bcda0a2f075a68b4dce4720cc098dcb301b02bb4ed47dcd29c6f8759d32a1ee18e7cf1151bd2d9fa83cc4c50b769856%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=f534344034ff8b7bf75437e56f8a4780; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>subscription-refund-
|
55
|
-
<account_code>subscription-refund-
|
56
|
+
<id>subscription-refund-none-1296674173</id>
|
57
|
+
<account_code>subscription-refund-none-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>0ba243b38ab740e7a3f87cfe32caff03</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:24:03Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,40 +71,42 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :get
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
|
73
75
|
body:
|
74
76
|
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
75
79
|
accept:
|
76
80
|
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
77
85
|
connection:
|
78
86
|
- close
|
79
|
-
authorization:
|
80
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
81
87
|
response: !ruby/struct:VCR::Response
|
82
88
|
status: !ruby/struct:VCR::ResponseStatus
|
83
89
|
code: 200
|
84
|
-
message: OK
|
90
|
+
message: "OK "
|
85
91
|
headers:
|
86
|
-
x-
|
87
|
-
-
|
88
|
-
etag:
|
89
|
-
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
90
|
-
connection:
|
91
|
-
- close
|
92
|
+
x-runtime:
|
93
|
+
- "68"
|
92
94
|
content-type:
|
93
95
|
- application/xml; charset=utf-8
|
94
|
-
|
95
|
-
- "
|
96
|
-
date:
|
97
|
-
- Sat, 08 Jan 2011 08:06:05 GMT
|
98
|
-
server:
|
99
|
-
- nginx/0.8.53
|
100
|
-
content-length:
|
101
|
-
- "1564"
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=513e230d45303008e2fa0e59fefee996; domain=.recurly.com; path=/; secure; HttpOnly
|
96
|
+
etag:
|
97
|
+
- "\"70b5c605373b1a4346a2d7ed46048dc4\""
|
104
98
|
cache-control:
|
105
99
|
- private, max-age=0, must-revalidate
|
100
|
+
content-length:
|
101
|
+
- "1150"
|
102
|
+
server:
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
|
+
date:
|
105
|
+
- Thu, 03 Feb 2011 22:24:05 GMT
|
106
|
+
connection:
|
107
|
+
- close
|
108
|
+
set-cookie:
|
109
|
+
- _recurly_session=36f422b6a2d7aad348ece9ad424366f8; domain=.recurly.local; path=/; HttpOnly
|
106
110
|
body: |
|
107
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
108
112
|
<plan>
|
@@ -111,7 +115,7 @@
|
|
111
115
|
<description></description>
|
112
116
|
<success_url></success_url>
|
113
117
|
<cancel_url></cancel_url>
|
114
|
-
<created_at type="datetime">
|
118
|
+
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
115
119
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
116
120
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
117
121
|
<plan_interval_length type="integer">1</plan_interval_length>
|
@@ -126,99 +130,89 @@
|
|
126
130
|
<plan_interval_unit>months</plan_interval_unit>
|
127
131
|
<trial_interval_length type="integer">0</trial_interval_length>
|
128
132
|
<trial_interval_unit>months</trial_interval_unit>
|
129
|
-
<created_at type="datetime">
|
133
|
+
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
130
134
|
</latest_version>
|
131
|
-
<add_ons type="collection">
|
132
|
-
<add_on>
|
133
|
-
<add_on_code>special</add_on_code>
|
134
|
-
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
135
|
-
<default_quantity>1</default_quantity>
|
136
|
-
</add_on>
|
137
|
-
<add_on>
|
138
|
-
<add_on_code>special2</add_on_code>
|
139
|
-
<default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
|
140
|
-
<default_quantity>1</default_quantity>
|
141
|
-
</add_on>
|
142
|
-
</add_ons>
|
143
135
|
</plan>
|
144
136
|
|
145
137
|
http_version: "1.1"
|
146
138
|
- !ruby/struct:VCR::HTTPInteraction
|
147
139
|
request: !ruby/struct:VCR::Request
|
148
140
|
method: :post
|
149
|
-
uri:
|
141
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-refund-none-1296674173/subscription.xml
|
150
142
|
body: |
|
151
143
|
<?xml version="1.0" encoding="UTF-8"?>
|
152
144
|
<subscription>
|
153
|
-
<quantity type="integer">1</quantity>
|
154
145
|
<plan-code>paid</plan-code>
|
146
|
+
<quantity type="integer">1</quantity>
|
155
147
|
<account>
|
156
|
-
<
|
157
|
-
<
|
158
|
-
<company-name>Recurly Ruby Gem</company-name>
|
159
|
-
<account-code>subscription-refund-full-1287455769</account-code>
|
160
|
-
<closed type="boolean">false</closed>
|
161
|
-
<username type="yaml" nil="true"></username>
|
162
|
-
<id>subscription-refund-full-1287455769</id>
|
148
|
+
<account-code>subscription-refund-none-1296674173</account-code>
|
149
|
+
<first-name>Verena</first-name>
|
163
150
|
<last-name>Test</last-name>
|
151
|
+
<email>verena@test.com</email>
|
152
|
+
<company-name>Recurly Ruby Gem</company-name>
|
164
153
|
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
+
<id>subscription-refund-none-1296674173</id>
|
155
|
+
<username type="yaml" nil="true"></username>
|
156
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
157
|
+
<closed type="boolean">false</closed>
|
158
|
+
<hosted-login-token>0ba243b38ab740e7a3f87cfe32caff03</hosted-login-token>
|
159
|
+
<created-at type="datetime">2011-02-03T22:24:03Z</created-at>
|
160
|
+
<state>active</state>
|
165
161
|
<billing-info>
|
166
162
|
<address1>123 Test St</address1>
|
167
163
|
<city>San Francisco</city>
|
164
|
+
<state>CA</state>
|
168
165
|
<zip>94115</zip>
|
169
166
|
<country>US</country>
|
170
167
|
<credit-card>
|
171
|
-
<number>
|
172
|
-
<month type="integer">1</month>
|
168
|
+
<number>4111111111111111</number>
|
173
169
|
<year type="integer">2012</year>
|
170
|
+
<month type="integer">2</month>
|
174
171
|
<verification-value>123</verification-value>
|
175
172
|
</credit-card>
|
176
|
-
<last-name>Test</last-name>
|
177
173
|
<first-name>Verena</first-name>
|
178
|
-
<
|
174
|
+
<last-name>Test</last-name>
|
179
175
|
</billing-info>
|
180
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
181
|
-
<state>active</state>
|
182
|
-
<email>verena@test.com</email>
|
183
|
-
<first-name>Verena</first-name>
|
184
176
|
</account>
|
185
177
|
</subscription>
|
186
178
|
|
187
179
|
headers:
|
180
|
+
authorization:
|
181
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
182
|
+
content-type:
|
183
|
+
- application/xml
|
188
184
|
accept:
|
189
185
|
- "*/*"
|
186
|
+
user-agent:
|
187
|
+
- Ruby
|
190
188
|
connection:
|
191
189
|
- close
|
192
|
-
content-type:
|
193
|
-
- application/xml
|
194
|
-
authorization:
|
195
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
196
190
|
response: !ruby/struct:VCR::Response
|
197
191
|
status: !ruby/struct:VCR::ResponseStatus
|
198
192
|
code: 201
|
199
|
-
message: Created
|
193
|
+
message: "Created "
|
200
194
|
headers:
|
201
|
-
|
202
|
-
-
|
195
|
+
cache-control:
|
196
|
+
- no-cache
|
197
|
+
x-runtime:
|
198
|
+
- "4493"
|
203
199
|
content-type:
|
204
200
|
- application/xml; charset=utf-8
|
205
|
-
x-runtime:
|
206
|
-
- "480"
|
207
|
-
date:
|
208
|
-
- Sat, 08 Jan 2011 08:06:06 GMT
|
209
|
-
server:
|
210
|
-
- nginx/0.8.53
|
211
201
|
content-length:
|
212
202
|
- "918"
|
203
|
+
server:
|
204
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
205
|
+
date:
|
206
|
+
- Thu, 03 Feb 2011 22:24:12 GMT
|
207
|
+
connection:
|
208
|
+
- close
|
213
209
|
set-cookie:
|
214
|
-
- _recurly_session=
|
215
|
-
cache-control:
|
216
|
-
- no-cache
|
210
|
+
- _recurly_session=b0b8927d0795db1cb5a89c7433f785c9; domain=.recurly.local; path=/; HttpOnly
|
217
211
|
body: |
|
218
212
|
<?xml version="1.0" encoding="UTF-8"?>
|
219
213
|
<subscription>
|
220
|
-
<id>subscription-refund-
|
221
|
-
<account_code>subscription-refund-
|
214
|
+
<id>subscription-refund-none-1296674173</id>
|
215
|
+
<account_code>subscription-refund-none-1296674173</account_code>
|
222
216
|
<plan>
|
223
217
|
<plan_code>paid</plan_code>
|
224
218
|
<name>Paid</name>
|
@@ -226,11 +220,11 @@
|
|
226
220
|
<state>active</state>
|
227
221
|
<quantity type="integer">1</quantity>
|
228
222
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
229
|
-
<activated_at type="datetime">2011-
|
223
|
+
<activated_at type="datetime">2011-02-03T22:24:08Z</activated_at>
|
230
224
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
231
225
|
<expires_at nil="true" type="datetime"></expires_at>
|
232
|
-
<current_period_started_at type="datetime">2011-
|
233
|
-
<current_period_ends_at type="datetime">2011-
|
226
|
+
<current_period_started_at type="datetime">2011-02-03T22:24:08Z</current_period_started_at>
|
227
|
+
<current_period_ends_at type="datetime">2011-03-03T22:24:08Z</current_period_ends_at>
|
234
228
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
235
229
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
230
|
<add_ons type="array">
|
@@ -241,45 +235,47 @@
|
|
241
235
|
- !ruby/struct:VCR::HTTPInteraction
|
242
236
|
request: !ruby/struct:VCR::Request
|
243
237
|
method: :get
|
244
|
-
uri:
|
238
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-refund-none-1296674173/subscription.xml
|
245
239
|
body:
|
246
240
|
headers:
|
241
|
+
authorization:
|
242
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
247
243
|
accept:
|
248
244
|
- application/xml
|
245
|
+
accept-encoding:
|
246
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
247
|
+
user-agent:
|
248
|
+
- Ruby
|
249
249
|
connection:
|
250
250
|
- close
|
251
|
-
authorization:
|
252
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
253
251
|
response: !ruby/struct:VCR::Response
|
254
252
|
status: !ruby/struct:VCR::ResponseStatus
|
255
253
|
code: 200
|
256
|
-
message: OK
|
254
|
+
message: "OK "
|
257
255
|
headers:
|
258
|
-
x-
|
259
|
-
-
|
260
|
-
etag:
|
261
|
-
- "\"084101ebdc1a8ef77942ed702d9e8cd3\""
|
262
|
-
connection:
|
263
|
-
- close
|
256
|
+
x-runtime:
|
257
|
+
- "270"
|
264
258
|
content-type:
|
265
259
|
- application/xml; charset=utf-8
|
266
|
-
|
267
|
-
- "
|
268
|
-
|
269
|
-
-
|
270
|
-
server:
|
271
|
-
- nginx/0.8.53
|
260
|
+
etag:
|
261
|
+
- "\"12b184ad75c06611be557ace4d106d54\""
|
262
|
+
cache-control:
|
263
|
+
- private, max-age=0, must-revalidate
|
272
264
|
content-length:
|
273
265
|
- "918"
|
266
|
+
server:
|
267
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
268
|
+
date:
|
269
|
+
- Thu, 03 Feb 2011 22:24:14 GMT
|
270
|
+
connection:
|
271
|
+
- close
|
274
272
|
set-cookie:
|
275
|
-
- _recurly_session=
|
276
|
-
cache-control:
|
277
|
-
- private, max-age=0, must-revalidate
|
273
|
+
- _recurly_session=5e6db5558213c86999e2cb376196a204; domain=.recurly.local; path=/; HttpOnly
|
278
274
|
body: |
|
279
275
|
<?xml version="1.0" encoding="UTF-8"?>
|
280
276
|
<subscription>
|
281
|
-
<id>subscription-refund-
|
282
|
-
<account_code>subscription-refund-
|
277
|
+
<id>subscription-refund-none-1296674173</id>
|
278
|
+
<account_code>subscription-refund-none-1296674173</account_code>
|
283
279
|
<plan>
|
284
280
|
<plan_code>paid</plan_code>
|
285
281
|
<name>Paid</name>
|
@@ -287,11 +283,11 @@
|
|
287
283
|
<state>active</state>
|
288
284
|
<quantity type="integer">1</quantity>
|
289
285
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
290
|
-
<activated_at type="datetime">2011-
|
286
|
+
<activated_at type="datetime">2011-02-03T22:24:08Z</activated_at>
|
291
287
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
292
288
|
<expires_at nil="true" type="datetime"></expires_at>
|
293
|
-
<current_period_started_at type="datetime">2011-
|
294
|
-
<current_period_ends_at type="datetime">2011-
|
289
|
+
<current_period_started_at type="datetime">2011-02-03T22:24:08Z</current_period_started_at>
|
290
|
+
<current_period_ends_at type="datetime">2011-03-03T22:24:08Z</current_period_ends_at>
|
295
291
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
296
292
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
293
|
<add_ons type="array">
|
@@ -302,45 +298,45 @@
|
|
302
298
|
- !ruby/struct:VCR::HTTPInteraction
|
303
299
|
request: !ruby/struct:VCR::Request
|
304
300
|
method: :delete
|
305
|
-
uri:
|
301
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-refund-none-1296674173/subscription.xml?refund=none
|
306
302
|
body:
|
307
303
|
headers:
|
304
|
+
authorization:
|
305
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
308
306
|
accept:
|
309
307
|
- application/xml
|
308
|
+
user-agent:
|
309
|
+
- Ruby
|
310
310
|
connection:
|
311
311
|
- close
|
312
|
-
authorization:
|
313
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
314
312
|
response: !ruby/struct:VCR::Response
|
315
313
|
status: !ruby/struct:VCR::ResponseStatus
|
316
314
|
code: 200
|
317
|
-
message: OK
|
315
|
+
message: "OK "
|
318
316
|
headers:
|
319
|
-
x-
|
320
|
-
-
|
321
|
-
etag:
|
322
|
-
- "\"0cbcc66d5a99e3fe71feb5f980e0db64\""
|
323
|
-
connection:
|
324
|
-
- close
|
317
|
+
x-runtime:
|
318
|
+
- "2348"
|
325
319
|
content-type:
|
326
320
|
- application/xml; charset=utf-8
|
327
|
-
|
328
|
-
- "
|
329
|
-
|
330
|
-
-
|
331
|
-
server:
|
332
|
-
- nginx/0.8.53
|
321
|
+
etag:
|
322
|
+
- "\"b6ed0db538094554258919d3a077e5c8\""
|
323
|
+
cache-control:
|
324
|
+
- private, max-age=0, must-revalidate
|
333
325
|
content-length:
|
334
326
|
- "937"
|
327
|
+
server:
|
328
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
329
|
+
date:
|
330
|
+
- Thu, 03 Feb 2011 22:24:18 GMT
|
331
|
+
connection:
|
332
|
+
- close
|
335
333
|
set-cookie:
|
336
|
-
- _recurly_session=
|
337
|
-
cache-control:
|
338
|
-
- private, max-age=0, must-revalidate
|
334
|
+
- _recurly_session=26ac79ed40509246a1c942563b8b6a97; domain=.recurly.local; path=/; HttpOnly
|
339
335
|
body: |
|
340
336
|
<?xml version="1.0" encoding="UTF-8"?>
|
341
337
|
<subscription>
|
342
|
-
<id>subscription-refund-
|
343
|
-
<account_code>subscription-refund-
|
338
|
+
<id>subscription-refund-none-1296674173</id>
|
339
|
+
<account_code>subscription-refund-none-1296674173</account_code>
|
344
340
|
<plan>
|
345
341
|
<plan_code>paid</plan_code>
|
346
342
|
<name>Paid</name>
|
@@ -348,11 +344,11 @@
|
|
348
344
|
<state>expired</state>
|
349
345
|
<quantity type="integer">1</quantity>
|
350
346
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
351
|
-
<activated_at type="datetime">2011-
|
352
|
-
<canceled_at type="datetime">2011-
|
353
|
-
<expires_at type="datetime">2011-
|
354
|
-
<current_period_started_at type="datetime">2011-
|
355
|
-
<current_period_ends_at type="datetime">2011-
|
347
|
+
<activated_at type="datetime">2011-02-03T22:24:08Z</activated_at>
|
348
|
+
<canceled_at type="datetime">2011-02-03T22:24:16Z</canceled_at>
|
349
|
+
<expires_at type="datetime">2011-03-03T22:24:08Z</expires_at>
|
350
|
+
<current_period_started_at type="datetime">2011-02-03T22:24:08Z</current_period_started_at>
|
351
|
+
<current_period_ends_at type="datetime">2011-03-03T22:24:08Z</current_period_ends_at>
|
356
352
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
357
353
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
354
|
<add_ons type="array">
|
@@ -363,34 +359,38 @@
|
|
363
359
|
- !ruby/struct:VCR::HTTPInteraction
|
364
360
|
request: !ruby/struct:VCR::Request
|
365
361
|
method: :get
|
366
|
-
uri:
|
362
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-refund-none-1296674173/subscription.xml
|
367
363
|
body:
|
368
364
|
headers:
|
365
|
+
authorization:
|
366
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
369
367
|
accept:
|
370
368
|
- application/xml
|
369
|
+
accept-encoding:
|
370
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
371
|
+
user-agent:
|
372
|
+
- Ruby
|
371
373
|
connection:
|
372
374
|
- close
|
373
|
-
authorization:
|
374
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
375
375
|
response: !ruby/struct:VCR::Response
|
376
376
|
status: !ruby/struct:VCR::ResponseStatus
|
377
377
|
code: 404
|
378
|
-
message: Not Found
|
378
|
+
message: "Not Found "
|
379
379
|
headers:
|
380
|
-
|
381
|
-
-
|
380
|
+
cache-control:
|
381
|
+
- no-cache
|
382
382
|
content-type:
|
383
383
|
- application/xml; charset=utf-8
|
384
|
-
date:
|
385
|
-
- Sat, 08 Jan 2011 08:06:09 GMT
|
386
|
-
server:
|
387
|
-
- nginx/0.8.53
|
388
384
|
content-length:
|
389
385
|
- "98"
|
386
|
+
server:
|
387
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
388
|
+
date:
|
389
|
+
- Thu, 03 Feb 2011 22:24:20 GMT
|
390
|
+
connection:
|
391
|
+
- close
|
390
392
|
set-cookie:
|
391
|
-
- _recurly_session=
|
392
|
-
cache-control:
|
393
|
-
- no-cache
|
393
|
+
- _recurly_session=5c41918c0d7c487ed9258876437e2d1f; domain=.recurly.local; path=/; HttpOnly
|
394
394
|
body: |
|
395
395
|
<?xml version="1.0" encoding="UTF-8"?>
|
396
396
|
<errors>
|