recurly 0.2.5 → 0.2.6
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/recurly.rb +6 -1
- data/lib/recurly/rails2/compatibility.rb +8 -0
- data/lib/recurly/{rails → rails3}/railtie.rb +1 -1
- data/lib/recurly/{rails → rails3}/recurly.rake +0 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/vcr/account/close/1288381369.yml +159 -0
- data/spec/vcr/account/close/1288381447.yml +159 -0
- data/spec/vcr/account/create-blank/1288381369.yml +49 -0
- data/spec/vcr/account/create-blank/1288381447.yml +49 -0
- data/spec/vcr/account/create-duplicate/1288381369.yml +95 -0
- data/spec/vcr/account/create-duplicate/1288381447.yml +95 -0
- data/spec/vcr/account/create-min/1288381369.yml +63 -0
- data/spec/vcr/account/create-min/1288381447.yml +63 -0
- data/spec/vcr/account/create/1288381369.yml +67 -0
- data/spec/vcr/account/create/1288381447.yml +67 -0
- data/spec/vcr/account/find-all/1288381369.yml +52 -0
- data/spec/vcr/account/find-all/1288381447.yml +1383 -0
- data/spec/vcr/account/find/1288381369.yml +160 -0
- data/spec/vcr/account/find/1288381447.yml +160 -0
- data/spec/vcr/account/list/1288381369.yml +1835 -0
- data/spec/vcr/account/list/1288381447.yml +1835 -0
- data/spec/vcr/account/update/1288381369.yml +250 -0
- data/spec/vcr/account/update/1288381447.yml +250 -0
- metadata +43 -6
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>account-exists</account-code>
|
10
|
+
</account>
|
11
|
+
|
12
|
+
headers:
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
connection:
|
16
|
+
- close
|
17
|
+
content-type:
|
18
|
+
- application/xml
|
19
|
+
authorization:
|
20
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
21
|
+
response: !ruby/struct:VCR::Response
|
22
|
+
status: !ruby/struct:VCR::ResponseStatus
|
23
|
+
code: 422
|
24
|
+
message: ""
|
25
|
+
headers:
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
content-type:
|
29
|
+
- application/xml; charset=utf-8
|
30
|
+
x-runtime:
|
31
|
+
- "171"
|
32
|
+
date:
|
33
|
+
- Fri, 29 Oct 2010 19:43:35 GMT
|
34
|
+
server:
|
35
|
+
- nginx/0.7.65
|
36
|
+
content-length:
|
37
|
+
- "132"
|
38
|
+
set-cookie:
|
39
|
+
- _recurly_session=a9e2f67848ca039255d41cf129ba3d1d; domain=.recurly.com; path=/; Secure; HttpOnly
|
40
|
+
cache-control:
|
41
|
+
- no-cache
|
42
|
+
body: |
|
43
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
44
|
+
<errors>
|
45
|
+
<error field="account_code">Account code has already been taken</error>
|
46
|
+
</errors>
|
47
|
+
|
48
|
+
http_version: "1.1"
|
49
|
+
- !ruby/struct:VCR::HTTPInteraction
|
50
|
+
request: !ruby/struct:VCR::Request
|
51
|
+
method: :post
|
52
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<account-code>account-exists</account-code>
|
57
|
+
</account>
|
58
|
+
|
59
|
+
headers:
|
60
|
+
accept:
|
61
|
+
- "*/*"
|
62
|
+
connection:
|
63
|
+
- close
|
64
|
+
content-type:
|
65
|
+
- application/xml
|
66
|
+
authorization:
|
67
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
68
|
+
response: !ruby/struct:VCR::Response
|
69
|
+
status: !ruby/struct:VCR::ResponseStatus
|
70
|
+
code: 422
|
71
|
+
message: ""
|
72
|
+
headers:
|
73
|
+
connection:
|
74
|
+
- close
|
75
|
+
content-type:
|
76
|
+
- application/xml; charset=utf-8
|
77
|
+
x-runtime:
|
78
|
+
- "18"
|
79
|
+
date:
|
80
|
+
- Fri, 29 Oct 2010 19:43:36 GMT
|
81
|
+
server:
|
82
|
+
- nginx/0.7.65
|
83
|
+
content-length:
|
84
|
+
- "132"
|
85
|
+
set-cookie:
|
86
|
+
- _recurly_session=1aaa4d0436e65fa689b676069ddfa5a4; domain=.recurly.com; path=/; Secure; HttpOnly
|
87
|
+
cache-control:
|
88
|
+
- no-cache
|
89
|
+
body: |
|
90
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
91
|
+
<errors>
|
92
|
+
<error field="account_code">Account code has already been taken</error>
|
93
|
+
</errors>
|
94
|
+
|
95
|
+
http_version: "1.1"
|
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>account-exists</account-code>
|
10
|
+
</account>
|
11
|
+
|
12
|
+
headers:
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
connection:
|
16
|
+
- close
|
17
|
+
content-type:
|
18
|
+
- application/xml
|
19
|
+
authorization:
|
20
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
21
|
+
response: !ruby/struct:VCR::Response
|
22
|
+
status: !ruby/struct:VCR::ResponseStatus
|
23
|
+
code: 422
|
24
|
+
message: ""
|
25
|
+
headers:
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
content-type:
|
29
|
+
- application/xml; charset=utf-8
|
30
|
+
x-runtime:
|
31
|
+
- "19"
|
32
|
+
date:
|
33
|
+
- Fri, 29 Oct 2010 19:44:49 GMT
|
34
|
+
server:
|
35
|
+
- nginx/0.7.65
|
36
|
+
content-length:
|
37
|
+
- "132"
|
38
|
+
set-cookie:
|
39
|
+
- _recurly_session=612be54f03f1bea1d734cf08b89a47bf; domain=.recurly.com; path=/; Secure; HttpOnly
|
40
|
+
cache-control:
|
41
|
+
- no-cache
|
42
|
+
body: |
|
43
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
44
|
+
<errors>
|
45
|
+
<error field="account_code">Account code has already been taken</error>
|
46
|
+
</errors>
|
47
|
+
|
48
|
+
http_version: "1.1"
|
49
|
+
- !ruby/struct:VCR::HTTPInteraction
|
50
|
+
request: !ruby/struct:VCR::Request
|
51
|
+
method: :post
|
52
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<account-code>account-exists</account-code>
|
57
|
+
</account>
|
58
|
+
|
59
|
+
headers:
|
60
|
+
accept:
|
61
|
+
- "*/*"
|
62
|
+
connection:
|
63
|
+
- close
|
64
|
+
content-type:
|
65
|
+
- application/xml
|
66
|
+
authorization:
|
67
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
68
|
+
response: !ruby/struct:VCR::Response
|
69
|
+
status: !ruby/struct:VCR::ResponseStatus
|
70
|
+
code: 422
|
71
|
+
message: ""
|
72
|
+
headers:
|
73
|
+
connection:
|
74
|
+
- close
|
75
|
+
content-type:
|
76
|
+
- application/xml; charset=utf-8
|
77
|
+
x-runtime:
|
78
|
+
- "18"
|
79
|
+
date:
|
80
|
+
- Fri, 29 Oct 2010 19:44:49 GMT
|
81
|
+
server:
|
82
|
+
- nginx/0.7.65
|
83
|
+
content-length:
|
84
|
+
- "132"
|
85
|
+
set-cookie:
|
86
|
+
- _recurly_session=477f66267d060b77464fd1f20b9c56a9; domain=.recurly.com; path=/; Secure; HttpOnly
|
87
|
+
cache-control:
|
88
|
+
- no-cache
|
89
|
+
body: |
|
90
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
91
|
+
<errors>
|
92
|
+
<error field="account_code">Account code has already been taken</error>
|
93
|
+
</errors>
|
94
|
+
|
95
|
+
http_version: "1.1"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>d00d-1288381369</account-code>
|
10
|
+
</account>
|
11
|
+
|
12
|
+
headers:
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
connection:
|
16
|
+
- close
|
17
|
+
content-type:
|
18
|
+
- application/xml
|
19
|
+
authorization:
|
20
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
21
|
+
response: !ruby/struct:VCR::Response
|
22
|
+
status: !ruby/struct:VCR::ResponseStatus
|
23
|
+
code: 201
|
24
|
+
message: Created
|
25
|
+
headers:
|
26
|
+
location:
|
27
|
+
- https://recurlytest3-test.recurly.com/accounts/d00d-1288381369
|
28
|
+
connection:
|
29
|
+
- close
|
30
|
+
content-type:
|
31
|
+
- application/xml; charset=utf-8
|
32
|
+
x-runtime:
|
33
|
+
- "697"
|
34
|
+
date:
|
35
|
+
- Fri, 29 Oct 2010 19:42:59 GMT
|
36
|
+
server:
|
37
|
+
- nginx/0.7.65
|
38
|
+
content-length:
|
39
|
+
- "522"
|
40
|
+
set-cookie:
|
41
|
+
- account_credentials=4ef598ab198db58a93102629103e02e14f946e6ec295573ac53ecfa312c2d47c90729b26385e5e24c93250956f319d629828ec873b8fddb068bf0316052e8c03%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
42
|
+
- ""
|
43
|
+
- _recurly_session=7e8b530849048ecceda0e606fcc9a143; domain=.recurly.com; path=/; Secure; HttpOnly
|
44
|
+
cache-control:
|
45
|
+
- no-cache
|
46
|
+
body: |
|
47
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
48
|
+
<account>
|
49
|
+
<id>d00d-1288381369</id>
|
50
|
+
<account_code>d00d-1288381369</account_code>
|
51
|
+
<username></username>
|
52
|
+
<email></email>
|
53
|
+
<first_name></first_name>
|
54
|
+
<last_name></last_name>
|
55
|
+
<company_name></company_name>
|
56
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
57
|
+
<closed type="boolean">false</closed>
|
58
|
+
<hosted_login_token>11067074730d48b6802ddbd6d3c525ff</hosted_login_token>
|
59
|
+
<created_at type="datetime">2010-10-29T19:42:59Z</created_at>
|
60
|
+
<state>active</state>
|
61
|
+
</account>
|
62
|
+
|
63
|
+
http_version: "1.1"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>d00d-1288381447</account-code>
|
10
|
+
</account>
|
11
|
+
|
12
|
+
headers:
|
13
|
+
accept:
|
14
|
+
- "*/*"
|
15
|
+
connection:
|
16
|
+
- close
|
17
|
+
content-type:
|
18
|
+
- application/xml
|
19
|
+
authorization:
|
20
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
21
|
+
response: !ruby/struct:VCR::Response
|
22
|
+
status: !ruby/struct:VCR::ResponseStatus
|
23
|
+
code: 201
|
24
|
+
message: Created
|
25
|
+
headers:
|
26
|
+
location:
|
27
|
+
- https://recurlytest3-test.recurly.com/accounts/d00d-1288381447
|
28
|
+
connection:
|
29
|
+
- close
|
30
|
+
content-type:
|
31
|
+
- application/xml; charset=utf-8
|
32
|
+
x-runtime:
|
33
|
+
- "708"
|
34
|
+
date:
|
35
|
+
- Fri, 29 Oct 2010 19:44:15 GMT
|
36
|
+
server:
|
37
|
+
- nginx/0.7.65
|
38
|
+
content-length:
|
39
|
+
- "522"
|
40
|
+
set-cookie:
|
41
|
+
- account_credentials=8d50edd1f6624bf9018a96ff2774d3f44b45fffe963311c6ebf854db60f2637edacd66c8c3dfcfd84d81e3a617f977fad20ce452cf89781d11a97d407702c6a7%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
42
|
+
- ""
|
43
|
+
- _recurly_session=e1c641a3760b7f8835a176605dc6429c; domain=.recurly.com; path=/; Secure; HttpOnly
|
44
|
+
cache-control:
|
45
|
+
- no-cache
|
46
|
+
body: |
|
47
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
48
|
+
<account>
|
49
|
+
<id>d00d-1288381447</id>
|
50
|
+
<account_code>d00d-1288381447</account_code>
|
51
|
+
<username></username>
|
52
|
+
<email></email>
|
53
|
+
<first_name></first_name>
|
54
|
+
<last_name></last_name>
|
55
|
+
<company_name></company_name>
|
56
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
57
|
+
<closed type="boolean">false</closed>
|
58
|
+
<hosted_login_token>a450da01cb13471383b66efaec423478</hosted_login_token>
|
59
|
+
<created_at type="datetime">2010-10-29T19:44:15Z</created_at>
|
60
|
+
<state>active</state>
|
61
|
+
</account>
|
62
|
+
|
63
|
+
http_version: "1.1"
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>account-create-1288381369</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/account-create-1288381369
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "816"
|
38
|
+
date:
|
39
|
+
- Fri, 29 Oct 2010 19:42:57 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "583"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=59e4a8f06e8f879f65d4e198afe372e53c3fade59b936012612bc3d8273d2a59a8fdc951da9aed5b391d272ef42c7e6531af8a0d9b7ad24dd624cd2755b1d14c%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=6c85fec8914c8058349590c6378d5521; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>account-create-1288381369</id>
|
54
|
+
<account_code>account-create-1288381369</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>8ed657200f9e4152af4f720fb219f567</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-29T19:42:57Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>account-create-1288381447</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/account-create-1288381447
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "686"
|
38
|
+
date:
|
39
|
+
- Fri, 29 Oct 2010 19:44:13 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "583"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=c77620169b5eaa14a482adfb62b0579b0a3c63cd1a54267c66cd37ff87cd91b280fdcd254361d4466b250a5e62fe75bda40e1e3ec138f68db91be262135cba9d%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=508e7e6e2b7fe4b12470eabb09b13a6c; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>account-create-1288381447</id>
|
54
|
+
<account_code>account-create-1288381447</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>a7b2f02069504d388033a7874e3addc4</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-29T19:44:13Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|