recurly 0.4.8 → 0.4.10
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 +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,225 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<account-code>transaction-create-with-account-1296674173</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
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
21
|
-
- application/xml
|
22
|
-
accept:
|
23
|
-
- "*/*"
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
30
|
-
code: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "590"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
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
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=7a73db2306cd38e91b2422388121b3dea06e8797bd904bf7fe92f02e7e95c6dacf448f66087b32974b91eb59a833d701c47eeb950b1713fe176bae0283262be0%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=95d00a2495efc318c446e393689ebe42; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>transaction-create-with-account-1296674173</id>
|
57
|
-
<account_code>transaction-create-with-account-1296674173</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>89e2cbcd70894dce9a3eaac8435c91ba</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:24:30Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :put
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173/billing_info.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<billing-info>
|
78
|
-
<address1>123 Test St</address1>
|
79
|
-
<city>San Francisco</city>
|
80
|
-
<state>CA</state>
|
81
|
-
<zip>94115</zip>
|
82
|
-
<country>US</country>
|
83
|
-
<credit-card>
|
84
|
-
<number>4111111111111111</number>
|
85
|
-
<year type="integer">2012</year>
|
86
|
-
<month type="integer">2</month>
|
87
|
-
<verification-value>123</verification-value>
|
88
|
-
</credit-card>
|
89
|
-
<account-code>transaction-create-with-account-1296674173</account-code>
|
90
|
-
<first-name>Verena</first-name>
|
91
|
-
<last-name>Test</last-name>
|
92
|
-
</billing-info>
|
93
|
-
|
94
|
-
headers:
|
95
|
-
authorization:
|
96
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
accept:
|
100
|
-
- "*/*"
|
101
|
-
user-agent:
|
102
|
-
- Ruby
|
103
|
-
connection:
|
104
|
-
- close
|
105
|
-
response: !ruby/struct:VCR::Response
|
106
|
-
status: !ruby/struct:VCR::ResponseStatus
|
107
|
-
code: 200
|
108
|
-
message: "OK "
|
109
|
-
headers:
|
110
|
-
x-runtime:
|
111
|
-
- "1677"
|
112
|
-
content-type:
|
113
|
-
- application/xml; charset=utf-8
|
114
|
-
etag:
|
115
|
-
- "\"cb765597f1b08920e415a74b14b16820\""
|
116
|
-
cache-control:
|
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
|
128
|
-
body: |
|
129
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
130
|
-
<billing_info>
|
131
|
-
<account_code>transaction-create-with-account-1296674173</account_code>
|
132
|
-
<first_name>Verena</first_name>
|
133
|
-
<last_name>Test</last_name>
|
134
|
-
<address1>123 Test St</address1>
|
135
|
-
<address2></address2>
|
136
|
-
<city>San Francisco</city>
|
137
|
-
<state>CA</state>
|
138
|
-
<country>US</country>
|
139
|
-
<zip>94115</zip>
|
140
|
-
<phone></phone>
|
141
|
-
<vat_number></vat_number>
|
142
|
-
<ip_address></ip_address>
|
143
|
-
<credit_card>
|
144
|
-
<type>visa</type>
|
145
|
-
<last_four>1111</last_four>
|
146
|
-
<month type="integer">2</month>
|
147
|
-
<year type="integer">2012</year>
|
148
|
-
</credit_card>
|
149
|
-
<updated_at type="datetime">2011-02-03T22:24:34Z</updated_at>
|
150
|
-
</billing_info>
|
151
|
-
|
152
|
-
http_version: "1.1"
|
153
|
-
- !ruby/struct:VCR::HTTPInteraction
|
154
|
-
request: !ruby/struct:VCR::Request
|
155
|
-
method: :post
|
156
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
157
|
-
body: |
|
158
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
159
|
-
<transaction>
|
160
|
-
<account>
|
161
|
-
<account-code>transaction-create-with-account-1296674173</account-code>
|
162
|
-
</account>
|
163
|
-
<amount-in-cents type="integer">700</amount-in-cents>
|
164
|
-
<description>test transaction for $7</description>
|
165
|
-
</transaction>
|
166
|
-
|
167
|
-
headers:
|
168
|
-
authorization:
|
169
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
170
|
-
content-type:
|
171
|
-
- application/xml
|
172
|
-
accept:
|
173
|
-
- "*/*"
|
174
|
-
user-agent:
|
175
|
-
- Ruby
|
176
|
-
connection:
|
177
|
-
- close
|
178
|
-
response: !ruby/struct:VCR::Response
|
179
|
-
status: !ruby/struct:VCR::ResponseStatus
|
180
|
-
code: 201
|
181
|
-
message: "Created "
|
182
|
-
headers:
|
183
|
-
cache-control:
|
184
|
-
- no-cache
|
185
|
-
location:
|
186
|
-
- http://litle-test.recurly.local:3000/transactions/7a53ae4b1d7d4f768010ca03f8a91210
|
187
|
-
x-runtime:
|
188
|
-
- "4235"
|
189
|
-
content-type:
|
190
|
-
- application/xml; charset=utf-8
|
191
|
-
content-length:
|
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
|
199
|
-
set-cookie:
|
200
|
-
- _recurly_session=e759b1858561e5acaf2b31c2b917fb1a; domain=.recurly.local; path=/; HttpOnly
|
201
|
-
body: |
|
202
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
203
|
-
<transaction type="Payment">
|
204
|
-
<id>7a53ae4b1d7d4f768010ca03f8a91210</id>
|
205
|
-
<account_code>transaction-create-with-account-1296674173</account_code>
|
206
|
-
<action>purchase</action>
|
207
|
-
<date type="datetime">2011-02-03T22:24:37Z</date>
|
208
|
-
<amount_in_cents type="integer">700</amount_in_cents>
|
209
|
-
<status>success</status>
|
210
|
-
<message>Test Gateway: Successful test transaction</message>
|
211
|
-
<reference>12345</reference>
|
212
|
-
<cvv_result code="M">Match</cvv_result>
|
213
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
214
|
-
<avs_result_street>Y</avs_result_street>
|
215
|
-
<avs_result_postal>Y</avs_result_postal>
|
216
|
-
<test type="boolean">true</test>
|
217
|
-
<voidable type="boolean">true</voidable>
|
218
|
-
<refundable type="boolean">true</refundable>
|
219
|
-
<credit_card>
|
220
|
-
<type>visa</type>
|
221
|
-
<last_four>1111</last_four>
|
222
|
-
</credit_card>
|
223
|
-
</transaction>
|
224
|
-
|
225
|
-
http_version: "1.1"
|
@@ -1,487 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<account-code>transaction-list-filled-1296674173</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
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
21
|
-
- application/xml
|
22
|
-
accept:
|
23
|
-
- "*/*"
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
30
|
-
code: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "754"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
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
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=719ab2b7ad0351e16154edfc3275ba45e4b96cca8aab76b7db32869ffa661d8bc64f24809d1fab7d8938c30e303ab8904e1f994918e461bc1349c683223ce382%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=8842de98b4a4d51f25561997602205b2; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>transaction-list-filled-1296674173</id>
|
57
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>f96839210c5d4a08a0360d0ed486ce06</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:24:57Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :put
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/billing_info.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<billing-info>
|
78
|
-
<address1>123 Test St</address1>
|
79
|
-
<city>San Francisco</city>
|
80
|
-
<state>CA</state>
|
81
|
-
<zip>94115</zip>
|
82
|
-
<country>US</country>
|
83
|
-
<credit-card>
|
84
|
-
<number>4111111111111111</number>
|
85
|
-
<year type="integer">2012</year>
|
86
|
-
<month type="integer">2</month>
|
87
|
-
<verification-value>123</verification-value>
|
88
|
-
</credit-card>
|
89
|
-
<account-code>transaction-list-filled-1296674173</account-code>
|
90
|
-
<first-name>Verena</first-name>
|
91
|
-
<last-name>Test</last-name>
|
92
|
-
</billing-info>
|
93
|
-
|
94
|
-
headers:
|
95
|
-
authorization:
|
96
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
-
content-type:
|
98
|
-
- application/xml
|
99
|
-
accept:
|
100
|
-
- "*/*"
|
101
|
-
user-agent:
|
102
|
-
- Ruby
|
103
|
-
connection:
|
104
|
-
- close
|
105
|
-
response: !ruby/struct:VCR::Response
|
106
|
-
status: !ruby/struct:VCR::ResponseStatus
|
107
|
-
code: 200
|
108
|
-
message: "OK "
|
109
|
-
headers:
|
110
|
-
x-runtime:
|
111
|
-
- "1600"
|
112
|
-
content-type:
|
113
|
-
- application/xml; charset=utf-8
|
114
|
-
etag:
|
115
|
-
- "\"ffaf82e69307e1c2d4b1f3763f4a6098\""
|
116
|
-
cache-control:
|
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
|
128
|
-
body: |
|
129
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
130
|
-
<billing_info>
|
131
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
132
|
-
<first_name>Verena</first_name>
|
133
|
-
<last_name>Test</last_name>
|
134
|
-
<address1>123 Test St</address1>
|
135
|
-
<address2></address2>
|
136
|
-
<city>San Francisco</city>
|
137
|
-
<state>CA</state>
|
138
|
-
<country>US</country>
|
139
|
-
<zip>94115</zip>
|
140
|
-
<phone></phone>
|
141
|
-
<vat_number></vat_number>
|
142
|
-
<ip_address></ip_address>
|
143
|
-
<credit_card>
|
144
|
-
<type>visa</type>
|
145
|
-
<last_four>1111</last_four>
|
146
|
-
<month type="integer">2</month>
|
147
|
-
<year type="integer">2012</year>
|
148
|
-
</credit_card>
|
149
|
-
<updated_at type="datetime">2011-02-03T22:25:00Z</updated_at>
|
150
|
-
</billing_info>
|
151
|
-
|
152
|
-
http_version: "1.1"
|
153
|
-
- !ruby/struct:VCR::HTTPInteraction
|
154
|
-
request: !ruby/struct:VCR::Request
|
155
|
-
method: :post
|
156
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
157
|
-
body: |
|
158
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
159
|
-
<transaction>
|
160
|
-
<account>
|
161
|
-
<account-code>transaction-list-filled-1296674173</account-code>
|
162
|
-
</account>
|
163
|
-
<amount-in-cents type="integer">100</amount-in-cents>
|
164
|
-
<description>one</description>
|
165
|
-
</transaction>
|
166
|
-
|
167
|
-
headers:
|
168
|
-
authorization:
|
169
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
170
|
-
content-type:
|
171
|
-
- application/xml
|
172
|
-
accept:
|
173
|
-
- "*/*"
|
174
|
-
user-agent:
|
175
|
-
- Ruby
|
176
|
-
connection:
|
177
|
-
- close
|
178
|
-
response: !ruby/struct:VCR::Response
|
179
|
-
status: !ruby/struct:VCR::ResponseStatus
|
180
|
-
code: 201
|
181
|
-
message: "Created "
|
182
|
-
headers:
|
183
|
-
cache-control:
|
184
|
-
- no-cache
|
185
|
-
location:
|
186
|
-
- http://litle-test.recurly.local:3000/transactions/5f140afee0be4a7683fad66f62a66e90
|
187
|
-
x-runtime:
|
188
|
-
- "4346"
|
189
|
-
content-type:
|
190
|
-
- application/xml; charset=utf-8
|
191
|
-
content-length:
|
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
|
199
|
-
set-cookie:
|
200
|
-
- _recurly_session=c88f95bcc94387e037627fb39252f0ed; domain=.recurly.local; path=/; HttpOnly
|
201
|
-
body: |
|
202
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
203
|
-
<transaction type="Payment">
|
204
|
-
<id>5f140afee0be4a7683fad66f62a66e90</id>
|
205
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
206
|
-
<action>purchase</action>
|
207
|
-
<date type="datetime">2011-02-03T22:25:04Z</date>
|
208
|
-
<amount_in_cents type="integer">100</amount_in_cents>
|
209
|
-
<status>success</status>
|
210
|
-
<message>Test Gateway: Successful test transaction</message>
|
211
|
-
<reference>12345</reference>
|
212
|
-
<cvv_result code="M">Match</cvv_result>
|
213
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
214
|
-
<avs_result_street>Y</avs_result_street>
|
215
|
-
<avs_result_postal>Y</avs_result_postal>
|
216
|
-
<test type="boolean">true</test>
|
217
|
-
<voidable type="boolean">true</voidable>
|
218
|
-
<refundable type="boolean">true</refundable>
|
219
|
-
<credit_card>
|
220
|
-
<type>visa</type>
|
221
|
-
<last_four>1111</last_four>
|
222
|
-
</credit_card>
|
223
|
-
</transaction>
|
224
|
-
|
225
|
-
http_version: "1.1"
|
226
|
-
- !ruby/struct:VCR::HTTPInteraction
|
227
|
-
request: !ruby/struct:VCR::Request
|
228
|
-
method: :post
|
229
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
230
|
-
body: |
|
231
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
232
|
-
<transaction>
|
233
|
-
<account>
|
234
|
-
<account-code>transaction-list-filled-1296674173</account-code>
|
235
|
-
</account>
|
236
|
-
<amount-in-cents type="integer">200</amount-in-cents>
|
237
|
-
<description>two</description>
|
238
|
-
</transaction>
|
239
|
-
|
240
|
-
headers:
|
241
|
-
authorization:
|
242
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
243
|
-
content-type:
|
244
|
-
- application/xml
|
245
|
-
accept:
|
246
|
-
- "*/*"
|
247
|
-
user-agent:
|
248
|
-
- Ruby
|
249
|
-
connection:
|
250
|
-
- close
|
251
|
-
response: !ruby/struct:VCR::Response
|
252
|
-
status: !ruby/struct:VCR::ResponseStatus
|
253
|
-
code: 201
|
254
|
-
message: "Created "
|
255
|
-
headers:
|
256
|
-
cache-control:
|
257
|
-
- no-cache
|
258
|
-
location:
|
259
|
-
- http://litle-test.recurly.local:3000/transactions/c6bcf3df5b964c4d8064c4db2ecca646
|
260
|
-
x-runtime:
|
261
|
-
- "4123"
|
262
|
-
content-type:
|
263
|
-
- application/xml; charset=utf-8
|
264
|
-
content-length:
|
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
|
272
|
-
set-cookie:
|
273
|
-
- _recurly_session=854dad49403654cdc5fdb6589e3236e6; domain=.recurly.local; path=/; HttpOnly
|
274
|
-
body: |
|
275
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
276
|
-
<transaction type="Payment">
|
277
|
-
<id>c6bcf3df5b964c4d8064c4db2ecca646</id>
|
278
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
279
|
-
<action>purchase</action>
|
280
|
-
<date type="datetime">2011-02-03T22:25:10Z</date>
|
281
|
-
<amount_in_cents type="integer">200</amount_in_cents>
|
282
|
-
<status>success</status>
|
283
|
-
<message>Test Gateway: Successful test transaction</message>
|
284
|
-
<reference>12345</reference>
|
285
|
-
<cvv_result code="M">Match</cvv_result>
|
286
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
287
|
-
<avs_result_street>Y</avs_result_street>
|
288
|
-
<avs_result_postal>Y</avs_result_postal>
|
289
|
-
<test type="boolean">true</test>
|
290
|
-
<voidable type="boolean">true</voidable>
|
291
|
-
<refundable type="boolean">true</refundable>
|
292
|
-
<credit_card>
|
293
|
-
<type>visa</type>
|
294
|
-
<last_four>1111</last_four>
|
295
|
-
</credit_card>
|
296
|
-
</transaction>
|
297
|
-
|
298
|
-
http_version: "1.1"
|
299
|
-
- !ruby/struct:VCR::HTTPInteraction
|
300
|
-
request: !ruby/struct:VCR::Request
|
301
|
-
method: :post
|
302
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
|
303
|
-
body: |
|
304
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
305
|
-
<transaction>
|
306
|
-
<account>
|
307
|
-
<account-code>transaction-list-filled-1296674173</account-code>
|
308
|
-
</account>
|
309
|
-
<amount-in-cents type="integer">300</amount-in-cents>
|
310
|
-
<description>three</description>
|
311
|
-
</transaction>
|
312
|
-
|
313
|
-
headers:
|
314
|
-
authorization:
|
315
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
316
|
-
content-type:
|
317
|
-
- application/xml
|
318
|
-
accept:
|
319
|
-
- "*/*"
|
320
|
-
user-agent:
|
321
|
-
- Ruby
|
322
|
-
connection:
|
323
|
-
- close
|
324
|
-
response: !ruby/struct:VCR::Response
|
325
|
-
status: !ruby/struct:VCR::ResponseStatus
|
326
|
-
code: 201
|
327
|
-
message: "Created "
|
328
|
-
headers:
|
329
|
-
cache-control:
|
330
|
-
- no-cache
|
331
|
-
location:
|
332
|
-
- http://litle-test.recurly.local:3000/transactions/604b118b846043959624554b4170c230
|
333
|
-
x-runtime:
|
334
|
-
- "4250"
|
335
|
-
content-type:
|
336
|
-
- application/xml; charset=utf-8
|
337
|
-
content-length:
|
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
|
345
|
-
set-cookie:
|
346
|
-
- _recurly_session=689682746bfa0091922f707502427533; domain=.recurly.local; path=/; HttpOnly
|
347
|
-
body: |
|
348
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
349
|
-
<transaction type="Payment">
|
350
|
-
<id>604b118b846043959624554b4170c230</id>
|
351
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
352
|
-
<action>purchase</action>
|
353
|
-
<date type="datetime">2011-02-03T22:25:16Z</date>
|
354
|
-
<amount_in_cents type="integer">300</amount_in_cents>
|
355
|
-
<status>success</status>
|
356
|
-
<message>Test Gateway: Successful test transaction</message>
|
357
|
-
<reference>12345</reference>
|
358
|
-
<cvv_result code="M">Match</cvv_result>
|
359
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
360
|
-
<avs_result_street>Y</avs_result_street>
|
361
|
-
<avs_result_postal>Y</avs_result_postal>
|
362
|
-
<test type="boolean">true</test>
|
363
|
-
<voidable type="boolean">true</voidable>
|
364
|
-
<refundable type="boolean">true</refundable>
|
365
|
-
<credit_card>
|
366
|
-
<type>visa</type>
|
367
|
-
<last_four>1111</last_four>
|
368
|
-
</credit_card>
|
369
|
-
</transaction>
|
370
|
-
|
371
|
-
http_version: "1.1"
|
372
|
-
- !ruby/struct:VCR::HTTPInteraction
|
373
|
-
request: !ruby/struct:VCR::Request
|
374
|
-
method: :get
|
375
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/transactions
|
376
|
-
body:
|
377
|
-
headers:
|
378
|
-
authorization:
|
379
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
380
|
-
accept:
|
381
|
-
- application/xml
|
382
|
-
accept-encoding:
|
383
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
384
|
-
user-agent:
|
385
|
-
- Ruby
|
386
|
-
connection:
|
387
|
-
- close
|
388
|
-
response: !ruby/struct:VCR::Response
|
389
|
-
status: !ruby/struct:VCR::ResponseStatus
|
390
|
-
code: 200
|
391
|
-
message: "OK "
|
392
|
-
headers:
|
393
|
-
x-runtime:
|
394
|
-
- "477"
|
395
|
-
content-type:
|
396
|
-
- application/xml; charset=utf-8
|
397
|
-
etag:
|
398
|
-
- "\"2f07f739e648db2897a93e2045ac85e5\""
|
399
|
-
cache-control:
|
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
|
411
|
-
body: |
|
412
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
413
|
-
<transactions type="collection">
|
414
|
-
<current_page type="integer">1</current_page>
|
415
|
-
<per_page type="integer">50</per_page>
|
416
|
-
<total_entries type="integer">4</total_entries>
|
417
|
-
<transaction type="Payment">
|
418
|
-
<id>604b118b846043959624554b4170c230</id>
|
419
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
420
|
-
<action>purchase</action>
|
421
|
-
<date type="datetime">2011-02-03T22:25:16Z</date>
|
422
|
-
<amount_in_cents type="integer">300</amount_in_cents>
|
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">true</voidable>
|
432
|
-
<refundable type="boolean">true</refundable>
|
433
|
-
</transaction>
|
434
|
-
<transaction type="Payment">
|
435
|
-
<id>c6bcf3df5b964c4d8064c4db2ecca646</id>
|
436
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
437
|
-
<action>purchase</action>
|
438
|
-
<date type="datetime">2011-02-03T22:25:10Z</date>
|
439
|
-
<amount_in_cents type="integer">200</amount_in_cents>
|
440
|
-
<status>success</status>
|
441
|
-
<message>Test Gateway: Successful test transaction</message>
|
442
|
-
<reference>12345</reference>
|
443
|
-
<cvv_result code="M">Match</cvv_result>
|
444
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
445
|
-
<avs_result_street>Y</avs_result_street>
|
446
|
-
<avs_result_postal>Y</avs_result_postal>
|
447
|
-
<test type="boolean">true</test>
|
448
|
-
<voidable type="boolean">true</voidable>
|
449
|
-
<refundable type="boolean">true</refundable>
|
450
|
-
</transaction>
|
451
|
-
<transaction type="Payment">
|
452
|
-
<id>5f140afee0be4a7683fad66f62a66e90</id>
|
453
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
454
|
-
<action>purchase</action>
|
455
|
-
<date type="datetime">2011-02-03T22:25:04Z</date>
|
456
|
-
<amount_in_cents type="integer">100</amount_in_cents>
|
457
|
-
<status>success</status>
|
458
|
-
<message>Test Gateway: Successful test transaction</message>
|
459
|
-
<reference>12345</reference>
|
460
|
-
<cvv_result code="M">Match</cvv_result>
|
461
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
462
|
-
<avs_result_street>Y</avs_result_street>
|
463
|
-
<avs_result_postal>Y</avs_result_postal>
|
464
|
-
<test type="boolean">true</test>
|
465
|
-
<voidable type="boolean">true</voidable>
|
466
|
-
<refundable type="boolean">true</refundable>
|
467
|
-
</transaction>
|
468
|
-
<transaction type="Payment">
|
469
|
-
<id>79bc4459b136460197dd1c1381f017af</id>
|
470
|
-
<account_code>transaction-list-filled-1296674173</account_code>
|
471
|
-
<action>authorization</action>
|
472
|
-
<date type="datetime">2011-02-03T22:25:00Z</date>
|
473
|
-
<amount_in_cents type="integer">0</amount_in_cents>
|
474
|
-
<status>success</status>
|
475
|
-
<message>Test Gateway: Successful test transaction</message>
|
476
|
-
<reference>12345</reference>
|
477
|
-
<cvv_result code="M">Match</cvv_result>
|
478
|
-
<avs_result code="D">Street address and postal code match.</avs_result>
|
479
|
-
<avs_result_street>Y</avs_result_street>
|
480
|
-
<avs_result_postal>Y</avs_result_postal>
|
481
|
-
<test type="boolean">true</test>
|
482
|
-
<voidable type="boolean">false</voidable>
|
483
|
-
<refundable type="boolean">true</refundable>
|
484
|
-
</transaction>
|
485
|
-
</transactions>
|
486
|
-
|
487
|
-
http_version: "1.1"
|