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>charge-delete-uinvoiced-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
|
-
|
19
|
-
-
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
20
|
content-type:
|
21
21
|
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
22
26
|
connection:
|
23
27
|
- close
|
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
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "612"
|
33
39
|
content-type:
|
34
40
|
- application/xml; charset=utf-8
|
35
|
-
connection:
|
36
|
-
- close
|
37
|
-
server:
|
38
|
-
- nginx/0.8.53
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:26 GMT
|
41
|
-
x-runtime:
|
42
|
-
- "354"
|
43
41
|
content-length:
|
44
42
|
- "601"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:19:08 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=67c52e2238a94f049ce9067dd0e5e40155d98b8b736ff5b50d2eff0d94c39f046aad16baddac437ac3e9048cf15c3c362a523413d1bd04004458952e65640421%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=bf44f7b5ddd11b8752428837ce3ed346; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>charge-delete-uinvoiced-
|
55
|
-
<account_code>charge-delete-uinvoiced-
|
56
|
+
<id>charge-delete-uinvoiced-1296674173</id>
|
57
|
+
<account_code>charge-delete-uinvoiced-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>501b55e9573f462d9a65f899d7ca02f4</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:08Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,7 +71,7 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :post
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<charge>
|
@@ -78,168 +80,176 @@
|
|
78
80
|
</charge>
|
79
81
|
|
80
82
|
headers:
|
81
|
-
|
82
|
-
-
|
83
|
+
authorization:
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
83
85
|
content-type:
|
84
86
|
- application/xml
|
87
|
+
accept:
|
88
|
+
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
85
91
|
connection:
|
86
92
|
- close
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
93
|
response: !ruby/struct:VCR::Response
|
90
94
|
status: !ruby/struct:VCR::ResponseStatus
|
91
95
|
code: 201
|
92
|
-
message: Created
|
96
|
+
message: "Created "
|
93
97
|
headers:
|
98
|
+
cache-control:
|
99
|
+
- no-cache
|
100
|
+
x-runtime:
|
101
|
+
- "423"
|
94
102
|
content-type:
|
95
103
|
- application/xml; charset=utf-8
|
96
|
-
connection:
|
97
|
-
- close
|
98
|
-
server:
|
99
|
-
- nginx/0.8.53
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:27 GMT
|
102
|
-
x-runtime:
|
103
|
-
- "119"
|
104
104
|
content-length:
|
105
105
|
- "527"
|
106
|
+
server:
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
+
date:
|
109
|
+
- Thu, 03 Feb 2011 22:19:10 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
106
112
|
set-cookie:
|
107
|
-
- _recurly_session=
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
113
|
+
- _recurly_session=0e4d67aae671c0a295a3135409cbe0b2; domain=.recurly.local; path=/; HttpOnly
|
110
114
|
body: |
|
111
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
116
|
<charge type="charge">
|
113
|
-
<id>
|
114
|
-
<account_code>charge-delete-uinvoiced-
|
117
|
+
<id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
|
118
|
+
<account_code>charge-delete-uinvoiced-1296674173</account_code>
|
115
119
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-
|
120
|
+
<start_date type="datetime">2011-02-03T22:19:10Z</start_date>
|
117
121
|
<end_date nil="true" type="datetime"></end_date>
|
118
122
|
<invoice_number nil="true" type="integer"></invoice_number>
|
119
123
|
<description>inconvenience fee</description>
|
120
|
-
<created_at type="datetime">2011-
|
124
|
+
<created_at type="datetime">2011-02-03T22:19:10Z</created_at>
|
121
125
|
</charge>
|
122
126
|
|
123
127
|
http_version: "1.1"
|
124
128
|
- !ruby/struct:VCR::HTTPInteraction
|
125
129
|
request: !ruby/struct:VCR::Request
|
126
130
|
method: :get
|
127
|
-
uri:
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
|
128
132
|
body:
|
129
133
|
headers:
|
134
|
+
authorization:
|
135
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
130
136
|
accept:
|
131
137
|
- application/xml
|
138
|
+
accept-encoding:
|
139
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
|
+
user-agent:
|
141
|
+
- Ruby
|
132
142
|
connection:
|
133
143
|
- close
|
134
|
-
authorization:
|
135
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
136
144
|
response: !ruby/struct:VCR::Response
|
137
145
|
status: !ruby/struct:VCR::ResponseStatus
|
138
146
|
code: 200
|
139
|
-
message: OK
|
147
|
+
message: "OK "
|
140
148
|
headers:
|
141
|
-
x-
|
142
|
-
-
|
143
|
-
etag:
|
144
|
-
- "\"b78611f58365b8d13382b8044ba82a67\""
|
149
|
+
x-runtime:
|
150
|
+
- "192"
|
145
151
|
content-type:
|
146
152
|
- application/xml; charset=utf-8
|
147
|
-
|
148
|
-
-
|
149
|
-
|
150
|
-
-
|
151
|
-
date:
|
152
|
-
- Sat, 08 Jan 2011 08:04:28 GMT
|
153
|
-
x-runtime:
|
154
|
-
- "14"
|
153
|
+
etag:
|
154
|
+
- "\"293c3c813870537a99089933db7fc977\""
|
155
|
+
cache-control:
|
156
|
+
- private, max-age=0, must-revalidate
|
155
157
|
content-length:
|
156
158
|
- "527"
|
159
|
+
server:
|
160
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
161
|
+
date:
|
162
|
+
- Thu, 03 Feb 2011 22:19:12 GMT
|
163
|
+
connection:
|
164
|
+
- close
|
157
165
|
set-cookie:
|
158
|
-
- _recurly_session=
|
159
|
-
cache-control:
|
160
|
-
- private, max-age=0, must-revalidate
|
166
|
+
- _recurly_session=192c6d2a2bdcfecc85d05b0829c9bf1c; domain=.recurly.local; path=/; HttpOnly
|
161
167
|
body: |
|
162
168
|
<?xml version="1.0" encoding="UTF-8"?>
|
163
169
|
<charge type="charge">
|
164
|
-
<id>
|
165
|
-
<account_code>charge-delete-uinvoiced-
|
170
|
+
<id>7f2acc12bc5b43d08bcf779ea97fd6fd</id>
|
171
|
+
<account_code>charge-delete-uinvoiced-1296674173</account_code>
|
166
172
|
<amount_in_cents type="integer">1315</amount_in_cents>
|
167
|
-
<start_date type="datetime">2011-
|
173
|
+
<start_date type="datetime">2011-02-03T22:19:10Z</start_date>
|
168
174
|
<end_date nil="true" type="datetime"></end_date>
|
169
175
|
<invoice_number nil="true" type="integer"></invoice_number>
|
170
176
|
<description>inconvenience fee</description>
|
171
|
-
<created_at type="datetime">2011-
|
177
|
+
<created_at type="datetime">2011-02-03T22:19:10Z</created_at>
|
172
178
|
</charge>
|
173
179
|
|
174
180
|
http_version: "1.1"
|
175
181
|
- !ruby/struct:VCR::HTTPInteraction
|
176
182
|
request: !ruby/struct:VCR::Request
|
177
183
|
method: :delete
|
178
|
-
uri:
|
184
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
|
179
185
|
body:
|
180
186
|
headers:
|
187
|
+
authorization:
|
188
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
181
189
|
accept:
|
182
190
|
- application/xml
|
191
|
+
user-agent:
|
192
|
+
- Ruby
|
183
193
|
connection:
|
184
194
|
- close
|
185
|
-
authorization:
|
186
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
187
195
|
response: !ruby/struct:VCR::Response
|
188
196
|
status: !ruby/struct:VCR::ResponseStatus
|
189
197
|
code: 200
|
190
|
-
message: OK
|
198
|
+
message: "OK "
|
191
199
|
headers:
|
192
|
-
|
193
|
-
-
|
200
|
+
cache-control:
|
201
|
+
- no-cache
|
202
|
+
x-runtime:
|
203
|
+
- "400"
|
194
204
|
content-type:
|
195
205
|
- application/xml; charset=utf-8
|
196
|
-
connection:
|
197
|
-
- close
|
198
|
-
server:
|
199
|
-
- nginx/0.8.53
|
200
|
-
date:
|
201
|
-
- Sat, 08 Jan 2011 08:04:29 GMT
|
202
|
-
x-runtime:
|
203
|
-
- "44"
|
204
206
|
content-length:
|
205
207
|
- "1"
|
208
|
+
server:
|
209
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
210
|
+
date:
|
211
|
+
- Thu, 03 Feb 2011 22:19:14 GMT
|
212
|
+
connection:
|
213
|
+
- close
|
206
214
|
set-cookie:
|
207
|
-
- _recurly_session=
|
208
|
-
cache-control:
|
209
|
-
- no-cache
|
215
|
+
- _recurly_session=6130797c0f8bfd1f9e8d88925e921fce; domain=.recurly.local; path=/; HttpOnly
|
210
216
|
body: " "
|
211
217
|
http_version: "1.1"
|
212
218
|
- !ruby/struct:VCR::HTTPInteraction
|
213
219
|
request: !ruby/struct:VCR::Request
|
214
220
|
method: :get
|
215
|
-
uri:
|
221
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/charges/7f2acc12bc5b43d08bcf779ea97fd6fd.xml
|
216
222
|
body:
|
217
223
|
headers:
|
224
|
+
authorization:
|
225
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
218
226
|
accept:
|
219
227
|
- application/xml
|
228
|
+
accept-encoding:
|
229
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
230
|
+
user-agent:
|
231
|
+
- Ruby
|
220
232
|
connection:
|
221
233
|
- close
|
222
|
-
authorization:
|
223
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
224
234
|
response: !ruby/struct:VCR::Response
|
225
235
|
status: !ruby/struct:VCR::ResponseStatus
|
226
236
|
code: 404
|
227
|
-
message: Not Found
|
237
|
+
message: "Not Found "
|
228
238
|
headers:
|
239
|
+
cache-control:
|
240
|
+
- no-cache
|
229
241
|
content-type:
|
230
242
|
- application/xml; charset=utf-8
|
231
|
-
connection:
|
232
|
-
- close
|
233
|
-
server:
|
234
|
-
- nginx/0.8.53
|
235
|
-
date:
|
236
|
-
- Sat, 08 Jan 2011 08:04:29 GMT
|
237
243
|
content-length:
|
238
244
|
- "92"
|
245
|
+
server:
|
246
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
247
|
+
date:
|
248
|
+
- Thu, 03 Feb 2011 22:19:16 GMT
|
249
|
+
connection:
|
250
|
+
- close
|
239
251
|
set-cookie:
|
240
|
-
- _recurly_session=
|
241
|
-
cache-control:
|
242
|
-
- no-cache
|
252
|
+
- _recurly_session=39b21e6b931a36d5c4f58fe12159b30b; domain=.recurly.local; path=/; HttpOnly
|
243
253
|
body: |
|
244
254
|
<?xml version="1.0" encoding="UTF-8"?>
|
245
255
|
<errors>
|
@@ -250,42 +260,44 @@
|
|
250
260
|
- !ruby/struct:VCR::HTTPInteraction
|
251
261
|
request: !ruby/struct:VCR::Request
|
252
262
|
method: :post
|
253
|
-
uri:
|
263
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-delete-uinvoiced-1296674173/invoices.xml
|
254
264
|
body: |
|
255
265
|
<?xml version="1.0" encoding="UTF-8"?>
|
256
266
|
<invoice>
|
257
267
|
</invoice>
|
258
268
|
|
259
269
|
headers:
|
270
|
+
authorization:
|
271
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
272
|
+
content-type:
|
273
|
+
- application/xml
|
260
274
|
accept:
|
261
275
|
- "*/*"
|
276
|
+
user-agent:
|
277
|
+
- Ruby
|
262
278
|
connection:
|
263
279
|
- close
|
264
|
-
content-type:
|
265
|
-
- application/xml
|
266
|
-
authorization:
|
267
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
268
280
|
response: !ruby/struct:VCR::Response
|
269
281
|
status: !ruby/struct:VCR::ResponseStatus
|
270
282
|
code: 422
|
271
283
|
message: ""
|
272
284
|
headers:
|
273
|
-
|
274
|
-
-
|
285
|
+
cache-control:
|
286
|
+
- no-cache
|
287
|
+
x-runtime:
|
288
|
+
- "53"
|
275
289
|
content-type:
|
276
290
|
- application/xml; charset=utf-8
|
277
|
-
x-runtime:
|
278
|
-
- "12"
|
279
|
-
date:
|
280
|
-
- Sat, 08 Jan 2011 08:04:30 GMT
|
281
|
-
server:
|
282
|
-
- nginx/0.8.53
|
283
291
|
content-length:
|
284
292
|
- "98"
|
293
|
+
server:
|
294
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
295
|
+
date:
|
296
|
+
- Thu, 03 Feb 2011 22:19:18 GMT
|
297
|
+
connection:
|
298
|
+
- close
|
285
299
|
set-cookie:
|
286
|
-
- _recurly_session=
|
287
|
-
cache-control:
|
288
|
-
- no-cache
|
300
|
+
- _recurly_session=c1278f0d4182588ca84fac1777a95e87; domain=.recurly.local; path=/; HttpOnly
|
289
301
|
body: |
|
290
302
|
<?xml version="1.0" encoding="UTF-8"?>
|
291
303
|
<errors>
|
@@ -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>charge-list-all-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/charge-list-all-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "584"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "347"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:02 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "585"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:18:14 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=46c62bf884c90f7de1505e10fd730db5e351ad264ffdb46477c4374c36122b2ac1fad5f0c83808d86ae0c1a532c4d950dad8473dbd48c82a1e6c7807a44a7c1d%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=a7db7b9987b5b28e622c7d5acda24499; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>charge-list-all-
|
55
|
-
<account_code>charge-list-all-
|
56
|
+
<id>charge-list-all-1296674173</id>
|
57
|
+
<account_code>charge-list-all-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>9875f451d6494d24a349d5ca6f39d468</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:14Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,7 +71,7 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :post
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<charge>
|
@@ -78,53 +80,55 @@
|
|
78
80
|
</charge>
|
79
81
|
|
80
82
|
headers:
|
83
|
+
authorization:
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
+
content-type:
|
86
|
+
- application/xml
|
81
87
|
accept:
|
82
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
83
91
|
connection:
|
84
92
|
- close
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
93
|
response: !ruby/struct:VCR::Response
|
90
94
|
status: !ruby/struct:VCR::ResponseStatus
|
91
95
|
code: 201
|
92
|
-
message: Created
|
96
|
+
message: "Created "
|
93
97
|
headers:
|
94
|
-
|
95
|
-
-
|
98
|
+
cache-control:
|
99
|
+
- no-cache
|
100
|
+
x-runtime:
|
101
|
+
- "412"
|
96
102
|
content-type:
|
97
103
|
- application/xml; charset=utf-8
|
98
|
-
x-runtime:
|
99
|
-
- "46"
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:03 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
104
|
content-length:
|
105
105
|
- "520"
|
106
|
+
server:
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
+
date:
|
109
|
+
- Thu, 03 Feb 2011 22:18:16 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
106
112
|
set-cookie:
|
107
|
-
- _recurly_session=
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
113
|
+
- _recurly_session=ad6b1b152a840aaf19b61039e633aff8; domain=.recurly.local; path=/; HttpOnly
|
110
114
|
body: |
|
111
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
116
|
<charge type="charge">
|
113
|
-
<id>
|
114
|
-
<account_code>charge-list-all-
|
117
|
+
<id>e0891709cf1041298754ba1212aa3d39</id>
|
118
|
+
<account_code>charge-list-all-1296674173</account_code>
|
115
119
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-
|
120
|
+
<start_date type="datetime">2011-02-03T22:18:15Z</start_date>
|
117
121
|
<end_date nil="true" type="datetime"></end_date>
|
118
122
|
<invoice_number nil="true" type="integer"></invoice_number>
|
119
123
|
<description>charge description</description>
|
120
|
-
<created_at type="datetime">2011-
|
124
|
+
<created_at type="datetime">2011-02-03T22:18:15Z</created_at>
|
121
125
|
</charge>
|
122
126
|
|
123
127
|
http_version: "1.1"
|
124
128
|
- !ruby/struct:VCR::HTTPInteraction
|
125
129
|
request: !ruby/struct:VCR::Request
|
126
130
|
method: :post
|
127
|
-
uri:
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
|
128
132
|
body: |
|
129
133
|
<?xml version="1.0" encoding="UTF-8"?>
|
130
134
|
<charge>
|
@@ -133,53 +137,55 @@
|
|
133
137
|
</charge>
|
134
138
|
|
135
139
|
headers:
|
140
|
+
authorization:
|
141
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
142
|
+
content-type:
|
143
|
+
- application/xml
|
136
144
|
accept:
|
137
145
|
- "*/*"
|
146
|
+
user-agent:
|
147
|
+
- Ruby
|
138
148
|
connection:
|
139
149
|
- close
|
140
|
-
content-type:
|
141
|
-
- application/xml
|
142
|
-
authorization:
|
143
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
144
150
|
response: !ruby/struct:VCR::Response
|
145
151
|
status: !ruby/struct:VCR::ResponseStatus
|
146
152
|
code: 201
|
147
|
-
message: Created
|
153
|
+
message: "Created "
|
148
154
|
headers:
|
149
|
-
|
150
|
-
-
|
155
|
+
cache-control:
|
156
|
+
- no-cache
|
157
|
+
x-runtime:
|
158
|
+
- "397"
|
151
159
|
content-type:
|
152
160
|
- application/xml; charset=utf-8
|
153
|
-
x-runtime:
|
154
|
-
- "48"
|
155
|
-
date:
|
156
|
-
- Sat, 08 Jan 2011 08:04:03 GMT
|
157
|
-
server:
|
158
|
-
- nginx/0.8.53
|
159
161
|
content-length:
|
160
162
|
- "520"
|
163
|
+
server:
|
164
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
165
|
+
date:
|
166
|
+
- Thu, 03 Feb 2011 22:18:18 GMT
|
167
|
+
connection:
|
168
|
+
- close
|
161
169
|
set-cookie:
|
162
|
-
- _recurly_session=
|
163
|
-
cache-control:
|
164
|
-
- no-cache
|
170
|
+
- _recurly_session=94bc7acf0b1e113247d80cf356538fc2; domain=.recurly.local; path=/; HttpOnly
|
165
171
|
body: |
|
166
172
|
<?xml version="1.0" encoding="UTF-8"?>
|
167
173
|
<charge type="charge">
|
168
|
-
<id>
|
169
|
-
<account_code>charge-list-all-
|
174
|
+
<id>088a6c2fc44b4c3fb530518d1bff639e</id>
|
175
|
+
<account_code>charge-list-all-1296674173</account_code>
|
170
176
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
171
|
-
<start_date type="datetime">2011-
|
177
|
+
<start_date type="datetime">2011-02-03T22:18:17Z</start_date>
|
172
178
|
<end_date nil="true" type="datetime"></end_date>
|
173
179
|
<invoice_number nil="true" type="integer"></invoice_number>
|
174
180
|
<description>charge description</description>
|
175
|
-
<created_at type="datetime">2011-
|
181
|
+
<created_at type="datetime">2011-02-03T22:18:18Z</created_at>
|
176
182
|
</charge>
|
177
183
|
|
178
184
|
http_version: "1.1"
|
179
185
|
- !ruby/struct:VCR::HTTPInteraction
|
180
186
|
request: !ruby/struct:VCR::Request
|
181
187
|
method: :post
|
182
|
-
uri:
|
188
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
|
183
189
|
body: |
|
184
190
|
<?xml version="1.0" encoding="UTF-8"?>
|
185
191
|
<charge>
|
@@ -188,118 +194,122 @@
|
|
188
194
|
</charge>
|
189
195
|
|
190
196
|
headers:
|
197
|
+
authorization:
|
198
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
199
|
+
content-type:
|
200
|
+
- application/xml
|
191
201
|
accept:
|
192
202
|
- "*/*"
|
203
|
+
user-agent:
|
204
|
+
- Ruby
|
193
205
|
connection:
|
194
206
|
- close
|
195
|
-
content-type:
|
196
|
-
- application/xml
|
197
|
-
authorization:
|
198
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
199
207
|
response: !ruby/struct:VCR::Response
|
200
208
|
status: !ruby/struct:VCR::ResponseStatus
|
201
209
|
code: 201
|
202
|
-
message: Created
|
210
|
+
message: "Created "
|
203
211
|
headers:
|
204
|
-
|
205
|
-
-
|
212
|
+
cache-control:
|
213
|
+
- no-cache
|
214
|
+
x-runtime:
|
215
|
+
- "399"
|
206
216
|
content-type:
|
207
217
|
- application/xml; charset=utf-8
|
208
|
-
x-runtime:
|
209
|
-
- "46"
|
210
|
-
date:
|
211
|
-
- Sat, 08 Jan 2011 08:04:04 GMT
|
212
|
-
server:
|
213
|
-
- nginx/0.8.53
|
214
218
|
content-length:
|
215
219
|
- "520"
|
220
|
+
server:
|
221
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
222
|
+
date:
|
223
|
+
- Thu, 03 Feb 2011 22:18:20 GMT
|
224
|
+
connection:
|
225
|
+
- close
|
216
226
|
set-cookie:
|
217
|
-
- _recurly_session=
|
218
|
-
cache-control:
|
219
|
-
- no-cache
|
227
|
+
- _recurly_session=e3c9bfbe1820d82b4cad61c8c9b5a0a9; domain=.recurly.local; path=/; HttpOnly
|
220
228
|
body: |
|
221
229
|
<?xml version="1.0" encoding="UTF-8"?>
|
222
230
|
<charge type="charge">
|
223
|
-
<id>
|
224
|
-
<account_code>charge-list-all-
|
231
|
+
<id>e83ca6220d694443852943b682f7eda9</id>
|
232
|
+
<account_code>charge-list-all-1296674173</account_code>
|
225
233
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
226
|
-
<start_date type="datetime">2011-
|
234
|
+
<start_date type="datetime">2011-02-03T22:18:20Z</start_date>
|
227
235
|
<end_date nil="true" type="datetime"></end_date>
|
228
236
|
<invoice_number nil="true" type="integer"></invoice_number>
|
229
237
|
<description>charge description</description>
|
230
|
-
<created_at type="datetime">2011-
|
238
|
+
<created_at type="datetime">2011-02-03T22:18:20Z</created_at>
|
231
239
|
</charge>
|
232
240
|
|
233
241
|
http_version: "1.1"
|
234
242
|
- !ruby/struct:VCR::HTTPInteraction
|
235
243
|
request: !ruby/struct:VCR::Request
|
236
244
|
method: :get
|
237
|
-
uri:
|
245
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/charge-list-all-1296674173/charges.xml
|
238
246
|
body:
|
239
247
|
headers:
|
248
|
+
authorization:
|
249
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
240
250
|
accept:
|
241
251
|
- application/xml
|
252
|
+
accept-encoding:
|
253
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
254
|
+
user-agent:
|
255
|
+
- Ruby
|
242
256
|
connection:
|
243
257
|
- close
|
244
|
-
authorization:
|
245
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
246
258
|
response: !ruby/struct:VCR::Response
|
247
259
|
status: !ruby/struct:VCR::ResponseStatus
|
248
260
|
code: 200
|
249
|
-
message: OK
|
261
|
+
message: "OK "
|
250
262
|
headers:
|
251
|
-
x-
|
252
|
-
-
|
253
|
-
etag:
|
254
|
-
- "\"054fb4d031c320bb24a234a654c27a5c\""
|
255
|
-
connection:
|
256
|
-
- close
|
263
|
+
x-runtime:
|
264
|
+
- "75"
|
257
265
|
content-type:
|
258
266
|
- application/xml; charset=utf-8
|
259
|
-
|
260
|
-
- "
|
261
|
-
|
262
|
-
-
|
263
|
-
server:
|
264
|
-
- nginx/0.8.53
|
267
|
+
etag:
|
268
|
+
- "\"c578f5f32688fc3bd46bd29630a6e05a\""
|
269
|
+
cache-control:
|
270
|
+
- private, max-age=0, must-revalidate
|
265
271
|
content-length:
|
266
272
|
- "1576"
|
273
|
+
server:
|
274
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
275
|
+
date:
|
276
|
+
- Thu, 03 Feb 2011 22:18:22 GMT
|
277
|
+
connection:
|
278
|
+
- close
|
267
279
|
set-cookie:
|
268
|
-
- _recurly_session=
|
269
|
-
cache-control:
|
270
|
-
- private, max-age=0, must-revalidate
|
280
|
+
- _recurly_session=4d2e91ee8767725148c3bc91473c8bec; domain=.recurly.local; path=/; HttpOnly
|
271
281
|
body: |
|
272
282
|
<?xml version="1.0" encoding="UTF-8"?>
|
273
283
|
<charges type="array">
|
274
284
|
<charge type="charge">
|
275
|
-
<id>
|
276
|
-
<account_code>charge-list-all-
|
285
|
+
<id>e83ca6220d694443852943b682f7eda9</id>
|
286
|
+
<account_code>charge-list-all-1296674173</account_code>
|
277
287
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
278
|
-
<start_date type="datetime">2011-
|
288
|
+
<start_date type="datetime">2011-02-03T22:18:20Z</start_date>
|
279
289
|
<end_date nil="true" type="datetime"></end_date>
|
280
290
|
<invoice_number nil="true" type="integer"></invoice_number>
|
281
291
|
<description>charge description</description>
|
282
|
-
<created_at type="datetime">2011-
|
292
|
+
<created_at type="datetime">2011-02-03T22:18:20Z</created_at>
|
283
293
|
</charge>
|
284
294
|
<charge type="charge">
|
285
|
-
<id>
|
286
|
-
<account_code>charge-list-all-
|
295
|
+
<id>088a6c2fc44b4c3fb530518d1bff639e</id>
|
296
|
+
<account_code>charge-list-all-1296674173</account_code>
|
287
297
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
288
|
-
<start_date type="datetime">2011-
|
298
|
+
<start_date type="datetime">2011-02-03T22:18:17Z</start_date>
|
289
299
|
<end_date nil="true" type="datetime"></end_date>
|
290
300
|
<invoice_number nil="true" type="integer"></invoice_number>
|
291
301
|
<description>charge description</description>
|
292
|
-
<created_at type="datetime">2011-
|
302
|
+
<created_at type="datetime">2011-02-03T22:18:18Z</created_at>
|
293
303
|
</charge>
|
294
304
|
<charge type="charge">
|
295
|
-
<id>
|
296
|
-
<account_code>charge-list-all-
|
305
|
+
<id>e0891709cf1041298754ba1212aa3d39</id>
|
306
|
+
<account_code>charge-list-all-1296674173</account_code>
|
297
307
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
298
|
-
<start_date type="datetime">2011-
|
308
|
+
<start_date type="datetime">2011-02-03T22:18:15Z</start_date>
|
299
309
|
<end_date nil="true" type="datetime"></end_date>
|
300
310
|
<invoice_number nil="true" type="integer"></invoice_number>
|
301
311
|
<description>charge description</description>
|
302
|
-
<created_at type="datetime">2011-
|
312
|
+
<created_at type="datetime">2011-02-03T22:18:15Z</created_at>
|
303
313
|
</charge>
|
304
314
|
</charges>
|
305
315
|
|