recurly 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/patches/rails2/active_resource/connection.rb +10 -0
- data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
- data/lib/recurly.rb +7 -2
- data/lib/recurly/transparent.rb +4 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transaction_spec.rb +5 -2
- data/spec/unit/transparent_spec.rb +59 -1
- data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
- data/spec/vcr/account/close/1297746103.yml +23 -30
- data/spec/vcr/account/create-blank/1297746103.yml +5 -7
- data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
- data/spec/vcr/account/create-min/1297746103.yml +8 -11
- data/spec/vcr/account/create/1297746103.yml +8 -11
- data/spec/vcr/account/find/1297746103.yml +22 -29
- data/spec/vcr/account/list/1297746103.yml +150 -196
- data/spec/vcr/account/update/1297746103.yml +37 -46
- data/spec/vcr/billing/create/1298594128.yml +24 -31
- data/spec/vcr/billing/destroy/1298594128.yml +35 -46
- data/spec/vcr/billing/find/1298594128.yml +32 -41
- data/spec/vcr/billing/update/1298594128.yml +32 -41
- data/spec/vcr/charge/create/1297746103.yml +36 -45
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
- data/spec/vcr/charge/list-all/1297746103.yml +51 -62
- data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
- data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
- data/spec/vcr/charge/lookup/1297746103.yml +28 -35
- data/spec/vcr/coupon/create/1299714521.yml +23 -30
- data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
- data/spec/vcr/credit/create/1299714599.yml +28 -35
- data/spec/vcr/credit/delete/1299714599.yml +41 -52
- data/spec/vcr/credit/list/1299714599.yml +51 -62
- data/spec/vcr/credit/lookup/1299714599.yml +28 -35
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
- data/spec/vcr/invoice/create/1297746103.yml +50 -61
- data/spec/vcr/invoice/list/1297746103.yml +73 -88
- data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
- data/spec/vcr/plan/all.yml +18 -24
- data/spec/vcr/plan/find.yml +18 -24
- data/spec/vcr/plan/update.yml +18 -24
- data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
- data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
- data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
- data/spec/vcr/subscription/change1/1297746103.yml +55 -68
- data/spec/vcr/subscription/change2/1297746103.yml +55 -68
- data/spec/vcr/subscription/create/1297746103.yml +25 -32
- data/spec/vcr/subscription/find/1297746103.yml +35 -44
- data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
- data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
- data/spec/vcr/transaction/all/1300473500.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
- data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
- data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
- data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
- data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
- data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
- data/spec/vcr/transaction/void/1300473500.yml +620 -0
- metadata +21 -20
- data/spec/vcr/transaction/all/1297746103.yml +0 -389
- data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
- data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
- data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -7,7 +7,7 @@
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<transaction>
|
9
9
|
<account>
|
10
|
-
<account-code>transaction-create-with-accout-
|
10
|
+
<account-code>transaction-create-with-accout-1300473500</account-code>
|
11
11
|
<first-name>Verena</first-name>
|
12
12
|
<last-name>Test</last-name>
|
13
13
|
<email>verena@test.com</email>
|
@@ -46,43 +46,40 @@
|
|
46
46
|
response: !ruby/struct:VCR::Response
|
47
47
|
status: !ruby/struct:VCR::ResponseStatus
|
48
48
|
code: 201
|
49
|
-
message:
|
49
|
+
message: Created
|
50
50
|
headers:
|
51
51
|
cache-control:
|
52
52
|
- no-cache
|
53
53
|
location:
|
54
|
-
- http://app.recurly.local:3000/transactions/
|
54
|
+
- http://app.recurly.local:3000/transactions/1bddde9d533642d8b22e67edf91e7628
|
55
55
|
x-runtime:
|
56
|
-
- "
|
56
|
+
- "10536"
|
57
57
|
content-type:
|
58
58
|
- application/xml; charset=utf-8
|
59
59
|
content-length:
|
60
|
-
- "
|
61
|
-
|
62
|
-
-
|
63
|
-
date:
|
64
|
-
- Fri, 11 Mar 2011 18:55:44 GMT
|
60
|
+
- "806"
|
61
|
+
set-cookie:
|
62
|
+
- _recurly_session=94c5a7b9655a1b48cbd2d105fb41033d; domain=.recurly.local; path=/; HttpOnly
|
65
63
|
connection:
|
66
64
|
- close
|
67
|
-
|
68
|
-
-
|
69
|
-
- _recurly_session=185dcc88328c88e7703b282de1abc516; domain=.recurly.local; path=/; HttpOnly
|
65
|
+
server:
|
66
|
+
- thin 1.2.7 codename No Hup
|
70
67
|
body: |
|
71
68
|
<?xml version="1.0" encoding="UTF-8"?>
|
72
69
|
<transaction type="Payment">
|
73
|
-
<id>
|
74
|
-
<account_code>transaction-create-with-accout-
|
70
|
+
<id>1bddde9d533642d8b22e67edf91e7628</id>
|
71
|
+
<account_code>transaction-create-with-accout-1300473500</account_code>
|
75
72
|
<action>purchase</action>
|
76
|
-
<date type="datetime">2011-03-
|
73
|
+
<date type="datetime">2011-03-18T18:56:04Z</date>
|
77
74
|
<amount_in_cents type="integer">700</amount_in_cents>
|
78
75
|
<status>success</status>
|
79
|
-
<message>
|
80
|
-
<reference>
|
81
|
-
<cvv_result code="
|
82
|
-
<avs_result code="
|
83
|
-
<avs_result_street
|
84
|
-
<avs_result_postal
|
85
|
-
<test type="boolean">
|
76
|
+
<message>Approved</message>
|
77
|
+
<reference>819793155761849369</reference>
|
78
|
+
<cvv_result code=""></cvv_result>
|
79
|
+
<avs_result code=""></avs_result>
|
80
|
+
<avs_result_street></avs_result_street>
|
81
|
+
<avs_result_postal></avs_result_postal>
|
82
|
+
<test type="boolean">false</test>
|
86
83
|
<voidable type="boolean">true</voidable>
|
87
84
|
<refundable type="boolean">true</refundable>
|
88
85
|
<credit_card>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>transaction-create-with-account-
|
9
|
+
<account-code>transaction-create-with-account-1300473500</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -32,32 +32,29 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/transaction-create-with-account-
|
40
|
+
- http://app.recurly.local:3000/accounts/transaction-create-with-account-1300473500
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "355"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "617"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:55:47 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=edbfa149f5ac082f0a2eacfd073a131c; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=f66949d76ddb4469e01dc5e1ed52b079; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
59
|
-
<id>transaction-create-with-account-
|
60
|
-
<account_code>transaction-create-with-account-
|
56
|
+
<id>transaction-create-with-account-1300473500</id>
|
57
|
+
<account_code>transaction-create-with-account-1300473500</account_code>
|
61
58
|
<username></username>
|
62
59
|
<email>verena@test.com</email>
|
63
60
|
<first_name>Verena</first_name>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>4ea5b9d2a6f64d98bf5ad45d8977965f</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:56:12Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -74,7 +71,7 @@
|
|
74
71
|
- !ruby/struct:VCR::HTTPInteraction
|
75
72
|
request: !ruby/struct:VCR::Request
|
76
73
|
method: :put
|
77
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-create-with-account-
|
74
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-create-with-account-1300473500/billing_info.xml
|
78
75
|
body: |
|
79
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
80
77
|
<billing-info>
|
@@ -91,7 +88,7 @@
|
|
91
88
|
<month type="integer">3</month>
|
92
89
|
<verification-value>123</verification-value>
|
93
90
|
</credit-card>
|
94
|
-
<account-code>transaction-create-with-account-
|
91
|
+
<account-code>transaction-create-with-account-1300473500</account-code>
|
95
92
|
</billing-info>
|
96
93
|
|
97
94
|
headers:
|
@@ -108,30 +105,28 @@
|
|
108
105
|
response: !ruby/struct:VCR::Response
|
109
106
|
status: !ruby/struct:VCR::ResponseStatus
|
110
107
|
code: 200
|
111
|
-
message:
|
108
|
+
message: OK
|
112
109
|
headers:
|
113
110
|
x-runtime:
|
114
|
-
- "
|
111
|
+
- "5861"
|
115
112
|
content-type:
|
116
113
|
- application/xml; charset=utf-8
|
117
114
|
etag:
|
118
|
-
- "\"
|
115
|
+
- "\"375b21df99ee5b96ccfb08efe5b6af8a\""
|
119
116
|
cache-control:
|
120
117
|
- private, max-age=0, must-revalidate
|
121
118
|
content-length:
|
122
119
|
- "657"
|
123
|
-
|
124
|
-
-
|
125
|
-
date:
|
126
|
-
- Fri, 11 Mar 2011 18:55:53 GMT
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=ee046e28ab554fb6531a2a1c0910eea8; domain=.recurly.local; path=/; HttpOnly
|
127
122
|
connection:
|
128
123
|
- close
|
129
|
-
|
130
|
-
-
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
131
126
|
body: |
|
132
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
128
|
<billing_info>
|
134
|
-
<account_code>transaction-create-with-account-
|
129
|
+
<account_code>transaction-create-with-account-1300473500</account_code>
|
135
130
|
<first_name>Verena</first_name>
|
136
131
|
<last_name>Test</last_name>
|
137
132
|
<address1>123 Test St</address1>
|
@@ -149,7 +144,7 @@
|
|
149
144
|
<month type="integer">3</month>
|
150
145
|
<year type="integer">2012</year>
|
151
146
|
</credit_card>
|
152
|
-
<updated_at type="datetime">2011-03-
|
147
|
+
<updated_at type="datetime">2011-03-18T18:56:20Z</updated_at>
|
153
148
|
</billing_info>
|
154
149
|
|
155
150
|
http_version: "1.1"
|
@@ -161,7 +156,7 @@
|
|
161
156
|
<?xml version="1.0" encoding="UTF-8"?>
|
162
157
|
<transaction>
|
163
158
|
<account>
|
164
|
-
<account-code>transaction-create-with-account-
|
159
|
+
<account-code>transaction-create-with-account-1300473500</account-code>
|
165
160
|
<billing-info>
|
166
161
|
<credit-card>
|
167
162
|
</credit-card>
|
@@ -184,30 +179,47 @@
|
|
184
179
|
- close
|
185
180
|
response: !ruby/struct:VCR::Response
|
186
181
|
status: !ruby/struct:VCR::ResponseStatus
|
187
|
-
code:
|
188
|
-
message:
|
182
|
+
code: 201
|
183
|
+
message: Created
|
189
184
|
headers:
|
190
185
|
cache-control:
|
191
186
|
- no-cache
|
187
|
+
location:
|
188
|
+
- http://app.recurly.local:3000/transactions/9432160a0fbf4fd2873ff3fd97ba2168
|
192
189
|
x-runtime:
|
193
|
-
- "
|
190
|
+
- "6942"
|
194
191
|
content-type:
|
195
192
|
- application/xml; charset=utf-8
|
196
193
|
content-length:
|
197
|
-
- "
|
198
|
-
|
199
|
-
-
|
200
|
-
date:
|
201
|
-
- Fri, 11 Mar 2011 18:55:56 GMT
|
194
|
+
- "807"
|
195
|
+
set-cookie:
|
196
|
+
- _recurly_session=059b5a8e8cb9a091357a42b6662530b7; domain=.recurly.local; path=/; HttpOnly
|
202
197
|
connection:
|
203
198
|
- close
|
204
|
-
|
205
|
-
-
|
199
|
+
server:
|
200
|
+
- thin 1.2.7 codename No Hup
|
206
201
|
body: |
|
207
202
|
<?xml version="1.0" encoding="UTF-8"?>
|
208
|
-
<
|
209
|
-
<
|
210
|
-
<
|
211
|
-
|
203
|
+
<transaction type="Payment">
|
204
|
+
<id>9432160a0fbf4fd2873ff3fd97ba2168</id>
|
205
|
+
<account_code>transaction-create-with-account-1300473500</account_code>
|
206
|
+
<action>purchase</action>
|
207
|
+
<date type="datetime">2011-03-18T18:56:27Z</date>
|
208
|
+
<amount_in_cents type="integer">700</amount_in_cents>
|
209
|
+
<status>success</status>
|
210
|
+
<message>Approved</message>
|
211
|
+
<reference>819793155761849641</reference>
|
212
|
+
<cvv_result code=""></cvv_result>
|
213
|
+
<avs_result code=""></avs_result>
|
214
|
+
<avs_result_street></avs_result_street>
|
215
|
+
<avs_result_postal></avs_result_postal>
|
216
|
+
<test type="boolean">false</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>
|
212
224
|
|
213
225
|
http_version: "1.1"
|
@@ -0,0 +1,603 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-list-filled-1300473500</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 type="yaml" nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
authorization:
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
24
|
+
content-type:
|
25
|
+
- application/xml
|
26
|
+
accept:
|
27
|
+
- "*/*"
|
28
|
+
user-agent:
|
29
|
+
- Ruby
|
30
|
+
connection:
|
31
|
+
- close
|
32
|
+
response: !ruby/struct:VCR::Response
|
33
|
+
status: !ruby/struct:VCR::ResponseStatus
|
34
|
+
code: 201
|
35
|
+
message: Created
|
36
|
+
headers:
|
37
|
+
cache-control:
|
38
|
+
- no-cache
|
39
|
+
location:
|
40
|
+
- http://app.recurly.local:3000/accounts/transaction-list-filled-1300473500
|
41
|
+
x-runtime:
|
42
|
+
- "371"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "601"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=181308e5b30472581f095399b120d1c5; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>transaction-list-filled-1300473500</id>
|
57
|
+
<account_code>transaction-list-filled-1300473500</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>b1356725fa744e1f80471e1a35f4cf93</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:56:48Z</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://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-filled-1300473500/billing_info.xml
|
75
|
+
body: |
|
76
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
+
<billing-info>
|
78
|
+
<first-name>Verena</first-name>
|
79
|
+
<last-name>Test</last-name>
|
80
|
+
<address1>123 Test St</address1>
|
81
|
+
<city>San Francisco</city>
|
82
|
+
<state>CA</state>
|
83
|
+
<zip>94115</zip>
|
84
|
+
<country>US</country>
|
85
|
+
<credit-card>
|
86
|
+
<number>4111111111111111</number>
|
87
|
+
<year type="integer">2012</year>
|
88
|
+
<month type="integer">3</month>
|
89
|
+
<verification-value>123</verification-value>
|
90
|
+
</credit-card>
|
91
|
+
<account-code>transaction-list-filled-1300473500</account-code>
|
92
|
+
</billing-info>
|
93
|
+
|
94
|
+
headers:
|
95
|
+
authorization:
|
96
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
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
|
+
- "6505"
|
112
|
+
content-type:
|
113
|
+
- application/xml; charset=utf-8
|
114
|
+
etag:
|
115
|
+
- "\"e87fdea8f7aec8031a13e9e7d3ecee40\""
|
116
|
+
cache-control:
|
117
|
+
- private, max-age=0, must-revalidate
|
118
|
+
content-length:
|
119
|
+
- "649"
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=5f12ee53e865203bae53a435c45bb4f2; domain=.recurly.local; path=/; HttpOnly
|
122
|
+
connection:
|
123
|
+
- close
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
126
|
+
body: |
|
127
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
128
|
+
<billing_info>
|
129
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
130
|
+
<first_name>Verena</first_name>
|
131
|
+
<last_name>Test</last_name>
|
132
|
+
<address1>123 Test St</address1>
|
133
|
+
<address2></address2>
|
134
|
+
<city>San Francisco</city>
|
135
|
+
<state>CA</state>
|
136
|
+
<country>US</country>
|
137
|
+
<zip>94115</zip>
|
138
|
+
<phone></phone>
|
139
|
+
<vat_number></vat_number>
|
140
|
+
<ip_address></ip_address>
|
141
|
+
<credit_card>
|
142
|
+
<type>visa</type>
|
143
|
+
<last_four>1111</last_four>
|
144
|
+
<month type="integer">3</month>
|
145
|
+
<year type="integer">2012</year>
|
146
|
+
</credit_card>
|
147
|
+
<updated_at type="datetime">2011-03-18T18:56:56Z</updated_at>
|
148
|
+
</billing_info>
|
149
|
+
|
150
|
+
http_version: "1.1"
|
151
|
+
- !ruby/struct:VCR::HTTPInteraction
|
152
|
+
request: !ruby/struct:VCR::Request
|
153
|
+
method: :post
|
154
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
|
155
|
+
body: |
|
156
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
157
|
+
<transaction>
|
158
|
+
<account>
|
159
|
+
<account-code>transaction-list-filled-1300473500</account-code>
|
160
|
+
<billing-info>
|
161
|
+
<credit-card>
|
162
|
+
</credit-card>
|
163
|
+
</billing-info>
|
164
|
+
</account>
|
165
|
+
<amount-in-cents type="integer">100</amount-in-cents>
|
166
|
+
<description>one</description>
|
167
|
+
</transaction>
|
168
|
+
|
169
|
+
headers:
|
170
|
+
authorization:
|
171
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
172
|
+
content-type:
|
173
|
+
- application/xml
|
174
|
+
accept:
|
175
|
+
- "*/*"
|
176
|
+
user-agent:
|
177
|
+
- Ruby
|
178
|
+
connection:
|
179
|
+
- close
|
180
|
+
response: !ruby/struct:VCR::Response
|
181
|
+
status: !ruby/struct:VCR::ResponseStatus
|
182
|
+
code: 201
|
183
|
+
message: Created
|
184
|
+
headers:
|
185
|
+
cache-control:
|
186
|
+
- no-cache
|
187
|
+
location:
|
188
|
+
- http://app.recurly.local:3000/transactions/e7217984af20459384d4bbd20f6b93ff
|
189
|
+
x-runtime:
|
190
|
+
- "6303"
|
191
|
+
content-type:
|
192
|
+
- application/xml; charset=utf-8
|
193
|
+
content-length:
|
194
|
+
- "799"
|
195
|
+
set-cookie:
|
196
|
+
- _recurly_session=f07247c6b813c17c65febef8162481dd; domain=.recurly.local; path=/; HttpOnly
|
197
|
+
connection:
|
198
|
+
- close
|
199
|
+
server:
|
200
|
+
- thin 1.2.7 codename No Hup
|
201
|
+
body: |
|
202
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
203
|
+
<transaction type="Payment">
|
204
|
+
<id>e7217984af20459384d4bbd20f6b93ff</id>
|
205
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
206
|
+
<action>purchase</action>
|
207
|
+
<date type="datetime">2011-03-18T18:57:02Z</date>
|
208
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
209
|
+
<status>success</status>
|
210
|
+
<message>Approved</message>
|
211
|
+
<reference>819793155761850094</reference>
|
212
|
+
<cvv_result code=""></cvv_result>
|
213
|
+
<avs_result code=""></avs_result>
|
214
|
+
<avs_result_street></avs_result_street>
|
215
|
+
<avs_result_postal></avs_result_postal>
|
216
|
+
<test type="boolean">false</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://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.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-1300473500</account-code>
|
235
|
+
<billing-info>
|
236
|
+
<credit-card>
|
237
|
+
</credit-card>
|
238
|
+
</billing-info>
|
239
|
+
</account>
|
240
|
+
<amount-in-cents type="integer">200</amount-in-cents>
|
241
|
+
<description>two</description>
|
242
|
+
</transaction>
|
243
|
+
|
244
|
+
headers:
|
245
|
+
authorization:
|
246
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
247
|
+
content-type:
|
248
|
+
- application/xml
|
249
|
+
accept:
|
250
|
+
- "*/*"
|
251
|
+
user-agent:
|
252
|
+
- Ruby
|
253
|
+
connection:
|
254
|
+
- close
|
255
|
+
response: !ruby/struct:VCR::Response
|
256
|
+
status: !ruby/struct:VCR::ResponseStatus
|
257
|
+
code: 201
|
258
|
+
message: Created
|
259
|
+
headers:
|
260
|
+
cache-control:
|
261
|
+
- no-cache
|
262
|
+
location:
|
263
|
+
- http://app.recurly.local:3000/transactions/79fcaa0cd07341a09e93fa37bfb746f5
|
264
|
+
x-runtime:
|
265
|
+
- "6384"
|
266
|
+
content-type:
|
267
|
+
- application/xml; charset=utf-8
|
268
|
+
content-length:
|
269
|
+
- "799"
|
270
|
+
set-cookie:
|
271
|
+
- _recurly_session=6a63353d8ac2082192a7e3471465f5ec; domain=.recurly.local; path=/; HttpOnly
|
272
|
+
connection:
|
273
|
+
- close
|
274
|
+
server:
|
275
|
+
- thin 1.2.7 codename No Hup
|
276
|
+
body: |
|
277
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
278
|
+
<transaction type="Payment">
|
279
|
+
<id>79fcaa0cd07341a09e93fa37bfb746f5</id>
|
280
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
281
|
+
<action>purchase</action>
|
282
|
+
<date type="datetime">2011-03-18T18:57:10Z</date>
|
283
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
284
|
+
<status>success</status>
|
285
|
+
<message>Approved</message>
|
286
|
+
<reference>819793155761850136</reference>
|
287
|
+
<cvv_result code=""></cvv_result>
|
288
|
+
<avs_result code=""></avs_result>
|
289
|
+
<avs_result_street></avs_result_street>
|
290
|
+
<avs_result_postal></avs_result_postal>
|
291
|
+
<test type="boolean">false</test>
|
292
|
+
<voidable type="boolean">true</voidable>
|
293
|
+
<refundable type="boolean">true</refundable>
|
294
|
+
<credit_card>
|
295
|
+
<type>visa</type>
|
296
|
+
<last_four>1111</last_four>
|
297
|
+
</credit_card>
|
298
|
+
</transaction>
|
299
|
+
|
300
|
+
http_version: "1.1"
|
301
|
+
- !ruby/struct:VCR::HTTPInteraction
|
302
|
+
request: !ruby/struct:VCR::Request
|
303
|
+
method: :post
|
304
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
|
305
|
+
body: |
|
306
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
307
|
+
<transaction>
|
308
|
+
<account>
|
309
|
+
<account-code>transaction-list-filled-1300473500</account-code>
|
310
|
+
<billing-info>
|
311
|
+
<credit-card>
|
312
|
+
</credit-card>
|
313
|
+
</billing-info>
|
314
|
+
</account>
|
315
|
+
<amount-in-cents type="integer">300</amount-in-cents>
|
316
|
+
<description>three</description>
|
317
|
+
</transaction>
|
318
|
+
|
319
|
+
headers:
|
320
|
+
authorization:
|
321
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
322
|
+
content-type:
|
323
|
+
- application/xml
|
324
|
+
accept:
|
325
|
+
- "*/*"
|
326
|
+
user-agent:
|
327
|
+
- Ruby
|
328
|
+
connection:
|
329
|
+
- close
|
330
|
+
response: !ruby/struct:VCR::Response
|
331
|
+
status: !ruby/struct:VCR::ResponseStatus
|
332
|
+
code: 201
|
333
|
+
message: Created
|
334
|
+
headers:
|
335
|
+
cache-control:
|
336
|
+
- no-cache
|
337
|
+
location:
|
338
|
+
- http://app.recurly.local:3000/transactions/3e51f98433a440449754d451738b141a
|
339
|
+
x-runtime:
|
340
|
+
- "6536"
|
341
|
+
content-type:
|
342
|
+
- application/xml; charset=utf-8
|
343
|
+
content-length:
|
344
|
+
- "799"
|
345
|
+
set-cookie:
|
346
|
+
- _recurly_session=826ae2909e214f2df574bc65cd2af4f9; domain=.recurly.local; path=/; HttpOnly
|
347
|
+
connection:
|
348
|
+
- close
|
349
|
+
server:
|
350
|
+
- thin 1.2.7 codename No Hup
|
351
|
+
body: |
|
352
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
353
|
+
<transaction type="Payment">
|
354
|
+
<id>3e51f98433a440449754d451738b141a</id>
|
355
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
356
|
+
<action>purchase</action>
|
357
|
+
<date type="datetime">2011-03-18T18:57:19Z</date>
|
358
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
359
|
+
<status>success</status>
|
360
|
+
<message>Approved</message>
|
361
|
+
<reference>819793155761850193</reference>
|
362
|
+
<cvv_result code=""></cvv_result>
|
363
|
+
<avs_result code=""></avs_result>
|
364
|
+
<avs_result_street></avs_result_street>
|
365
|
+
<avs_result_postal></avs_result_postal>
|
366
|
+
<test type="boolean">false</test>
|
367
|
+
<voidable type="boolean">true</voidable>
|
368
|
+
<refundable type="boolean">true</refundable>
|
369
|
+
<credit_card>
|
370
|
+
<type>visa</type>
|
371
|
+
<last_four>1111</last_four>
|
372
|
+
</credit_card>
|
373
|
+
</transaction>
|
374
|
+
|
375
|
+
http_version: "1.1"
|
376
|
+
- !ruby/struct:VCR::HTTPInteraction
|
377
|
+
request: !ruby/struct:VCR::Request
|
378
|
+
method: :get
|
379
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-filled-1300473500/transactions
|
380
|
+
body:
|
381
|
+
headers:
|
382
|
+
authorization:
|
383
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
384
|
+
accept:
|
385
|
+
- application/xml
|
386
|
+
accept-encoding:
|
387
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
388
|
+
user-agent:
|
389
|
+
- Ruby
|
390
|
+
connection:
|
391
|
+
- close
|
392
|
+
response: !ruby/struct:VCR::Response
|
393
|
+
status: !ruby/struct:VCR::ResponseStatus
|
394
|
+
code: 200
|
395
|
+
message: OK
|
396
|
+
headers:
|
397
|
+
x-runtime:
|
398
|
+
- "397"
|
399
|
+
content-type:
|
400
|
+
- application/xml; charset=utf-8
|
401
|
+
etag:
|
402
|
+
- "\"62b21b9536d6aa4397df3d117e58ab92\""
|
403
|
+
cache-control:
|
404
|
+
- private, max-age=0, must-revalidate
|
405
|
+
content-length:
|
406
|
+
- "3059"
|
407
|
+
set-cookie:
|
408
|
+
- _recurly_session=c0587f12fd3f7c55acc7ceed3b55f2cf; domain=.recurly.local; path=/; HttpOnly
|
409
|
+
connection:
|
410
|
+
- close
|
411
|
+
server:
|
412
|
+
- thin 1.2.7 codename No Hup
|
413
|
+
body: |
|
414
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
415
|
+
<transactions type="collection">
|
416
|
+
<current_page type="integer">1</current_page>
|
417
|
+
<per_page type="integer">50</per_page>
|
418
|
+
<total_entries type="integer">4</total_entries>
|
419
|
+
<transaction type="Payment">
|
420
|
+
<id>3e51f98433a440449754d451738b141a</id>
|
421
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
422
|
+
<action>purchase</action>
|
423
|
+
<date type="datetime">2011-03-18T18:57:19Z</date>
|
424
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
425
|
+
<status>success</status>
|
426
|
+
<message>Approved</message>
|
427
|
+
<reference>819793155761850193</reference>
|
428
|
+
<cvv_result code=""></cvv_result>
|
429
|
+
<avs_result code=""></avs_result>
|
430
|
+
<avs_result_street></avs_result_street>
|
431
|
+
<avs_result_postal></avs_result_postal>
|
432
|
+
<test type="boolean">false</test>
|
433
|
+
<voidable type="boolean">true</voidable>
|
434
|
+
<refundable type="boolean">true</refundable>
|
435
|
+
</transaction>
|
436
|
+
<transaction type="Payment">
|
437
|
+
<id>79fcaa0cd07341a09e93fa37bfb746f5</id>
|
438
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
439
|
+
<action>purchase</action>
|
440
|
+
<date type="datetime">2011-03-18T18:57:10Z</date>
|
441
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
442
|
+
<status>success</status>
|
443
|
+
<message>Approved</message>
|
444
|
+
<reference>819793155761850136</reference>
|
445
|
+
<cvv_result code=""></cvv_result>
|
446
|
+
<avs_result code=""></avs_result>
|
447
|
+
<avs_result_street></avs_result_street>
|
448
|
+
<avs_result_postal></avs_result_postal>
|
449
|
+
<test type="boolean">false</test>
|
450
|
+
<voidable type="boolean">true</voidable>
|
451
|
+
<refundable type="boolean">true</refundable>
|
452
|
+
</transaction>
|
453
|
+
<transaction type="Payment">
|
454
|
+
<id>e7217984af20459384d4bbd20f6b93ff</id>
|
455
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
456
|
+
<action>purchase</action>
|
457
|
+
<date type="datetime">2011-03-18T18:57:02Z</date>
|
458
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
459
|
+
<status>success</status>
|
460
|
+
<message>Approved</message>
|
461
|
+
<reference>819793155761850094</reference>
|
462
|
+
<cvv_result code=""></cvv_result>
|
463
|
+
<avs_result code=""></avs_result>
|
464
|
+
<avs_result_street></avs_result_street>
|
465
|
+
<avs_result_postal></avs_result_postal>
|
466
|
+
<test type="boolean">false</test>
|
467
|
+
<voidable type="boolean">true</voidable>
|
468
|
+
<refundable type="boolean">true</refundable>
|
469
|
+
</transaction>
|
470
|
+
<transaction type="Payment">
|
471
|
+
<id>4d9cceb09cb64555be16d16ffdb8a763</id>
|
472
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
473
|
+
<action>authorization</action>
|
474
|
+
<date type="datetime">2011-03-18T18:56:54Z</date>
|
475
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
476
|
+
<status>void</status>
|
477
|
+
<message>Approved</message>
|
478
|
+
<reference>819793155761850029</reference>
|
479
|
+
<cvv_result code=""></cvv_result>
|
480
|
+
<avs_result code=""></avs_result>
|
481
|
+
<avs_result_street></avs_result_street>
|
482
|
+
<avs_result_postal></avs_result_postal>
|
483
|
+
<test type="boolean">false</test>
|
484
|
+
<voidable type="boolean">false</voidable>
|
485
|
+
<refundable type="boolean">false</refundable>
|
486
|
+
</transaction>
|
487
|
+
</transactions>
|
488
|
+
|
489
|
+
http_version: "1.1"
|
490
|
+
- !ruby/struct:VCR::HTTPInteraction
|
491
|
+
request: !ruby/struct:VCR::Request
|
492
|
+
method: :get
|
493
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-filled-1300473500/transactions
|
494
|
+
body:
|
495
|
+
headers:
|
496
|
+
authorization:
|
497
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
498
|
+
accept:
|
499
|
+
- application/xml
|
500
|
+
accept-encoding:
|
501
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
502
|
+
user-agent:
|
503
|
+
- Ruby
|
504
|
+
connection:
|
505
|
+
- close
|
506
|
+
response: !ruby/struct:VCR::Response
|
507
|
+
status: !ruby/struct:VCR::ResponseStatus
|
508
|
+
code: 200
|
509
|
+
message: OK
|
510
|
+
headers:
|
511
|
+
x-runtime:
|
512
|
+
- "397"
|
513
|
+
content-type:
|
514
|
+
- application/xml; charset=utf-8
|
515
|
+
etag:
|
516
|
+
- "\"62b21b9536d6aa4397df3d117e58ab92\""
|
517
|
+
cache-control:
|
518
|
+
- private, max-age=0, must-revalidate
|
519
|
+
content-length:
|
520
|
+
- "3059"
|
521
|
+
set-cookie:
|
522
|
+
- _recurly_session=5f03780f13495c03420eb20a97d18e5c; domain=.recurly.local; path=/; HttpOnly
|
523
|
+
connection:
|
524
|
+
- close
|
525
|
+
server:
|
526
|
+
- thin 1.2.7 codename No Hup
|
527
|
+
body: |
|
528
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
529
|
+
<transactions type="collection">
|
530
|
+
<current_page type="integer">1</current_page>
|
531
|
+
<per_page type="integer">50</per_page>
|
532
|
+
<total_entries type="integer">4</total_entries>
|
533
|
+
<transaction type="Payment">
|
534
|
+
<id>3e51f98433a440449754d451738b141a</id>
|
535
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
536
|
+
<action>purchase</action>
|
537
|
+
<date type="datetime">2011-03-18T18:57:19Z</date>
|
538
|
+
<amount_in_cents type="integer">300</amount_in_cents>
|
539
|
+
<status>success</status>
|
540
|
+
<message>Approved</message>
|
541
|
+
<reference>819793155761850193</reference>
|
542
|
+
<cvv_result code=""></cvv_result>
|
543
|
+
<avs_result code=""></avs_result>
|
544
|
+
<avs_result_street></avs_result_street>
|
545
|
+
<avs_result_postal></avs_result_postal>
|
546
|
+
<test type="boolean">false</test>
|
547
|
+
<voidable type="boolean">true</voidable>
|
548
|
+
<refundable type="boolean">true</refundable>
|
549
|
+
</transaction>
|
550
|
+
<transaction type="Payment">
|
551
|
+
<id>79fcaa0cd07341a09e93fa37bfb746f5</id>
|
552
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
553
|
+
<action>purchase</action>
|
554
|
+
<date type="datetime">2011-03-18T18:57:10Z</date>
|
555
|
+
<amount_in_cents type="integer">200</amount_in_cents>
|
556
|
+
<status>success</status>
|
557
|
+
<message>Approved</message>
|
558
|
+
<reference>819793155761850136</reference>
|
559
|
+
<cvv_result code=""></cvv_result>
|
560
|
+
<avs_result code=""></avs_result>
|
561
|
+
<avs_result_street></avs_result_street>
|
562
|
+
<avs_result_postal></avs_result_postal>
|
563
|
+
<test type="boolean">false</test>
|
564
|
+
<voidable type="boolean">true</voidable>
|
565
|
+
<refundable type="boolean">true</refundable>
|
566
|
+
</transaction>
|
567
|
+
<transaction type="Payment">
|
568
|
+
<id>e7217984af20459384d4bbd20f6b93ff</id>
|
569
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
570
|
+
<action>purchase</action>
|
571
|
+
<date type="datetime">2011-03-18T18:57:02Z</date>
|
572
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
573
|
+
<status>success</status>
|
574
|
+
<message>Approved</message>
|
575
|
+
<reference>819793155761850094</reference>
|
576
|
+
<cvv_result code=""></cvv_result>
|
577
|
+
<avs_result code=""></avs_result>
|
578
|
+
<avs_result_street></avs_result_street>
|
579
|
+
<avs_result_postal></avs_result_postal>
|
580
|
+
<test type="boolean">false</test>
|
581
|
+
<voidable type="boolean">true</voidable>
|
582
|
+
<refundable type="boolean">true</refundable>
|
583
|
+
</transaction>
|
584
|
+
<transaction type="Payment">
|
585
|
+
<id>4d9cceb09cb64555be16d16ffdb8a763</id>
|
586
|
+
<account_code>transaction-list-filled-1300473500</account_code>
|
587
|
+
<action>authorization</action>
|
588
|
+
<date type="datetime">2011-03-18T18:56:54Z</date>
|
589
|
+
<amount_in_cents type="integer">100</amount_in_cents>
|
590
|
+
<status>void</status>
|
591
|
+
<message>Approved</message>
|
592
|
+
<reference>819793155761850029</reference>
|
593
|
+
<cvv_result code=""></cvv_result>
|
594
|
+
<avs_result code=""></avs_result>
|
595
|
+
<avs_result_street></avs_result_street>
|
596
|
+
<avs_result_postal></avs_result_postal>
|
597
|
+
<test type="boolean">false</test>
|
598
|
+
<voidable type="boolean">false</voidable>
|
599
|
+
<refundable type="boolean">false</refundable>
|
600
|
+
</transaction>
|
601
|
+
</transactions>
|
602
|
+
|
603
|
+
http_version: "1.1"
|