recurly 0.2.9 → 0.3.0
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.rb +13 -5
- data/lib/recurly/rails3/railtie.rb +1 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/vcr/account/close/1288381765.yml +15 -15
- data/spec/vcr/account/create-blank/1288381765.yml +3 -3
- data/spec/vcr/account/create-duplicate/1288381765.yml +27 -12
- data/spec/vcr/account/create-min/1288381765.yml +6 -6
- data/spec/vcr/account/create/1288381765.yml +6 -6
- data/spec/vcr/account/find/1288381765.yml +14 -14
- data/spec/vcr/account/list/1288381765.yml +251 -530
- data/spec/vcr/account/update/1288381765.yml +26 -26
- data/spec/vcr/billing/create/1286682213.yml +20 -20
- data/spec/vcr/billing/destroy/1286682213.yml +29 -29
- data/spec/vcr/billing/find/1286682213.yml +25 -25
- data/spec/vcr/billing/update/1286682213.yml +27 -27
- data/spec/vcr/charge/create/1287465632.yml +31 -29
- data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +33 -31
- data/spec/vcr/charge/list-all/1287465632.yml +43 -40
- data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -66
- data/spec/vcr/charge/list-pending/1287465632.yml +43 -40
- data/spec/vcr/charge/lookup/1287465632.yml +24 -22
- data/spec/vcr/credit/create/1287461400.yml +24 -22
- data/spec/vcr/credit/delete/1287461400.yml +31 -29
- data/spec/vcr/credit/list/1287461400.yml +47 -41
- data/spec/vcr/credit/lookup/1287461400.yml +23 -21
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +16 -16
- data/spec/vcr/invoice/create/1287167121.yml +42 -40
- data/spec/vcr/invoice/list/1287167121.yml +59 -57
- data/spec/vcr/invoice/lookup/1287167121.yml +42 -41
- data/spec/vcr/plan/all.yml +9 -9
- data/spec/vcr/plan/delete/1286677585.yml +16 -16
- data/spec/vcr/plan/find.yml +9 -9
- data/spec/vcr/plan/update.yml +12 -12
- data/spec/vcr/subscription/cancel-with-code/1287455769.yml +52 -52
- data/spec/vcr/subscription/cancel/1287455769.yml +43 -43
- data/spec/vcr/subscription/change1/1287455769.yml +39 -39
- data/spec/vcr/subscription/change2/1287455769.yml +39 -39
- data/spec/vcr/subscription/create/1287455769.yml +18 -18
- data/spec/vcr/subscription/find/1287455769.yml +25 -25
- data/spec/vcr/subscription/reactivate/1287455769.yml +45 -45
- data/spec/vcr/subscription/refund-full/1287455769.yml +36 -36
- data/spec/vcr/subscription/refund-none/1287455769.yml +35 -35
- data/spec/vcr/subscription/refund-partial/1287455769.yml +37 -37
- data/spec/vcr/transaction/all/1289558212.yml +363 -54
- data/spec/vcr/transaction/create-no-account/1289558212.yml +25 -27
- data/spec/vcr/transaction/create-with-account/1289558212.yml +63 -69
- data/spec/vcr/transaction/list-filled/1289558212.yml +191 -148
- data/spec/vcr/transaction/list-initial/1289558212.yml +86 -84
- data/spec/vcr/transaction/lookup/1289558212.yml +222 -214
- data/spec/vcr/transaction/refund/1289558212.yml +82 -90
- data/spec/vcr/transaction/void/1289558212.yml +377 -143
- metadata +4 -72
- data/spec/vcr/account/close/1287167046.yml +0 -159
- data/spec/vcr/account/close/1288381369.yml +0 -159
- data/spec/vcr/account/close/1288381447.yml +0 -159
- data/spec/vcr/account/create-blank/1287167046.yml +0 -49
- data/spec/vcr/account/create-blank/1288381369.yml +0 -49
- data/spec/vcr/account/create-blank/1288381447.yml +0 -49
- data/spec/vcr/account/create-duplicate/1287167046.yml +0 -110
- data/spec/vcr/account/create-duplicate/1288381369.yml +0 -95
- data/spec/vcr/account/create-duplicate/1288381447.yml +0 -95
- data/spec/vcr/account/create-min/1287167046.yml +0 -63
- data/spec/vcr/account/create-min/1288381369.yml +0 -63
- data/spec/vcr/account/create-min/1288381447.yml +0 -63
- data/spec/vcr/account/create/1287167046.yml +0 -67
- data/spec/vcr/account/create/1288381369.yml +0 -67
- data/spec/vcr/account/create/1288381447.yml +0 -67
- data/spec/vcr/account/find-all/1288381369.yml +0 -52
- data/spec/vcr/account/find-all/1288381447.yml +0 -1383
- data/spec/vcr/account/find/1287167046.yml +0 -160
- data/spec/vcr/account/find/1288381369.yml +0 -160
- data/spec/vcr/account/find/1288381447.yml +0 -160
- data/spec/vcr/account/list/1287167046.yml +0 -1538
- data/spec/vcr/account/list/1288381369.yml +0 -1835
- data/spec/vcr/account/list/1288381447.yml +0 -1835
- data/spec/vcr/account/update/1287167046.yml +0 -250
- data/spec/vcr/account/update/1288381369.yml +0 -250
- data/spec/vcr/account/update/1288381447.yml +0 -250
- data/spec/vcr/transaction/all/1287186411.yml +0 -387
- data/spec/vcr/transaction/create-no-account/1287186411.yml +0 -91
- data/spec/vcr/transaction/create-with-account/1287186411.yml +0 -220
- data/spec/vcr/transaction/list-empty/1287186411.yml +0 -212
- data/spec/vcr/transaction/list-filled/1287186411.yml +0 -476
- data/spec/vcr/transaction/lookup/1287186411.yml +0 -548
- data/spec/vcr/transaction/refund/1287186411.yml +0 -282
- data/spec/vcr/transaction/void/1287186411.yml +0 -600
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "272"
|
38
38
|
date:
|
39
|
-
- Tue,
|
39
|
+
- Tue, 16 Nov 2010 07:03:40 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "577"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=f7689b8d83f8e190fc9323460ccdfefe532ab7402ad498760064bf76c8d2b3f3885a644eb211a5375365e1a79fb8e98b002d05fe6c002f45f594398d07074aa3%3A%3A; domain=.recurly.com; path=/
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=3e479fe7b4a22a5161e2ab702446e409; domain=.recurly.com; path=/; secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-
|
62
|
+
<hosted_login_token>b182bf2e59f444b9bc2904219e166e1d</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-11-16T07:03:40Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -95,27 +95,28 @@
|
|
95
95
|
content-type:
|
96
96
|
- application/xml; charset=utf-8
|
97
97
|
x-runtime:
|
98
|
-
- "
|
98
|
+
- "107"
|
99
99
|
date:
|
100
|
-
- Tue,
|
100
|
+
- Tue, 16 Nov 2010 07:03:43 GMT
|
101
101
|
server:
|
102
102
|
- nginx/0.7.65
|
103
103
|
content-length:
|
104
|
-
- "
|
104
|
+
- "501"
|
105
105
|
set-cookie:
|
106
|
-
- _recurly_session=
|
106
|
+
- _recurly_session=c72867a35290acd83ae66f884f0b925c; domain=.recurly.com; path=/; secure; HttpOnly
|
107
107
|
cache-control:
|
108
108
|
- no-cache
|
109
109
|
body: |
|
110
110
|
<?xml version="1.0" encoding="UTF-8"?>
|
111
111
|
<credit type="credit">
|
112
|
-
<id>
|
112
|
+
<id>ad336d6d02ad427f80f48571a981ddaa</id>
|
113
113
|
<account_code>credit-list-1287461400</account_code>
|
114
114
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
115
|
-
<start_date type="datetime">2010-
|
115
|
+
<start_date type="datetime">2010-11-16T07:03:43Z</start_date>
|
116
116
|
<end_date nil="true" type="datetime"></end_date>
|
117
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
117
118
|
<description>one</description>
|
118
|
-
<created_at type="datetime">2010-
|
119
|
+
<created_at type="datetime">2010-11-16T07:03:43Z</created_at>
|
119
120
|
</credit>
|
120
121
|
|
121
122
|
http_version: "1.1"
|
@@ -149,27 +150,28 @@
|
|
149
150
|
content-type:
|
150
151
|
- application/xml; charset=utf-8
|
151
152
|
x-runtime:
|
152
|
-
- "
|
153
|
+
- "54"
|
153
154
|
date:
|
154
|
-
- Tue,
|
155
|
+
- Tue, 16 Nov 2010 07:03:41 GMT
|
155
156
|
server:
|
156
157
|
- nginx/0.7.65
|
157
158
|
content-length:
|
158
|
-
- "
|
159
|
+
- "501"
|
159
160
|
set-cookie:
|
160
|
-
- _recurly_session=
|
161
|
+
- _recurly_session=bcf59fe9a3e86155da52c86dbd0ce928; domain=.recurly.com; path=/; secure; HttpOnly
|
161
162
|
cache-control:
|
162
163
|
- no-cache
|
163
164
|
body: |
|
164
165
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
166
|
<credit type="credit">
|
166
|
-
<id>
|
167
|
+
<id>01fc9742817041bc80547bfb739bedbf</id>
|
167
168
|
<account_code>credit-list-1287461400</account_code>
|
168
169
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
169
|
-
<start_date type="datetime">2010-
|
170
|
+
<start_date type="datetime">2010-11-16T07:03:41Z</start_date>
|
170
171
|
<end_date nil="true" type="datetime"></end_date>
|
172
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
171
173
|
<description>two</description>
|
172
|
-
<created_at type="datetime">2010-
|
174
|
+
<created_at type="datetime">2010-11-16T07:03:41Z</created_at>
|
173
175
|
</credit>
|
174
176
|
|
175
177
|
http_version: "1.1"
|
@@ -203,27 +205,28 @@
|
|
203
205
|
content-type:
|
204
206
|
- application/xml; charset=utf-8
|
205
207
|
x-runtime:
|
206
|
-
- "
|
208
|
+
- "105"
|
207
209
|
date:
|
208
|
-
- Tue,
|
210
|
+
- Tue, 16 Nov 2010 07:03:44 GMT
|
209
211
|
server:
|
210
212
|
- nginx/0.7.65
|
211
213
|
content-length:
|
212
|
-
- "
|
214
|
+
- "503"
|
213
215
|
set-cookie:
|
214
|
-
- _recurly_session=
|
216
|
+
- _recurly_session=ff5405c1d6f637ecf0387e4e77d6b4b1; domain=.recurly.com; path=/; secure; HttpOnly
|
215
217
|
cache-control:
|
216
218
|
- no-cache
|
217
219
|
body: |
|
218
220
|
<?xml version="1.0" encoding="UTF-8"?>
|
219
221
|
<credit type="credit">
|
220
|
-
<id>
|
222
|
+
<id>ca2137dca63543ce81e0a16454b76340</id>
|
221
223
|
<account_code>credit-list-1287461400</account_code>
|
222
224
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
223
|
-
<start_date type="datetime">2010-
|
225
|
+
<start_date type="datetime">2010-11-16T07:03:44Z</start_date>
|
224
226
|
<end_date nil="true" type="datetime"></end_date>
|
227
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
225
228
|
<description>three</description>
|
226
|
-
<created_at type="datetime">2010-
|
229
|
+
<created_at type="datetime">2010-11-16T07:03:44Z</created_at>
|
227
230
|
</credit>
|
228
231
|
|
229
232
|
http_version: "1.1"
|
@@ -247,52 +250,55 @@
|
|
247
250
|
x-ua-compatible:
|
248
251
|
- IE=Edge
|
249
252
|
etag:
|
250
|
-
- "\"
|
253
|
+
- "\"180d69cb4ffe67713eb2ac41f8d81ab5\""
|
251
254
|
connection:
|
252
255
|
- close
|
253
256
|
content-type:
|
254
257
|
- application/xml; charset=utf-8
|
255
258
|
x-runtime:
|
256
|
-
- "
|
259
|
+
- "14"
|
257
260
|
date:
|
258
|
-
- Tue,
|
261
|
+
- Tue, 16 Nov 2010 07:03:42 GMT
|
259
262
|
server:
|
260
263
|
- nginx/0.7.65
|
261
264
|
content-length:
|
262
|
-
- "
|
265
|
+
- "1521"
|
263
266
|
set-cookie:
|
264
|
-
- _recurly_session=
|
267
|
+
- _recurly_session=4de206213bcbaab28a333e9b191936b4; domain=.recurly.com; path=/; secure; HttpOnly
|
265
268
|
cache-control:
|
266
269
|
- private, max-age=0, must-revalidate
|
267
270
|
body: |
|
268
271
|
<?xml version="1.0" encoding="UTF-8"?>
|
269
272
|
<credits type="array">
|
270
273
|
<credit type="credit">
|
271
|
-
<id>
|
274
|
+
<id>ca2137dca63543ce81e0a16454b76340</id>
|
272
275
|
<account_code>credit-list-1287461400</account_code>
|
273
276
|
<amount_in_cents type="integer">-300</amount_in_cents>
|
274
|
-
<start_date type="datetime">2010-
|
277
|
+
<start_date type="datetime">2010-11-16T07:03:44Z</start_date>
|
275
278
|
<end_date nil="true" type="datetime"></end_date>
|
279
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
276
280
|
<description>three</description>
|
277
|
-
<created_at type="datetime">2010-
|
281
|
+
<created_at type="datetime">2010-11-16T07:03:44Z</created_at>
|
278
282
|
</credit>
|
279
283
|
<credit type="credit">
|
280
|
-
<id>
|
284
|
+
<id>01fc9742817041bc80547bfb739bedbf</id>
|
281
285
|
<account_code>credit-list-1287461400</account_code>
|
282
286
|
<amount_in_cents type="integer">-200</amount_in_cents>
|
283
|
-
<start_date type="datetime">2010-
|
287
|
+
<start_date type="datetime">2010-11-16T07:03:41Z</start_date>
|
284
288
|
<end_date nil="true" type="datetime"></end_date>
|
289
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
285
290
|
<description>two</description>
|
286
|
-
<created_at type="datetime">2010-
|
291
|
+
<created_at type="datetime">2010-11-16T07:03:41Z</created_at>
|
287
292
|
</credit>
|
288
293
|
<credit type="credit">
|
289
|
-
<id>
|
294
|
+
<id>ad336d6d02ad427f80f48571a981ddaa</id>
|
290
295
|
<account_code>credit-list-1287461400</account_code>
|
291
296
|
<amount_in_cents type="integer">-100</amount_in_cents>
|
292
|
-
<start_date type="datetime">2010-
|
297
|
+
<start_date type="datetime">2010-11-16T07:03:43Z</start_date>
|
293
298
|
<end_date nil="true" type="datetime"></end_date>
|
299
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
294
300
|
<description>one</description>
|
295
|
-
<created_at type="datetime">2010-
|
301
|
+
<created_at type="datetime">2010-11-16T07:03:43Z</created_at>
|
296
302
|
</credit>
|
297
303
|
</credits>
|
298
304
|
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "328"
|
38
38
|
date:
|
39
|
-
- Tue,
|
39
|
+
- Tue, 16 Nov 2010 07:03:46 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "581"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=b0f84e5c496225cb9833ed73fa86ba643ec60a98bea87a1f4228cfe0e9753b7115a049f654b148f9d3db7d4618ecedd9852e78f9dc0342bd9681528f437e64b8%3A%3A; domain=.recurly.com; path=/
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=e3020c7a45ceb1e39f0947ac49dc111d; domain=.recurly.com; path=/; secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-
|
62
|
+
<hosted_login_token>c7e19d6db88f4c8c949fe02bb8d7556b</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-11-16T07:03:46Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -95,34 +95,35 @@
|
|
95
95
|
content-type:
|
96
96
|
- application/xml; charset=utf-8
|
97
97
|
x-runtime:
|
98
|
-
- "
|
98
|
+
- "44"
|
99
99
|
date:
|
100
|
-
- Tue,
|
100
|
+
- Tue, 16 Nov 2010 07:03:44 GMT
|
101
101
|
server:
|
102
102
|
- nginx/0.7.65
|
103
103
|
content-length:
|
104
|
-
- "
|
104
|
+
- "516"
|
105
105
|
set-cookie:
|
106
|
-
- _recurly_session=
|
106
|
+
- _recurly_session=b26a9c493777be6341f4e0132bdc8649; domain=.recurly.com; path=/; secure; HttpOnly
|
107
107
|
cache-control:
|
108
108
|
- no-cache
|
109
109
|
body: |
|
110
110
|
<?xml version="1.0" encoding="UTF-8"?>
|
111
111
|
<credit type="credit">
|
112
|
-
<id>
|
112
|
+
<id>cbef4350c4b2480c92ca51cf48bee4cd</id>
|
113
113
|
<account_code>credit-lookup-1287461400</account_code>
|
114
114
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
115
|
-
<start_date type="datetime">2010-
|
115
|
+
<start_date type="datetime">2010-11-16T07:03:44Z</start_date>
|
116
116
|
<end_date nil="true" type="datetime"></end_date>
|
117
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
117
118
|
<description>free moniez 4 u</description>
|
118
|
-
<created_at type="datetime">2010-
|
119
|
+
<created_at type="datetime">2010-11-16T07:03:44Z</created_at>
|
119
120
|
</credit>
|
120
121
|
|
121
122
|
http_version: "1.1"
|
122
123
|
- !ruby/struct:VCR::HTTPInteraction
|
123
124
|
request: !ruby/struct:VCR::Request
|
124
125
|
method: :get
|
125
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits/
|
126
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287461400/credits/cbef4350c4b2480c92ca51cf48bee4cd.xml
|
126
127
|
body:
|
127
128
|
headers:
|
128
129
|
accept:
|
@@ -139,7 +140,7 @@
|
|
139
140
|
x-ua-compatible:
|
140
141
|
- IE=Edge
|
141
142
|
etag:
|
142
|
-
- "\"
|
143
|
+
- "\"b423bc1e746f42e3be3d689a391c6012\""
|
143
144
|
connection:
|
144
145
|
- close
|
145
146
|
content-type:
|
@@ -147,25 +148,26 @@
|
|
147
148
|
x-runtime:
|
148
149
|
- "15"
|
149
150
|
date:
|
150
|
-
- Tue,
|
151
|
+
- Tue, 16 Nov 2010 07:03:47 GMT
|
151
152
|
server:
|
152
153
|
- nginx/0.7.65
|
153
154
|
content-length:
|
154
|
-
- "
|
155
|
+
- "516"
|
155
156
|
set-cookie:
|
156
|
-
- _recurly_session=
|
157
|
+
- _recurly_session=4d253152c263a47ebedd31d30880a1a8; domain=.recurly.com; path=/; secure; HttpOnly
|
157
158
|
cache-control:
|
158
159
|
- private, max-age=0, must-revalidate
|
159
160
|
body: |
|
160
161
|
<?xml version="1.0" encoding="UTF-8"?>
|
161
162
|
<credit type="credit">
|
162
|
-
<id>
|
163
|
+
<id>cbef4350c4b2480c92ca51cf48bee4cd</id>
|
163
164
|
<account_code>credit-lookup-1287461400</account_code>
|
164
165
|
<amount_in_cents type="integer">-1315</amount_in_cents>
|
165
|
-
<start_date type="datetime">2010-
|
166
|
+
<start_date type="datetime">2010-11-16T07:03:44Z</start_date>
|
166
167
|
<end_date nil="true" type="datetime"></end_date>
|
168
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
167
169
|
<description>free moniez 4 u</description>
|
168
|
-
<created_at type="datetime">2010-
|
170
|
+
<created_at type="datetime">2010-11-16T07:03:44Z</created_at>
|
169
171
|
</credit>
|
170
172
|
|
171
173
|
http_version: "1.1"
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "273"
|
38
38
|
date:
|
39
|
-
- Tue,
|
39
|
+
- Tue, 16 Nov 2010 07:03:52 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "605"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=5679a83c50fcf232f7b0ff1278c0285478f14eeee46a88eb3262813291b072c93bff20ab0a823faa72b813b276bf4db31744788e11fe522353d45bdca8a51d2d%3A%3A; domain=.recurly.com; path=/
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=4222e114e0ddab9e8aa14f75f9ee6fdf; domain=.recurly.com; path=/; secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-
|
62
|
+
<hosted_login_token>d476f758072e4f72b231475dc66afa6a</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-11-16T07:03:52Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -79,7 +79,7 @@
|
|
79
79
|
<country>US</country>
|
80
80
|
<credit-card>
|
81
81
|
<number>1</number>
|
82
|
-
<month type="integer">
|
82
|
+
<month type="integer">11</month>
|
83
83
|
<year type="integer">2011</year>
|
84
84
|
<verification-value>123</verification-value>
|
85
85
|
</credit-card>
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"9424cfc226204aa7275f114e6b5a9dd2\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "53"
|
115
115
|
date:
|
116
|
-
- Tue,
|
116
|
+
- Tue, 16 Nov 2010 07:03:54 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "650"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=d4782a089ab92bb829e6a8258f322791; domain=.recurly.com; path=/; secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -140,10 +140,10 @@
|
|
140
140
|
<credit_card>
|
141
141
|
<type>bogus</type>
|
142
142
|
<last_four>1</last_four>
|
143
|
-
<month type="integer">
|
143
|
+
<month type="integer">11</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-
|
146
|
+
<updated_at type="datetime">2010-11-16T07:03:54Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -175,15 +175,15 @@
|
|
175
175
|
content-type:
|
176
176
|
- application/xml; charset=utf-8
|
177
177
|
x-runtime:
|
178
|
-
- "
|
178
|
+
- "13"
|
179
179
|
date:
|
180
|
-
- Tue,
|
180
|
+
- Tue, 16 Nov 2010 07:03:53 GMT
|
181
181
|
server:
|
182
182
|
- nginx/0.7.65
|
183
183
|
content-length:
|
184
184
|
- "98"
|
185
185
|
set-cookie:
|
186
|
-
- _recurly_session=
|
186
|
+
- _recurly_session=b5d282a5c719f071cfc45d20e18f60a5; domain=.recurly.com; path=/; secure; HttpOnly
|
187
187
|
cache-control:
|
188
188
|
- no-cache
|
189
189
|
body: |
|
@@ -34,17 +34,17 @@
|
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "271"
|
38
38
|
date:
|
39
|
-
- Tue,
|
39
|
+
- Tue, 16 Nov 2010 07:03:50 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "583"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=e065ace9b51044a2891096f6dace1ac60df0d3db56994d488b563b74bf3ab60ce10ee922a8f14f65bc54c84153db5d0696c039e8cdacdf614ca99ef7ff36e84a%3A%3A; domain=.recurly.com; path=/
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=e7b35e6cce3e29adeb3c5d3a89a76214; domain=.recurly.com; path=/; secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-
|
62
|
+
<hosted_login_token>c6a6c82d42324eff99fe581c99e26959</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-11-16T07:03:50Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -79,7 +79,7 @@
|
|
79
79
|
<country>US</country>
|
80
80
|
<credit-card>
|
81
81
|
<number>1</number>
|
82
|
-
<month type="integer">
|
82
|
+
<month type="integer">11</month>
|
83
83
|
<year type="integer">2011</year>
|
84
84
|
<verification-value>123</verification-value>
|
85
85
|
</credit-card>
|
@@ -105,21 +105,21 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"99d457bed8db723ae9437cb137b4c01f\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "55"
|
115
115
|
date:
|
116
|
-
- Tue,
|
116
|
+
- Tue, 16 Nov 2010 07:03:49 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "639"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=8243fd12ef5697cfa548d73e57c6ba69; domain=.recurly.com; path=/; secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
@@ -140,10 +140,10 @@
|
|
140
140
|
<credit_card>
|
141
141
|
<type>bogus</type>
|
142
142
|
<last_four>1</last_four>
|
143
|
-
<month type="integer">
|
143
|
+
<month type="integer">11</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-
|
146
|
+
<updated_at type="datetime">2010-11-16T07:03:49Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -177,27 +177,28 @@
|
|
177
177
|
content-type:
|
178
178
|
- application/xml; charset=utf-8
|
179
179
|
x-runtime:
|
180
|
-
- "
|
180
|
+
- "44"
|
181
181
|
date:
|
182
|
-
- Tue,
|
182
|
+
- Tue, 16 Nov 2010 07:03:52 GMT
|
183
183
|
server:
|
184
184
|
- nginx/0.7.65
|
185
185
|
content-length:
|
186
|
-
- "
|
186
|
+
- "519"
|
187
187
|
set-cookie:
|
188
|
-
- _recurly_session=
|
188
|
+
- _recurly_session=c6b7d17095acc73811776d14110f886a; domain=.recurly.com; path=/; secure; HttpOnly
|
189
189
|
cache-control:
|
190
190
|
- no-cache
|
191
191
|
body: |
|
192
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
193
193
|
<charge type="charge">
|
194
|
-
<id>
|
194
|
+
<id>71b7368fc7514fb19d72afdf346f4d48</id>
|
195
195
|
<account_code>invoice-create-1287167121</account_code>
|
196
196
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
197
|
-
<start_date type="datetime">2010-
|
197
|
+
<start_date type="datetime">2010-11-16T07:03:52Z</start_date>
|
198
198
|
<end_date nil="true" type="datetime"></end_date>
|
199
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
199
200
|
<description>charge description</description>
|
200
|
-
<created_at type="datetime">2010-
|
201
|
+
<created_at type="datetime">2010-11-16T07:03:52Z</created_at>
|
201
202
|
</charge>
|
202
203
|
|
203
204
|
http_version: "1.1"
|
@@ -231,27 +232,28 @@
|
|
231
232
|
content-type:
|
232
233
|
- application/xml; charset=utf-8
|
233
234
|
x-runtime:
|
234
|
-
- "
|
235
|
+
- "60"
|
235
236
|
date:
|
236
|
-
- Tue,
|
237
|
+
- Tue, 16 Nov 2010 07:03:50 GMT
|
237
238
|
server:
|
238
239
|
- nginx/0.7.65
|
239
240
|
content-length:
|
240
|
-
- "
|
241
|
+
- "519"
|
241
242
|
set-cookie:
|
242
|
-
- _recurly_session=
|
243
|
+
- _recurly_session=550ca80a44cf964b7daf27046ae332cd; domain=.recurly.com; path=/; secure; HttpOnly
|
243
244
|
cache-control:
|
244
245
|
- no-cache
|
245
246
|
body: |
|
246
247
|
<?xml version="1.0" encoding="UTF-8"?>
|
247
248
|
<charge type="charge">
|
248
|
-
<id>
|
249
|
+
<id>ce52f13faded48299bff6a50ff2622f9</id>
|
249
250
|
<account_code>invoice-create-1287167121</account_code>
|
250
251
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
251
|
-
<start_date type="datetime">2010-
|
252
|
+
<start_date type="datetime">2010-11-16T07:03:50Z</start_date>
|
252
253
|
<end_date nil="true" type="datetime"></end_date>
|
254
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
253
255
|
<description>charge description</description>
|
254
|
-
<created_at type="datetime">2010-
|
256
|
+
<created_at type="datetime">2010-11-16T07:03:50Z</created_at>
|
255
257
|
</charge>
|
256
258
|
|
257
259
|
http_version: "1.1"
|
@@ -279,30 +281,30 @@
|
|
279
281
|
message: Created
|
280
282
|
headers:
|
281
283
|
location:
|
282
|
-
- https://recurlytest3-test.recurly.com/invoices/
|
284
|
+
- https://recurlytest3-test.recurly.com/invoices/62eb8676366c4febbb7ec2c7d94fb58a
|
283
285
|
connection:
|
284
286
|
- close
|
285
287
|
content-type:
|
286
288
|
- application/xml; charset=utf-8
|
287
289
|
x-runtime:
|
288
|
-
- "
|
290
|
+
- "66"
|
289
291
|
date:
|
290
|
-
- Tue,
|
292
|
+
- Tue, 16 Nov 2010 07:03:53 GMT
|
291
293
|
server:
|
292
294
|
- nginx/0.7.65
|
293
295
|
content-length:
|
294
296
|
- "1517"
|
295
297
|
set-cookie:
|
296
|
-
- _recurly_session=
|
298
|
+
- _recurly_session=ae49291fbf06f7aa54711c1795b52243; domain=.recurly.com; path=/; secure; HttpOnly
|
297
299
|
cache-control:
|
298
300
|
- no-cache
|
299
301
|
body: |
|
300
302
|
<?xml version="1.0" encoding="UTF-8"?>
|
301
303
|
<invoice>
|
302
|
-
<id>
|
304
|
+
<id>62eb8676366c4febbb7ec2c7d94fb58a</id>
|
303
305
|
<account_code>invoice-create-1287167121</account_code>
|
304
|
-
<date type="datetime">2010-
|
305
|
-
<invoice_number type="integer">
|
306
|
+
<date type="datetime">2010-11-16T07:03:53Z</date>
|
307
|
+
<invoice_number type="integer">2226</invoice_number>
|
306
308
|
<vat_number></vat_number>
|
307
309
|
<status>open</status>
|
308
310
|
<subtotal_in_cents type="integer">2500</subtotal_in_cents>
|
@@ -312,22 +314,22 @@
|
|
312
314
|
<total_due_in_cents type="integer">2500</total_due_in_cents>
|
313
315
|
<line_items type="array">
|
314
316
|
<line_item>
|
315
|
-
<id>
|
317
|
+
<id>71b7368fc7514fb19d72afdf346f4d48</id>
|
316
318
|
<type>charge</type>
|
317
319
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
318
|
-
<start_date type="datetime">2010-
|
320
|
+
<start_date type="datetime">2010-11-16T07:03:52Z</start_date>
|
319
321
|
<end_date nil="true" type="datetime"></end_date>
|
320
322
|
<description>charge description</description>
|
321
|
-
<created_at type="datetime">2010-
|
323
|
+
<created_at type="datetime">2010-11-16T07:03:52Z</created_at>
|
322
324
|
</line_item>
|
323
325
|
<line_item>
|
324
|
-
<id>
|
326
|
+
<id>ce52f13faded48299bff6a50ff2622f9</id>
|
325
327
|
<type>charge</type>
|
326
328
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
327
|
-
<start_date type="datetime">2010-
|
329
|
+
<start_date type="datetime">2010-11-16T07:03:50Z</start_date>
|
328
330
|
<end_date nil="true" type="datetime"></end_date>
|
329
331
|
<description>charge description</description>
|
330
|
-
<created_at type="datetime">2010-
|
332
|
+
<created_at type="datetime">2010-11-16T07:03:50Z</created_at>
|
331
333
|
</line_item>
|
332
334
|
</line_items>
|
333
335
|
<payments type="array">
|