recurly 0.3.2 → 0.3.3
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/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>account-list-num-0-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
+
</account>
|
16
|
+
|
17
|
+
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
response: !ruby/struct:VCR::Response
|
29
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
|
+
code: 422
|
31
|
+
message: ""
|
32
|
+
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
35
|
+
x-runtime:
|
36
|
+
- "231"
|
37
|
+
content-type:
|
38
|
+
- application/xml; charset=utf-8
|
39
|
+
content-length:
|
40
|
+
- "132"
|
41
|
+
server:
|
42
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
43
|
+
date:
|
44
|
+
- Thu, 03 Feb 2011 22:16:52 GMT
|
45
|
+
connection:
|
46
|
+
- close
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=059de0eda578e161e399bc15211f0985; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
body: |
|
50
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
+
<errors>
|
52
|
+
<error field="account_code">account code has already been taken</error>
|
53
|
+
</errors>
|
54
|
+
|
55
|
+
http_version: "1.1"
|
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>account-update-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
18
22
|
accept:
|
19
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
20
26
|
connection:
|
21
27
|
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/account-update-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "536"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "347"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:03:17 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
41
|
content-length:
|
44
42
|
- "583"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:16:54 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=4dede9519c2622503ee70b1f7dac15ffc1ee26dc1bc26ffdf4dfcad5d29368f271dc9b018e24724ad025b70cd2880298eb27195b4f2a1910562587472719d3e2%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=e4ec180344371bf896569dd2c08892ed; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>account-update-
|
55
|
-
<account_code>account-update-
|
56
|
+
<id>account-update-1296674173</id>
|
57
|
+
<account_code>account-update-1296674173</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,45 +71,47 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :get
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
73
75
|
body:
|
74
76
|
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
75
79
|
accept:
|
76
80
|
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
77
85
|
connection:
|
78
86
|
- close
|
79
|
-
authorization:
|
80
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
81
87
|
response: !ruby/struct:VCR::Response
|
82
88
|
status: !ruby/struct:VCR::ResponseStatus
|
83
89
|
code: 200
|
84
|
-
message: OK
|
90
|
+
message: "OK "
|
85
91
|
headers:
|
86
|
-
x-
|
87
|
-
-
|
88
|
-
etag:
|
89
|
-
- "\"f8195ed3ae301bd32103403bede88f03\""
|
90
|
-
connection:
|
91
|
-
- close
|
92
|
+
x-runtime:
|
93
|
+
- "172"
|
92
94
|
content-type:
|
93
95
|
- application/xml; charset=utf-8
|
94
|
-
|
95
|
-
- "
|
96
|
-
|
97
|
-
-
|
98
|
-
server:
|
99
|
-
- nginx/0.8.53
|
96
|
+
etag:
|
97
|
+
- "\"5160ee9dd2cbcec96e15bc05ab49eb7b\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
101
|
- "583"
|
102
|
+
server:
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
|
+
date:
|
105
|
+
- Thu, 03 Feb 2011 22:16:56 GMT
|
106
|
+
connection:
|
107
|
+
- close
|
102
108
|
set-cookie:
|
103
|
-
- _recurly_session=
|
104
|
-
cache-control:
|
105
|
-
- private, max-age=0, must-revalidate
|
109
|
+
- _recurly_session=ec4be8a0c89bdae3619cdf65c129001c; domain=.recurly.local; path=/; HttpOnly
|
106
110
|
body: |
|
107
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
108
112
|
<account>
|
109
|
-
<id>account-update-
|
110
|
-
<account_code>account-update-
|
113
|
+
<id>account-update-1296674173</id>
|
114
|
+
<account_code>account-update-1296674173</account_code>
|
111
115
|
<username></username>
|
112
116
|
<email>verena@test.com</email>
|
113
117
|
<first_name>Verena</first_name>
|
@@ -115,8 +119,8 @@
|
|
115
119
|
<company_name>Recurly Ruby Gem</company_name>
|
116
120
|
<balance_in_cents type="integer">0</balance_in_cents>
|
117
121
|
<closed type="boolean">false</closed>
|
118
|
-
<hosted_login_token>
|
119
|
-
<created_at type="datetime">2011-
|
122
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
123
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
120
124
|
<state>active</state>
|
121
125
|
</account>
|
122
126
|
|
@@ -124,64 +128,64 @@
|
|
124
128
|
- !ruby/struct:VCR::HTTPInteraction
|
125
129
|
request: !ruby/struct:VCR::Request
|
126
130
|
method: :put
|
127
|
-
uri:
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
128
132
|
body: |
|
129
133
|
<?xml version="1.0" encoding="UTF-8"?>
|
130
134
|
<account>
|
131
|
-
<
|
132
|
-
<
|
133
|
-
<hosted-login-token>cc907a936b06405fa341e292da6ece30</hosted-login-token>
|
134
|
-
<account-code>account-update-1294473761</account-code>
|
135
|
-
<closed type="boolean">false</closed>
|
135
|
+
<id>account-update-1296674173</id>
|
136
|
+
<account-code>account-update-1296674173</account-code>
|
136
137
|
<username type="yaml" nil="true"></username>
|
137
|
-
<id>account-update-1294473761</id>
|
138
|
-
<last-name>Update Test</last-name>
|
139
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
140
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
141
138
|
<email>verena@test.com</email>
|
142
139
|
<first-name>Verena</first-name>
|
140
|
+
<last-name>Update Test</last-name>
|
141
|
+
<company-name>Recurly Ruby Gem -- Update</company-name>
|
142
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
143
|
+
<closed type="boolean">false</closed>
|
144
|
+
<hosted-login-token>8684435f0f6c4b759b9860be7555b84e</hosted-login-token>
|
145
|
+
<created-at type="datetime">2011-02-03T22:16:54Z</created-at>
|
143
146
|
<state>active</state>
|
147
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
144
148
|
</account>
|
145
149
|
|
146
150
|
headers:
|
151
|
+
authorization:
|
152
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
153
|
+
content-type:
|
154
|
+
- application/xml
|
147
155
|
accept:
|
148
156
|
- "*/*"
|
157
|
+
user-agent:
|
158
|
+
- Ruby
|
149
159
|
connection:
|
150
160
|
- close
|
151
|
-
content-type:
|
152
|
-
- application/xml
|
153
|
-
authorization:
|
154
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
155
161
|
response: !ruby/struct:VCR::Response
|
156
162
|
status: !ruby/struct:VCR::ResponseStatus
|
157
163
|
code: 200
|
158
|
-
message: OK
|
164
|
+
message: "OK "
|
159
165
|
headers:
|
160
|
-
x-
|
161
|
-
-
|
162
|
-
etag:
|
163
|
-
- "\"c4424cc61a05f254aa672a74b98e0075\""
|
164
|
-
connection:
|
165
|
-
- close
|
166
|
+
x-runtime:
|
167
|
+
- "318"
|
166
168
|
content-type:
|
167
169
|
- application/xml; charset=utf-8
|
168
|
-
|
169
|
-
- "
|
170
|
-
|
171
|
-
-
|
172
|
-
server:
|
173
|
-
- nginx/0.8.53
|
170
|
+
etag:
|
171
|
+
- "\"679edca58ee6f6f8a43456f7cb298f94\""
|
172
|
+
cache-control:
|
173
|
+
- private, max-age=0, must-revalidate
|
174
174
|
content-length:
|
175
175
|
- "600"
|
176
|
+
server:
|
177
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
178
|
+
date:
|
179
|
+
- Thu, 03 Feb 2011 22:16:57 GMT
|
180
|
+
connection:
|
181
|
+
- close
|
176
182
|
set-cookie:
|
177
|
-
- _recurly_session=
|
178
|
-
cache-control:
|
179
|
-
- private, max-age=0, must-revalidate
|
183
|
+
- _recurly_session=e35d8243afb00fde2075d4a6528c8f6e; domain=.recurly.local; path=/; HttpOnly
|
180
184
|
body: |
|
181
185
|
<?xml version="1.0" encoding="UTF-8"?>
|
182
186
|
<account>
|
183
|
-
<id>account-update-
|
184
|
-
<account_code>account-update-
|
187
|
+
<id>account-update-1296674173</id>
|
188
|
+
<account_code>account-update-1296674173</account_code>
|
185
189
|
<username></username>
|
186
190
|
<email>verena@test.com</email>
|
187
191
|
<first_name>Verena</first_name>
|
@@ -189,8 +193,8 @@
|
|
189
193
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
190
194
|
<balance_in_cents type="integer">0</balance_in_cents>
|
191
195
|
<closed type="boolean">false</closed>
|
192
|
-
<hosted_login_token>
|
193
|
-
<created_at type="datetime">2011-
|
196
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
197
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
194
198
|
<state>active</state>
|
195
199
|
</account>
|
196
200
|
|
@@ -198,45 +202,47 @@
|
|
198
202
|
- !ruby/struct:VCR::HTTPInteraction
|
199
203
|
request: !ruby/struct:VCR::Request
|
200
204
|
method: :get
|
201
|
-
uri:
|
205
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-update-1296674173.xml
|
202
206
|
body:
|
203
207
|
headers:
|
208
|
+
authorization:
|
209
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
204
210
|
accept:
|
205
211
|
- application/xml
|
212
|
+
accept-encoding:
|
213
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
214
|
+
user-agent:
|
215
|
+
- Ruby
|
206
216
|
connection:
|
207
217
|
- close
|
208
|
-
authorization:
|
209
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
210
218
|
response: !ruby/struct:VCR::Response
|
211
219
|
status: !ruby/struct:VCR::ResponseStatus
|
212
220
|
code: 200
|
213
|
-
message: OK
|
221
|
+
message: "OK "
|
214
222
|
headers:
|
215
|
-
x-
|
216
|
-
-
|
217
|
-
etag:
|
218
|
-
- "\"c4424cc61a05f254aa672a74b98e0075\""
|
219
|
-
connection:
|
220
|
-
- close
|
223
|
+
x-runtime:
|
224
|
+
- "178"
|
221
225
|
content-type:
|
222
226
|
- application/xml; charset=utf-8
|
223
|
-
|
224
|
-
- "
|
225
|
-
|
226
|
-
-
|
227
|
-
server:
|
228
|
-
- nginx/0.8.53
|
227
|
+
etag:
|
228
|
+
- "\"679edca58ee6f6f8a43456f7cb298f94\""
|
229
|
+
cache-control:
|
230
|
+
- private, max-age=0, must-revalidate
|
229
231
|
content-length:
|
230
232
|
- "600"
|
233
|
+
server:
|
234
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
235
|
+
date:
|
236
|
+
- Thu, 03 Feb 2011 22:16:59 GMT
|
237
|
+
connection:
|
238
|
+
- close
|
231
239
|
set-cookie:
|
232
|
-
- _recurly_session=
|
233
|
-
cache-control:
|
234
|
-
- private, max-age=0, must-revalidate
|
240
|
+
- _recurly_session=3df2421545148921ffc3c3703df2ddf9; domain=.recurly.local; path=/; HttpOnly
|
235
241
|
body: |
|
236
242
|
<?xml version="1.0" encoding="UTF-8"?>
|
237
243
|
<account>
|
238
|
-
<id>account-update-
|
239
|
-
<account_code>account-update-
|
244
|
+
<id>account-update-1296674173</id>
|
245
|
+
<account_code>account-update-1296674173</account_code>
|
240
246
|
<username></username>
|
241
247
|
<email>verena@test.com</email>
|
242
248
|
<first_name>Verena</first_name>
|
@@ -244,8 +250,8 @@
|
|
244
250
|
<company_name>Recurly Ruby Gem -- Update</company_name>
|
245
251
|
<balance_in_cents type="integer">0</balance_in_cents>
|
246
252
|
<closed type="boolean">false</closed>
|
247
|
-
<hosted_login_token>
|
248
|
-
<created_at type="datetime">2011-
|
253
|
+
<hosted_login_token>8684435f0f6c4b759b9860be7555b84e</hosted_login_token>
|
254
|
+
<created_at type="datetime">2011-02-03T22:16:54Z</created_at>
|
249
255
|
<state>active</state>
|
250
256
|
</account>
|
251
257
|
|
@@ -2,57 +2,59 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri:
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<
|
10
|
-
<
|
9
|
+
<account-code>billing-create-1296690812</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
12
|
<email>verena@test.com</email>
|
14
|
-
<
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
15
|
</account>
|
16
16
|
|
17
17
|
headers:
|
18
|
-
|
19
|
-
-
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
20
|
content-type:
|
21
21
|
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
22
26
|
connection:
|
23
27
|
- close
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
28
|
response: !ruby/struct:VCR::Response
|
27
29
|
status: !ruby/struct:VCR::ResponseStatus
|
28
30
|
code: 201
|
29
|
-
message: Created
|
31
|
+
message: "Created "
|
30
32
|
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
31
35
|
location:
|
32
|
-
-
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/billing-create-1296690812
|
37
|
+
x-runtime:
|
38
|
+
- "567"
|
33
39
|
content-type:
|
34
40
|
- application/xml; charset=utf-8
|
35
|
-
connection:
|
36
|
-
- close
|
37
|
-
server:
|
38
|
-
- nginx/0.8.53
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:03:47 GMT
|
41
|
-
x-runtime:
|
42
|
-
- "349"
|
43
41
|
content-length:
|
44
42
|
- "583"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:17:35 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=77dcf8ab494a55d7b3636364e614969e304c8e2997790d887bf7ca34815b2112fa69d41325f3d59c7a8242fedc00d1a6ea3c4a2f17066d21d97573685c34766c%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=f16a0de60d6c3ea515d2f891bd1f4238; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>billing-create-
|
55
|
-
<account_code>billing-create-
|
56
|
+
<id>billing-create-1296690812</id>
|
57
|
+
<account_code>billing-create-1296690812</account_code>
|
56
58
|
<username></username>
|
57
59
|
<email>verena@test.com</email>
|
58
60
|
<first_name>Verena</first_name>
|
@@ -60,8 +62,8 @@
|
|
60
62
|
<company_name>Recurly Ruby Gem</company_name>
|
61
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
62
64
|
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>75ccfa5806c24a72a9c2903d3d388704</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:17:35Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -69,63 +71,63 @@
|
|
69
71
|
- !ruby/struct:VCR::HTTPInteraction
|
70
72
|
request: !ruby/struct:VCR::Request
|
71
73
|
method: :put
|
72
|
-
uri:
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-create-1296690812/billing_info.xml
|
73
75
|
body: |
|
74
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
75
77
|
<billing-info>
|
76
78
|
<address1>123 Test St</address1>
|
77
79
|
<city>San Francisco</city>
|
80
|
+
<state>CA</state>
|
78
81
|
<zip>94115</zip>
|
79
82
|
<country>US</country>
|
80
83
|
<credit-card>
|
81
|
-
<number>
|
82
|
-
<month type="integer">1</month>
|
84
|
+
<number>4111111111111111</number>
|
83
85
|
<year type="integer">2012</year>
|
86
|
+
<month type="integer">2</month>
|
84
87
|
<verification-value>123</verification-value>
|
85
88
|
</credit-card>
|
86
|
-
<last-name>Test</last-name>
|
87
89
|
<first-name>Verena</first-name>
|
88
|
-
<
|
90
|
+
<last-name>Test</last-name>
|
89
91
|
</billing-info>
|
90
92
|
|
91
93
|
headers:
|
92
|
-
|
93
|
-
-
|
94
|
+
authorization:
|
95
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
94
96
|
content-type:
|
95
97
|
- application/xml
|
98
|
+
accept:
|
99
|
+
- "*/*"
|
100
|
+
user-agent:
|
101
|
+
- Ruby
|
96
102
|
connection:
|
97
103
|
- close
|
98
|
-
authorization:
|
99
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
100
104
|
response: !ruby/struct:VCR::Response
|
101
105
|
status: !ruby/struct:VCR::ResponseStatus
|
102
106
|
code: 200
|
103
|
-
message: OK
|
107
|
+
message: "OK "
|
104
108
|
headers:
|
105
|
-
x-
|
106
|
-
-
|
107
|
-
etag:
|
108
|
-
- "\"55868847338567644117e2d9a107a153\""
|
109
|
+
x-runtime:
|
110
|
+
- "1948"
|
109
111
|
content-type:
|
110
112
|
- application/xml; charset=utf-8
|
111
|
-
|
112
|
-
-
|
113
|
+
etag:
|
114
|
+
- "\"10ff1483237e6a5ba6858791ad9022f5\""
|
115
|
+
cache-control:
|
116
|
+
- private, max-age=0, must-revalidate
|
117
|
+
content-length:
|
118
|
+
- "640"
|
113
119
|
server:
|
114
|
-
-
|
120
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
115
121
|
date:
|
116
|
-
-
|
117
|
-
|
118
|
-
-
|
119
|
-
content-length:
|
120
|
-
- "638"
|
122
|
+
- Thu, 03 Feb 2011 22:17:38 GMT
|
123
|
+
connection:
|
124
|
+
- close
|
121
125
|
set-cookie:
|
122
|
-
- _recurly_session=
|
123
|
-
cache-control:
|
124
|
-
- private, max-age=0, must-revalidate
|
126
|
+
- _recurly_session=7f6ddd47fdecd10f30b736a022f82099; domain=.recurly.local; path=/; HttpOnly
|
125
127
|
body: |
|
126
128
|
<?xml version="1.0" encoding="UTF-8"?>
|
127
129
|
<billing_info>
|
128
|
-
<account_code>billing-create-
|
130
|
+
<account_code>billing-create-1296690812</account_code>
|
129
131
|
<first_name>Verena</first_name>
|
130
132
|
<last_name>Test</last_name>
|
131
133
|
<address1>123 Test St</address1>
|
@@ -138,56 +140,58 @@
|
|
138
140
|
<vat_number></vat_number>
|
139
141
|
<ip_address></ip_address>
|
140
142
|
<credit_card>
|
141
|
-
<type>
|
142
|
-
<last_four>
|
143
|
-
<month type="integer">
|
143
|
+
<type>visa</type>
|
144
|
+
<last_four>1111</last_four>
|
145
|
+
<month type="integer">2</month>
|
144
146
|
<year type="integer">2012</year>
|
145
147
|
</credit_card>
|
146
|
-
<updated_at type="datetime">2011-
|
148
|
+
<updated_at type="datetime">2011-02-03T22:17:38Z</updated_at>
|
147
149
|
</billing_info>
|
148
150
|
|
149
151
|
http_version: "1.1"
|
150
152
|
- !ruby/struct:VCR::HTTPInteraction
|
151
153
|
request: !ruby/struct:VCR::Request
|
152
154
|
method: :get
|
153
|
-
uri:
|
155
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/billing-create-1296690812/billing_info.xml
|
154
156
|
body:
|
155
157
|
headers:
|
158
|
+
authorization:
|
159
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
156
160
|
accept:
|
157
161
|
- application/xml
|
162
|
+
accept-encoding:
|
163
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
164
|
+
user-agent:
|
165
|
+
- Ruby
|
158
166
|
connection:
|
159
167
|
- close
|
160
|
-
authorization:
|
161
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
162
168
|
response: !ruby/struct:VCR::Response
|
163
169
|
status: !ruby/struct:VCR::ResponseStatus
|
164
170
|
code: 200
|
165
|
-
message: OK
|
171
|
+
message: "OK "
|
166
172
|
headers:
|
167
|
-
x-
|
168
|
-
-
|
169
|
-
etag:
|
170
|
-
- "\"55868847338567644117e2d9a107a153\""
|
171
|
-
connection:
|
172
|
-
- close
|
173
|
+
x-runtime:
|
174
|
+
- "190"
|
173
175
|
content-type:
|
174
176
|
- application/xml; charset=utf-8
|
175
|
-
|
176
|
-
- "
|
177
|
-
date:
|
178
|
-
- Sat, 08 Jan 2011 08:03:49 GMT
|
179
|
-
server:
|
180
|
-
- nginx/0.8.53
|
181
|
-
content-length:
|
182
|
-
- "638"
|
183
|
-
set-cookie:
|
184
|
-
- _recurly_session=7123dd4140c1434162d9c4840752bd4c; domain=.recurly.com; path=/; secure; HttpOnly
|
177
|
+
etag:
|
178
|
+
- "\"10ff1483237e6a5ba6858791ad9022f5\""
|
185
179
|
cache-control:
|
186
180
|
- private, max-age=0, must-revalidate
|
181
|
+
content-length:
|
182
|
+
- "640"
|
183
|
+
server:
|
184
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
185
|
+
date:
|
186
|
+
- Thu, 03 Feb 2011 22:17:40 GMT
|
187
|
+
connection:
|
188
|
+
- close
|
189
|
+
set-cookie:
|
190
|
+
- _recurly_session=2c73c7e77fc44905c47ddb066a2f0baa; domain=.recurly.local; path=/; HttpOnly
|
187
191
|
body: |
|
188
192
|
<?xml version="1.0" encoding="UTF-8"?>
|
189
193
|
<billing_info>
|
190
|
-
<account_code>billing-create-
|
194
|
+
<account_code>billing-create-1296690812</account_code>
|
191
195
|
<first_name>Verena</first_name>
|
192
196
|
<last_name>Test</last_name>
|
193
197
|
<address1>123 Test St</address1>
|
@@ -200,12 +204,12 @@
|
|
200
204
|
<vat_number></vat_number>
|
201
205
|
<ip_address></ip_address>
|
202
206
|
<credit_card>
|
203
|
-
<type>
|
204
|
-
<last_four>
|
205
|
-
<month type="integer">
|
207
|
+
<type>visa</type>
|
208
|
+
<last_four>1111</last_four>
|
209
|
+
<month type="integer">2</month>
|
206
210
|
<year type="integer">2012</year>
|
207
211
|
</credit_card>
|
208
|
-
<updated_at type="datetime">2011-
|
212
|
+
<updated_at type="datetime">2011-02-03T22:17:38Z</updated_at>
|
209
213
|
</billing_info>
|
210
214
|
|
211
215
|
http_version: "1.1"
|