recurly 0.4.11 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +4 -8
- data/lib/recurly.rb +10 -19
- data/lib/recurly/config_parser.rb +5 -2
- data/lib/recurly/plan.rb +0 -1
- data/lib/recurly/rails3/recurly.rake +10 -26
- data/lib/recurly/transparent.rb +2 -0
- data/lib/recurly/verification.rb +14 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +3 -3
- data/spec/config/test1.yml +1 -3
- data/spec/config/test2.yml +2 -6
- data/spec/unit/config_spec.rb +9 -16
- data/spec/unit/transparent_spec.rb +0 -20
- data/spec/unit/verification_spec.rb +15 -9
- data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
- data/spec/vcr/account/close/1313708721.yml +107 -79
- data/spec/vcr/account/create-blank/1313708721.yml +37 -26
- data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
- data/spec/vcr/account/create-min/1313708721.yml +48 -30
- data/spec/vcr/account/create/1313708721.yml +52 -31
- data/spec/vcr/account/find/1313708721.yml +111 -81
- data/spec/vcr/account/list/1313708721.yml +1148 -719
- data/spec/vcr/account/update/1313708721.yml +182 -124
- data/spec/vcr/billing/create/1313708721.yml +156 -93
- data/spec/vcr/billing/destroy/1313708721.yml +198 -135
- data/spec/vcr/billing/errors/1313708721.yml +91 -56
- data/spec/vcr/billing/find/1313708721.yml +200 -122
- data/spec/vcr/billing/update/1313708721.yml +218 -126
- data/spec/vcr/charge/create/1313708721.yml +189 -120
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
- data/spec/vcr/charge/list-all/1313708721.yml +235 -157
- data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
- data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
- data/spec/vcr/charge/lookup/1313708721.yml +127 -87
- data/spec/vcr/coupon/create/1296774903.yml +83 -95
- data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
- data/spec/vcr/credit/create/1313708090.yml +127 -87
- data/spec/vcr/credit/delete/1313708090.yml +169 -129
- data/spec/vcr/credit/list/1313708090.yml +235 -157
- data/spec/vcr/credit/lookup/1313708090.yml +127 -87
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
- data/spec/vcr/invoice/create/1296674173.yml +259 -162
- data/spec/vcr/invoice/list/1296674173.yml +342 -227
- data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
- data/spec/vcr/plan/all.yml +206 -198
- data/spec/vcr/plan/find.yml +109 -103
- data/spec/vcr/plan/update.yml +126 -93
- data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
- data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
- data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
- data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
- data/spec/vcr/subscription/change1/1296674173.yml +303 -213
- data/spec/vcr/subscription/change2/1296674173.yml +303 -214
- data/spec/vcr/subscription/create/1296674173.yml +167 -111
- data/spec/vcr/subscription/find/1296674173.yml +210 -145
- data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
- data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
- data/spec/vcr/transaction/all/1311126815.yml +388 -206
- data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
- data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
- data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
- data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
- data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
- data/spec/vcr/transaction/void/1311126815.yml +280 -174
- metadata +109 -77
- data/spec/vcr/transaction/refund/1311126815.yml +0 -163
- data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,158 +1,216 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>account-update-1313708721</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/account-update-1313708721
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=5d85d2a00ff6213ef78ccc8b38968ac4; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>account-update-1313708721</id>
|
47
|
+
<account_code>account-update-1313708721</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>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:36Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :get
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
headers:
|
46
|
-
user-agent:
|
47
|
-
- Recurly Ruby Client v0.4.
|
48
|
-
accept:
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
|
65
|
+
body:
|
66
|
+
headers:
|
67
|
+
user-agent:
|
68
|
+
- Recurly Ruby Client v0.4.13
|
69
|
+
accept:
|
49
70
|
- application/xml
|
50
|
-
accept-encoding:
|
71
|
+
accept-encoding:
|
51
72
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
52
|
-
response: !ruby/struct:VCR::Response
|
53
|
-
status: !ruby/struct:VCR::ResponseStatus
|
73
|
+
response: !ruby/struct:VCR::Response
|
74
|
+
status: !ruby/struct:VCR::ResponseStatus
|
54
75
|
code: 200
|
55
76
|
message: OK
|
56
|
-
headers:
|
57
|
-
content-type:
|
77
|
+
headers:
|
78
|
+
content-type:
|
58
79
|
- application/xml; charset=utf-8
|
59
|
-
etag:
|
60
|
-
-
|
61
|
-
cache-control:
|
80
|
+
etag:
|
81
|
+
- "\"fc70c96aed7ba6f059e5d22565e7c7e9\""
|
82
|
+
cache-control:
|
62
83
|
- max-age=0, private, must-revalidate
|
63
|
-
x-ua-compatible:
|
84
|
+
x-ua-compatible:
|
64
85
|
- IE=Edge
|
65
|
-
|
66
|
-
- _recurly_session=9aa3d06a6b5ce3f5a9faf74595af42bb; domain=.lvh.me; path=/;
|
67
|
-
HttpOnly
|
68
|
-
server:
|
86
|
+
server:
|
69
87
|
- thin 1.2.11 codename Bat-Shit Crazy
|
70
|
-
body:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
88
|
+
body: |
|
89
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
90
|
+
<account>
|
91
|
+
<id>account-update-1313708721</id>
|
92
|
+
<account_code>account-update-1313708721</account_code>
|
93
|
+
<username></username>
|
94
|
+
<email>verena@test.com</email>
|
95
|
+
<first_name>Verena</first_name>
|
96
|
+
<last_name>Test</last_name>
|
97
|
+
<company_name>Recurly Ruby Gem</company_name>
|
98
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
99
|
+
<closed type="boolean">false</closed>
|
100
|
+
<hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
|
101
|
+
<created_at type="datetime">2011-09-22T22:01:36Z</created_at>
|
102
|
+
<state>active</state>
|
103
|
+
</account>
|
104
|
+
|
105
|
+
http_version: "1.1"
|
106
|
+
- !ruby/struct:VCR::HTTPInteraction
|
107
|
+
request: !ruby/struct:VCR::Request
|
79
108
|
method: :put
|
80
|
-
uri: http://api
|
81
|
-
body:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
109
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
|
110
|
+
body: |
|
111
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
+
<account>
|
113
|
+
<id>account-update-1313708721</id>
|
114
|
+
<account-code>account-update-1313708721</account-code>
|
115
|
+
<username nil="true"></username>
|
116
|
+
<email>verena@test.com</email>
|
117
|
+
<first-name>Verena</first-name>
|
118
|
+
<last-name>Update Test</last-name>
|
119
|
+
<company-name>Recurly Ruby Gem -- Update</company-name>
|
120
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
121
|
+
<closed type="boolean">false</closed>
|
122
|
+
<hosted-login-token>6d87735c19444d1b82625e1a66e9d5bb</hosted-login-token>
|
123
|
+
<created-at type="datetime">2011-09-22T22:01:36Z</created-at>
|
124
|
+
<state>active</state>
|
125
|
+
<billing-info>
|
126
|
+
<credit-card>
|
127
|
+
</credit-card>
|
128
|
+
</billing-info>
|
129
|
+
<accept-language nil="true"></accept-language>
|
130
|
+
</account>
|
131
|
+
|
132
|
+
headers:
|
133
|
+
user-agent:
|
134
|
+
- Recurly Ruby Client v0.4.13
|
135
|
+
content-type:
|
94
136
|
- application/xml
|
95
|
-
response: !ruby/struct:VCR::Response
|
96
|
-
status: !ruby/struct:VCR::ResponseStatus
|
137
|
+
response: !ruby/struct:VCR::Response
|
138
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
139
|
code: 200
|
98
140
|
message: OK
|
99
|
-
headers:
|
100
|
-
content-type:
|
141
|
+
headers:
|
142
|
+
content-type:
|
101
143
|
- application/xml; charset=utf-8
|
102
|
-
etag:
|
103
|
-
-
|
104
|
-
cache-control:
|
144
|
+
etag:
|
145
|
+
- "\"dc1b6a4675f02073d675149bcba2a492\""
|
146
|
+
cache-control:
|
105
147
|
- max-age=0, private, must-revalidate
|
106
|
-
x-ua-compatible:
|
148
|
+
x-ua-compatible:
|
107
149
|
- IE=Edge
|
108
|
-
set-cookie:
|
109
|
-
- _recurly_session=
|
110
|
-
|
111
|
-
server:
|
150
|
+
set-cookie:
|
151
|
+
- _recurly_session=2379399952464a39be8690403af8da8e; domain=.lvh.me; path=/; HttpOnly
|
152
|
+
server:
|
112
153
|
- thin 1.2.11 codename Bat-Shit Crazy
|
113
|
-
body:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
154
|
+
body: |
|
155
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
156
|
+
<account>
|
157
|
+
<id>account-update-1313708721</id>
|
158
|
+
<account_code>account-update-1313708721</account_code>
|
159
|
+
<username></username>
|
160
|
+
<email>verena@test.com</email>
|
161
|
+
<first_name>Verena</first_name>
|
162
|
+
<last_name>Update Test</last_name>
|
163
|
+
<company_name>Recurly Ruby Gem -- Update</company_name>
|
164
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
165
|
+
<closed type="boolean">false</closed>
|
166
|
+
<hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
|
167
|
+
<created_at type="datetime">2011-09-22T22:01:36Z</created_at>
|
168
|
+
<state>active</state>
|
169
|
+
</account>
|
170
|
+
|
171
|
+
http_version: "1.1"
|
172
|
+
- !ruby/struct:VCR::HTTPInteraction
|
173
|
+
request: !ruby/struct:VCR::Request
|
123
174
|
method: :get
|
124
|
-
uri: http://api
|
125
|
-
body:
|
126
|
-
headers:
|
127
|
-
user-agent:
|
128
|
-
- Recurly Ruby Client v0.4.
|
129
|
-
accept:
|
175
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/account-update-1313708721.xml
|
176
|
+
body:
|
177
|
+
headers:
|
178
|
+
user-agent:
|
179
|
+
- Recurly Ruby Client v0.4.13
|
180
|
+
accept:
|
130
181
|
- application/xml
|
131
|
-
accept-encoding:
|
182
|
+
accept-encoding:
|
132
183
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
133
|
-
response: !ruby/struct:VCR::Response
|
134
|
-
status: !ruby/struct:VCR::ResponseStatus
|
184
|
+
response: !ruby/struct:VCR::Response
|
185
|
+
status: !ruby/struct:VCR::ResponseStatus
|
135
186
|
code: 200
|
136
187
|
message: OK
|
137
|
-
headers:
|
138
|
-
content-type:
|
188
|
+
headers:
|
189
|
+
content-type:
|
139
190
|
- application/xml; charset=utf-8
|
140
|
-
etag:
|
141
|
-
-
|
142
|
-
cache-control:
|
191
|
+
etag:
|
192
|
+
- "\"dc1b6a4675f02073d675149bcba2a492\""
|
193
|
+
cache-control:
|
143
194
|
- max-age=0, private, must-revalidate
|
144
|
-
x-ua-compatible:
|
195
|
+
x-ua-compatible:
|
145
196
|
- IE=Edge
|
146
|
-
|
147
|
-
- _recurly_session=9ea5a625d732232f90026cd0f564c5da; domain=.lvh.me; path=/;
|
148
|
-
HttpOnly
|
149
|
-
server:
|
197
|
+
server:
|
150
198
|
- thin 1.2.11 codename Bat-Shit Crazy
|
151
|
-
body:
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
199
|
+
body: |
|
200
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
201
|
+
<account>
|
202
|
+
<id>account-update-1313708721</id>
|
203
|
+
<account_code>account-update-1313708721</account_code>
|
204
|
+
<username></username>
|
205
|
+
<email>verena@test.com</email>
|
206
|
+
<first_name>Verena</first_name>
|
207
|
+
<last_name>Update Test</last_name>
|
208
|
+
<company_name>Recurly Ruby Gem -- Update</company_name>
|
209
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
210
|
+
<closed type="boolean">false</closed>
|
211
|
+
<hosted_login_token>6d87735c19444d1b82625e1a66e9d5bb</hosted_login_token>
|
212
|
+
<created_at type="datetime">2011-09-22T22:01:36Z</created_at>
|
213
|
+
<state>active</state>
|
214
|
+
</account>
|
215
|
+
|
216
|
+
http_version: "1.1"
|
@@ -1,118 +1,181 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>billing-create-1313708721</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/billing-create-1313708721
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=cbc5bd05c9c114238fbb6dad15ab6114; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>billing-create-1313708721</id>
|
47
|
+
<account_code>billing-create-1313708721</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>630a13828cbb487b9c9ad3a82f50a8fa</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:37Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :put
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-create-1313708721/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
|
+
</billing-info>
|
82
|
+
|
83
|
+
headers:
|
84
|
+
user-agent:
|
85
|
+
- Recurly Ruby Client v0.4.13
|
86
|
+
content-type:
|
54
87
|
- application/xml
|
55
|
-
response: !ruby/struct:VCR::Response
|
56
|
-
status: !ruby/struct:VCR::ResponseStatus
|
88
|
+
response: !ruby/struct:VCR::Response
|
89
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
90
|
code: 200
|
58
91
|
message: OK
|
59
|
-
headers:
|
60
|
-
content-type:
|
92
|
+
headers:
|
93
|
+
content-type:
|
61
94
|
- application/xml; charset=utf-8
|
62
|
-
etag:
|
63
|
-
-
|
64
|
-
cache-control:
|
95
|
+
etag:
|
96
|
+
- "\"07790274f1d1c83b054f38e4d30e30f9\""
|
97
|
+
cache-control:
|
65
98
|
- max-age=0, private, must-revalidate
|
66
|
-
x-ua-compatible:
|
99
|
+
x-ua-compatible:
|
67
100
|
- IE=Edge
|
68
|
-
set-cookie:
|
69
|
-
- _recurly_session=
|
70
|
-
|
71
|
-
server:
|
101
|
+
set-cookie:
|
102
|
+
- _recurly_session=c0a1eafb31e2d3d081d235e8382f3f8f; domain=.lvh.me; path=/; HttpOnly
|
103
|
+
server:
|
72
104
|
- thin 1.2.11 codename Bat-Shit Crazy
|
73
|
-
body:
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
105
|
+
body: |
|
106
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
107
|
+
<billing_info>
|
108
|
+
<account_code>billing-create-1313708721</account_code>
|
109
|
+
<first_name>Verena</first_name>
|
110
|
+
<last_name>Test</last_name>
|
111
|
+
<address1>123 Test St</address1>
|
112
|
+
<address2></address2>
|
113
|
+
<city>San Francisco</city>
|
114
|
+
<state>CA</state>
|
115
|
+
<country>US</country>
|
116
|
+
<zip>94115</zip>
|
117
|
+
<phone></phone>
|
118
|
+
<vat_number></vat_number>
|
119
|
+
<ip_address></ip_address>
|
120
|
+
<credit_card>
|
121
|
+
<type>visa</type>
|
122
|
+
<last_four>1111</last_four>
|
123
|
+
<month type="integer">9</month>
|
124
|
+
<year type="integer">2012</year>
|
125
|
+
</credit_card>
|
126
|
+
<updated_at type="datetime">2011-09-22T22:01:38Z</updated_at>
|
127
|
+
</billing_info>
|
128
|
+
|
129
|
+
http_version: "1.1"
|
130
|
+
- !ruby/struct:VCR::HTTPInteraction
|
131
|
+
request: !ruby/struct:VCR::Request
|
83
132
|
method: :get
|
84
|
-
uri: http://api
|
85
|
-
body:
|
86
|
-
headers:
|
87
|
-
user-agent:
|
88
|
-
- Recurly Ruby Client v0.4.
|
89
|
-
accept:
|
133
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/billing-create-1313708721/billing_info.xml
|
134
|
+
body:
|
135
|
+
headers:
|
136
|
+
user-agent:
|
137
|
+
- Recurly Ruby Client v0.4.13
|
138
|
+
accept:
|
90
139
|
- application/xml
|
91
|
-
accept-encoding:
|
140
|
+
accept-encoding:
|
92
141
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
142
|
+
response: !ruby/struct:VCR::Response
|
143
|
+
status: !ruby/struct:VCR::ResponseStatus
|
95
144
|
code: 200
|
96
145
|
message: OK
|
97
|
-
headers:
|
98
|
-
content-type:
|
146
|
+
headers:
|
147
|
+
content-type:
|
99
148
|
- application/xml; charset=utf-8
|
100
|
-
etag:
|
101
|
-
-
|
102
|
-
cache-control:
|
149
|
+
etag:
|
150
|
+
- "\"07790274f1d1c83b054f38e4d30e30f9\""
|
151
|
+
cache-control:
|
103
152
|
- max-age=0, private, must-revalidate
|
104
|
-
x-ua-compatible:
|
153
|
+
x-ua-compatible:
|
105
154
|
- IE=Edge
|
106
|
-
|
107
|
-
- _recurly_session=6a296f2221e327451e93ecd7ddd34e21; domain=.lvh.me; path=/;
|
108
|
-
HttpOnly
|
109
|
-
server:
|
155
|
+
server:
|
110
156
|
- thin 1.2.11 codename Bat-Shit Crazy
|
111
|
-
body:
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
157
|
+
body: |
|
158
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
159
|
+
<billing_info>
|
160
|
+
<account_code>billing-create-1313708721</account_code>
|
161
|
+
<first_name>Verena</first_name>
|
162
|
+
<last_name>Test</last_name>
|
163
|
+
<address1>123 Test St</address1>
|
164
|
+
<address2></address2>
|
165
|
+
<city>San Francisco</city>
|
166
|
+
<state>CA</state>
|
167
|
+
<country>US</country>
|
168
|
+
<zip>94115</zip>
|
169
|
+
<phone></phone>
|
170
|
+
<vat_number></vat_number>
|
171
|
+
<ip_address></ip_address>
|
172
|
+
<credit_card>
|
173
|
+
<type>visa</type>
|
174
|
+
<last_four>1111</last_four>
|
175
|
+
<month type="integer">9</month>
|
176
|
+
<year type="integer">2012</year>
|
177
|
+
</credit_card>
|
178
|
+
<updated_at type="datetime">2011-09-22T22:01:38Z</updated_at>
|
179
|
+
</billing_info>
|
180
|
+
|
181
|
+
http_version: "1.1"
|