recurly 0.2.2 → 0.2.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/lib/recurly/subscription.rb +2 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +0 -2
- data/spec/integration/invoice_spec.rb +0 -1
- data/spec/integration/subscription_spec.rb +49 -10
- data/spec/integration/transaction_spec.rb +3 -2
- data/spec/support/factory.rb +2 -2
- data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
- data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
- data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
- data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
- data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
- data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +24 -24
- data/spec/vcr/billing/find/1286682213.yml +20 -20
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +25 -25
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/list/1286681343.yml +37 -37
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
- data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
- data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
- data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
- data/spec/vcr/plan/all.yml +8 -8
- data/spec/vcr/plan/delete/1286677585.yml +15 -15
- data/spec/vcr/plan/find.yml +8 -8
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
- data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
- data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
- data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
- data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
- data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
- data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
- data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
- data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
- data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
- data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
- data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
- data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
- data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
- data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
- data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
- data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
- data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
- data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
- data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
- data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
- data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
- data/spec/vcr/transaction/refund/1287186411.yml +282 -0
- data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
- metadata +92 -86
- data/spec/vcr/subscription/change2/1287037152.yml +0 -283
- data/spec/vcr/subscription/change2/1287037325.yml +0 -283
- data/spec/vcr/subscription/create/1287036910.yml +0 -224
- data/spec/vcr/subscription/find/1287037363.yml +0 -283
@@ -7,7 +7,7 @@
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
|
-
<account-code>invoice-create-
|
10
|
+
<account-code>invoice-create-1287167121</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<first-name>Verena</first-name>
|
@@ -28,30 +28,30 @@
|
|
28
28
|
message: Created
|
29
29
|
headers:
|
30
30
|
location:
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/invoice-create-
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/invoice-create-1287167121
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "605"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Mon, 18 Oct 2010 22:05:53 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=7c3b38d3d81ed358144edce04574cc0aa47bca2ad12bc421888f095630328d585d01fe58e0101ca8519bd2761147c8e66af50220779db23a05aa4b08602c0f8b%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=976b27aa4e979fb51c1b577d092fddd5; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
52
52
|
<account>
|
53
|
-
<id>invoice-create-
|
54
|
-
<account_code>invoice-create-
|
53
|
+
<id>invoice-create-1287167121</id>
|
54
|
+
<account_code>invoice-create-1287167121</account_code>
|
55
55
|
<username></username>
|
56
56
|
<email>verena@test.com</email>
|
57
57
|
<first_name>Verena</first_name>
|
@@ -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-10-
|
62
|
+
<hosted_login_token>e435dbe2500b48f3a93d0062da319cb8</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:05:53Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -68,14 +68,14 @@
|
|
68
68
|
- !ruby/struct:VCR::HTTPInteraction
|
69
69
|
request: !ruby/struct:VCR::Request
|
70
70
|
method: :put
|
71
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/billing_info.xml
|
72
72
|
body: |
|
73
73
|
<?xml version="1.0" encoding="UTF-8"?>
|
74
74
|
<billing-info>
|
75
75
|
<city>San Francisco</city>
|
76
76
|
<address1>123 Test St</address1>
|
77
77
|
<zip>94115</zip>
|
78
|
-
<account-code>invoice-create-
|
78
|
+
<account-code>invoice-create-1287167121</account-code>
|
79
79
|
<country>US</country>
|
80
80
|
<credit-card>
|
81
81
|
<number>1</number>
|
@@ -105,27 +105,27 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"2d669e5c99cd4cccc7171aa9c1c6f121\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "83"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Mon, 18 Oct 2010 22:05:54 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=2c8c674b80a1ec226295568ec91c9e8d; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
126
126
|
<?xml version="1.0" encoding="UTF-8"?>
|
127
127
|
<billing_info>
|
128
|
-
<account_code>invoice-create-
|
128
|
+
<account_code>invoice-create-1287167121</account_code>
|
129
129
|
<first_name>Verena</first_name>
|
130
130
|
<last_name>Test</last_name>
|
131
131
|
<address1>123 Test St</address1>
|
@@ -143,14 +143,14 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-18T22:05:54Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
150
150
|
- !ruby/struct:VCR::HTTPInteraction
|
151
151
|
request: !ruby/struct:VCR::Request
|
152
152
|
method: :post
|
153
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-
|
153
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/charges.xml
|
154
154
|
body: |
|
155
155
|
<?xml version="1.0" encoding="UTF-8"?>
|
156
156
|
<charge>
|
@@ -177,34 +177,34 @@
|
|
177
177
|
content-type:
|
178
178
|
- application/xml; charset=utf-8
|
179
179
|
x-runtime:
|
180
|
-
- "
|
180
|
+
- "46"
|
181
181
|
date:
|
182
|
-
-
|
182
|
+
- Mon, 18 Oct 2010 22:05:55 GMT
|
183
183
|
server:
|
184
184
|
- nginx/0.7.65
|
185
185
|
content-length:
|
186
186
|
- "457"
|
187
187
|
set-cookie:
|
188
|
-
- _recurly_session=
|
188
|
+
- _recurly_session=eaa6d1b89fa1173c9f84582da23ada8c; 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>
|
195
|
-
<account_code>invoice-create-
|
194
|
+
<id>a9a81d57b5ff49c8b4107d2ccb77ac39</id>
|
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-10-
|
197
|
+
<start_date type="datetime">2010-10-18T22:05:54Z</start_date>
|
198
198
|
<end_date nil="true" type="datetime"></end_date>
|
199
199
|
<description>charge description</description>
|
200
|
-
<created_at type="datetime">2010-10-
|
200
|
+
<created_at type="datetime">2010-10-18T22:05:54Z</created_at>
|
201
201
|
</charge>
|
202
202
|
|
203
203
|
http_version: "1.1"
|
204
204
|
- !ruby/struct:VCR::HTTPInteraction
|
205
205
|
request: !ruby/struct:VCR::Request
|
206
206
|
method: :post
|
207
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-
|
207
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/charges.xml
|
208
208
|
body: |
|
209
209
|
<?xml version="1.0" encoding="UTF-8"?>
|
210
210
|
<charge>
|
@@ -231,34 +231,34 @@
|
|
231
231
|
content-type:
|
232
232
|
- application/xml; charset=utf-8
|
233
233
|
x-runtime:
|
234
|
-
- "
|
234
|
+
- "45"
|
235
235
|
date:
|
236
|
-
-
|
236
|
+
- Mon, 18 Oct 2010 22:05:55 GMT
|
237
237
|
server:
|
238
238
|
- nginx/0.7.65
|
239
239
|
content-length:
|
240
240
|
- "457"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=b4bc2dfadfe7703affebb9b14559700e; domain=.recurly.com; path=/; Secure; HttpOnly
|
243
243
|
cache-control:
|
244
244
|
- no-cache
|
245
245
|
body: |
|
246
246
|
<?xml version="1.0" encoding="UTF-8"?>
|
247
247
|
<charge type="charge">
|
248
|
-
<id>
|
249
|
-
<account_code>invoice-create-
|
248
|
+
<id>db1e5408968948fdb5d2689d33f29bd8</id>
|
249
|
+
<account_code>invoice-create-1287167121</account_code>
|
250
250
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
251
|
-
<start_date type="datetime">2010-10-
|
251
|
+
<start_date type="datetime">2010-10-18T22:05:55Z</start_date>
|
252
252
|
<end_date nil="true" type="datetime"></end_date>
|
253
253
|
<description>charge description</description>
|
254
|
-
<created_at type="datetime">2010-10-
|
254
|
+
<created_at type="datetime">2010-10-18T22:05:55Z</created_at>
|
255
255
|
</charge>
|
256
256
|
|
257
257
|
http_version: "1.1"
|
258
258
|
- !ruby/struct:VCR::HTTPInteraction
|
259
259
|
request: !ruby/struct:VCR::Request
|
260
260
|
method: :post
|
261
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-
|
261
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1287167121/invoices.xml
|
262
262
|
body: |
|
263
263
|
<?xml version="1.0" encoding="UTF-8"?>
|
264
264
|
<invoice>
|
@@ -279,30 +279,30 @@
|
|
279
279
|
message: Created
|
280
280
|
headers:
|
281
281
|
location:
|
282
|
-
- https://recurlytest3-test.recurly.com/invoices/
|
282
|
+
- https://recurlytest3-test.recurly.com/invoices/bc3e8d7591754d7dab4d2f8fec286f06
|
283
283
|
connection:
|
284
284
|
- close
|
285
285
|
content-type:
|
286
286
|
- application/xml; charset=utf-8
|
287
287
|
x-runtime:
|
288
|
-
- "
|
288
|
+
- "104"
|
289
289
|
date:
|
290
|
-
-
|
290
|
+
- Mon, 18 Oct 2010 22:05:56 GMT
|
291
291
|
server:
|
292
292
|
- nginx/0.7.65
|
293
293
|
content-length:
|
294
294
|
- "1517"
|
295
295
|
set-cookie:
|
296
|
-
- _recurly_session=
|
296
|
+
- _recurly_session=5604f9c1cd96a1274e273ca747ca38e9; domain=.recurly.com; path=/; Secure; HttpOnly
|
297
297
|
cache-control:
|
298
298
|
- no-cache
|
299
299
|
body: |
|
300
300
|
<?xml version="1.0" encoding="UTF-8"?>
|
301
301
|
<invoice>
|
302
|
-
<id>
|
303
|
-
<account_code>invoice-create-
|
304
|
-
<date type="datetime">2010-10-
|
305
|
-
<invoice_number type="integer">
|
302
|
+
<id>bc3e8d7591754d7dab4d2f8fec286f06</id>
|
303
|
+
<account_code>invoice-create-1287167121</account_code>
|
304
|
+
<date type="datetime">2010-10-18T22:05:56Z</date>
|
305
|
+
<invoice_number type="integer">1866</invoice_number>
|
306
306
|
<vat_number></vat_number>
|
307
307
|
<status>open</status>
|
308
308
|
<subtotal_in_cents type="integer">2500</subtotal_in_cents>
|
@@ -312,22 +312,22 @@
|
|
312
312
|
<total_due_in_cents type="integer">2500</total_due_in_cents>
|
313
313
|
<line_items type="array">
|
314
314
|
<line_item>
|
315
|
-
<id>
|
315
|
+
<id>a9a81d57b5ff49c8b4107d2ccb77ac39</id>
|
316
316
|
<type>charge</type>
|
317
317
|
<amount_in_cents type="integer">1000</amount_in_cents>
|
318
|
-
<start_date type="datetime">2010-10-
|
318
|
+
<start_date type="datetime">2010-10-18T22:05:54Z</start_date>
|
319
319
|
<end_date nil="true" type="datetime"></end_date>
|
320
320
|
<description>charge description</description>
|
321
|
-
<created_at type="datetime">2010-10-
|
321
|
+
<created_at type="datetime">2010-10-18T22:05:54Z</created_at>
|
322
322
|
</line_item>
|
323
323
|
<line_item>
|
324
|
-
<id>
|
324
|
+
<id>db1e5408968948fdb5d2689d33f29bd8</id>
|
325
325
|
<type>charge</type>
|
326
326
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
327
|
-
<start_date type="datetime">2010-10-
|
327
|
+
<start_date type="datetime">2010-10-18T22:05:55Z</start_date>
|
328
328
|
<end_date nil="true" type="datetime"></end_date>
|
329
329
|
<description>charge description</description>
|
330
|
-
<created_at type="datetime">2010-10-
|
330
|
+
<created_at type="datetime">2010-10-18T22:05:55Z</created_at>
|
331
331
|
</line_item>
|
332
332
|
</line_items>
|
333
333
|
<payments type="array">
|
data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml}
RENAMED
@@ -7,7 +7,7 @@
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
|
-
<account-code>
|
10
|
+
<account-code>invoice-create-no-charges-1287167121</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<first-name>Verena</first-name>
|
@@ -28,30 +28,30 @@
|
|
28
28
|
message: Created
|
29
29
|
headers:
|
30
30
|
location:
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/invoice-create-no-charges-1287167121
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "586"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Mon, 18 Oct 2010 22:05:57 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=aa85b1c4d0fd112e6a02900d0932c4060f614587fc3ebf053c15fb403a67b453a40b1afb724e759c70409d4d8772628f277438da2b6c8a6a368673ff37d7ed30%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=d0c8a5a9d62ec0b8a89ea90f85e1b59e; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
52
52
|
<account>
|
53
|
-
<id>
|
54
|
-
<account_code>
|
53
|
+
<id>invoice-create-no-charges-1287167121</id>
|
54
|
+
<account_code>invoice-create-no-charges-1287167121</account_code>
|
55
55
|
<username></username>
|
56
56
|
<email>verena@test.com</email>
|
57
57
|
<first_name>Verena</first_name>
|
@@ -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-10-
|
62
|
+
<hosted_login_token>c7f8700f0d60462e95a81666d3101e3b</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:05:57Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -68,14 +68,14 @@
|
|
68
68
|
- !ruby/struct:VCR::HTTPInteraction
|
69
69
|
request: !ruby/struct:VCR::Request
|
70
70
|
method: :put
|
71
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-no-charges-1287167121/billing_info.xml
|
72
72
|
body: |
|
73
73
|
<?xml version="1.0" encoding="UTF-8"?>
|
74
74
|
<billing-info>
|
75
75
|
<city>San Francisco</city>
|
76
76
|
<address1>123 Test St</address1>
|
77
77
|
<zip>94115</zip>
|
78
|
-
<account-code>
|
78
|
+
<account-code>invoice-create-no-charges-1287167121</account-code>
|
79
79
|
<country>US</country>
|
80
80
|
<credit-card>
|
81
81
|
<number>1</number>
|
@@ -105,27 +105,27 @@
|
|
105
105
|
x-ua-compatible:
|
106
106
|
- IE=Edge
|
107
107
|
etag:
|
108
|
-
- "\"
|
108
|
+
- "\"95910c07c89337f1d5e6d2c4fade0392\""
|
109
109
|
connection:
|
110
110
|
- close
|
111
111
|
content-type:
|
112
112
|
- application/xml; charset=utf-8
|
113
113
|
x-runtime:
|
114
|
-
- "
|
114
|
+
- "57"
|
115
115
|
date:
|
116
|
-
-
|
116
|
+
- Mon, 18 Oct 2010 22:05:58 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=7d9a0926e2f1ba34025ae864a43097fc; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
123
|
cache-control:
|
124
124
|
- private, max-age=0, must-revalidate
|
125
125
|
body: |
|
126
126
|
<?xml version="1.0" encoding="UTF-8"?>
|
127
127
|
<billing_info>
|
128
|
-
<account_code>
|
128
|
+
<account_code>invoice-create-no-charges-1287167121</account_code>
|
129
129
|
<first_name>Verena</first_name>
|
130
130
|
<last_name>Test</last_name>
|
131
131
|
<address1>123 Test St</address1>
|
@@ -143,23 +143,18 @@
|
|
143
143
|
<month type="integer">10</month>
|
144
144
|
<year type="integer">2011</year>
|
145
145
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2010-10-
|
146
|
+
<updated_at type="datetime">2010-10-18T22:05:58Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
150
150
|
- !ruby/struct:VCR::HTTPInteraction
|
151
151
|
request: !ruby/struct:VCR::Request
|
152
152
|
method: :post
|
153
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/
|
153
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-no-charges-1287167121/invoices.xml
|
154
154
|
body: |
|
155
155
|
<?xml version="1.0" encoding="UTF-8"?>
|
156
|
-
<
|
157
|
-
|
158
|
-
<account-code>transaction-refund-1286674805</account-code>
|
159
|
-
</account>
|
160
|
-
<amount-in-cents type="integer">1000</amount-in-cents>
|
161
|
-
<description>one</description>
|
162
|
-
</transaction>
|
156
|
+
<invoice>
|
157
|
+
</invoice>
|
163
158
|
|
164
159
|
headers:
|
165
160
|
accept:
|
@@ -172,49 +167,29 @@
|
|
172
167
|
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
173
168
|
response: !ruby/struct:VCR::Response
|
174
169
|
status: !ruby/struct:VCR::ResponseStatus
|
175
|
-
code:
|
176
|
-
message:
|
170
|
+
code: 422
|
171
|
+
message: ""
|
177
172
|
headers:
|
178
|
-
location:
|
179
|
-
- https://recurlytest3-test.recurly.com/transactions/081f3864b1ed4e47ad5036752a638a91
|
180
173
|
connection:
|
181
174
|
- close
|
182
175
|
content-type:
|
183
176
|
- application/xml; charset=utf-8
|
184
177
|
x-runtime:
|
185
|
-
- "
|
178
|
+
- "23"
|
186
179
|
date:
|
187
|
-
-
|
180
|
+
- Mon, 18 Oct 2010 22:05:58 GMT
|
188
181
|
server:
|
189
182
|
- nginx/0.7.65
|
190
183
|
content-length:
|
191
|
-
- "
|
184
|
+
- "98"
|
192
185
|
set-cookie:
|
193
|
-
- _recurly_session=
|
186
|
+
- _recurly_session=e0e698006fbd212192f8e81ae8ea0da0; domain=.recurly.com; path=/; Secure; HttpOnly
|
194
187
|
cache-control:
|
195
188
|
- no-cache
|
196
189
|
body: |
|
197
190
|
<?xml version="1.0" encoding="UTF-8"?>
|
198
|
-
<
|
199
|
-
<
|
200
|
-
|
201
|
-
<action>purchase</action>
|
202
|
-
<date type="datetime">2010-10-14T06:18:02Z</date>
|
203
|
-
<amount_in_cents type="integer">1000</amount_in_cents>
|
204
|
-
<status>success</status>
|
205
|
-
<message>Test Gateway: Successful test transaction</message>
|
206
|
-
<reference></reference>
|
207
|
-
<cvv_result code="M">Match</cvv_result>
|
208
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
209
|
-
<avs_result_street></avs_result_street>
|
210
|
-
<avs_result_postal></avs_result_postal>
|
211
|
-
<test type="boolean">true</test>
|
212
|
-
<voidable type="boolean">true</voidable>
|
213
|
-
<refundable type="boolean">true</refundable>
|
214
|
-
<credit_card>
|
215
|
-
<type>bogus</type>
|
216
|
-
<last_four>1</last_four>
|
217
|
-
</credit_card>
|
218
|
-
</transaction>
|
191
|
+
<errors>
|
192
|
+
<error>No charges to invoice.</error>
|
193
|
+
</errors>
|
219
194
|
|
220
195
|
http_version: "1.1"
|