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>transaction-lookup-
|
10
|
+
<account-code>transaction-lookup-1287186411</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/transaction-lookup-
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/transaction-lookup-1287186411
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "584"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Mon, 18 Oct 2010 22:07:08 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "591"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=390e72a26294b27c85217d8ca58edaf8f8e79d9b7ef5bbf950ad64ef55676aaaef6899ebeba64d05263bd738a89ee5c760aec4c8f0067e6a18d9629869f81fc5%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=3858982824df51fbf4435ff37b7d2c0d; 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>transaction-lookup-
|
54
|
-
<account_code>transaction-lookup-
|
53
|
+
<id>transaction-lookup-1287186411</id>
|
54
|
+
<account_code>transaction-lookup-1287186411</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>9ed59c9c2063450eafc5e8d66e6f26da</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:07:08Z</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/transaction-lookup-
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-lookup-1287186411/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>transaction-lookup-
|
78
|
+
<account-code>transaction-lookup-1287186411</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
|
+
- "\"c96b8ac2b2ceff7a7556b5ea1e4f5b90\""
|
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:07:09 GMT
|
117
117
|
server:
|
118
118
|
- nginx/0.7.65
|
119
119
|
content-length:
|
120
120
|
- "643"
|
121
121
|
set-cookie:
|
122
|
-
- _recurly_session=
|
122
|
+
- _recurly_session=e39387ea80ddd3399314942e408c7411; 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>transaction-lookup-
|
128
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
129
129
|
<first_name>Verena</first_name>
|
130
130
|
<last_name>Test</last_name>
|
131
131
|
<address1>123 Test St</address1>
|
@@ -143,7 +143,7 @@
|
|
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:07:09Z</updated_at>
|
147
147
|
</billing_info>
|
148
148
|
|
149
149
|
http_version: "1.1"
|
@@ -155,7 +155,7 @@
|
|
155
155
|
<?xml version="1.0" encoding="UTF-8"?>
|
156
156
|
<transaction>
|
157
157
|
<account>
|
158
|
-
<account-code>transaction-lookup-
|
158
|
+
<account-code>transaction-lookup-1287186411</account-code>
|
159
159
|
</account>
|
160
160
|
<amount-in-cents type="integer">100</amount-in-cents>
|
161
161
|
<description>one</description>
|
@@ -176,30 +176,30 @@
|
|
176
176
|
message: Created
|
177
177
|
headers:
|
178
178
|
location:
|
179
|
-
- https://recurlytest3-test.recurly.com/transactions/
|
179
|
+
- https://recurlytest3-test.recurly.com/transactions/cd30c473df9c46819bdb6c789d4e2d8e
|
180
180
|
connection:
|
181
181
|
- close
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
x-runtime:
|
185
|
-
- "
|
185
|
+
- "589"
|
186
186
|
date:
|
187
|
-
-
|
187
|
+
- Mon, 18 Oct 2010 22:07:10 GMT
|
188
188
|
server:
|
189
189
|
- nginx/0.7.65
|
190
190
|
content-length:
|
191
191
|
- "850"
|
192
192
|
set-cookie:
|
193
|
-
- _recurly_session=
|
193
|
+
- _recurly_session=1547d5a15444bbfc3ff1042b5c19c1e7; domain=.recurly.com; path=/; Secure; HttpOnly
|
194
194
|
cache-control:
|
195
195
|
- no-cache
|
196
196
|
body: |
|
197
197
|
<?xml version="1.0" encoding="UTF-8"?>
|
198
198
|
<transaction type="Payment">
|
199
|
-
<id>
|
200
|
-
<account_code>transaction-lookup-
|
199
|
+
<id>cd30c473df9c46819bdb6c789d4e2d8e</id>
|
200
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
201
201
|
<action>purchase</action>
|
202
|
-
<date type="datetime">2010-10-
|
202
|
+
<date type="datetime">2010-10-18T22:07:10Z</date>
|
203
203
|
<amount_in_cents type="integer">100</amount_in_cents>
|
204
204
|
<status>success</status>
|
205
205
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -226,7 +226,7 @@
|
|
226
226
|
<?xml version="1.0" encoding="UTF-8"?>
|
227
227
|
<transaction>
|
228
228
|
<account>
|
229
|
-
<account-code>transaction-lookup-
|
229
|
+
<account-code>transaction-lookup-1287186411</account-code>
|
230
230
|
</account>
|
231
231
|
<amount-in-cents type="integer">200</amount-in-cents>
|
232
232
|
<description>two</description>
|
@@ -247,30 +247,30 @@
|
|
247
247
|
message: Created
|
248
248
|
headers:
|
249
249
|
location:
|
250
|
-
- https://recurlytest3-test.recurly.com/transactions/
|
250
|
+
- https://recurlytest3-test.recurly.com/transactions/f3d1299c55194758b25dba5dc687bbda
|
251
251
|
connection:
|
252
252
|
- close
|
253
253
|
content-type:
|
254
254
|
- application/xml; charset=utf-8
|
255
255
|
x-runtime:
|
256
|
-
- "
|
256
|
+
- "495"
|
257
257
|
date:
|
258
|
-
-
|
258
|
+
- Mon, 18 Oct 2010 22:07:12 GMT
|
259
259
|
server:
|
260
260
|
- nginx/0.7.65
|
261
261
|
content-length:
|
262
262
|
- "850"
|
263
263
|
set-cookie:
|
264
|
-
- _recurly_session=
|
264
|
+
- _recurly_session=729c45f849c7a00ed4c421bd4e01649b; domain=.recurly.com; path=/; Secure; HttpOnly
|
265
265
|
cache-control:
|
266
266
|
- no-cache
|
267
267
|
body: |
|
268
268
|
<?xml version="1.0" encoding="UTF-8"?>
|
269
269
|
<transaction type="Payment">
|
270
|
-
<id>
|
271
|
-
<account_code>transaction-lookup-
|
270
|
+
<id>f3d1299c55194758b25dba5dc687bbda</id>
|
271
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
272
272
|
<action>purchase</action>
|
273
|
-
<date type="datetime">2010-10-
|
273
|
+
<date type="datetime">2010-10-18T22:07:11Z</date>
|
274
274
|
<amount_in_cents type="integer">200</amount_in_cents>
|
275
275
|
<status>success</status>
|
276
276
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -297,7 +297,7 @@
|
|
297
297
|
<?xml version="1.0" encoding="UTF-8"?>
|
298
298
|
<transaction>
|
299
299
|
<account>
|
300
|
-
<account-code>transaction-lookup-
|
300
|
+
<account-code>transaction-lookup-1287186411</account-code>
|
301
301
|
</account>
|
302
302
|
<amount-in-cents type="integer">300</amount-in-cents>
|
303
303
|
<description>three</description>
|
@@ -318,30 +318,30 @@
|
|
318
318
|
message: Created
|
319
319
|
headers:
|
320
320
|
location:
|
321
|
-
- https://recurlytest3-test.recurly.com/transactions/
|
321
|
+
- https://recurlytest3-test.recurly.com/transactions/d75002d8e3c94258a96e263deb7dd3b0
|
322
322
|
connection:
|
323
323
|
- close
|
324
324
|
content-type:
|
325
325
|
- application/xml; charset=utf-8
|
326
326
|
x-runtime:
|
327
|
-
- "
|
327
|
+
- "604"
|
328
328
|
date:
|
329
|
-
-
|
329
|
+
- Mon, 18 Oct 2010 22:07:13 GMT
|
330
330
|
server:
|
331
331
|
- nginx/0.7.65
|
332
332
|
content-length:
|
333
333
|
- "850"
|
334
334
|
set-cookie:
|
335
|
-
- _recurly_session=
|
335
|
+
- _recurly_session=7af7d62a35823c633948b4abc6e8efee; domain=.recurly.com; path=/; Secure; HttpOnly
|
336
336
|
cache-control:
|
337
337
|
- no-cache
|
338
338
|
body: |
|
339
339
|
<?xml version="1.0" encoding="UTF-8"?>
|
340
340
|
<transaction type="Payment">
|
341
|
-
<id>
|
342
|
-
<account_code>transaction-lookup-
|
341
|
+
<id>d75002d8e3c94258a96e263deb7dd3b0</id>
|
342
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
343
343
|
<action>purchase</action>
|
344
|
-
<date type="datetime">2010-10-
|
344
|
+
<date type="datetime">2010-10-18T22:07:12Z</date>
|
345
345
|
<amount_in_cents type="integer">300</amount_in_cents>
|
346
346
|
<status>success</status>
|
347
347
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -363,7 +363,7 @@
|
|
363
363
|
- !ruby/struct:VCR::HTTPInteraction
|
364
364
|
request: !ruby/struct:VCR::Request
|
365
365
|
method: :get
|
366
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/
|
366
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/cd30c473df9c46819bdb6c789d4e2d8e.xml?account_code=transaction-lookup-1287186411
|
367
367
|
body:
|
368
368
|
headers:
|
369
369
|
accept:
|
@@ -380,30 +380,30 @@
|
|
380
380
|
x-ua-compatible:
|
381
381
|
- IE=Edge
|
382
382
|
etag:
|
383
|
-
- "\"
|
383
|
+
- "\"7b52999e57e6aef69cbe1d50546d9036\""
|
384
384
|
connection:
|
385
385
|
- close
|
386
386
|
content-type:
|
387
387
|
- application/xml; charset=utf-8
|
388
388
|
x-runtime:
|
389
|
-
- "
|
389
|
+
- "22"
|
390
390
|
date:
|
391
|
-
-
|
391
|
+
- Mon, 18 Oct 2010 22:07:13 GMT
|
392
392
|
server:
|
393
393
|
- nginx/0.7.65
|
394
394
|
content-length:
|
395
395
|
- "850"
|
396
396
|
set-cookie:
|
397
|
-
- _recurly_session=
|
397
|
+
- _recurly_session=39ddb792078794fea8e610df39c747ad; domain=.recurly.com; path=/; Secure; HttpOnly
|
398
398
|
cache-control:
|
399
399
|
- private, max-age=0, must-revalidate
|
400
400
|
body: |
|
401
401
|
<?xml version="1.0" encoding="UTF-8"?>
|
402
402
|
<transaction type="Payment">
|
403
|
-
<id>
|
404
|
-
<account_code>transaction-lookup-
|
403
|
+
<id>cd30c473df9c46819bdb6c789d4e2d8e</id>
|
404
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
405
405
|
<action>purchase</action>
|
406
|
-
<date type="datetime">2010-10-
|
406
|
+
<date type="datetime">2010-10-18T22:07:10Z</date>
|
407
407
|
<amount_in_cents type="integer">100</amount_in_cents>
|
408
408
|
<status>success</status>
|
409
409
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -425,7 +425,7 @@
|
|
425
425
|
- !ruby/struct:VCR::HTTPInteraction
|
426
426
|
request: !ruby/struct:VCR::Request
|
427
427
|
method: :get
|
428
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/
|
428
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/f3d1299c55194758b25dba5dc687bbda.xml?account_code=transaction-lookup-1287186411
|
429
429
|
body:
|
430
430
|
headers:
|
431
431
|
accept:
|
@@ -442,30 +442,30 @@
|
|
442
442
|
x-ua-compatible:
|
443
443
|
- IE=Edge
|
444
444
|
etag:
|
445
|
-
- "\"
|
445
|
+
- "\"ba2d1ed571f9c6c3fb6e957522191fe4\""
|
446
446
|
connection:
|
447
447
|
- close
|
448
448
|
content-type:
|
449
449
|
- application/xml; charset=utf-8
|
450
450
|
x-runtime:
|
451
|
-
- "
|
451
|
+
- "16"
|
452
452
|
date:
|
453
|
-
-
|
453
|
+
- Mon, 18 Oct 2010 22:07:14 GMT
|
454
454
|
server:
|
455
455
|
- nginx/0.7.65
|
456
456
|
content-length:
|
457
457
|
- "850"
|
458
458
|
set-cookie:
|
459
|
-
- _recurly_session=
|
459
|
+
- _recurly_session=0840feda2c627c296815af9f99679fb1; domain=.recurly.com; path=/; Secure; HttpOnly
|
460
460
|
cache-control:
|
461
461
|
- private, max-age=0, must-revalidate
|
462
462
|
body: |
|
463
463
|
<?xml version="1.0" encoding="UTF-8"?>
|
464
464
|
<transaction type="Payment">
|
465
|
-
<id>
|
466
|
-
<account_code>transaction-lookup-
|
465
|
+
<id>f3d1299c55194758b25dba5dc687bbda</id>
|
466
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
467
467
|
<action>purchase</action>
|
468
|
-
<date type="datetime">2010-10-
|
468
|
+
<date type="datetime">2010-10-18T22:07:11Z</date>
|
469
469
|
<amount_in_cents type="integer">200</amount_in_cents>
|
470
470
|
<status>success</status>
|
471
471
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -487,7 +487,7 @@
|
|
487
487
|
- !ruby/struct:VCR::HTTPInteraction
|
488
488
|
request: !ruby/struct:VCR::Request
|
489
489
|
method: :get
|
490
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/
|
490
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/d75002d8e3c94258a96e263deb7dd3b0.xml?account_code=transaction-lookup-1287186411
|
491
491
|
body:
|
492
492
|
headers:
|
493
493
|
accept:
|
@@ -504,30 +504,30 @@
|
|
504
504
|
x-ua-compatible:
|
505
505
|
- IE=Edge
|
506
506
|
etag:
|
507
|
-
- "\"
|
507
|
+
- "\"ef9e1b565202d8c42bd62b396b3e8d96\""
|
508
508
|
connection:
|
509
509
|
- close
|
510
510
|
content-type:
|
511
511
|
- application/xml; charset=utf-8
|
512
512
|
x-runtime:
|
513
|
-
- "
|
513
|
+
- "31"
|
514
514
|
date:
|
515
|
-
-
|
515
|
+
- Mon, 18 Oct 2010 22:07:14 GMT
|
516
516
|
server:
|
517
517
|
- nginx/0.7.65
|
518
518
|
content-length:
|
519
519
|
- "850"
|
520
520
|
set-cookie:
|
521
|
-
- _recurly_session=
|
521
|
+
- _recurly_session=e6080fd8f23e86d3e3980047ea3670c8; domain=.recurly.com; path=/; Secure; HttpOnly
|
522
522
|
cache-control:
|
523
523
|
- private, max-age=0, must-revalidate
|
524
524
|
body: |
|
525
525
|
<?xml version="1.0" encoding="UTF-8"?>
|
526
526
|
<transaction type="Payment">
|
527
|
-
<id>
|
528
|
-
<account_code>transaction-lookup-
|
527
|
+
<id>d75002d8e3c94258a96e263deb7dd3b0</id>
|
528
|
+
<account_code>transaction-lookup-1287186411</account_code>
|
529
529
|
<action>purchase</action>
|
530
|
-
<date type="datetime">2010-10-
|
530
|
+
<date type="datetime">2010-10-18T22:07:12Z</date>
|
531
531
|
<amount_in_cents type="integer">300</amount_in_cents>
|
532
532
|
<status>success</status>
|
533
533
|
<message>Test Gateway: Successful test transaction</message>
|
@@ -0,0 +1,282 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>transaction-refund-1287186411</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/transaction-refund-1287186411
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "609"
|
38
|
+
date:
|
39
|
+
- Mon, 18 Oct 2010 22:07:20 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "591"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=20176c4be12f6da34684bcca35557e03bb49676fbf2108b7a9217c6d88ed7144be671c0c45d2f89c2635bf93a67676222e340358af6be5270f5b45dc586aa7d4%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=3375f94bc4e4fbde916f82507c6007c1; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>transaction-refund-1287186411</id>
|
54
|
+
<account_code>transaction-refund-1287186411</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>ac1dd82bec4f48cb9ae69ffb0f06528f</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:07:20Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :put
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-refund-1287186411/billing_info.xml
|
72
|
+
body: |
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
74
|
+
<billing-info>
|
75
|
+
<city>San Francisco</city>
|
76
|
+
<address1>123 Test St</address1>
|
77
|
+
<zip>94115</zip>
|
78
|
+
<account-code>transaction-refund-1287186411</account-code>
|
79
|
+
<country>US</country>
|
80
|
+
<credit-card>
|
81
|
+
<number>1</number>
|
82
|
+
<month type="integer">10</month>
|
83
|
+
<year type="integer">2011</year>
|
84
|
+
<verification-value>123</verification-value>
|
85
|
+
</credit-card>
|
86
|
+
<last-name>Test</last-name>
|
87
|
+
<first-name>Verena</first-name>
|
88
|
+
<state>CA</state>
|
89
|
+
</billing-info>
|
90
|
+
|
91
|
+
headers:
|
92
|
+
accept:
|
93
|
+
- "*/*"
|
94
|
+
connection:
|
95
|
+
- close
|
96
|
+
content-type:
|
97
|
+
- application/xml
|
98
|
+
authorization:
|
99
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
100
|
+
response: !ruby/struct:VCR::Response
|
101
|
+
status: !ruby/struct:VCR::ResponseStatus
|
102
|
+
code: 200
|
103
|
+
message: OK
|
104
|
+
headers:
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge
|
107
|
+
etag:
|
108
|
+
- "\"f832d446abedc4db95509030482c3366\""
|
109
|
+
connection:
|
110
|
+
- close
|
111
|
+
content-type:
|
112
|
+
- application/xml; charset=utf-8
|
113
|
+
x-runtime:
|
114
|
+
- "62"
|
115
|
+
date:
|
116
|
+
- Mon, 18 Oct 2010 22:07:21 GMT
|
117
|
+
server:
|
118
|
+
- nginx/0.7.65
|
119
|
+
content-length:
|
120
|
+
- "643"
|
121
|
+
set-cookie:
|
122
|
+
- _recurly_session=474049835955950e7cc11dd2d8163e69; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
|
+
cache-control:
|
124
|
+
- private, max-age=0, must-revalidate
|
125
|
+
body: |
|
126
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
127
|
+
<billing_info>
|
128
|
+
<account_code>transaction-refund-1287186411</account_code>
|
129
|
+
<first_name>Verena</first_name>
|
130
|
+
<last_name>Test</last_name>
|
131
|
+
<address1>123 Test St</address1>
|
132
|
+
<address2></address2>
|
133
|
+
<city>San Francisco</city>
|
134
|
+
<state>CA</state>
|
135
|
+
<country>US</country>
|
136
|
+
<zip>94115</zip>
|
137
|
+
<phone></phone>
|
138
|
+
<vat_number></vat_number>
|
139
|
+
<ip_address></ip_address>
|
140
|
+
<credit_card>
|
141
|
+
<type>bogus</type>
|
142
|
+
<last_four>1</last_four>
|
143
|
+
<month type="integer">10</month>
|
144
|
+
<year type="integer">2011</year>
|
145
|
+
</credit_card>
|
146
|
+
<updated_at type="datetime">2010-10-18T22:07:21Z</updated_at>
|
147
|
+
</billing_info>
|
148
|
+
|
149
|
+
http_version: "1.1"
|
150
|
+
- !ruby/struct:VCR::HTTPInteraction
|
151
|
+
request: !ruby/struct:VCR::Request
|
152
|
+
method: :post
|
153
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
|
154
|
+
body: |
|
155
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
156
|
+
<transaction>
|
157
|
+
<account>
|
158
|
+
<account-code>transaction-refund-1287186411</account-code>
|
159
|
+
</account>
|
160
|
+
<amount-in-cents type="integer">1000</amount-in-cents>
|
161
|
+
<description>one</description>
|
162
|
+
</transaction>
|
163
|
+
|
164
|
+
headers:
|
165
|
+
accept:
|
166
|
+
- "*/*"
|
167
|
+
connection:
|
168
|
+
- close
|
169
|
+
content-type:
|
170
|
+
- application/xml
|
171
|
+
authorization:
|
172
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
173
|
+
response: !ruby/struct:VCR::Response
|
174
|
+
status: !ruby/struct:VCR::ResponseStatus
|
175
|
+
code: 201
|
176
|
+
message: Created
|
177
|
+
headers:
|
178
|
+
location:
|
179
|
+
- https://recurlytest3-test.recurly.com/transactions/6207d67c6b454a02b26e4107775d50eb
|
180
|
+
connection:
|
181
|
+
- close
|
182
|
+
content-type:
|
183
|
+
- application/xml; charset=utf-8
|
184
|
+
x-runtime:
|
185
|
+
- "551"
|
186
|
+
date:
|
187
|
+
- Mon, 18 Oct 2010 22:07:22 GMT
|
188
|
+
server:
|
189
|
+
- nginx/0.7.65
|
190
|
+
content-length:
|
191
|
+
- "851"
|
192
|
+
set-cookie:
|
193
|
+
- _recurly_session=9fe0c27eab354c6aa7d4879a680f422e; domain=.recurly.com; path=/; Secure; HttpOnly
|
194
|
+
cache-control:
|
195
|
+
- no-cache
|
196
|
+
body: |
|
197
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
198
|
+
<transaction type="Payment">
|
199
|
+
<id>6207d67c6b454a02b26e4107775d50eb</id>
|
200
|
+
<account_code>transaction-refund-1287186411</account_code>
|
201
|
+
<action>purchase</action>
|
202
|
+
<date type="datetime">2010-10-18T22:07:21Z</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>
|
219
|
+
|
220
|
+
http_version: "1.1"
|
221
|
+
- !ruby/struct:VCR::HTTPInteraction
|
222
|
+
request: !ruby/struct:VCR::Request
|
223
|
+
method: :delete
|
224
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions/6207d67c6b454a02b26e4107775d50eb.xml?action=refund&amount=1000
|
225
|
+
body:
|
226
|
+
headers:
|
227
|
+
accept:
|
228
|
+
- application/xml
|
229
|
+
connection:
|
230
|
+
- close
|
231
|
+
authorization:
|
232
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
233
|
+
response: !ruby/struct:VCR::Response
|
234
|
+
status: !ruby/struct:VCR::ResponseStatus
|
235
|
+
code: 200
|
236
|
+
message: OK
|
237
|
+
headers:
|
238
|
+
x-ua-compatible:
|
239
|
+
- IE=Edge
|
240
|
+
etag:
|
241
|
+
- "\"001bea0b5e67e3a3ff2f802e208d0c5b\""
|
242
|
+
connection:
|
243
|
+
- close
|
244
|
+
content-type:
|
245
|
+
- application/xml; charset=utf-8
|
246
|
+
x-runtime:
|
247
|
+
- "56"
|
248
|
+
date:
|
249
|
+
- Mon, 18 Oct 2010 22:07:22 GMT
|
250
|
+
server:
|
251
|
+
- nginx/0.7.65
|
252
|
+
content-length:
|
253
|
+
- "850"
|
254
|
+
set-cookie:
|
255
|
+
- _recurly_session=6e3621fc75422d1f7001dbc5f5771205; domain=.recurly.com; path=/; Secure; HttpOnly
|
256
|
+
cache-control:
|
257
|
+
- private, max-age=0, must-revalidate
|
258
|
+
body: |
|
259
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
260
|
+
<transaction type="Payment">
|
261
|
+
<id>6207d67c6b454a02b26e4107775d50eb</id>
|
262
|
+
<account_code>transaction-refund-1287186411</account_code>
|
263
|
+
<action>purchase</action>
|
264
|
+
<date type="datetime">2010-10-18T22:07:21Z</date>
|
265
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
266
|
+
<status>void</status>
|
267
|
+
<message>Test Gateway: Successful test transaction</message>
|
268
|
+
<reference></reference>
|
269
|
+
<cvv_result code="M">Match</cvv_result>
|
270
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
271
|
+
<avs_result_street></avs_result_street>
|
272
|
+
<avs_result_postal></avs_result_postal>
|
273
|
+
<test type="boolean">true</test>
|
274
|
+
<voidable type="boolean">false</voidable>
|
275
|
+
<refundable type="boolean">false</refundable>
|
276
|
+
<credit_card>
|
277
|
+
<type>bogus</type>
|
278
|
+
<last_four>1</last_four>
|
279
|
+
</credit_card>
|
280
|
+
</transaction>
|
281
|
+
|
282
|
+
http_version: "1.1"
|