recurly 0.4.4 → 0.4.5
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/lib/recurly/base.rb +4 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/billing_info_spec.rb +33 -0
- data/spec/vcr/account/accept-language-account/1301979678.yml +4 -4
- data/spec/vcr/account/close/1301979678.yml +11 -11
- data/spec/vcr/account/create/1301979678.yml +4 -4
- data/spec/vcr/account/create-blank/1301979678.yml +2 -2
- data/spec/vcr/account/create-duplicate/1301979678.yml +6 -6
- data/spec/vcr/account/create-min/1301979678.yml +4 -4
- data/spec/vcr/account/find/1301979678.yml +10 -10
- data/spec/vcr/account/list/1301979678.yml +74 -74
- data/spec/vcr/account/update/1301979678.yml +21 -21
- data/spec/vcr/billing/create/{1298594128.yml → 1302025874.yml} +20 -20
- data/spec/vcr/billing/destroy/{1298594128.yml → 1302025874.yml} +25 -25
- data/spec/vcr/billing/errors/1302025874.yml +126 -0
- data/spec/vcr/billing/find/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/billing/update/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/charge/create/1297746103.yml +20 -20
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
- data/spec/vcr/charge/list-all/1297746103.yml +31 -31
- data/spec/vcr/charge/list-invoiced/1297746103.yml +53 -53
- data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
- data/spec/vcr/charge/lookup/1297746103.yml +16 -16
- data/spec/vcr/coupon/create/1299714521.yml +11 -11
- data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
- data/spec/vcr/credit/create/1299714599.yml +16 -16
- data/spec/vcr/credit/delete/1299714599.yml +21 -21
- data/spec/vcr/credit/list/1299714599.yml +31 -31
- data/spec/vcr/credit/lookup/1299714599.yml +16 -16
- data/spec/vcr/invoice/create/1297746103.yml +30 -30
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
- data/spec/vcr/invoice/list/1297746103.yml +45 -45
- data/spec/vcr/invoice/lookup/1297746103.yml +32 -32
- data/spec/vcr/plan/all.yml +6 -6
- data/spec/vcr/plan/find.yml +6 -6
- data/spec/vcr/plan/update.yml +6 -6
- data/spec/vcr/subscription/addons/add/1301885121.yml +31 -31
- data/spec/vcr/subscription/addons/create/1301885121.yml +19 -19
- data/spec/vcr/subscription/addons/remove/1301885121.yml +31 -31
- data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
- data/spec/vcr/subscription/change1/1301881900.yml +31 -31
- data/spec/vcr/subscription/change2/1301881900.yml +31 -31
- data/spec/vcr/subscription/create/1301881900.yml +13 -13
- data/spec/vcr/subscription/find/1301881900.yml +19 -19
- data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
- data/spec/vcr/subscription/refund-full/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
- data/spec/vcr/transaction/all/1301883347.yml +55 -55
- data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
- data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
- data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
- data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
- data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
- data/spec/vcr/transaction/refund/1301883347.yml +19 -19
- data/spec/vcr/transaction/void/1301883347.yml +26 -26
- data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
- metadata +12 -10
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/delete-uninvoiced-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "464"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "589"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=559d02cc93cba71959bfa2d7ffcbf88e; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>3539ce0fbc384b56909bc155b125e77b</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:43:16Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "379"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "520"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=3b6a22bac558ee4db1d6bfac2daf2873; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -112,21 +112,21 @@
|
|
112
112
|
body: |
|
113
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
114
|
<credit type="credit">
|
115
|
-
<id>
|
115
|
+
<id>add2344a65bd44a6ba38006bd675b87b</id>
|
116
116
|
<account_code>delete-uninvoiced-1299714599</account_code>
|
117
117
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-04-
|
118
|
+
<start_date type="datetime">2011-04-05T19:43:18Z</start_date>
|
119
119
|
<end_date nil="true" type="datetime"></end_date>
|
120
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
121
|
<description>free moniez 4 u</description>
|
122
|
-
<created_at type="datetime">2011-04-
|
122
|
+
<created_at type="datetime">2011-04-05T19:43:18Z</created_at>
|
123
123
|
</credit>
|
124
124
|
|
125
125
|
http_version: "1.1"
|
126
126
|
- !ruby/struct:VCR::HTTPInteraction
|
127
127
|
request: !ruby/struct:VCR::Request
|
128
128
|
method: :get
|
129
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/
|
129
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/add2344a65bd44a6ba38006bd675b87b.xml
|
130
130
|
body:
|
131
131
|
headers:
|
132
132
|
authorization:
|
@@ -145,17 +145,17 @@
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
x-runtime:
|
148
|
-
- "
|
148
|
+
- "366"
|
149
149
|
content-type:
|
150
150
|
- application/xml; charset=utf-8
|
151
151
|
etag:
|
152
|
-
- "\"
|
152
|
+
- "\"636229273c5847a15c1efe9745f69cfc\""
|
153
153
|
cache-control:
|
154
154
|
- private, max-age=0, must-revalidate
|
155
155
|
content-length:
|
156
156
|
- "520"
|
157
157
|
set-cookie:
|
158
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=6d919bb2aed04500e5302a63f097b025; domain=.recurly.local; path=/; HttpOnly
|
159
159
|
connection:
|
160
160
|
- close
|
161
161
|
server:
|
@@ -163,21 +163,21 @@
|
|
163
163
|
body: |
|
164
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
165
|
<credit type="credit">
|
166
|
-
<id>
|
166
|
+
<id>add2344a65bd44a6ba38006bd675b87b</id>
|
167
167
|
<account_code>delete-uninvoiced-1299714599</account_code>
|
168
168
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
169
|
-
<start_date type="datetime">2011-04-
|
169
|
+
<start_date type="datetime">2011-04-05T19:43:18Z</start_date>
|
170
170
|
<end_date nil="true" type="datetime"></end_date>
|
171
171
|
<invoice_number nil="true" type="integer"></invoice_number>
|
172
172
|
<description>free moniez 4 u</description>
|
173
|
-
<created_at type="datetime">2011-04-
|
173
|
+
<created_at type="datetime">2011-04-05T19:43:18Z</created_at>
|
174
174
|
</credit>
|
175
175
|
|
176
176
|
http_version: "1.1"
|
177
177
|
- !ruby/struct:VCR::HTTPInteraction
|
178
178
|
request: !ruby/struct:VCR::Request
|
179
179
|
method: :delete
|
180
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/
|
180
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/add2344a65bd44a6ba38006bd675b87b.xml
|
181
181
|
body:
|
182
182
|
headers:
|
183
183
|
authorization:
|
@@ -196,13 +196,13 @@
|
|
196
196
|
cache-control:
|
197
197
|
- no-cache
|
198
198
|
x-runtime:
|
199
|
-
- "
|
199
|
+
- "366"
|
200
200
|
content-type:
|
201
201
|
- application/xml; charset=utf-8
|
202
202
|
content-length:
|
203
203
|
- "1"
|
204
204
|
set-cookie:
|
205
|
-
- _recurly_session=
|
205
|
+
- _recurly_session=018cedf5187939345001c9447907aa40; domain=.recurly.local; path=/; HttpOnly
|
206
206
|
connection:
|
207
207
|
- close
|
208
208
|
server:
|
@@ -212,7 +212,7 @@
|
|
212
212
|
- !ruby/struct:VCR::HTTPInteraction
|
213
213
|
request: !ruby/struct:VCR::Request
|
214
214
|
method: :get
|
215
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/
|
215
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/delete-uninvoiced-1299714599/credits/add2344a65bd44a6ba38006bd675b87b.xml
|
216
216
|
body:
|
217
217
|
headers:
|
218
218
|
authorization:
|
@@ -237,7 +237,7 @@
|
|
237
237
|
content-length:
|
238
238
|
- "92"
|
239
239
|
set-cookie:
|
240
|
-
- _recurly_session=
|
240
|
+
- _recurly_session=f86dfe3c5bfdfe56ac493bb6e62002cc; domain=.recurly.local; path=/; HttpOnly
|
241
241
|
connection:
|
242
242
|
- close
|
243
243
|
server:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/credit-list-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "405"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "577"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=4f98aca98fe3a930f3e98ac141bf6ae7; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>2d7002473cc640b2bde87c68b7e0ca22</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:42:54Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "376"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "501"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=7dd88d8b450960e9d10f418de715f9ea; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -112,14 +112,14 @@
|
|
112
112
|
body: |
|
113
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
114
|
<credit type="credit">
|
115
|
-
<id>
|
115
|
+
<id>bd1a3f481ffd42fa8fa0f9eac03ff8f9</id>
|
116
116
|
<account_code>credit-list-1299714599</account_code>
|
117
117
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-04-
|
118
|
+
<start_date type="datetime">2011-04-05T19:42:56Z</start_date>
|
119
119
|
<end_date nil="true" type="datetime"></end_date>
|
120
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
121
|
<description>one</description>
|
122
|
-
<created_at type="datetime">2011-04-
|
122
|
+
<created_at type="datetime">2011-04-05T19:42:57Z</created_at>
|
123
123
|
</credit>
|
124
124
|
|
125
125
|
http_version: "1.1"
|
@@ -153,13 +153,13 @@
|
|
153
153
|
cache-control:
|
154
154
|
- no-cache
|
155
155
|
x-runtime:
|
156
|
-
- "
|
156
|
+
- "381"
|
157
157
|
content-type:
|
158
158
|
- application/xml; charset=utf-8
|
159
159
|
content-length:
|
160
160
|
- "501"
|
161
161
|
set-cookie:
|
162
|
-
- _recurly_session=
|
162
|
+
- _recurly_session=f158b1f641e2065f79fa4b72eaffbc18; domain=.recurly.local; path=/; HttpOnly
|
163
163
|
connection:
|
164
164
|
- close
|
165
165
|
server:
|
@@ -167,14 +167,14 @@
|
|
167
167
|
body: |
|
168
168
|
<?xml version="1.0" encoding="UTF-8"?>
|
169
169
|
<credit type="credit">
|
170
|
-
<id>
|
170
|
+
<id>e5d193c289e64bfda0cade348f0ce360</id>
|
171
171
|
<account_code>credit-list-1299714599</account_code>
|
172
172
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
173
|
-
<start_date type="datetime">2011-04-
|
173
|
+
<start_date type="datetime">2011-04-05T19:42:59Z</start_date>
|
174
174
|
<end_date nil="true" type="datetime"></end_date>
|
175
175
|
<invoice_number nil="true" type="integer"></invoice_number>
|
176
176
|
<description>two</description>
|
177
|
-
<created_at type="datetime">2011-04-
|
177
|
+
<created_at type="datetime">2011-04-05T19:42:59Z</created_at>
|
178
178
|
</credit>
|
179
179
|
|
180
180
|
http_version: "1.1"
|
@@ -208,13 +208,13 @@
|
|
208
208
|
cache-control:
|
209
209
|
- no-cache
|
210
210
|
x-runtime:
|
211
|
-
- "
|
211
|
+
- "380"
|
212
212
|
content-type:
|
213
213
|
- application/xml; charset=utf-8
|
214
214
|
content-length:
|
215
215
|
- "503"
|
216
216
|
set-cookie:
|
217
|
-
- _recurly_session=
|
217
|
+
- _recurly_session=943d1f5aaa8ddeeb2ed004d9b5ffde77; domain=.recurly.local; path=/; HttpOnly
|
218
218
|
connection:
|
219
219
|
- close
|
220
220
|
server:
|
@@ -222,14 +222,14 @@
|
|
222
222
|
body: |
|
223
223
|
<?xml version="1.0" encoding="UTF-8"?>
|
224
224
|
<credit type="credit">
|
225
|
-
<id>
|
225
|
+
<id>7827d2f96fa946a8aacc46311ee0f66f</id>
|
226
226
|
<account_code>credit-list-1299714599</account_code>
|
227
227
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
228
|
-
<start_date type="datetime">2011-04-
|
228
|
+
<start_date type="datetime">2011-04-05T19:43:02Z</start_date>
|
229
229
|
<end_date nil="true" type="datetime"></end_date>
|
230
230
|
<invoice_number nil="true" type="integer"></invoice_number>
|
231
231
|
<description>three</description>
|
232
|
-
<created_at type="datetime">2011-04-
|
232
|
+
<created_at type="datetime">2011-04-05T19:43:02Z</created_at>
|
233
233
|
</credit>
|
234
234
|
|
235
235
|
http_version: "1.1"
|
@@ -255,17 +255,17 @@
|
|
255
255
|
message: OK
|
256
256
|
headers:
|
257
257
|
x-runtime:
|
258
|
-
- "
|
258
|
+
- "447"
|
259
259
|
content-type:
|
260
260
|
- application/xml; charset=utf-8
|
261
261
|
etag:
|
262
|
-
- "\"
|
262
|
+
- "\"8e33ff0d430a9fd3ffedd2eb4a62c2e2\""
|
263
263
|
cache-control:
|
264
264
|
- private, max-age=0, must-revalidate
|
265
265
|
content-length:
|
266
266
|
- "1521"
|
267
267
|
set-cookie:
|
268
|
-
- _recurly_session=
|
268
|
+
- _recurly_session=deaab8e11d7d96745c3e95c0265e3443; domain=.recurly.local; path=/; HttpOnly
|
269
269
|
connection:
|
270
270
|
- close
|
271
271
|
server:
|
@@ -274,34 +274,34 @@
|
|
274
274
|
<?xml version="1.0" encoding="UTF-8"?>
|
275
275
|
<credits type="array">
|
276
276
|
<credit type="credit">
|
277
|
-
<id>
|
277
|
+
<id>7827d2f96fa946a8aacc46311ee0f66f</id>
|
278
278
|
<account_code>credit-list-1299714599</account_code>
|
279
279
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
280
|
-
<start_date type="datetime">2011-04-
|
280
|
+
<start_date type="datetime">2011-04-05T19:43:02Z</start_date>
|
281
281
|
<end_date nil="true" type="datetime"></end_date>
|
282
282
|
<invoice_number nil="true" type="integer"></invoice_number>
|
283
283
|
<description>three</description>
|
284
|
-
<created_at type="datetime">2011-04-
|
284
|
+
<created_at type="datetime">2011-04-05T19:43:02Z</created_at>
|
285
285
|
</credit>
|
286
286
|
<credit type="credit">
|
287
|
-
<id>
|
287
|
+
<id>e5d193c289e64bfda0cade348f0ce360</id>
|
288
288
|
<account_code>credit-list-1299714599</account_code>
|
289
289
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
290
|
-
<start_date type="datetime">2011-04-
|
290
|
+
<start_date type="datetime">2011-04-05T19:42:59Z</start_date>
|
291
291
|
<end_date nil="true" type="datetime"></end_date>
|
292
292
|
<invoice_number nil="true" type="integer"></invoice_number>
|
293
293
|
<description>two</description>
|
294
|
-
<created_at type="datetime">2011-04-
|
294
|
+
<created_at type="datetime">2011-04-05T19:42:59Z</created_at>
|
295
295
|
</credit>
|
296
296
|
<credit type="credit">
|
297
|
-
<id>
|
297
|
+
<id>bd1a3f481ffd42fa8fa0f9eac03ff8f9</id>
|
298
298
|
<account_code>credit-list-1299714599</account_code>
|
299
299
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
300
|
-
<start_date type="datetime">2011-04-
|
300
|
+
<start_date type="datetime">2011-04-05T19:42:56Z</start_date>
|
301
301
|
<end_date nil="true" type="datetime"></end_date>
|
302
302
|
<invoice_number nil="true" type="integer"></invoice_number>
|
303
303
|
<description>one</description>
|
304
|
-
<created_at type="datetime">2011-04-
|
304
|
+
<created_at type="datetime">2011-04-05T19:42:57Z</created_at>
|
305
305
|
</credit>
|
306
306
|
</credits>
|
307
307
|
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/credit-lookup-1299714599
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "410"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "581"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=e04586f675596f7a902af6b96cef54e6; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>f0fa6e9c9e0f4d94a653cbdbb317afb9</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:43:08Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -98,13 +98,13 @@
|
|
98
98
|
cache-control:
|
99
99
|
- no-cache
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "378"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
content-length:
|
105
105
|
- "516"
|
106
106
|
set-cookie:
|
107
|
-
- _recurly_session=
|
107
|
+
- _recurly_session=c0fa6b0b18d0f0a9bee5b7260c912b48; domain=.recurly.local; path=/; HttpOnly
|
108
108
|
connection:
|
109
109
|
- close
|
110
110
|
server:
|
@@ -112,21 +112,21 @@
|
|
112
112
|
body: |
|
113
113
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
114
|
<credit type="credit">
|
115
|
-
<id>
|
115
|
+
<id>5c599c0c93a741a9a06bc8b5fe99ce12</id>
|
116
116
|
<account_code>credit-lookup-1299714599</account_code>
|
117
117
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
118
|
-
<start_date type="datetime">2011-04-
|
118
|
+
<start_date type="datetime">2011-04-05T19:43:10Z</start_date>
|
119
119
|
<end_date nil="true" type="datetime"></end_date>
|
120
120
|
<invoice_number nil="true" type="integer"></invoice_number>
|
121
121
|
<description>free moniez 4 u</description>
|
122
|
-
<created_at type="datetime">2011-04-
|
122
|
+
<created_at type="datetime">2011-04-05T19:43:10Z</created_at>
|
123
123
|
</credit>
|
124
124
|
|
125
125
|
http_version: "1.1"
|
126
126
|
- !ruby/struct:VCR::HTTPInteraction
|
127
127
|
request: !ruby/struct:VCR::Request
|
128
128
|
method: :get
|
129
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/
|
129
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/credit-lookup-1299714599/credits/5c599c0c93a741a9a06bc8b5fe99ce12.xml
|
130
130
|
body:
|
131
131
|
headers:
|
132
132
|
authorization:
|
@@ -145,17 +145,17 @@
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
x-runtime:
|
148
|
-
- "
|
148
|
+
- "369"
|
149
149
|
content-type:
|
150
150
|
- application/xml; charset=utf-8
|
151
151
|
etag:
|
152
|
-
- "\"
|
152
|
+
- "\"4a247dab565851db86de10501b26b7be\""
|
153
153
|
cache-control:
|
154
154
|
- private, max-age=0, must-revalidate
|
155
155
|
content-length:
|
156
156
|
- "516"
|
157
157
|
set-cookie:
|
158
|
-
- _recurly_session=
|
158
|
+
- _recurly_session=6978e0b971f28e472ed8f3b209917bec; domain=.recurly.local; path=/; HttpOnly
|
159
159
|
connection:
|
160
160
|
- close
|
161
161
|
server:
|
@@ -163,14 +163,14 @@
|
|
163
163
|
body: |
|
164
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
165
|
<credit type="credit">
|
166
|
-
<id>
|
166
|
+
<id>5c599c0c93a741a9a06bc8b5fe99ce12</id>
|
167
167
|
<account_code>credit-lookup-1299714599</account_code>
|
168
168
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
169
|
-
<start_date type="datetime">2011-04-
|
169
|
+
<start_date type="datetime">2011-04-05T19:43:10Z</start_date>
|
170
170
|
<end_date nil="true" type="datetime"></end_date>
|
171
171
|
<invoice_number nil="true" type="integer"></invoice_number>
|
172
172
|
<description>free moniez 4 u</description>
|
173
|
-
<created_at type="datetime">2011-04-
|
173
|
+
<created_at type="datetime">2011-04-05T19:43:10Z</created_at>
|
174
174
|
</credit>
|
175
175
|
|
176
176
|
http_version: "1.1"
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-create-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "408"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=c22236e7c863d239466a4053341fb7ec; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-04-
|
65
|
+
<hosted_login_token>5ab517790858442b882acdd580e51837</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:43:29Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1524"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"0f195ae235aa2ac9a9cc371e120daa94\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "640"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=5fd7e8bb2221d0e540b856093b10acef; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -144,7 +144,7 @@
|
|
144
144
|
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
147
|
+
<updated_at type="datetime">2011-04-05T19:43:33Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
@@ -178,13 +178,13 @@
|
|
178
178
|
cache-control:
|
179
179
|
- no-cache
|
180
180
|
x-runtime:
|
181
|
-
- "
|
181
|
+
- "387"
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
content-length:
|
185
185
|
- "519"
|
186
186
|
set-cookie:
|
187
|
-
- _recurly_session=
|
187
|
+
- _recurly_session=8fd8581646af8c7624b1bf364bcfb871; domain=.recurly.local; path=/; HttpOnly
|
188
188
|
connection:
|
189
189
|
- close
|
190
190
|
server:
|
@@ -192,14 +192,14 @@
|
|
192
192
|
body: |
|
193
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
194
|
<charge type="charge">
|
195
|
-
<id>
|
195
|
+
<id>25217b76a504430a992c7039b003bf4e</id>
|
196
196
|
<account_code>invoice-create-1297746103</account_code>
|
197
197
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-04-
|
198
|
+
<start_date type="datetime">2011-04-05T19:43:35Z</start_date>
|
199
199
|
<end_date nil="true" type="datetime"></end_date>
|
200
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
201
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-04-
|
202
|
+
<created_at type="datetime">2011-04-05T19:43:36Z</created_at>
|
203
203
|
</charge>
|
204
204
|
|
205
205
|
http_version: "1.1"
|
@@ -233,13 +233,13 @@
|
|
233
233
|
cache-control:
|
234
234
|
- no-cache
|
235
235
|
x-runtime:
|
236
|
-
- "
|
236
|
+
- "385"
|
237
237
|
content-type:
|
238
238
|
- application/xml; charset=utf-8
|
239
239
|
content-length:
|
240
240
|
- "519"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=f163d509de3d169892d7c461e11fa837; domain=.recurly.local; path=/; HttpOnly
|
243
243
|
connection:
|
244
244
|
- close
|
245
245
|
server:
|
@@ -247,14 +247,14 @@
|
|
247
247
|
body: |
|
248
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
249
|
<charge type="charge">
|
250
|
-
<id>
|
250
|
+
<id>cbe790b64bec4395a2af36b8add81228</id>
|
251
251
|
<account_code>invoice-create-1297746103</account_code>
|
252
252
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
253
|
-
<start_date type="datetime">2011-04-
|
253
|
+
<start_date type="datetime">2011-04-05T19:43:38Z</start_date>
|
254
254
|
<end_date nil="true" type="datetime"></end_date>
|
255
255
|
<invoice_number nil="true" type="integer"></invoice_number>
|
256
256
|
<description>charge description</description>
|
257
|
-
<created_at type="datetime">2011-04-
|
257
|
+
<created_at type="datetime">2011-04-05T19:43:38Z</created_at>
|
258
258
|
</charge>
|
259
259
|
|
260
260
|
http_version: "1.1"
|
@@ -286,15 +286,15 @@
|
|
286
286
|
cache-control:
|
287
287
|
- no-cache
|
288
288
|
location:
|
289
|
-
- http://app.recurly.local:3000/invoices/
|
289
|
+
- http://app.recurly.local:3000/invoices/fa1681243cff445cb494c71106d38979
|
290
290
|
x-runtime:
|
291
|
-
- "
|
291
|
+
- "791"
|
292
292
|
content-type:
|
293
293
|
- application/xml; charset=utf-8
|
294
294
|
content-length:
|
295
295
|
- "1675"
|
296
296
|
set-cookie:
|
297
|
-
- _recurly_session=
|
297
|
+
- _recurly_session=fe345b0cfb1bafa9851868b06dfa35bc; domain=.recurly.local; path=/; HttpOnly
|
298
298
|
connection:
|
299
299
|
- close
|
300
300
|
server:
|
@@ -302,10 +302,10 @@
|
|
302
302
|
body: |
|
303
303
|
<?xml version="1.0" encoding="UTF-8"?>
|
304
304
|
<invoice>
|
305
|
-
<id>
|
305
|
+
<id>fa1681243cff445cb494c71106d38979</id>
|
306
306
|
<account_code>invoice-create-1297746103</account_code>
|
307
|
-
<date type="datetime">2011-04-
|
308
|
-
<invoice_number type="integer">
|
307
|
+
<date type="datetime">2011-04-05T19:43:41Z</date>
|
308
|
+
<invoice_number type="integer">1401</invoice_number>
|
309
309
|
<vat_number></vat_number>
|
310
310
|
<status>open</status>
|
311
311
|
<subtotal_in_cents type="integer">2500</subtotal_in_cents>
|
@@ -316,23 +316,23 @@
|
|
316
316
|
<discount_in_cents type="integer">0</discount_in_cents>
|
317
317
|
<line_items type="array">
|
318
318
|
<line_item>
|
319
|
-
<id>
|
319
|
+
<id>25217b76a504430a992c7039b003bf4e</id>
|
320
320
|
<type>charge</type>
|
321
321
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
322
|
-
<start_date type="datetime">2011-04-
|
322
|
+
<start_date type="datetime">2011-04-05T19:43:35Z</start_date>
|
323
323
|
<end_date nil="true" type="datetime"></end_date>
|
324
324
|
<description>charge description</description>
|
325
|
-
<created_at type="datetime">2011-04-
|
325
|
+
<created_at type="datetime">2011-04-05T19:43:36Z</created_at>
|
326
326
|
<applied_coupon_code></applied_coupon_code>
|
327
327
|
</line_item>
|
328
328
|
<line_item>
|
329
|
-
<id>
|
329
|
+
<id>cbe790b64bec4395a2af36b8add81228</id>
|
330
330
|
<type>charge</type>
|
331
331
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
332
|
-
<start_date type="datetime">2011-04-
|
332
|
+
<start_date type="datetime">2011-04-05T19:43:38Z</start_date>
|
333
333
|
<end_date nil="true" type="datetime"></end_date>
|
334
334
|
<description>charge description</description>
|
335
|
-
<created_at type="datetime">2011-04-
|
335
|
+
<created_at type="datetime">2011-04-05T19:43:38Z</created_at>
|
336
336
|
<applied_coupon_code></applied_coupon_code>
|
337
337
|
</line_item>
|
338
338
|
</line_items>
|