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-list-pending-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-pending-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "584"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "352"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:06 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "593"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:18:24 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=f40298b64706e5b7415cf63a5cad3dddb98a5433b8f0e71c55f7e079fb71298a9b312349110fb8faf397404bdff113e918a6fb126c8a6f78471f729fa04224c9%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=cff62029aa8c2e54d96d3e861c5b8adf; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>charge-list-pending-
|
55
|
-
<account_code>charge-list-pending-
|
56
|
+
<id>charge-list-pending-1296674173</id>
|
57
|
+
<account_code>charge-list-pending-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>f9a382cb40674a01a661fefdaef06446</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:18:24Z</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-pending-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
|
+
- "404"
|
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:07 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
104
|
content-length:
|
105
105
|
- "524"
|
106
|
+
server:
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
+
date:
|
109
|
+
- Thu, 03 Feb 2011 22:18:26 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
106
112
|
set-cookie:
|
107
|
-
- _recurly_session=
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
113
|
+
- _recurly_session=9a1fea509567f1bea8f112f01191dabf; 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-pending-
|
117
|
+
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
118
|
+
<account_code>charge-list-pending-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:26Z</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:26Z</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-pending-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
|
+
- "540"
|
151
159
|
content-type:
|
152
160
|
- application/xml; charset=utf-8
|
153
|
-
x-runtime:
|
154
|
-
- "46"
|
155
|
-
date:
|
156
|
-
- Sat, 08 Jan 2011 08:04:08 GMT
|
157
|
-
server:
|
158
|
-
- nginx/0.8.53
|
159
161
|
content-length:
|
160
162
|
- "524"
|
163
|
+
server:
|
164
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
165
|
+
date:
|
166
|
+
- Thu, 03 Feb 2011 22:18:29 GMT
|
167
|
+
connection:
|
168
|
+
- close
|
161
169
|
set-cookie:
|
162
|
-
- _recurly_session=
|
163
|
-
cache-control:
|
164
|
-
- no-cache
|
170
|
+
- _recurly_session=265580f2615eea8757547035a1390fa8; 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-pending-
|
174
|
+
<id>63757f77c5e24c469287149f17f04e8b</id>
|
175
|
+
<account_code>charge-list-pending-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:28Z</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:28Z</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-pending-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
|
+
- "610"
|
206
216
|
content-type:
|
207
217
|
- application/xml; charset=utf-8
|
208
|
-
x-runtime:
|
209
|
-
- "156"
|
210
|
-
date:
|
211
|
-
- Sat, 08 Jan 2011 08:04:09 GMT
|
212
|
-
server:
|
213
|
-
- nginx/0.8.53
|
214
218
|
content-length:
|
215
219
|
- "524"
|
220
|
+
server:
|
221
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
222
|
+
date:
|
223
|
+
- Thu, 03 Feb 2011 22:18:31 GMT
|
224
|
+
connection:
|
225
|
+
- close
|
216
226
|
set-cookie:
|
217
|
-
- _recurly_session=
|
218
|
-
cache-control:
|
219
|
-
- no-cache
|
227
|
+
- _recurly_session=f9ba2166026326f3679bd3ae7a76fd86; 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-pending-
|
231
|
+
<id>8883770585bd4062a26ceafd72dffc40</id>
|
232
|
+
<account_code>charge-list-pending-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:30Z</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:30Z</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-pending-1296674173/charges.xml?show=pending
|
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
|
-
- "\"0059ffacf3c41bf32c2d9b415910870a\""
|
255
|
-
connection:
|
256
|
-
- close
|
263
|
+
x-runtime:
|
264
|
+
- "180"
|
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
|
+
- "\"ff5941d6d76602a00e120de39efd3d20\""
|
269
|
+
cache-control:
|
270
|
+
- private, max-age=0, must-revalidate
|
265
271
|
content-length:
|
266
272
|
- "1588"
|
273
|
+
server:
|
274
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
275
|
+
date:
|
276
|
+
- Thu, 03 Feb 2011 22:18:33 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=187e8811d275ae57d56430859c91fae8; 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-pending-
|
285
|
+
<id>8883770585bd4062a26ceafd72dffc40</id>
|
286
|
+
<account_code>charge-list-pending-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:30Z</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:30Z</created_at>
|
283
293
|
</charge>
|
284
294
|
<charge type="charge">
|
285
|
-
<id>
|
286
|
-
<account_code>charge-list-pending-
|
295
|
+
<id>63757f77c5e24c469287149f17f04e8b</id>
|
296
|
+
<account_code>charge-list-pending-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:28Z</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:28Z</created_at>
|
293
303
|
</charge>
|
294
304
|
<charge type="charge">
|
295
|
-
<id>
|
296
|
-
<account_code>charge-list-pending-
|
305
|
+
<id>883a591cc8ab4021af20a219ad6e116d</id>
|
306
|
+
<account_code>charge-list-pending-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:26Z</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:26Z</created_at>
|
303
313
|
</charge>
|
304
314
|
</charges>
|
305
315
|
|
@@ -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-lookup-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-lookup-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "604"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "350"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:23 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "581"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:19:02 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=695bd49e3bd8fbc3ee7d4c629cb598a863d051e01de74ed47862491142c02363eae86c4f33ebd376aa114e9cdc5f088bbacdf4d617179c803eb757304b1702db%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=1ed8044ce7742aa7daa0631b9040f923; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>charge-lookup-
|
55
|
-
<account_code>charge-lookup-
|
56
|
+
<id>charge-lookup-1296674173</id>
|
57
|
+
<account_code>charge-lookup-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>f1b330c0c1734759aea161f70c96d9e5</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:02Z</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-lookup-1296674173/charges.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<charge>
|
@@ -78,97 +80,101 @@
|
|
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
|
+
- "421"
|
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:24 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
104
|
content-length:
|
105
105
|
- "517"
|
106
|
+
server:
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
+
date:
|
109
|
+
- Thu, 03 Feb 2011 22:19:04 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
106
112
|
set-cookie:
|
107
|
-
- _recurly_session=
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
113
|
+
- _recurly_session=4218f9ebf181d8a6cde7a9d8d6be91eb; 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-lookup-
|
117
|
+
<id>dcd06782bb1046448d18987729472b27</id>
|
118
|
+
<account_code>charge-lookup-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:04Z</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:04Z</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-lookup-1296674173/charges/dcd06782bb1046448d18987729472b27.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
|
-
- "\"e038e741a2825851aab255220b0dad0e\""
|
145
|
-
connection:
|
146
|
-
- close
|
149
|
+
x-runtime:
|
150
|
+
- "193"
|
147
151
|
content-type:
|
148
152
|
- application/xml; charset=utf-8
|
149
|
-
|
150
|
-
- "
|
151
|
-
|
152
|
-
-
|
153
|
-
server:
|
154
|
-
- nginx/0.8.53
|
153
|
+
etag:
|
154
|
+
- "\"76eb62e2b4cfa226e7902f57c32421fe\""
|
155
|
+
cache-control:
|
156
|
+
- private, max-age=0, must-revalidate
|
155
157
|
content-length:
|
156
158
|
- "517"
|
159
|
+
server:
|
160
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
161
|
+
date:
|
162
|
+
- Thu, 03 Feb 2011 22:19:06 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=3722886392ffb22b5f601c849e2e9bd0; 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-lookup-
|
170
|
+
<id>dcd06782bb1046448d18987729472b27</id>
|
171
|
+
<account_code>charge-lookup-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:04Z</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:04Z</created_at>
|
172
178
|
</charge>
|
173
179
|
|
174
180
|
http_version: "1.1"
|