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
@@ -2,7 +2,7 @@
|
|
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>
|
@@ -11,40 +11,42 @@
|
|
11
11
|
</account>
|
12
12
|
|
13
13
|
headers:
|
14
|
+
authorization:
|
15
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
+
content-type:
|
17
|
+
- application/xml
|
14
18
|
accept:
|
15
19
|
- "*/*"
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
16
22
|
connection:
|
17
23
|
- close
|
18
|
-
content-type:
|
19
|
-
- application/xml
|
20
|
-
authorization:
|
21
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
22
24
|
response: !ruby/struct:VCR::Response
|
23
25
|
status: !ruby/struct:VCR::ResponseStatus
|
24
26
|
code: 422
|
25
27
|
message: ""
|
26
28
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
+
cache-control:
|
30
|
+
- no-cache
|
31
|
+
x-runtime:
|
32
|
+
- "243"
|
29
33
|
content-type:
|
30
34
|
- application/xml; charset=utf-8
|
31
|
-
x-runtime:
|
32
|
-
- "19"
|
33
|
-
date:
|
34
|
-
- Sat, 08 Jan 2011 08:03:24 GMT
|
35
|
-
server:
|
36
|
-
- nginx/0.8.53
|
37
35
|
content-length:
|
38
36
|
- "186"
|
37
|
+
server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
39
|
+
date:
|
40
|
+
- Thu, 03 Feb 2011 22:17:07 GMT
|
41
|
+
connection:
|
42
|
+
- close
|
39
43
|
set-cookie:
|
40
|
-
- _recurly_session=
|
41
|
-
cache-control:
|
42
|
-
- no-cache
|
44
|
+
- _recurly_session=649873ed76f39641cf1827cc0ddc1637; domain=.recurly.local; path=/; HttpOnly
|
43
45
|
body: |
|
44
46
|
<?xml version="1.0" encoding="UTF-8"?>
|
45
47
|
<errors>
|
46
|
-
<error field="account_code">
|
47
|
-
<error field="account_code">
|
48
|
+
<error field="account_code">account code can't be blank</error>
|
49
|
+
<error field="account_code">account code is invalid</error>
|
48
50
|
</errors>
|
49
51
|
|
50
52
|
http_version: "1.1"
|
@@ -2,7 +2,7 @@
|
|
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>
|
@@ -11,39 +11,41 @@
|
|
11
11
|
</account>
|
12
12
|
|
13
13
|
headers:
|
14
|
+
authorization:
|
15
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
+
content-type:
|
17
|
+
- application/xml
|
14
18
|
accept:
|
15
19
|
- "*/*"
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
16
22
|
connection:
|
17
23
|
- close
|
18
|
-
content-type:
|
19
|
-
- application/xml
|
20
|
-
authorization:
|
21
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
22
24
|
response: !ruby/struct:VCR::Response
|
23
25
|
status: !ruby/struct:VCR::ResponseStatus
|
24
26
|
code: 201
|
25
|
-
message: Created
|
27
|
+
message: "Created "
|
26
28
|
headers:
|
29
|
+
cache-control:
|
30
|
+
- no-cache
|
27
31
|
location:
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
32
|
+
- http://litle-test.recurly.local:3000/accounts/account-exists
|
33
|
+
x-runtime:
|
34
|
+
- "624"
|
31
35
|
content-type:
|
32
36
|
- application/xml; charset=utf-8
|
33
|
-
x-runtime:
|
34
|
-
- "422"
|
35
|
-
date:
|
36
|
-
- Sat, 08 Jan 2011 08:03:25 GMT
|
37
|
-
server:
|
38
|
-
- nginx/0.8.53
|
39
37
|
content-length:
|
40
38
|
- "520"
|
39
|
+
server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
41
|
+
date:
|
42
|
+
- Thu, 03 Feb 2011 22:17:10 GMT
|
43
|
+
connection:
|
44
|
+
- close
|
41
45
|
set-cookie:
|
42
|
-
- account_credentials=
|
46
|
+
- account_credentials=2dae3fbadf922ba54a1abda9d8a5eed9412b074f66caf3d75fe4d431df3206bc5e4aff674711cc28c09292b1b1cd1866cec2816d33d8b30a27c44e3f030b5899%3A%3A; domain=.recurly.local; path=/
|
43
47
|
- ""
|
44
|
-
- _recurly_session=
|
45
|
-
cache-control:
|
46
|
-
- no-cache
|
48
|
+
- _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
|
47
49
|
body: |
|
48
50
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
51
|
<account>
|
@@ -56,8 +58,8 @@
|
|
56
58
|
<company_name></company_name>
|
57
59
|
<balance_in_cents type="integer">0</balance_in_cents>
|
58
60
|
<closed type="boolean">false</closed>
|
59
|
-
<hosted_login_token>
|
60
|
-
<created_at type="datetime">2011-
|
61
|
+
<hosted_login_token>7ae163c7be574c20b32a11fdb5f81d6f</hosted_login_token>
|
62
|
+
<created_at type="datetime">2011-02-03T22:17:09Z</created_at>
|
61
63
|
<state>active</state>
|
62
64
|
</account>
|
63
65
|
|
@@ -65,7 +67,7 @@
|
|
65
67
|
- !ruby/struct:VCR::HTTPInteraction
|
66
68
|
request: !ruby/struct:VCR::Request
|
67
69
|
method: :post
|
68
|
-
uri:
|
70
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
69
71
|
body: |
|
70
72
|
<?xml version="1.0" encoding="UTF-8"?>
|
71
73
|
<account>
|
@@ -74,39 +76,41 @@
|
|
74
76
|
</account>
|
75
77
|
|
76
78
|
headers:
|
79
|
+
authorization:
|
80
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
81
|
+
content-type:
|
82
|
+
- application/xml
|
77
83
|
accept:
|
78
84
|
- "*/*"
|
85
|
+
user-agent:
|
86
|
+
- Ruby
|
79
87
|
connection:
|
80
88
|
- close
|
81
|
-
content-type:
|
82
|
-
- application/xml
|
83
|
-
authorization:
|
84
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
85
89
|
response: !ruby/struct:VCR::Response
|
86
90
|
status: !ruby/struct:VCR::ResponseStatus
|
87
91
|
code: 422
|
88
92
|
message: ""
|
89
93
|
headers:
|
90
|
-
|
91
|
-
-
|
94
|
+
cache-control:
|
95
|
+
- no-cache
|
96
|
+
x-runtime:
|
97
|
+
- "344"
|
92
98
|
content-type:
|
93
99
|
- application/xml; charset=utf-8
|
94
|
-
x-runtime:
|
95
|
-
- "19"
|
96
|
-
date:
|
97
|
-
- Sat, 08 Jan 2011 08:03:26 GMT
|
98
|
-
server:
|
99
|
-
- nginx/0.8.53
|
100
100
|
content-length:
|
101
101
|
- "132"
|
102
|
+
server:
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
|
+
date:
|
105
|
+
- Thu, 03 Feb 2011 22:17:12 GMT
|
106
|
+
connection:
|
107
|
+
- close
|
102
108
|
set-cookie:
|
103
|
-
- _recurly_session=
|
104
|
-
cache-control:
|
105
|
-
- no-cache
|
109
|
+
- _recurly_session=7b561d0ba4f22a602daf6c6d4c8c2713; domain=.recurly.local; path=/; HttpOnly
|
106
110
|
body: |
|
107
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
108
112
|
<errors>
|
109
|
-
<error field="account_code">
|
113
|
+
<error field="account_code">account code has already been taken</error>
|
110
114
|
</errors>
|
111
115
|
|
112
116
|
http_version: "1.1"
|
@@ -2,53 +2,55 @@
|
|
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
|
-
<account-code>d00d-
|
9
|
+
<account-code>d00d-1296674173</account-code>
|
10
10
|
<accept-language type="yaml" nil="true"></accept-language>
|
11
11
|
</account>
|
12
12
|
|
13
13
|
headers:
|
14
|
+
authorization:
|
15
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
+
content-type:
|
17
|
+
- application/xml
|
14
18
|
accept:
|
15
19
|
- "*/*"
|
20
|
+
user-agent:
|
21
|
+
- Ruby
|
16
22
|
connection:
|
17
23
|
- close
|
18
|
-
content-type:
|
19
|
-
- application/xml
|
20
|
-
authorization:
|
21
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
22
24
|
response: !ruby/struct:VCR::Response
|
23
25
|
status: !ruby/struct:VCR::ResponseStatus
|
24
26
|
code: 201
|
25
|
-
message: Created
|
27
|
+
message: "Created "
|
26
28
|
headers:
|
29
|
+
cache-control:
|
30
|
+
- no-cache
|
27
31
|
location:
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
32
|
+
- http://litle-test.recurly.local:3000/accounts/d00d-1296674173
|
33
|
+
x-runtime:
|
34
|
+
- "528"
|
31
35
|
content-type:
|
32
36
|
- application/xml; charset=utf-8
|
33
|
-
x-runtime:
|
34
|
-
- "354"
|
35
|
-
date:
|
36
|
-
- Sat, 08 Jan 2011 08:02:49 GMT
|
37
|
-
server:
|
38
|
-
- nginx/0.8.53
|
39
37
|
content-length:
|
40
38
|
- "522"
|
39
|
+
server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
41
|
+
date:
|
42
|
+
- Thu, 03 Feb 2011 22:16:45 GMT
|
43
|
+
connection:
|
44
|
+
- close
|
41
45
|
set-cookie:
|
42
|
-
- account_credentials=
|
46
|
+
- account_credentials=10559a1cbfbba0fea366c4455adba56c3e5be9278dd028d7d8d4c0850f3ddb93064ee03f52d56a4a89b9bdf48f016b1f25e7bcd6fcc6f6eba8d43bfecd301d7b%3A%3A; domain=.recurly.local; path=/
|
43
47
|
- ""
|
44
|
-
- _recurly_session=
|
45
|
-
cache-control:
|
46
|
-
- no-cache
|
48
|
+
- _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
|
47
49
|
body: |
|
48
50
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
51
|
<account>
|
50
|
-
<id>d00d-
|
51
|
-
<account_code>d00d-
|
52
|
+
<id>d00d-1296674173</id>
|
53
|
+
<account_code>d00d-1296674173</account_code>
|
52
54
|
<username></username>
|
53
55
|
<email></email>
|
54
56
|
<first_name></first_name>
|
@@ -56,8 +58,8 @@
|
|
56
58
|
<company_name></company_name>
|
57
59
|
<balance_in_cents type="integer">0</balance_in_cents>
|
58
60
|
<closed type="boolean">false</closed>
|
59
|
-
<hosted_login_token>
|
60
|
-
<created_at type="datetime">2011-
|
61
|
+
<hosted_login_token>d0688c62f1de4ce396d7bbaed31d3e6e</hosted_login_token>
|
62
|
+
<created_at type="datetime">2011-02-03T22:16:45Z</created_at>
|
61
63
|
<state>active</state>
|
62
64
|
</account>
|
63
65
|
|
@@ -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-create-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-create-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "527"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "454"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:02:46 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:43 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=c90c539b78ba26fac812fd274913c0f8b7d3a190780551074c921380f00aa22a0defef23b28f95e5db1a77a937acf580de443c1c98d4ebced05d867b30a44adc%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>account-create-
|
55
|
-
<account_code>account-create-
|
56
|
+
<id>account-create-1296674173</id>
|
57
|
+
<account_code>account-create-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>85817f8d3fba432b833dc8f36cb0e598</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:16:43Z</created_at>
|
65
67
|
<state>active</state>
|
66
68
|
</account>
|
67
69
|
|
@@ -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-get-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
|
-
|
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/account-get-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "532"
|
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:02:50 GMT
|
41
|
-
x-runtime:
|
42
|
-
- "349"
|
43
41
|
content-length:
|
44
42
|
- "577"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:16:47 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
50
|
+
- account_credentials=2ff5a40d04fa1a8439dbeb3b74c57dc3483985bec48eb2949034a3dd98b4a2bb09572b4557e4be91c254147c2831e07e637ab64b112041f44999d0c5e9c54de3%3A%3A; domain=.recurly.local; path=/
|
47
51
|
- ""
|
48
|
-
- _recurly_session=
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
52
|
+
- _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
|
51
53
|
body: |
|
52
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
53
55
|
<account>
|
54
|
-
<id>account-get-
|
55
|
-
<account_code>account-get-
|
56
|
+
<id>account-get-1296674173</id>
|
57
|
+
<account_code>account-get-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>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:16:47Z</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-get-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
|
-
- "\"c4a43c689c3fcab3f8c0c1ec65fcd2c8\""
|
92
|
+
x-runtime:
|
93
|
+
- "170"
|
90
94
|
content-type:
|
91
95
|
- application/xml; charset=utf-8
|
92
|
-
|
93
|
-
-
|
94
|
-
|
95
|
-
-
|
96
|
-
date:
|
97
|
-
- Sat, 08 Jan 2011 08:02:51 GMT
|
98
|
-
x-runtime:
|
99
|
-
- "31"
|
96
|
+
etag:
|
97
|
+
- "\"4a257ead827ac88446de7c9d9e451ba8\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
101
|
- "577"
|
102
|
+
server:
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
|
+
date:
|
105
|
+
- Thu, 03 Feb 2011 22:16:48 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=027e65ec933ac6c7f44f8cda56e82d15; domain=.recurly.local; path=/; HttpOnly
|
106
110
|
body: |
|
107
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
108
112
|
<account>
|
109
|
-
<id>account-get-
|
110
|
-
<account_code>account-get-
|
113
|
+
<id>account-get-1296674173</id>
|
114
|
+
<account_code>account-get-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>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
|
123
|
+
<created_at type="datetime">2011-02-03T22:16:47Z</created_at>
|
120
124
|
<state>active</state>
|
121
125
|
</account>
|
122
126
|
|
@@ -124,34 +128,38 @@
|
|
124
128
|
- !ruby/struct:VCR::HTTPInteraction
|
125
129
|
request: !ruby/struct:VCR::Request
|
126
130
|
method: :get
|
127
|
-
uri:
|
131
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-that-doesnt-exist.xml
|
128
132
|
body:
|
129
133
|
headers:
|
134
|
+
authorization:
|
135
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
130
136
|
accept:
|
131
137
|
- application/xml
|
138
|
+
accept-encoding:
|
139
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
|
+
user-agent:
|
141
|
+
- Ruby
|
132
142
|
connection:
|
133
143
|
- close
|
134
|
-
authorization:
|
135
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
136
144
|
response: !ruby/struct:VCR::Response
|
137
145
|
status: !ruby/struct:VCR::ResponseStatus
|
138
146
|
code: 404
|
139
|
-
message: Not Found
|
147
|
+
message: "Not Found "
|
140
148
|
headers:
|
141
|
-
|
142
|
-
-
|
149
|
+
cache-control:
|
150
|
+
- no-cache
|
143
151
|
content-type:
|
144
152
|
- application/xml; charset=utf-8
|
145
|
-
date:
|
146
|
-
- Sat, 08 Jan 2011 08:02:52 GMT
|
147
|
-
server:
|
148
|
-
- nginx/0.8.53
|
149
153
|
content-length:
|
150
154
|
- "93"
|
155
|
+
server:
|
156
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
157
|
+
date:
|
158
|
+
- Thu, 03 Feb 2011 22:16:50 GMT
|
159
|
+
connection:
|
160
|
+
- close
|
151
161
|
set-cookie:
|
152
|
-
- _recurly_session=
|
153
|
-
cache-control:
|
154
|
-
- no-cache
|
162
|
+
- _recurly_session=278a0f7034fdbdec11da7be3757db09a; domain=.recurly.local; path=/; HttpOnly
|
155
163
|
body: |
|
156
164
|
<?xml version="1.0" encoding="UTF-8"?>
|
157
165
|
<errors>
|