recurly 0.4.11 → 0.4.13
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/README.md +4 -8
- data/lib/recurly.rb +10 -19
- data/lib/recurly/config_parser.rb +5 -2
- data/lib/recurly/plan.rb +0 -1
- data/lib/recurly/rails3/recurly.rake +10 -26
- data/lib/recurly/transparent.rb +2 -0
- data/lib/recurly/verification.rb +14 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +3 -3
- data/spec/config/test1.yml +1 -3
- data/spec/config/test2.yml +2 -6
- data/spec/unit/config_spec.rb +9 -16
- data/spec/unit/transparent_spec.rb +0 -20
- data/spec/unit/verification_spec.rb +15 -9
- data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
- data/spec/vcr/account/close/1313708721.yml +107 -79
- data/spec/vcr/account/create-blank/1313708721.yml +37 -26
- data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
- data/spec/vcr/account/create-min/1313708721.yml +48 -30
- data/spec/vcr/account/create/1313708721.yml +52 -31
- data/spec/vcr/account/find/1313708721.yml +111 -81
- data/spec/vcr/account/list/1313708721.yml +1148 -719
- data/spec/vcr/account/update/1313708721.yml +182 -124
- data/spec/vcr/billing/create/1313708721.yml +156 -93
- data/spec/vcr/billing/destroy/1313708721.yml +198 -135
- data/spec/vcr/billing/errors/1313708721.yml +91 -56
- data/spec/vcr/billing/find/1313708721.yml +200 -122
- data/spec/vcr/billing/update/1313708721.yml +218 -126
- data/spec/vcr/charge/create/1313708721.yml +189 -120
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
- data/spec/vcr/charge/list-all/1313708721.yml +235 -157
- data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
- data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
- data/spec/vcr/charge/lookup/1313708721.yml +127 -87
- data/spec/vcr/coupon/create/1296774903.yml +83 -95
- data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
- data/spec/vcr/credit/create/1313708090.yml +127 -87
- data/spec/vcr/credit/delete/1313708090.yml +169 -129
- data/spec/vcr/credit/list/1313708090.yml +235 -157
- data/spec/vcr/credit/lookup/1313708090.yml +127 -87
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
- data/spec/vcr/invoice/create/1296674173.yml +259 -162
- data/spec/vcr/invoice/list/1296674173.yml +342 -227
- data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
- data/spec/vcr/plan/all.yml +206 -198
- data/spec/vcr/plan/find.yml +109 -103
- data/spec/vcr/plan/update.yml +126 -93
- data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
- data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
- data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
- data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
- data/spec/vcr/subscription/change1/1296674173.yml +303 -213
- data/spec/vcr/subscription/change2/1296674173.yml +303 -214
- data/spec/vcr/subscription/create/1296674173.yml +167 -111
- data/spec/vcr/subscription/find/1296674173.yml +210 -145
- data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
- data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
- data/spec/vcr/transaction/all/1311126815.yml +388 -206
- data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
- data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
- data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
- data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
- data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
- data/spec/vcr/transaction/void/1311126815.yml +280 -174
- metadata +109 -77
- data/spec/vcr/transaction/refund/1311126815.yml +0 -163
- data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,51 +1,82 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<transaction>
|
9
|
+
<account>
|
10
|
+
<account-code>transaction-create-with-accout-1311126815</account-code>
|
11
|
+
<first-name>Verena</first-name>
|
12
|
+
<last-name>Test</last-name>
|
13
|
+
<email>verena@test.com</email>
|
14
|
+
<company-name>Recurly Ruby Gem</company-name>
|
15
|
+
<billing-info>
|
16
|
+
<first-name>Verena</first-name>
|
17
|
+
<last-name>Test</last-name>
|
18
|
+
<address1>123 Test St</address1>
|
19
|
+
<city>San Francisco</city>
|
20
|
+
<state>CA</state>
|
21
|
+
<zip>94115</zip>
|
22
|
+
<country>US</country>
|
23
|
+
<credit-card>
|
24
|
+
<number>4111111111111111</number>
|
25
|
+
<year type="integer">2012</year>
|
26
|
+
<month type="integer">9</month>
|
27
|
+
<verification-value>123</verification-value>
|
28
|
+
</credit-card>
|
29
|
+
</billing-info>
|
30
|
+
</account>
|
31
|
+
<amount-in-cents type="integer">700</amount-in-cents>
|
32
|
+
<description>setup fee of 7 dollarz</description>
|
33
|
+
</transaction>
|
34
|
+
|
35
|
+
headers:
|
36
|
+
user-agent:
|
37
|
+
- Recurly Ruby Client v0.4.13
|
38
|
+
content-type:
|
21
39
|
- application/xml
|
22
|
-
response: !ruby/struct:VCR::Response
|
23
|
-
status: !ruby/struct:VCR::ResponseStatus
|
40
|
+
response: !ruby/struct:VCR::Response
|
41
|
+
status: !ruby/struct:VCR::ResponseStatus
|
24
42
|
code: 201
|
25
43
|
message: Created
|
26
|
-
headers:
|
27
|
-
location:
|
28
|
-
- http://
|
29
|
-
content-type:
|
44
|
+
headers:
|
45
|
+
location:
|
46
|
+
- http://api.lvh.me:3000/transactions/1217e70304774f0b9d134c783900adae
|
47
|
+
content-type:
|
30
48
|
- application/xml; charset=utf-8
|
31
|
-
cache-control:
|
49
|
+
cache-control:
|
32
50
|
- no-cache
|
33
|
-
x-ua-compatible:
|
51
|
+
x-ua-compatible:
|
34
52
|
- IE=Edge
|
35
|
-
set-cookie:
|
36
|
-
- _recurly_session=
|
37
|
-
|
38
|
-
server:
|
53
|
+
set-cookie:
|
54
|
+
- _recurly_session=6e27bb336956f891f5c58bba71e376f8; domain=.lvh.me; path=/; HttpOnly
|
55
|
+
server:
|
39
56
|
- thin 1.2.11 codename Bat-Shit Crazy
|
40
|
-
body:
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
57
|
+
body: |
|
58
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
59
|
+
<transaction type="Payment">
|
60
|
+
<id>1217e70304774f0b9d134c783900adae</id>
|
61
|
+
<account_code>transaction-create-with-accout-1311126815</account_code>
|
62
|
+
<action>purchase</action>
|
63
|
+
<date type="datetime">2011-09-22T22:02:11Z</date>
|
64
|
+
<amount_in_cents type="integer">700</amount_in_cents>
|
65
|
+
<currency>USD</currency>
|
66
|
+
<status>success</status>
|
67
|
+
<message>Test Gateway: Successful test transaction</message>
|
68
|
+
<reference>12345</reference>
|
69
|
+
<cvv_result code="M">Match</cvv_result>
|
70
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
71
|
+
<avs_result_street>Y</avs_result_street>
|
72
|
+
<avs_result_postal>Y</avs_result_postal>
|
73
|
+
<test type="boolean">true</test>
|
74
|
+
<voidable type="boolean">true</voidable>
|
75
|
+
<refundable type="boolean">true</refundable>
|
76
|
+
<credit_card>
|
77
|
+
<type>visa</type>
|
78
|
+
<last_four>1111</last_four>
|
79
|
+
</credit_card>
|
80
|
+
</transaction>
|
81
|
+
|
82
|
+
http_version: "1.1"
|
@@ -1,125 +1,196 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-create-with-account-1311126815</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/transaction-create-with-account-1311126815
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=506e9988ad7a2cf13b7389c37a5f138d; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>transaction-create-with-account-1311126815</id>
|
47
|
+
<account_code>transaction-create-with-account-1311126815</account_code>
|
48
|
+
<username></username>
|
49
|
+
<email>verena@test.com</email>
|
50
|
+
<first_name>Verena</first_name>
|
51
|
+
<last_name>Test</last_name>
|
52
|
+
<company_name>Recurly Ruby Gem</company_name>
|
53
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
54
|
+
<closed type="boolean">false</closed>
|
55
|
+
<hosted_login_token>370c03089efa49aaa4c574c692db959f</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:02:12Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
43
63
|
method: :put
|
44
|
-
uri: http://api
|
45
|
-
body:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-create-with-account-1311126815/billing_info.xml
|
65
|
+
body: |
|
66
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
+
<billing-info>
|
68
|
+
<first-name>Verena</first-name>
|
69
|
+
<last-name>Test</last-name>
|
70
|
+
<address1>123 Test St</address1>
|
71
|
+
<city>San Francisco</city>
|
72
|
+
<state>CA</state>
|
73
|
+
<zip>94115</zip>
|
74
|
+
<country>US</country>
|
75
|
+
<credit-card>
|
76
|
+
<number>4111111111111111</number>
|
77
|
+
<year type="integer">2012</year>
|
78
|
+
<month type="integer">9</month>
|
79
|
+
<verification-value>123</verification-value>
|
80
|
+
</credit-card>
|
81
|
+
<account-code>transaction-create-with-account-1311126815</account-code>
|
82
|
+
</billing-info>
|
83
|
+
|
84
|
+
headers:
|
85
|
+
user-agent:
|
86
|
+
- Recurly Ruby Client v0.4.13
|
87
|
+
content-type:
|
55
88
|
- application/xml
|
56
|
-
response: !ruby/struct:VCR::Response
|
57
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
response: !ruby/struct:VCR::Response
|
90
|
+
status: !ruby/struct:VCR::ResponseStatus
|
58
91
|
code: 200
|
59
92
|
message: OK
|
60
|
-
headers:
|
61
|
-
content-type:
|
93
|
+
headers:
|
94
|
+
content-type:
|
62
95
|
- application/xml; charset=utf-8
|
63
|
-
etag:
|
64
|
-
-
|
65
|
-
cache-control:
|
96
|
+
etag:
|
97
|
+
- "\"cabf7e64539f05f92c101976d5ab475b\""
|
98
|
+
cache-control:
|
66
99
|
- max-age=0, private, must-revalidate
|
67
|
-
x-ua-compatible:
|
100
|
+
x-ua-compatible:
|
68
101
|
- IE=Edge
|
69
|
-
set-cookie:
|
70
|
-
- _recurly_session=
|
71
|
-
|
72
|
-
server:
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=c4fdc3b61867fdbaa3d66f2f6f4e0036; domain=.lvh.me; path=/; HttpOnly
|
104
|
+
server:
|
73
105
|
- thin 1.2.11 codename Bat-Shit Crazy
|
74
|
-
body:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
106
|
+
body: |
|
107
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
108
|
+
<billing_info>
|
109
|
+
<account_code>transaction-create-with-account-1311126815</account_code>
|
110
|
+
<first_name>Verena</first_name>
|
111
|
+
<last_name>Test</last_name>
|
112
|
+
<address1>123 Test St</address1>
|
113
|
+
<address2></address2>
|
114
|
+
<city>San Francisco</city>
|
115
|
+
<state>CA</state>
|
116
|
+
<country>US</country>
|
117
|
+
<zip>94115</zip>
|
118
|
+
<phone></phone>
|
119
|
+
<vat_number></vat_number>
|
120
|
+
<ip_address></ip_address>
|
121
|
+
<credit_card>
|
122
|
+
<type>visa</type>
|
123
|
+
<last_four>1111</last_four>
|
124
|
+
<month type="integer">9</month>
|
125
|
+
<year type="integer">2012</year>
|
126
|
+
</credit_card>
|
127
|
+
<updated_at type="datetime">2011-09-22T22:02:13Z</updated_at>
|
128
|
+
</billing_info>
|
129
|
+
|
130
|
+
http_version: "1.1"
|
131
|
+
- !ruby/struct:VCR::HTTPInteraction
|
132
|
+
request: !ruby/struct:VCR::Request
|
84
133
|
method: :post
|
85
|
-
uri: http://api
|
86
|
-
body:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
134
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
|
135
|
+
body: |
|
136
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
+
<transaction>
|
138
|
+
<account>
|
139
|
+
<account-code>transaction-create-with-account-1311126815</account-code>
|
140
|
+
<billing-info>
|
141
|
+
<credit-card>
|
142
|
+
</credit-card>
|
143
|
+
</billing-info>
|
144
|
+
</account>
|
145
|
+
<amount-in-cents type="integer">700</amount-in-cents>
|
146
|
+
<description>test transaction for $7</description>
|
147
|
+
</transaction>
|
148
|
+
|
149
|
+
headers:
|
150
|
+
user-agent:
|
151
|
+
- Recurly Ruby Client v0.4.13
|
152
|
+
content-type:
|
95
153
|
- application/xml
|
96
|
-
response: !ruby/struct:VCR::Response
|
97
|
-
status: !ruby/struct:VCR::ResponseStatus
|
154
|
+
response: !ruby/struct:VCR::Response
|
155
|
+
status: !ruby/struct:VCR::ResponseStatus
|
98
156
|
code: 201
|
99
157
|
message: Created
|
100
|
-
headers:
|
101
|
-
location:
|
102
|
-
- http://
|
103
|
-
content-type:
|
158
|
+
headers:
|
159
|
+
location:
|
160
|
+
- http://api.lvh.me:3000/transactions/3e0ab17feaa64a1abf0a21d823f2b4fc
|
161
|
+
content-type:
|
104
162
|
- application/xml; charset=utf-8
|
105
|
-
cache-control:
|
163
|
+
cache-control:
|
106
164
|
- no-cache
|
107
|
-
x-ua-compatible:
|
165
|
+
x-ua-compatible:
|
108
166
|
- IE=Edge
|
109
|
-
set-cookie:
|
110
|
-
- _recurly_session=
|
111
|
-
|
112
|
-
server:
|
167
|
+
set-cookie:
|
168
|
+
- _recurly_session=e9d83541024076f79ab0a8d7d3e8013e; domain=.lvh.me; path=/; HttpOnly
|
169
|
+
server:
|
113
170
|
- thin 1.2.11 codename Bat-Shit Crazy
|
114
|
-
body:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
171
|
+
body: |
|
172
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
173
|
+
<transaction type="Payment">
|
174
|
+
<id>3e0ab17feaa64a1abf0a21d823f2b4fc</id>
|
175
|
+
<account_code>transaction-create-with-account-1311126815</account_code>
|
176
|
+
<action>purchase</action>
|
177
|
+
<date type="datetime">2011-09-22T22:02:13Z</date>
|
178
|
+
<amount_in_cents type="integer">700</amount_in_cents>
|
179
|
+
<currency>USD</currency>
|
180
|
+
<status>success</status>
|
181
|
+
<message>Test Gateway: Successful test transaction</message>
|
182
|
+
<reference>12345</reference>
|
183
|
+
<cvv_result code="M">Match</cvv_result>
|
184
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
185
|
+
<avs_result_street>Y</avs_result_street>
|
186
|
+
<avs_result_postal>Y</avs_result_postal>
|
187
|
+
<test type="boolean">true</test>
|
188
|
+
<voidable type="boolean">true</voidable>
|
189
|
+
<refundable type="boolean">true</refundable>
|
190
|
+
<credit_card>
|
191
|
+
<type>visa</type>
|
192
|
+
<last_four>1111</last_four>
|
193
|
+
</credit_card>
|
194
|
+
</transaction>
|
195
|
+
|
196
|
+
http_version: "1.1"
|
@@ -1,349 +1,544 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-list-filled-1311126815</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/transaction-list-filled-1311126815
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=35d5658fb009d2380de12f9500662540; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>transaction-list-filled-1311126815</id>
|
47
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
48
|
+
<username></username>
|
49
|
+
<email>verena@test.com</email>
|
50
|
+
<first_name>Verena</first_name>
|
51
|
+
<last_name>Test</last_name>
|
52
|
+
<company_name>Recurly Ruby Gem</company_name>
|
53
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
54
|
+
<closed type="boolean">false</closed>
|
55
|
+
<hosted_login_token>e50b70a342cb4b6d80a78fc3db03a636</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:02:15Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :put
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/billing_info.xml
|
65
|
+
body: |
|
66
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
+
<billing-info>
|
68
|
+
<first-name>Verena</first-name>
|
69
|
+
<last-name>Test</last-name>
|
70
|
+
<address1>123 Test St</address1>
|
71
|
+
<city>San Francisco</city>
|
72
|
+
<state>CA</state>
|
73
|
+
<zip>94115</zip>
|
74
|
+
<country>US</country>
|
75
|
+
<credit-card>
|
76
|
+
<number>4111111111111111</number>
|
77
|
+
<year type="integer">2012</year>
|
78
|
+
<month type="integer">9</month>
|
79
|
+
<verification-value>123</verification-value>
|
80
|
+
</credit-card>
|
81
|
+
<account-code>transaction-list-filled-1311126815</account-code>
|
82
|
+
</billing-info>
|
83
|
+
|
84
|
+
headers:
|
85
|
+
user-agent:
|
86
|
+
- Recurly Ruby Client v0.4.13
|
87
|
+
content-type:
|
54
88
|
- application/xml
|
55
|
-
response: !ruby/struct:VCR::Response
|
56
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
response: !ruby/struct:VCR::Response
|
90
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
91
|
code: 200
|
58
92
|
message: OK
|
59
|
-
headers:
|
60
|
-
content-type:
|
93
|
+
headers:
|
94
|
+
content-type:
|
61
95
|
- application/xml; charset=utf-8
|
62
|
-
etag:
|
63
|
-
-
|
64
|
-
cache-control:
|
96
|
+
etag:
|
97
|
+
- "\"13755457a9327e01b2baffa015edcb8e\""
|
98
|
+
cache-control:
|
65
99
|
- max-age=0, private, must-revalidate
|
66
|
-
x-ua-compatible:
|
100
|
+
x-ua-compatible:
|
67
101
|
- IE=Edge
|
68
|
-
set-cookie:
|
69
|
-
- _recurly_session=
|
70
|
-
|
71
|
-
server:
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=2eca8a467ac42d366eff235f86f3a2d2; domain=.lvh.me; path=/; HttpOnly
|
104
|
+
server:
|
72
105
|
- thin 1.2.11 codename Bat-Shit Crazy
|
73
|
-
body:
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
106
|
+
body: |
|
107
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
108
|
+
<billing_info>
|
109
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
110
|
+
<first_name>Verena</first_name>
|
111
|
+
<last_name>Test</last_name>
|
112
|
+
<address1>123 Test St</address1>
|
113
|
+
<address2></address2>
|
114
|
+
<city>San Francisco</city>
|
115
|
+
<state>CA</state>
|
116
|
+
<country>US</country>
|
117
|
+
<zip>94115</zip>
|
118
|
+
<phone></phone>
|
119
|
+
<vat_number></vat_number>
|
120
|
+
<ip_address></ip_address>
|
121
|
+
<credit_card>
|
122
|
+
<type>visa</type>
|
123
|
+
<last_four>1111</last_four>
|
124
|
+
<month type="integer">9</month>
|
125
|
+
<year type="integer">2012</year>
|
126
|
+
</credit_card>
|
127
|
+
<updated_at type="datetime">2011-09-22T22:02:16Z</updated_at>
|
128
|
+
</billing_info>
|
129
|
+
|
130
|
+
http_version: "1.1"
|
131
|
+
- !ruby/struct:VCR::HTTPInteraction
|
132
|
+
request: !ruby/struct:VCR::Request
|
83
133
|
method: :post
|
84
|
-
uri: http://api
|
85
|
-
body:
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
134
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
|
135
|
+
body: |
|
136
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
+
<transaction>
|
138
|
+
<account>
|
139
|
+
<account-code>transaction-list-filled-1311126815</account-code>
|
140
|
+
<billing-info>
|
141
|
+
<credit-card>
|
142
|
+
</credit-card>
|
143
|
+
</billing-info>
|
144
|
+
</account>
|
145
|
+
<amount-in-cents type="integer">100</amount-in-cents>
|
146
|
+
<description>one</description>
|
147
|
+
</transaction>
|
148
|
+
|
149
|
+
headers:
|
150
|
+
user-agent:
|
151
|
+
- Recurly Ruby Client v0.4.13
|
152
|
+
content-type:
|
93
153
|
- application/xml
|
94
|
-
response: !ruby/struct:VCR::Response
|
95
|
-
status: !ruby/struct:VCR::ResponseStatus
|
154
|
+
response: !ruby/struct:VCR::Response
|
155
|
+
status: !ruby/struct:VCR::ResponseStatus
|
96
156
|
code: 201
|
97
157
|
message: Created
|
98
|
-
headers:
|
99
|
-
location:
|
100
|
-
- http://
|
101
|
-
content-type:
|
158
|
+
headers:
|
159
|
+
location:
|
160
|
+
- http://api.lvh.me:3000/transactions/ffa632cd5aea400e9b247c8b3d62c507
|
161
|
+
content-type:
|
102
162
|
- application/xml; charset=utf-8
|
103
|
-
cache-control:
|
163
|
+
cache-control:
|
104
164
|
- no-cache
|
105
|
-
x-ua-compatible:
|
165
|
+
x-ua-compatible:
|
106
166
|
- IE=Edge
|
107
|
-
set-cookie:
|
108
|
-
- _recurly_session=
|
109
|
-
|
110
|
-
server:
|
167
|
+
set-cookie:
|
168
|
+
- _recurly_session=ca2c25e772d2a576588904e24aa39ec5; domain=.lvh.me; path=/; HttpOnly
|
169
|
+
server:
|
111
170
|
- thin 1.2.11 codename Bat-Shit Crazy
|
112
|
-
body:
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
171
|
+
body: |
|
172
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
173
|
+
<transaction type="Payment">
|
174
|
+
<id>ffa632cd5aea400e9b247c8b3d62c507</id>
|
175
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
176
|
+
<action>purchase</action>
|
177
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
178
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
179
|
+
<currency>USD</currency>
|
180
|
+
<status>success</status>
|
181
|
+
<message>Test Gateway: Successful test transaction</message>
|
182
|
+
<reference>12345</reference>
|
183
|
+
<cvv_result code="M">Match</cvv_result>
|
184
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
185
|
+
<avs_result_street>Y</avs_result_street>
|
186
|
+
<avs_result_postal>Y</avs_result_postal>
|
187
|
+
<test type="boolean">true</test>
|
188
|
+
<voidable type="boolean">true</voidable>
|
189
|
+
<refundable type="boolean">true</refundable>
|
190
|
+
<credit_card>
|
191
|
+
<type>visa</type>
|
192
|
+
<last_four>1111</last_four>
|
193
|
+
</credit_card>
|
194
|
+
</transaction>
|
195
|
+
|
196
|
+
http_version: "1.1"
|
197
|
+
- !ruby/struct:VCR::HTTPInteraction
|
198
|
+
request: !ruby/struct:VCR::Request
|
126
199
|
method: :post
|
127
|
-
uri: http://api
|
128
|
-
body:
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
200
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
|
201
|
+
body: |
|
202
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
203
|
+
<transaction>
|
204
|
+
<account>
|
205
|
+
<account-code>transaction-list-filled-1311126815</account-code>
|
206
|
+
<billing-info>
|
207
|
+
<credit-card>
|
208
|
+
</credit-card>
|
209
|
+
</billing-info>
|
210
|
+
</account>
|
211
|
+
<amount-in-cents type="integer">200</amount-in-cents>
|
212
|
+
<description>two</description>
|
213
|
+
</transaction>
|
214
|
+
|
215
|
+
headers:
|
216
|
+
user-agent:
|
217
|
+
- Recurly Ruby Client v0.4.13
|
218
|
+
content-type:
|
136
219
|
- application/xml
|
137
|
-
response: !ruby/struct:VCR::Response
|
138
|
-
status: !ruby/struct:VCR::ResponseStatus
|
220
|
+
response: !ruby/struct:VCR::Response
|
221
|
+
status: !ruby/struct:VCR::ResponseStatus
|
139
222
|
code: 201
|
140
223
|
message: Created
|
141
|
-
headers:
|
142
|
-
location:
|
143
|
-
- http://
|
144
|
-
content-type:
|
224
|
+
headers:
|
225
|
+
location:
|
226
|
+
- http://api.lvh.me:3000/transactions/98fee873ba754956b913ad0d66b2b3e6
|
227
|
+
content-type:
|
145
228
|
- application/xml; charset=utf-8
|
146
|
-
cache-control:
|
229
|
+
cache-control:
|
147
230
|
- no-cache
|
148
|
-
x-ua-compatible:
|
231
|
+
x-ua-compatible:
|
149
232
|
- IE=Edge
|
150
|
-
set-cookie:
|
151
|
-
- _recurly_session=
|
152
|
-
|
153
|
-
server:
|
233
|
+
set-cookie:
|
234
|
+
- _recurly_session=2f8580b21a96f793f4632bcc766dc86e; domain=.lvh.me; path=/; HttpOnly
|
235
|
+
server:
|
154
236
|
- thin 1.2.11 codename Bat-Shit Crazy
|
155
|
-
body:
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
237
|
+
body: |
|
238
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
239
|
+
<transaction type="Payment">
|
240
|
+
<id>98fee873ba754956b913ad0d66b2b3e6</id>
|
241
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
242
|
+
<action>purchase</action>
|
243
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
244
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
245
|
+
<currency>USD</currency>
|
246
|
+
<status>success</status>
|
247
|
+
<message>Test Gateway: Successful test transaction</message>
|
248
|
+
<reference>12345</reference>
|
249
|
+
<cvv_result code="M">Match</cvv_result>
|
250
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
251
|
+
<avs_result_street>Y</avs_result_street>
|
252
|
+
<avs_result_postal>Y</avs_result_postal>
|
253
|
+
<test type="boolean">true</test>
|
254
|
+
<voidable type="boolean">true</voidable>
|
255
|
+
<refundable type="boolean">true</refundable>
|
256
|
+
<credit_card>
|
257
|
+
<type>visa</type>
|
258
|
+
<last_four>1111</last_four>
|
259
|
+
</credit_card>
|
260
|
+
</transaction>
|
261
|
+
|
262
|
+
http_version: "1.1"
|
263
|
+
- !ruby/struct:VCR::HTTPInteraction
|
264
|
+
request: !ruby/struct:VCR::Request
|
169
265
|
method: :post
|
170
|
-
uri: http://api
|
171
|
-
body:
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
266
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
|
267
|
+
body: |
|
268
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
269
|
+
<transaction>
|
270
|
+
<account>
|
271
|
+
<account-code>transaction-list-filled-1311126815</account-code>
|
272
|
+
<billing-info>
|
273
|
+
<credit-card>
|
274
|
+
</credit-card>
|
275
|
+
</billing-info>
|
276
|
+
</account>
|
277
|
+
<amount-in-cents type="integer">300</amount-in-cents>
|
278
|
+
<description>three</description>
|
279
|
+
</transaction>
|
280
|
+
|
281
|
+
headers:
|
282
|
+
user-agent:
|
283
|
+
- Recurly Ruby Client v0.4.13
|
284
|
+
content-type:
|
179
285
|
- application/xml
|
180
|
-
response: !ruby/struct:VCR::Response
|
181
|
-
status: !ruby/struct:VCR::ResponseStatus
|
286
|
+
response: !ruby/struct:VCR::Response
|
287
|
+
status: !ruby/struct:VCR::ResponseStatus
|
182
288
|
code: 201
|
183
289
|
message: Created
|
184
|
-
headers:
|
185
|
-
location:
|
186
|
-
- http://
|
187
|
-
content-type:
|
290
|
+
headers:
|
291
|
+
location:
|
292
|
+
- http://api.lvh.me:3000/transactions/5e336e732cac45328c9b005b68d4455a
|
293
|
+
content-type:
|
188
294
|
- application/xml; charset=utf-8
|
189
|
-
cache-control:
|
295
|
+
cache-control:
|
190
296
|
- no-cache
|
191
|
-
x-ua-compatible:
|
297
|
+
x-ua-compatible:
|
192
298
|
- IE=Edge
|
193
|
-
set-cookie:
|
194
|
-
- _recurly_session=
|
195
|
-
|
196
|
-
server:
|
299
|
+
set-cookie:
|
300
|
+
- _recurly_session=76b34df9c69b1afdffe2265ee17a4538; domain=.lvh.me; path=/; HttpOnly
|
301
|
+
server:
|
197
302
|
- thin 1.2.11 codename Bat-Shit Crazy
|
198
|
-
body:
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
303
|
+
body: |
|
304
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
305
|
+
<transaction type="Payment">
|
306
|
+
<id>5e336e732cac45328c9b005b68d4455a</id>
|
307
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
308
|
+
<action>purchase</action>
|
309
|
+
<date type="datetime">2011-09-22T22:02:17Z</date>
|
310
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
311
|
+
<currency>USD</currency>
|
312
|
+
<status>success</status>
|
313
|
+
<message>Test Gateway: Successful test transaction</message>
|
314
|
+
<reference>12345</reference>
|
315
|
+
<cvv_result code="M">Match</cvv_result>
|
316
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
317
|
+
<avs_result_street>Y</avs_result_street>
|
318
|
+
<avs_result_postal>Y</avs_result_postal>
|
319
|
+
<test type="boolean">true</test>
|
320
|
+
<voidable type="boolean">true</voidable>
|
321
|
+
<refundable type="boolean">true</refundable>
|
322
|
+
<credit_card>
|
323
|
+
<type>visa</type>
|
324
|
+
<last_four>1111</last_four>
|
325
|
+
</credit_card>
|
326
|
+
</transaction>
|
327
|
+
|
328
|
+
http_version: "1.1"
|
329
|
+
- !ruby/struct:VCR::HTTPInteraction
|
330
|
+
request: !ruby/struct:VCR::Request
|
212
331
|
method: :get
|
213
|
-
uri: http://api
|
214
|
-
body:
|
215
|
-
headers:
|
216
|
-
user-agent:
|
217
|
-
- Recurly Ruby Client v0.4.
|
218
|
-
accept:
|
332
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
|
333
|
+
body:
|
334
|
+
headers:
|
335
|
+
user-agent:
|
336
|
+
- Recurly Ruby Client v0.4.13
|
337
|
+
accept:
|
219
338
|
- application/xml
|
220
|
-
accept-encoding:
|
339
|
+
accept-encoding:
|
221
340
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
222
|
-
response: !ruby/struct:VCR::Response
|
223
|
-
status: !ruby/struct:VCR::ResponseStatus
|
341
|
+
response: !ruby/struct:VCR::Response
|
342
|
+
status: !ruby/struct:VCR::ResponseStatus
|
224
343
|
code: 200
|
225
344
|
message: OK
|
226
|
-
headers:
|
227
|
-
content-type:
|
345
|
+
headers:
|
346
|
+
content-type:
|
228
347
|
- application/xml; charset=utf-8
|
229
|
-
etag:
|
230
|
-
-
|
231
|
-
cache-control:
|
348
|
+
etag:
|
349
|
+
- "\"0571c7e7ca71efbf0309a63730bba264\""
|
350
|
+
cache-control:
|
232
351
|
- max-age=0, private, must-revalidate
|
233
|
-
x-ua-compatible:
|
352
|
+
x-ua-compatible:
|
234
353
|
- IE=Edge
|
235
|
-
|
236
|
-
- _recurly_session=e47ce3d4548bf6e8836c38c8aabc9fee; domain=.lvh.me; path=/;
|
237
|
-
HttpOnly
|
238
|
-
server:
|
354
|
+
server:
|
239
355
|
- thin 1.2.11 codename Bat-Shit Crazy
|
240
|
-
body:
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
356
|
+
body: |
|
357
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
358
|
+
<transactions type="collection">
|
359
|
+
<current_page type="integer">1</current_page>
|
360
|
+
<per_page type="integer">50</per_page>
|
361
|
+
<total_entries type="integer">4</total_entries>
|
362
|
+
<transaction type="Payment">
|
363
|
+
<id>5e336e732cac45328c9b005b68d4455a</id>
|
364
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
365
|
+
<action>purchase</action>
|
366
|
+
<date type="datetime">2011-09-22T22:02:17Z</date>
|
367
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
368
|
+
<currency>USD</currency>
|
369
|
+
<status>success</status>
|
370
|
+
<message>Test Gateway: Successful test transaction</message>
|
371
|
+
<reference>12345</reference>
|
372
|
+
<cvv_result code="M">Match</cvv_result>
|
373
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
374
|
+
<avs_result_street>Y</avs_result_street>
|
375
|
+
<avs_result_postal>Y</avs_result_postal>
|
376
|
+
<test type="boolean">true</test>
|
377
|
+
<voidable type="boolean">true</voidable>
|
378
|
+
<refundable type="boolean">true</refundable>
|
379
|
+
</transaction>
|
380
|
+
<transaction type="Payment">
|
381
|
+
<id>98fee873ba754956b913ad0d66b2b3e6</id>
|
382
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
383
|
+
<action>purchase</action>
|
384
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
385
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
386
|
+
<currency>USD</currency>
|
387
|
+
<status>success</status>
|
388
|
+
<message>Test Gateway: Successful test transaction</message>
|
389
|
+
<reference>12345</reference>
|
390
|
+
<cvv_result code="M">Match</cvv_result>
|
391
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
392
|
+
<avs_result_street>Y</avs_result_street>
|
393
|
+
<avs_result_postal>Y</avs_result_postal>
|
394
|
+
<test type="boolean">true</test>
|
395
|
+
<voidable type="boolean">true</voidable>
|
396
|
+
<refundable type="boolean">true</refundable>
|
397
|
+
</transaction>
|
398
|
+
<transaction type="Payment">
|
399
|
+
<id>ffa632cd5aea400e9b247c8b3d62c507</id>
|
400
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
401
|
+
<action>purchase</action>
|
402
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
403
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
404
|
+
<currency>USD</currency>
|
405
|
+
<status>success</status>
|
406
|
+
<message>Test Gateway: Successful test transaction</message>
|
407
|
+
<reference>12345</reference>
|
408
|
+
<cvv_result code="M">Match</cvv_result>
|
409
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
410
|
+
<avs_result_street>Y</avs_result_street>
|
411
|
+
<avs_result_postal>Y</avs_result_postal>
|
412
|
+
<test type="boolean">true</test>
|
413
|
+
<voidable type="boolean">true</voidable>
|
414
|
+
<refundable type="boolean">true</refundable>
|
415
|
+
</transaction>
|
416
|
+
<transaction type="Payment">
|
417
|
+
<id>b63edd68f716468085ad244aa788376a</id>
|
418
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
419
|
+
<action>authorization</action>
|
420
|
+
<date type="datetime">2011-09-22T22:02:15Z</date>
|
421
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
422
|
+
<currency>USD</currency>
|
423
|
+
<status>success</status>
|
424
|
+
<message>Test Gateway: Successful test transaction</message>
|
425
|
+
<reference>12345</reference>
|
426
|
+
<cvv_result code="M">Match</cvv_result>
|
427
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
428
|
+
<avs_result_street>Y</avs_result_street>
|
429
|
+
<avs_result_postal>Y</avs_result_postal>
|
430
|
+
<test type="boolean">true</test>
|
431
|
+
<voidable type="boolean">false</voidable>
|
432
|
+
<refundable type="boolean">false</refundable>
|
433
|
+
</transaction>
|
434
|
+
</transactions>
|
435
|
+
|
436
|
+
http_version: "1.1"
|
437
|
+
- !ruby/struct:VCR::HTTPInteraction
|
438
|
+
request: !ruby/struct:VCR::Request
|
282
439
|
method: :get
|
283
|
-
uri: http://api
|
284
|
-
body:
|
285
|
-
headers:
|
286
|
-
user-agent:
|
287
|
-
- Recurly Ruby Client v0.4.
|
288
|
-
accept:
|
440
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
|
441
|
+
body:
|
442
|
+
headers:
|
443
|
+
user-agent:
|
444
|
+
- Recurly Ruby Client v0.4.13
|
445
|
+
accept:
|
289
446
|
- application/xml
|
290
|
-
accept-encoding:
|
447
|
+
accept-encoding:
|
291
448
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
292
|
-
response: !ruby/struct:VCR::Response
|
293
|
-
status: !ruby/struct:VCR::ResponseStatus
|
449
|
+
response: !ruby/struct:VCR::Response
|
450
|
+
status: !ruby/struct:VCR::ResponseStatus
|
294
451
|
code: 200
|
295
452
|
message: OK
|
296
|
-
headers:
|
297
|
-
content-type:
|
453
|
+
headers:
|
454
|
+
content-type:
|
298
455
|
- application/xml; charset=utf-8
|
299
|
-
etag:
|
300
|
-
-
|
301
|
-
cache-control:
|
456
|
+
etag:
|
457
|
+
- "\"0571c7e7ca71efbf0309a63730bba264\""
|
458
|
+
cache-control:
|
302
459
|
- max-age=0, private, must-revalidate
|
303
|
-
x-ua-compatible:
|
460
|
+
x-ua-compatible:
|
304
461
|
- IE=Edge
|
305
|
-
|
306
|
-
- _recurly_session=4dbfc4d14a0680a1a18fdfd8007ff95e; domain=.lvh.me; path=/;
|
307
|
-
HttpOnly
|
308
|
-
server:
|
462
|
+
server:
|
309
463
|
- thin 1.2.11 codename Bat-Shit Crazy
|
310
|
-
body:
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
464
|
+
body: |
|
465
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
466
|
+
<transactions type="collection">
|
467
|
+
<current_page type="integer">1</current_page>
|
468
|
+
<per_page type="integer">50</per_page>
|
469
|
+
<total_entries type="integer">4</total_entries>
|
470
|
+
<transaction type="Payment">
|
471
|
+
<id>5e336e732cac45328c9b005b68d4455a</id>
|
472
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
473
|
+
<action>purchase</action>
|
474
|
+
<date type="datetime">2011-09-22T22:02:17Z</date>
|
475
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
476
|
+
<currency>USD</currency>
|
477
|
+
<status>success</status>
|
478
|
+
<message>Test Gateway: Successful test transaction</message>
|
479
|
+
<reference>12345</reference>
|
480
|
+
<cvv_result code="M">Match</cvv_result>
|
481
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
482
|
+
<avs_result_street>Y</avs_result_street>
|
483
|
+
<avs_result_postal>Y</avs_result_postal>
|
484
|
+
<test type="boolean">true</test>
|
485
|
+
<voidable type="boolean">true</voidable>
|
486
|
+
<refundable type="boolean">true</refundable>
|
487
|
+
</transaction>
|
488
|
+
<transaction type="Payment">
|
489
|
+
<id>98fee873ba754956b913ad0d66b2b3e6</id>
|
490
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
491
|
+
<action>purchase</action>
|
492
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
493
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
494
|
+
<currency>USD</currency>
|
495
|
+
<status>success</status>
|
496
|
+
<message>Test Gateway: Successful test transaction</message>
|
497
|
+
<reference>12345</reference>
|
498
|
+
<cvv_result code="M">Match</cvv_result>
|
499
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
500
|
+
<avs_result_street>Y</avs_result_street>
|
501
|
+
<avs_result_postal>Y</avs_result_postal>
|
502
|
+
<test type="boolean">true</test>
|
503
|
+
<voidable type="boolean">true</voidable>
|
504
|
+
<refundable type="boolean">true</refundable>
|
505
|
+
</transaction>
|
506
|
+
<transaction type="Payment">
|
507
|
+
<id>ffa632cd5aea400e9b247c8b3d62c507</id>
|
508
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
509
|
+
<action>purchase</action>
|
510
|
+
<date type="datetime">2011-09-22T22:02:16Z</date>
|
511
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
512
|
+
<currency>USD</currency>
|
513
|
+
<status>success</status>
|
514
|
+
<message>Test Gateway: Successful test transaction</message>
|
515
|
+
<reference>12345</reference>
|
516
|
+
<cvv_result code="M">Match</cvv_result>
|
517
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
518
|
+
<avs_result_street>Y</avs_result_street>
|
519
|
+
<avs_result_postal>Y</avs_result_postal>
|
520
|
+
<test type="boolean">true</test>
|
521
|
+
<voidable type="boolean">true</voidable>
|
522
|
+
<refundable type="boolean">true</refundable>
|
523
|
+
</transaction>
|
524
|
+
<transaction type="Payment">
|
525
|
+
<id>b63edd68f716468085ad244aa788376a</id>
|
526
|
+
<account_code>transaction-list-filled-1311126815</account_code>
|
527
|
+
<action>authorization</action>
|
528
|
+
<date type="datetime">2011-09-22T22:02:15Z</date>
|
529
|
+
<amount_in_cents type="integer">0</amount_in_cents>
|
530
|
+
<currency>USD</currency>
|
531
|
+
<status>success</status>
|
532
|
+
<message>Test Gateway: Successful test transaction</message>
|
533
|
+
<reference>12345</reference>
|
534
|
+
<cvv_result code="M">Match</cvv_result>
|
535
|
+
<avs_result code="D">Street address and postal code match.</avs_result>
|
536
|
+
<avs_result_street>Y</avs_result_street>
|
537
|
+
<avs_result_postal>Y</avs_result_postal>
|
538
|
+
<test type="boolean">true</test>
|
539
|
+
<voidable type="boolean">false</voidable>
|
540
|
+
<refundable type="boolean">false</refundable>
|
541
|
+
</transaction>
|
542
|
+
</transactions>
|
543
|
+
|
544
|
+
http_version: "1.1"
|