recurly 0.4.15 → 0.4.16
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/base.rb +35 -0
- data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
- data/lib/recurly.rb +14 -4
- data/lib/recurly/account.rb +6 -3
- data/lib/recurly/base.rb +1 -2
- data/lib/recurly/subscription.rb +7 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/subscription_spec.rb +2 -1
- metadata +108 -220
- data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
- data/spec/vcr/account/close/1313708721.yml +0 -132
- data/spec/vcr/account/create-blank/1313708721.yml +0 -44
- data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
- data/spec/vcr/account/create-min/1313708721.yml +0 -56
- data/spec/vcr/account/create/1313708721.yml +0 -60
- data/spec/vcr/account/find/1313708721.yml +0 -137
- data/spec/vcr/account/list/1313708721.yml +0 -1307
- data/spec/vcr/account/update/1313708721.yml +0 -216
- data/spec/vcr/billing/create/1313708721.yml +0 -181
- data/spec/vcr/billing/destroy/1313708721.yml +0 -240
- data/spec/vcr/billing/errors/1313708721.yml +0 -106
- data/spec/vcr/billing/find/1313708721.yml +0 -234
- data/spec/vcr/billing/update/1313708721.yml +0 -251
- data/spec/vcr/charge/create/1313708721.yml +0 -222
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
- data/spec/vcr/charge/list-all/1313708721.yml +0 -276
- data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
- data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
- data/spec/vcr/charge/lookup/1313708721.yml +0 -152
- data/spec/vcr/coupon/create/1296774903.yml +0 -97
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
- data/spec/vcr/credit/create/1313708090.yml +0 -152
- data/spec/vcr/credit/delete/1313708090.yml +0 -211
- data/spec/vcr/credit/list/1313708090.yml +0 -276
- data/spec/vcr/credit/lookup/1313708090.yml +0 -152
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
- data/spec/vcr/invoice/create/1296674173.yml +0 -302
- data/spec/vcr/invoice/list/1296674173.yml +0 -405
- data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
- data/spec/vcr/plan/all.yml +0 -233
- data/spec/vcr/plan/find.yml +0 -136
- data/spec/vcr/plan/update.yml +0 -152
- data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
- data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
- data/spec/vcr/subscription/change1/1296674173.yml +0 -354
- data/spec/vcr/subscription/change2/1296674173.yml +0 -354
- data/spec/vcr/subscription/create/1296674173.yml +0 -192
- data/spec/vcr/subscription/find/1296674173.yml +0 -244
- data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
- data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
- data/spec/vcr/transaction/all/1311126815.yml +0 -397
- data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
- data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
- data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
- data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
- data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
- data/spec/vcr/transaction/void/1311126815.yml +0 -321
- data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
- data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,82 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
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:
|
39
|
-
- application/xml
|
40
|
-
response: !ruby/struct:VCR::Response
|
41
|
-
status: !ruby/struct:VCR::ResponseStatus
|
42
|
-
code: 201
|
43
|
-
message: Created
|
44
|
-
headers:
|
45
|
-
location:
|
46
|
-
- http://api.lvh.me:3000/transactions/1217e70304774f0b9d134c783900adae
|
47
|
-
content-type:
|
48
|
-
- application/xml; charset=utf-8
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
x-ua-compatible:
|
52
|
-
- IE=Edge
|
53
|
-
set-cookie:
|
54
|
-
- _recurly_session=6e27bb336956f891f5c58bba71e376f8; domain=.lvh.me; path=/; HttpOnly
|
55
|
-
server:
|
56
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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,196 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
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:
|
25
|
-
- application/xml
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- http://api.lvh.me:3000/accounts/transaction-create-with-account-1311126815
|
33
|
-
content-type:
|
34
|
-
- application/xml; charset=utf-8
|
35
|
-
cache-control:
|
36
|
-
- no-cache
|
37
|
-
x-ua-compatible:
|
38
|
-
- IE=Edge
|
39
|
-
set-cookie:
|
40
|
-
- _recurly_session=506e9988ad7a2cf13b7389c37a5f138d; domain=.lvh.me; path=/; HttpOnly
|
41
|
-
server:
|
42
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
63
|
-
method: :put
|
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:
|
88
|
-
- application/xml
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 200
|
92
|
-
message: OK
|
93
|
-
headers:
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"cabf7e64539f05f92c101976d5ab475b\""
|
98
|
-
cache-control:
|
99
|
-
- max-age=0, private, must-revalidate
|
100
|
-
x-ua-compatible:
|
101
|
-
- IE=Edge
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=c4fdc3b61867fdbaa3d66f2f6f4e0036; domain=.lvh.me; path=/; HttpOnly
|
104
|
-
server:
|
105
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
133
|
-
method: :post
|
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:
|
153
|
-
- application/xml
|
154
|
-
response: !ruby/struct:VCR::Response
|
155
|
-
status: !ruby/struct:VCR::ResponseStatus
|
156
|
-
code: 201
|
157
|
-
message: Created
|
158
|
-
headers:
|
159
|
-
location:
|
160
|
-
- http://api.lvh.me:3000/transactions/3e0ab17feaa64a1abf0a21d823f2b4fc
|
161
|
-
content-type:
|
162
|
-
- application/xml; charset=utf-8
|
163
|
-
cache-control:
|
164
|
-
- no-cache
|
165
|
-
x-ua-compatible:
|
166
|
-
- IE=Edge
|
167
|
-
set-cookie:
|
168
|
-
- _recurly_session=e9d83541024076f79ab0a8d7d3e8013e; domain=.lvh.me; path=/; HttpOnly
|
169
|
-
server:
|
170
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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,544 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
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:
|
25
|
-
- application/xml
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- http://api.lvh.me:3000/accounts/transaction-list-filled-1311126815
|
33
|
-
content-type:
|
34
|
-
- application/xml; charset=utf-8
|
35
|
-
cache-control:
|
36
|
-
- no-cache
|
37
|
-
x-ua-compatible:
|
38
|
-
- IE=Edge
|
39
|
-
set-cookie:
|
40
|
-
- _recurly_session=35d5658fb009d2380de12f9500662540; domain=.lvh.me; path=/; HttpOnly
|
41
|
-
server:
|
42
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
63
|
-
method: :put
|
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:
|
88
|
-
- application/xml
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 200
|
92
|
-
message: OK
|
93
|
-
headers:
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"13755457a9327e01b2baffa015edcb8e\""
|
98
|
-
cache-control:
|
99
|
-
- max-age=0, private, must-revalidate
|
100
|
-
x-ua-compatible:
|
101
|
-
- IE=Edge
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=2eca8a467ac42d366eff235f86f3a2d2; domain=.lvh.me; path=/; HttpOnly
|
104
|
-
server:
|
105
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
133
|
-
method: :post
|
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:
|
153
|
-
- application/xml
|
154
|
-
response: !ruby/struct:VCR::Response
|
155
|
-
status: !ruby/struct:VCR::ResponseStatus
|
156
|
-
code: 201
|
157
|
-
message: Created
|
158
|
-
headers:
|
159
|
-
location:
|
160
|
-
- http://api.lvh.me:3000/transactions/ffa632cd5aea400e9b247c8b3d62c507
|
161
|
-
content-type:
|
162
|
-
- application/xml; charset=utf-8
|
163
|
-
cache-control:
|
164
|
-
- no-cache
|
165
|
-
x-ua-compatible:
|
166
|
-
- IE=Edge
|
167
|
-
set-cookie:
|
168
|
-
- _recurly_session=ca2c25e772d2a576588904e24aa39ec5; domain=.lvh.me; path=/; HttpOnly
|
169
|
-
server:
|
170
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
199
|
-
method: :post
|
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:
|
219
|
-
- application/xml
|
220
|
-
response: !ruby/struct:VCR::Response
|
221
|
-
status: !ruby/struct:VCR::ResponseStatus
|
222
|
-
code: 201
|
223
|
-
message: Created
|
224
|
-
headers:
|
225
|
-
location:
|
226
|
-
- http://api.lvh.me:3000/transactions/98fee873ba754956b913ad0d66b2b3e6
|
227
|
-
content-type:
|
228
|
-
- application/xml; charset=utf-8
|
229
|
-
cache-control:
|
230
|
-
- no-cache
|
231
|
-
x-ua-compatible:
|
232
|
-
- IE=Edge
|
233
|
-
set-cookie:
|
234
|
-
- _recurly_session=2f8580b21a96f793f4632bcc766dc86e; domain=.lvh.me; path=/; HttpOnly
|
235
|
-
server:
|
236
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
265
|
-
method: :post
|
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:
|
285
|
-
- application/xml
|
286
|
-
response: !ruby/struct:VCR::Response
|
287
|
-
status: !ruby/struct:VCR::ResponseStatus
|
288
|
-
code: 201
|
289
|
-
message: Created
|
290
|
-
headers:
|
291
|
-
location:
|
292
|
-
- http://api.lvh.me:3000/transactions/5e336e732cac45328c9b005b68d4455a
|
293
|
-
content-type:
|
294
|
-
- application/xml; charset=utf-8
|
295
|
-
cache-control:
|
296
|
-
- no-cache
|
297
|
-
x-ua-compatible:
|
298
|
-
- IE=Edge
|
299
|
-
set-cookie:
|
300
|
-
- _recurly_session=76b34df9c69b1afdffe2265ee17a4538; domain=.lvh.me; path=/; HttpOnly
|
301
|
-
server:
|
302
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
331
|
-
method: :get
|
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:
|
338
|
-
- application/xml
|
339
|
-
accept-encoding:
|
340
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
341
|
-
response: !ruby/struct:VCR::Response
|
342
|
-
status: !ruby/struct:VCR::ResponseStatus
|
343
|
-
code: 200
|
344
|
-
message: OK
|
345
|
-
headers:
|
346
|
-
content-type:
|
347
|
-
- application/xml; charset=utf-8
|
348
|
-
etag:
|
349
|
-
- "\"0571c7e7ca71efbf0309a63730bba264\""
|
350
|
-
cache-control:
|
351
|
-
- max-age=0, private, must-revalidate
|
352
|
-
x-ua-compatible:
|
353
|
-
- IE=Edge
|
354
|
-
server:
|
355
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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
|
439
|
-
method: :get
|
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:
|
446
|
-
- application/xml
|
447
|
-
accept-encoding:
|
448
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
449
|
-
response: !ruby/struct:VCR::Response
|
450
|
-
status: !ruby/struct:VCR::ResponseStatus
|
451
|
-
code: 200
|
452
|
-
message: OK
|
453
|
-
headers:
|
454
|
-
content-type:
|
455
|
-
- application/xml; charset=utf-8
|
456
|
-
etag:
|
457
|
-
- "\"0571c7e7ca71efbf0309a63730bba264\""
|
458
|
-
cache-control:
|
459
|
-
- max-age=0, private, must-revalidate
|
460
|
-
x-ua-compatible:
|
461
|
-
- IE=Edge
|
462
|
-
server:
|
463
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
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"
|