recurly 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,89 +2,91 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<transaction>
|
9
9
|
<account>
|
10
|
-
<
|
11
|
-
<
|
10
|
+
<account-code>transaction-create-with-accout-1296674173</account-code>
|
11
|
+
<first-name>Verena</first-name>
|
12
12
|
<last-name>Test</last-name>
|
13
|
+
<email>verena@test.com</email>
|
14
|
+
<company-name>Recurly Ruby Gem</company-name>
|
13
15
|
<billing-info>
|
14
16
|
<address1>123 Test St</address1>
|
15
17
|
<city>San Francisco</city>
|
18
|
+
<state>CA</state>
|
16
19
|
<zip>94115</zip>
|
17
20
|
<country>US</country>
|
18
21
|
<credit-card>
|
19
|
-
<number>
|
20
|
-
<month type="integer">1</month>
|
22
|
+
<number>4111111111111111</number>
|
21
23
|
<year type="integer">2012</year>
|
24
|
+
<month type="integer">2</month>
|
22
25
|
<verification-value>123</verification-value>
|
23
26
|
</credit-card>
|
24
|
-
<state>CA</state>
|
25
27
|
</billing-info>
|
26
|
-
<email>verena@test.com</email>
|
27
|
-
<first-name>Verena</first-name>
|
28
28
|
</account>
|
29
29
|
<amount-in-cents type="integer">700</amount-in-cents>
|
30
30
|
<description>setup fee of 7 dollarz</description>
|
31
31
|
</transaction>
|
32
32
|
|
33
33
|
headers:
|
34
|
+
authorization:
|
35
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
36
|
+
content-type:
|
37
|
+
- application/xml
|
34
38
|
accept:
|
35
39
|
- "*/*"
|
40
|
+
user-agent:
|
41
|
+
- Ruby
|
36
42
|
connection:
|
37
43
|
- close
|
38
|
-
content-type:
|
39
|
-
- application/xml
|
40
|
-
authorization:
|
41
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
42
44
|
response: !ruby/struct:VCR::Response
|
43
45
|
status: !ruby/struct:VCR::ResponseStatus
|
44
46
|
code: 201
|
45
|
-
message: Created
|
47
|
+
message: "Created "
|
46
48
|
headers:
|
49
|
+
cache-control:
|
50
|
+
- no-cache
|
47
51
|
location:
|
48
|
-
-
|
49
|
-
|
50
|
-
-
|
52
|
+
- http://litle-test.recurly.local:3000/transactions/bada094d35ec4ca8822320bb8062a8c9
|
53
|
+
x-runtime:
|
54
|
+
- "4664"
|
51
55
|
content-type:
|
52
56
|
- application/xml; charset=utf-8
|
53
|
-
x-runtime:
|
54
|
-
- "882"
|
55
|
-
date:
|
56
|
-
- Sat, 08 Jan 2011 08:06:23 GMT
|
57
|
-
server:
|
58
|
-
- nginx/0.8.53
|
59
57
|
content-length:
|
60
|
-
- "
|
58
|
+
- "871"
|
59
|
+
server:
|
60
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
61
|
+
date:
|
62
|
+
- Thu, 03 Feb 2011 22:24:27 GMT
|
63
|
+
connection:
|
64
|
+
- close
|
61
65
|
set-cookie:
|
62
|
-
- account_credentials=
|
66
|
+
- account_credentials=67fa4108827dd3427adffd7527322a6a1051facaf436e346fd0efb6145b18b5db2959c2aec68c6764ed1e355b974f7f80a003856ecb860008d032716679d2391%3A%3A; domain=.recurly.local; path=/
|
63
67
|
- ""
|
64
|
-
- _recurly_session=
|
65
|
-
cache-control:
|
66
|
-
- no-cache
|
68
|
+
- _recurly_session=5d9a3b771b9c008ae95d2c7582a106ea; domain=.recurly.local; path=/; HttpOnly
|
67
69
|
body: |
|
68
70
|
<?xml version="1.0" encoding="UTF-8"?>
|
69
71
|
<transaction type="Payment">
|
70
|
-
<id>
|
71
|
-
<account_code>transaction-create-with-accout-
|
72
|
+
<id>bada094d35ec4ca8822320bb8062a8c9</id>
|
73
|
+
<account_code>transaction-create-with-accout-1296674173</account_code>
|
72
74
|
<action>purchase</action>
|
73
|
-
<date type="datetime">2011-
|
75
|
+
<date type="datetime">2011-02-03T22:24:24Z</date>
|
74
76
|
<amount_in_cents type="integer">700</amount_in_cents>
|
75
77
|
<status>success</status>
|
76
78
|
<message>Test Gateway: Successful test transaction</message>
|
77
|
-
<reference
|
79
|
+
<reference>12345</reference>
|
78
80
|
<cvv_result code="M">Match</cvv_result>
|
79
81
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
80
|
-
<avs_result_street
|
81
|
-
<avs_result_postal
|
82
|
+
<avs_result_street>Y</avs_result_street>
|
83
|
+
<avs_result_postal>Y</avs_result_postal>
|
82
84
|
<test type="boolean">true</test>
|
83
85
|
<voidable type="boolean">true</voidable>
|
84
86
|
<refundable type="boolean">true</refundable>
|
85
87
|
<credit_card>
|
86
|
-
<type>
|
87
|
-
<last_four>
|
88
|
+
<type>visa</type>
|
89
|
+
<last_four>1111</last_four>
|
88
90
|
</credit_card>
|
89
91
|
</transaction>
|
90
92
|
|
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>transaction-create-with-account-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "590"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "431"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:06:24 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "617"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:24:30 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=7a73db2306cd38e91b2422388121b3dea06e8797bd904bf7fe92f02e7e95c6dacf448f66087b32974b91eb59a833d701c47eeb950b1713fe176bae0283262be0%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=95d00a2495efc318c446e393689ebe42; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>transaction-create-with-account-
|
55
|
-
<account_code>transaction-create-with-account-
|
56
|
+
<id>transaction-create-with-account-1296674173</id>
|
57
|
+
<account_code>transaction-create-with-account-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>89e2cbcd70894dce9a3eaac8435c91ba</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:24:30Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,64 +71,64 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
|
-
<account-code>transaction-create-with-account-1289558212</account-code>
|
80
82
|
<country>US</country>
|
81
83
|
<credit-card>
|
82
|
-
<number>
|
83
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
84
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
85
87
|
<verification-value>123</verification-value>
|
86
88
|
</credit-card>
|
87
|
-
<
|
89
|
+
<account-code>transaction-create-with-account-1296674173</account-code>
|
88
90
|
<first-name>Verena</first-name>
|
89
|
-
<
|
91
|
+
<last-name>Test</last-name>
|
90
92
|
</billing-info>
|
91
93
|
|
92
94
|
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
+
content-type:
|
98
|
+
- application/xml
|
93
99
|
accept:
|
94
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
95
103
|
connection:
|
96
104
|
- close
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
authorization:
|
100
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
101
105
|
response: !ruby/struct:VCR::Response
|
102
106
|
status: !ruby/struct:VCR::ResponseStatus
|
103
107
|
code: 200
|
104
|
-
message: OK
|
108
|
+
message: "OK "
|
105
109
|
headers:
|
106
|
-
x-
|
107
|
-
-
|
108
|
-
etag:
|
109
|
-
- "\"8463ada9acf57dd1fd2e513890a7292a\""
|
110
|
-
connection:
|
111
|
-
- close
|
110
|
+
x-runtime:
|
111
|
+
- "1677"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
|
-
|
115
|
-
- "
|
116
|
-
date:
|
117
|
-
- Sat, 08 Jan 2011 08:06:25 GMT
|
118
|
-
server:
|
119
|
-
- nginx/0.8.53
|
120
|
-
content-length:
|
121
|
-
- "655"
|
122
|
-
set-cookie:
|
123
|
-
- _recurly_session=38d309af078cdd8cdd570226f691107a; domain=.recurly.com; path=/; secure; HttpOnly
|
114
|
+
etag:
|
115
|
+
- "\"cb765597f1b08920e415a74b14b16820\""
|
124
116
|
cache-control:
|
125
117
|
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "657"
|
120
|
+
server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
|
+
date:
|
123
|
+
- Thu, 03 Feb 2011 22:24:34 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
set-cookie:
|
127
|
+
- _recurly_session=966a48911485f6756c3e43402ddcc744; domain=.recurly.local; path=/; HttpOnly
|
126
128
|
body: |
|
127
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
130
|
<billing_info>
|
129
|
-
<account_code>transaction-create-with-account-
|
131
|
+
<account_code>transaction-create-with-account-1296674173</account_code>
|
130
132
|
<first_name>Verena</first_name>
|
131
133
|
<last_name>Test</last_name>
|
132
134
|
<address1>123 Test St</address1>
|
@@ -139,82 +141,84 @@
|
|
139
141
|
<vat_number></vat_number>
|
140
142
|
<ip_address></ip_address>
|
141
143
|
<credit_card>
|
142
|
-
<type>
|
143
|
-
<last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<type>visa</type>
|
145
|
+
<last_four>1111</last_four>
|
146
|
+
<month type="integer">2</month>
|
145
147
|
<year type="integer">2012</year>
|
146
148
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:24:34Z</updated_at>
|
148
150
|
</billing_info>
|
149
151
|
|
150
152
|
http_version: "1.1"
|
151
153
|
- !ruby/struct:VCR::HTTPInteraction
|
152
154
|
request: !ruby/struct:VCR::Request
|
153
155
|
method: :post
|
154
|
-
uri:
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
155
157
|
body: |
|
156
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
159
|
<transaction>
|
158
160
|
<account>
|
159
|
-
<account-code>transaction-create-with-account-
|
161
|
+
<account-code>transaction-create-with-account-1296674173</account-code>
|
160
162
|
</account>
|
161
163
|
<amount-in-cents type="integer">700</amount-in-cents>
|
162
164
|
<description>test transaction for $7</description>
|
163
165
|
</transaction>
|
164
166
|
|
165
167
|
headers:
|
168
|
+
authorization:
|
169
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
170
|
+
content-type:
|
171
|
+
- application/xml
|
166
172
|
accept:
|
167
173
|
- "*/*"
|
174
|
+
user-agent:
|
175
|
+
- Ruby
|
168
176
|
connection:
|
169
177
|
- close
|
170
|
-
content-type:
|
171
|
-
- application/xml
|
172
|
-
authorization:
|
173
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
174
178
|
response: !ruby/struct:VCR::Response
|
175
179
|
status: !ruby/struct:VCR::ResponseStatus
|
176
180
|
code: 201
|
177
|
-
message: Created
|
181
|
+
message: "Created "
|
178
182
|
headers:
|
183
|
+
cache-control:
|
184
|
+
- no-cache
|
179
185
|
location:
|
180
|
-
-
|
181
|
-
|
182
|
-
-
|
186
|
+
- http://litle-test.recurly.local:3000/transactions/7a53ae4b1d7d4f768010ca03f8a91210
|
187
|
+
x-runtime:
|
188
|
+
- "4235"
|
183
189
|
content-type:
|
184
190
|
- application/xml; charset=utf-8
|
185
|
-
x-runtime:
|
186
|
-
- "442"
|
187
|
-
date:
|
188
|
-
- Sat, 08 Jan 2011 08:06:26 GMT
|
189
|
-
server:
|
190
|
-
- nginx/0.8.53
|
191
191
|
content-length:
|
192
|
-
- "
|
192
|
+
- "872"
|
193
|
+
server:
|
194
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
195
|
+
date:
|
196
|
+
- Thu, 03 Feb 2011 22:24:40 GMT
|
197
|
+
connection:
|
198
|
+
- close
|
193
199
|
set-cookie:
|
194
|
-
- _recurly_session=
|
195
|
-
cache-control:
|
196
|
-
- no-cache
|
200
|
+
- _recurly_session=e759b1858561e5acaf2b31c2b917fb1a; domain=.recurly.local; path=/; HttpOnly
|
197
201
|
body: |
|
198
202
|
<?xml version="1.0" encoding="UTF-8"?>
|
199
203
|
<transaction type="Payment">
|
200
|
-
<id>
|
201
|
-
<account_code>transaction-create-with-account-
|
204
|
+
<id>7a53ae4b1d7d4f768010ca03f8a91210</id>
|
205
|
+
<account_code>transaction-create-with-account-1296674173</account_code>
|
202
206
|
<action>purchase</action>
|
203
|
-
<date type="datetime">2011-
|
207
|
+
<date type="datetime">2011-02-03T22:24:37Z</date>
|
204
208
|
<amount_in_cents type="integer">700</amount_in_cents>
|
205
209
|
<status>success</status>
|
206
210
|
<message>Test Gateway: Successful test transaction</message>
|
207
|
-
<reference
|
211
|
+
<reference>12345</reference>
|
208
212
|
<cvv_result code="M">Match</cvv_result>
|
209
213
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
210
|
-
<avs_result_street
|
211
|
-
<avs_result_postal
|
214
|
+
<avs_result_street>Y</avs_result_street>
|
215
|
+
<avs_result_postal>Y</avs_result_postal>
|
212
216
|
<test type="boolean">true</test>
|
213
217
|
<voidable type="boolean">true</voidable>
|
214
218
|
<refundable type="boolean">true</refundable>
|
215
219
|
<credit_card>
|
216
|
-
<type>
|
217
|
-
<last_four>
|
220
|
+
<type>visa</type>
|
221
|
+
<last_four>1111</last_four>
|
218
222
|
</credit_card>
|
219
223
|
</transaction>
|
220
224
|
|
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>transaction-list-filled-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "754"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "351"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:06:31 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "601"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:24:57 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=719ab2b7ad0351e16154edfc3275ba45e4b96cca8aab76b7db32869ffa661d8bc64f24809d1fab7d8938c30e303ab8904e1f994918e461bc1349c683223ce382%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=8842de98b4a4d51f25561997602205b2; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>transaction-list-filled-
|
55
|
-
<account_code>transaction-list-filled-
|
56
|
+
<id>transaction-list-filled-1296674173</id>
|
57
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>f96839210c5d4a08a0360d0ed486ce06</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:24:57Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,64 +71,64 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
|
-
<account-code>transaction-list-filled-1289558212</account-code>
|
80
82
|
<country>US</country>
|
81
83
|
<credit-card>
|
82
|
-
<number>
|
83
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
84
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
85
87
|
<verification-value>123</verification-value>
|
86
88
|
</credit-card>
|
87
|
-
<
|
89
|
+
<account-code>transaction-list-filled-1296674173</account-code>
|
88
90
|
<first-name>Verena</first-name>
|
89
|
-
<
|
91
|
+
<last-name>Test</last-name>
|
90
92
|
</billing-info>
|
91
93
|
|
92
94
|
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
+
content-type:
|
98
|
+
- application/xml
|
93
99
|
accept:
|
94
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
95
103
|
connection:
|
96
104
|
- close
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
authorization:
|
100
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
101
105
|
response: !ruby/struct:VCR::Response
|
102
106
|
status: !ruby/struct:VCR::ResponseStatus
|
103
107
|
code: 200
|
104
|
-
message: OK
|
108
|
+
message: "OK "
|
105
109
|
headers:
|
106
|
-
x-
|
107
|
-
-
|
108
|
-
etag:
|
109
|
-
- "\"6b43243555532badf83b7454b8f7dca0\""
|
110
|
-
connection:
|
111
|
-
- close
|
110
|
+
x-runtime:
|
111
|
+
- "1600"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
|
-
|
115
|
-
- "
|
116
|
-
date:
|
117
|
-
- Sat, 08 Jan 2011 08:06:32 GMT
|
118
|
-
server:
|
119
|
-
- nginx/0.8.53
|
120
|
-
content-length:
|
121
|
-
- "647"
|
122
|
-
set-cookie:
|
123
|
-
- _recurly_session=6edb491f445ce1a32ef38b3e7faa2e56; domain=.recurly.com; path=/; secure; HttpOnly
|
114
|
+
etag:
|
115
|
+
- "\"ffaf82e69307e1c2d4b1f3763f4a6098\""
|
124
116
|
cache-control:
|
125
117
|
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "649"
|
120
|
+
server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
122
|
+
date:
|
123
|
+
- Thu, 03 Feb 2011 22:25:00 GMT
|
124
|
+
connection:
|
125
|
+
- close
|
126
|
+
set-cookie:
|
127
|
+
- _recurly_session=142d6af51b0ab71c23ac320c950c6708; domain=.recurly.local; path=/; HttpOnly
|
126
128
|
body: |
|
127
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
128
130
|
<billing_info>
|
129
|
-
<account_code>transaction-list-filled-
|
131
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
130
132
|
<first_name>Verena</first_name>
|
131
133
|
<last_name>Test</last_name>
|
132
134
|
<address1>123 Test St</address1>
|
@@ -139,82 +141,84 @@
|
|
139
141
|
<vat_number></vat_number>
|
140
142
|
<ip_address></ip_address>
|
141
143
|
<credit_card>
|
142
|
-
<type>
|
143
|
-
<last_four>
|
144
|
-
<month type="integer">
|
144
|
+
<type>visa</type>
|
145
|
+
<last_four>1111</last_four>
|
146
|
+
<month type="integer">2</month>
|
145
147
|
<year type="integer">2012</year>
|
146
148
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:25:00Z</updated_at>
|
148
150
|
</billing_info>
|
149
151
|
|
150
152
|
http_version: "1.1"
|
151
153
|
- !ruby/struct:VCR::HTTPInteraction
|
152
154
|
request: !ruby/struct:VCR::Request
|
153
155
|
method: :post
|
154
|
-
uri:
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
155
157
|
body: |
|
156
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
159
|
<transaction>
|
158
160
|
<account>
|
159
|
-
<account-code>transaction-list-filled-
|
161
|
+
<account-code>transaction-list-filled-1296674173</account-code>
|
160
162
|
</account>
|
161
163
|
<amount-in-cents type="integer">100</amount-in-cents>
|
162
164
|
<description>one</description>
|
163
165
|
</transaction>
|
164
166
|
|
165
167
|
headers:
|
168
|
+
authorization:
|
169
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
170
|
+
content-type:
|
171
|
+
- application/xml
|
166
172
|
accept:
|
167
173
|
- "*/*"
|
174
|
+
user-agent:
|
175
|
+
- Ruby
|
168
176
|
connection:
|
169
177
|
- close
|
170
|
-
content-type:
|
171
|
-
- application/xml
|
172
|
-
authorization:
|
173
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
174
178
|
response: !ruby/struct:VCR::Response
|
175
179
|
status: !ruby/struct:VCR::ResponseStatus
|
176
180
|
code: 201
|
177
|
-
message: Created
|
181
|
+
message: "Created "
|
178
182
|
headers:
|
183
|
+
cache-control:
|
184
|
+
- no-cache
|
179
185
|
location:
|
180
|
-
-
|
181
|
-
|
182
|
-
-
|
186
|
+
- http://litle-test.recurly.local:3000/transactions/5f140afee0be4a7683fad66f62a66e90
|
187
|
+
x-runtime:
|
188
|
+
- "4346"
|
183
189
|
content-type:
|
184
190
|
- application/xml; charset=utf-8
|
185
|
-
x-runtime:
|
186
|
-
- "468"
|
187
|
-
date:
|
188
|
-
- Sat, 08 Jan 2011 08:06:33 GMT
|
189
|
-
server:
|
190
|
-
- nginx/0.8.53
|
191
191
|
content-length:
|
192
|
-
- "
|
192
|
+
- "864"
|
193
|
+
server:
|
194
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
195
|
+
date:
|
196
|
+
- Thu, 03 Feb 2011 22:25:07 GMT
|
197
|
+
connection:
|
198
|
+
- close
|
193
199
|
set-cookie:
|
194
|
-
- _recurly_session=
|
195
|
-
cache-control:
|
196
|
-
- no-cache
|
200
|
+
- _recurly_session=c88f95bcc94387e037627fb39252f0ed; domain=.recurly.local; path=/; HttpOnly
|
197
201
|
body: |
|
198
202
|
<?xml version="1.0" encoding="UTF-8"?>
|
199
203
|
<transaction type="Payment">
|
200
|
-
<id>
|
201
|
-
<account_code>transaction-list-filled-
|
204
|
+
<id>5f140afee0be4a7683fad66f62a66e90</id>
|
205
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
202
206
|
<action>purchase</action>
|
203
|
-
<date type="datetime">2011-
|
207
|
+
<date type="datetime">2011-02-03T22:25:04Z</date>
|
204
208
|
<amount_in_cents type="integer">100</amount_in_cents>
|
205
209
|
<status>success</status>
|
206
210
|
<message>Test Gateway: Successful test transaction</message>
|
207
|
-
<reference
|
211
|
+
<reference>12345</reference>
|
208
212
|
<cvv_result code="M">Match</cvv_result>
|
209
213
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
210
|
-
<avs_result_street
|
211
|
-
<avs_result_postal
|
214
|
+
<avs_result_street>Y</avs_result_street>
|
215
|
+
<avs_result_postal>Y</avs_result_postal>
|
212
216
|
<test type="boolean">true</test>
|
213
217
|
<voidable type="boolean">true</voidable>
|
214
218
|
<refundable type="boolean">true</refundable>
|
215
219
|
<credit_card>
|
216
|
-
<type>
|
217
|
-
<last_four>
|
220
|
+
<type>visa</type>
|
221
|
+
<last_four>1111</last_four>
|
218
222
|
</credit_card>
|
219
223
|
</transaction>
|
220
224
|
|
@@ -222,70 +226,72 @@
|
|
222
226
|
- !ruby/struct:VCR::HTTPInteraction
|
223
227
|
request: !ruby/struct:VCR::Request
|
224
228
|
method: :post
|
225
|
-
uri:
|
229
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
226
230
|
body: |
|
227
231
|
<?xml version="1.0" encoding="UTF-8"?>
|
228
232
|
<transaction>
|
229
233
|
<account>
|
230
|
-
<account-code>transaction-list-filled-
|
234
|
+
<account-code>transaction-list-filled-1296674173</account-code>
|
231
235
|
</account>
|
232
236
|
<amount-in-cents type="integer">200</amount-in-cents>
|
233
237
|
<description>two</description>
|
234
238
|
</transaction>
|
235
239
|
|
236
240
|
headers:
|
241
|
+
authorization:
|
242
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
243
|
+
content-type:
|
244
|
+
- application/xml
|
237
245
|
accept:
|
238
246
|
- "*/*"
|
247
|
+
user-agent:
|
248
|
+
- Ruby
|
239
249
|
connection:
|
240
250
|
- close
|
241
|
-
content-type:
|
242
|
-
- application/xml
|
243
|
-
authorization:
|
244
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
245
251
|
response: !ruby/struct:VCR::Response
|
246
252
|
status: !ruby/struct:VCR::ResponseStatus
|
247
253
|
code: 201
|
248
|
-
message: Created
|
254
|
+
message: "Created "
|
249
255
|
headers:
|
256
|
+
cache-control:
|
257
|
+
- no-cache
|
250
258
|
location:
|
251
|
-
-
|
252
|
-
|
253
|
-
-
|
259
|
+
- http://litle-test.recurly.local:3000/transactions/c6bcf3df5b964c4d8064c4db2ecca646
|
260
|
+
x-runtime:
|
261
|
+
- "4123"
|
254
262
|
content-type:
|
255
263
|
- application/xml; charset=utf-8
|
256
|
-
x-runtime:
|
257
|
-
- "346"
|
258
|
-
date:
|
259
|
-
- Sat, 08 Jan 2011 08:06:34 GMT
|
260
|
-
server:
|
261
|
-
- nginx/0.8.53
|
262
264
|
content-length:
|
263
|
-
- "
|
265
|
+
- "864"
|
266
|
+
server:
|
267
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
268
|
+
date:
|
269
|
+
- Thu, 03 Feb 2011 22:25:13 GMT
|
270
|
+
connection:
|
271
|
+
- close
|
264
272
|
set-cookie:
|
265
|
-
- _recurly_session=
|
266
|
-
cache-control:
|
267
|
-
- no-cache
|
273
|
+
- _recurly_session=854dad49403654cdc5fdb6589e3236e6; domain=.recurly.local; path=/; HttpOnly
|
268
274
|
body: |
|
269
275
|
<?xml version="1.0" encoding="UTF-8"?>
|
270
276
|
<transaction type="Payment">
|
271
|
-
<id>
|
272
|
-
<account_code>transaction-list-filled-
|
277
|
+
<id>c6bcf3df5b964c4d8064c4db2ecca646</id>
|
278
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
273
279
|
<action>purchase</action>
|
274
|
-
<date type="datetime">2011-
|
280
|
+
<date type="datetime">2011-02-03T22:25:10Z</date>
|
275
281
|
<amount_in_cents type="integer">200</amount_in_cents>
|
276
282
|
<status>success</status>
|
277
283
|
<message>Test Gateway: Successful test transaction</message>
|
278
|
-
<reference
|
284
|
+
<reference>12345</reference>
|
279
285
|
<cvv_result code="M">Match</cvv_result>
|
280
286
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
281
|
-
<avs_result_street
|
282
|
-
<avs_result_postal
|
287
|
+
<avs_result_street>Y</avs_result_street>
|
288
|
+
<avs_result_postal>Y</avs_result_postal>
|
283
289
|
<test type="boolean">true</test>
|
284
290
|
<voidable type="boolean">true</voidable>
|
285
291
|
<refundable type="boolean">true</refundable>
|
286
292
|
<credit_card>
|
287
|
-
<type>
|
288
|
-
<last_four>
|
293
|
+
<type>visa</type>
|
294
|
+
<last_four>1111</last_four>
|
289
295
|
</credit_card>
|
290
296
|
</transaction>
|
291
297
|
|
@@ -293,70 +299,72 @@
|
|
293
299
|
- !ruby/struct:VCR::HTTPInteraction
|
294
300
|
request: !ruby/struct:VCR::Request
|
295
301
|
method: :post
|
296
|
-
uri:
|
302
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
297
303
|
body: |
|
298
304
|
<?xml version="1.0" encoding="UTF-8"?>
|
299
305
|
<transaction>
|
300
306
|
<account>
|
301
|
-
<account-code>transaction-list-filled-
|
307
|
+
<account-code>transaction-list-filled-1296674173</account-code>
|
302
308
|
</account>
|
303
309
|
<amount-in-cents type="integer">300</amount-in-cents>
|
304
310
|
<description>three</description>
|
305
311
|
</transaction>
|
306
312
|
|
307
313
|
headers:
|
314
|
+
authorization:
|
315
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
316
|
+
content-type:
|
317
|
+
- application/xml
|
308
318
|
accept:
|
309
319
|
- "*/*"
|
320
|
+
user-agent:
|
321
|
+
- Ruby
|
310
322
|
connection:
|
311
323
|
- close
|
312
|
-
content-type:
|
313
|
-
- application/xml
|
314
|
-
authorization:
|
315
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
316
324
|
response: !ruby/struct:VCR::Response
|
317
325
|
status: !ruby/struct:VCR::ResponseStatus
|
318
326
|
code: 201
|
319
|
-
message: Created
|
327
|
+
message: "Created "
|
320
328
|
headers:
|
329
|
+
cache-control:
|
330
|
+
- no-cache
|
321
331
|
location:
|
322
|
-
-
|
323
|
-
|
324
|
-
-
|
332
|
+
- http://litle-test.recurly.local:3000/transactions/604b118b846043959624554b4170c230
|
333
|
+
x-runtime:
|
334
|
+
- "4250"
|
325
335
|
content-type:
|
326
336
|
- application/xml; charset=utf-8
|
327
|
-
x-runtime:
|
328
|
-
- "467"
|
329
|
-
date:
|
330
|
-
- Sat, 08 Jan 2011 08:06:36 GMT
|
331
|
-
server:
|
332
|
-
- nginx/0.8.53
|
333
337
|
content-length:
|
334
|
-
- "
|
338
|
+
- "864"
|
339
|
+
server:
|
340
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
341
|
+
date:
|
342
|
+
- Thu, 03 Feb 2011 22:25:19 GMT
|
343
|
+
connection:
|
344
|
+
- close
|
335
345
|
set-cookie:
|
336
|
-
- _recurly_session=
|
337
|
-
cache-control:
|
338
|
-
- no-cache
|
346
|
+
- _recurly_session=689682746bfa0091922f707502427533; domain=.recurly.local; path=/; HttpOnly
|
339
347
|
body: |
|
340
348
|
<?xml version="1.0" encoding="UTF-8"?>
|
341
349
|
<transaction type="Payment">
|
342
|
-
<id>
|
343
|
-
<account_code>transaction-list-filled-
|
350
|
+
<id>604b118b846043959624554b4170c230</id>
|
351
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
344
352
|
<action>purchase</action>
|
345
|
-
<date type="datetime">2011-
|
353
|
+
<date type="datetime">2011-02-03T22:25:16Z</date>
|
346
354
|
<amount_in_cents type="integer">300</amount_in_cents>
|
347
355
|
<status>success</status>
|
348
356
|
<message>Test Gateway: Successful test transaction</message>
|
349
|
-
<reference
|
357
|
+
<reference>12345</reference>
|
350
358
|
<cvv_result code="M">Match</cvv_result>
|
351
359
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
352
|
-
<avs_result_street
|
353
|
-
<avs_result_postal
|
360
|
+
<avs_result_street>Y</avs_result_street>
|
361
|
+
<avs_result_postal>Y</avs_result_postal>
|
354
362
|
<test type="boolean">true</test>
|
355
363
|
<voidable type="boolean">true</voidable>
|
356
364
|
<refundable type="boolean">true</refundable>
|
357
365
|
<credit_card>
|
358
|
-
<type>
|
359
|
-
<last_four>
|
366
|
+
<type>visa</type>
|
367
|
+
<last_four>1111</last_four>
|
360
368
|
</credit_card>
|
361
369
|
</transaction>
|
362
370
|
|
@@ -364,40 +372,42 @@
|
|
364
372
|
- !ruby/struct:VCR::HTTPInteraction
|
365
373
|
request: !ruby/struct:VCR::Request
|
366
374
|
method: :get
|
367
|
-
uri:
|
375
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/transactions
|
368
376
|
body:
|
369
377
|
headers:
|
378
|
+
authorization:
|
379
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
370
380
|
accept:
|
371
381
|
- application/xml
|
382
|
+
accept-encoding:
|
383
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
384
|
+
user-agent:
|
385
|
+
- Ruby
|
372
386
|
connection:
|
373
387
|
- close
|
374
|
-
authorization:
|
375
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
376
388
|
response: !ruby/struct:VCR::Response
|
377
389
|
status: !ruby/struct:VCR::ResponseStatus
|
378
390
|
code: 200
|
379
|
-
message: OK
|
391
|
+
message: "OK "
|
380
392
|
headers:
|
381
|
-
x-
|
382
|
-
-
|
383
|
-
etag:
|
384
|
-
- "\"a7aa77277d0578e197096b2b55334dbc\""
|
385
|
-
connection:
|
386
|
-
- close
|
393
|
+
x-runtime:
|
394
|
+
- "477"
|
387
395
|
content-type:
|
388
396
|
- application/xml; charset=utf-8
|
389
|
-
|
390
|
-
- "
|
391
|
-
date:
|
392
|
-
- Sat, 08 Jan 2011 08:06:37 GMT
|
393
|
-
server:
|
394
|
-
- nginx/0.8.53
|
395
|
-
content-length:
|
396
|
-
- "3311"
|
397
|
-
set-cookie:
|
398
|
-
- _recurly_session=2cbddb1194df08be161ae5c347542742; domain=.recurly.com; path=/; secure; HttpOnly
|
397
|
+
etag:
|
398
|
+
- "\"2f07f739e648db2897a93e2045ac85e5\""
|
399
399
|
cache-control:
|
400
400
|
- private, max-age=0, must-revalidate
|
401
|
+
content-length:
|
402
|
+
- "3319"
|
403
|
+
server:
|
404
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
405
|
+
date:
|
406
|
+
- Thu, 03 Feb 2011 22:25:21 GMT
|
407
|
+
connection:
|
408
|
+
- close
|
409
|
+
set-cookie:
|
410
|
+
- _recurly_session=d0e55857aadf149be7300f6f9481958b; domain=.recurly.local; path=/; HttpOnly
|
401
411
|
body: |
|
402
412
|
<?xml version="1.0" encoding="UTF-8"?>
|
403
413
|
<transactions type="collection">
|
@@ -405,72 +415,72 @@
|
|
405
415
|
<per_page type="integer">50</per_page>
|
406
416
|
<total_entries type="integer">4</total_entries>
|
407
417
|
<transaction type="Payment">
|
408
|
-
<id>
|
409
|
-
<account_code>transaction-list-filled-
|
418
|
+
<id>604b118b846043959624554b4170c230</id>
|
419
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
410
420
|
<action>purchase</action>
|
411
|
-
<date type="datetime">2011-
|
421
|
+
<date type="datetime">2011-02-03T22:25:16Z</date>
|
412
422
|
<amount_in_cents type="integer">300</amount_in_cents>
|
413
423
|
<status>success</status>
|
414
424
|
<message>Test Gateway: Successful test transaction</message>
|
415
|
-
<reference
|
425
|
+
<reference>12345</reference>
|
416
426
|
<cvv_result code="M">Match</cvv_result>
|
417
427
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
418
|
-
<avs_result_street
|
419
|
-
<avs_result_postal
|
428
|
+
<avs_result_street>Y</avs_result_street>
|
429
|
+
<avs_result_postal>Y</avs_result_postal>
|
420
430
|
<test type="boolean">true</test>
|
421
431
|
<voidable type="boolean">true</voidable>
|
422
432
|
<refundable type="boolean">true</refundable>
|
423
433
|
</transaction>
|
424
434
|
<transaction type="Payment">
|
425
|
-
<id>
|
426
|
-
<account_code>transaction-list-filled-
|
435
|
+
<id>c6bcf3df5b964c4d8064c4db2ecca646</id>
|
436
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
427
437
|
<action>purchase</action>
|
428
|
-
<date type="datetime">2011-
|
438
|
+
<date type="datetime">2011-02-03T22:25:10Z</date>
|
429
439
|
<amount_in_cents type="integer">200</amount_in_cents>
|
430
440
|
<status>success</status>
|
431
441
|
<message>Test Gateway: Successful test transaction</message>
|
432
|
-
<reference
|
442
|
+
<reference>12345</reference>
|
433
443
|
<cvv_result code="M">Match</cvv_result>
|
434
444
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
435
|
-
<avs_result_street
|
436
|
-
<avs_result_postal
|
445
|
+
<avs_result_street>Y</avs_result_street>
|
446
|
+
<avs_result_postal>Y</avs_result_postal>
|
437
447
|
<test type="boolean">true</test>
|
438
448
|
<voidable type="boolean">true</voidable>
|
439
449
|
<refundable type="boolean">true</refundable>
|
440
450
|
</transaction>
|
441
451
|
<transaction type="Payment">
|
442
|
-
<id>
|
443
|
-
<account_code>transaction-list-filled-
|
452
|
+
<id>5f140afee0be4a7683fad66f62a66e90</id>
|
453
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
444
454
|
<action>purchase</action>
|
445
|
-
<date type="datetime">2011-
|
455
|
+
<date type="datetime">2011-02-03T22:25:04Z</date>
|
446
456
|
<amount_in_cents type="integer">100</amount_in_cents>
|
447
457
|
<status>success</status>
|
448
458
|
<message>Test Gateway: Successful test transaction</message>
|
449
|
-
<reference
|
459
|
+
<reference>12345</reference>
|
450
460
|
<cvv_result code="M">Match</cvv_result>
|
451
461
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
452
|
-
<avs_result_street
|
453
|
-
<avs_result_postal
|
462
|
+
<avs_result_street>Y</avs_result_street>
|
463
|
+
<avs_result_postal>Y</avs_result_postal>
|
454
464
|
<test type="boolean">true</test>
|
455
465
|
<voidable type="boolean">true</voidable>
|
456
466
|
<refundable type="boolean">true</refundable>
|
457
467
|
</transaction>
|
458
468
|
<transaction type="Payment">
|
459
|
-
<id>
|
460
|
-
<account_code>transaction-list-filled-
|
469
|
+
<id>79bc4459b136460197dd1c1381f017af</id>
|
470
|
+
<account_code>transaction-list-filled-1296674173</account_code>
|
461
471
|
<action>authorization</action>
|
462
|
-
<date type="datetime">2011-
|
463
|
-
<amount_in_cents type="integer">
|
464
|
-
<status>
|
472
|
+
<date type="datetime">2011-02-03T22:25:00Z</date>
|
473
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
474
|
+
<status>success</status>
|
465
475
|
<message>Test Gateway: Successful test transaction</message>
|
466
|
-
<reference
|
476
|
+
<reference>12345</reference>
|
467
477
|
<cvv_result code="M">Match</cvv_result>
|
468
478
|
<avs_result code="D">Street address and postal code match.</avs_result>
|
469
|
-
<avs_result_street
|
470
|
-
<avs_result_postal
|
479
|
+
<avs_result_street>Y</avs_result_street>
|
480
|
+
<avs_result_postal>Y</avs_result_postal>
|
471
481
|
<test type="boolean">true</test>
|
472
482
|
<voidable type="boolean">false</voidable>
|
473
|
-
<refundable type="boolean">
|
483
|
+
<refundable type="boolean">true</refundable>
|
474
484
|
</transaction>
|
475
485
|
</transactions>
|
476
486
|
|