recurly 0.3.3 → 0.3.4
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 +15 -11
- data/lib/patches/active_resource/connection.rb +10 -0
- data/lib/recurly.rb +35 -9
- data/lib/recurly/account.rb +22 -1
- data/lib/recurly/account_base.rb +35 -0
- data/lib/recurly/base.rb +26 -39
- data/lib/recurly/billing_info.rb +40 -1
- data/lib/recurly/charge.rb +12 -1
- data/lib/recurly/coupon.rb +8 -0
- data/lib/recurly/credit.rb +12 -1
- data/lib/recurly/exceptions.rb +19 -0
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/plan.rb +13 -1
- data/lib/recurly/rails3/recurly.rake +5 -3
- data/lib/recurly/subscription.rb +21 -3
- data/lib/recurly/transaction.rb +29 -1
- data/lib/recurly/transparent.rb +140 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +12 -0
- data/spec/config/test1.yml +3 -1
- data/spec/config/test2.yml +4 -2
- data/spec/integration/credit_spec.rb +6 -6
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/factory.rb +5 -3
- data/spec/unit/account_spec.rb +19 -0
- data/spec/unit/billing_info_spec.rb +38 -0
- data/spec/unit/charge_spec.rb +18 -0
- data/spec/unit/config_spec.rb +10 -6
- data/spec/unit/coupon_spec.rb +13 -0
- data/spec/unit/credit_spec.rb +18 -0
- data/spec/unit/plan_spec.rb +18 -0
- data/spec/unit/subscription_spec.rb +25 -0
- data/spec/unit/transaction_spec.rb +32 -0
- data/spec/unit/transparent_spec.rb +114 -0
- data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
- data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
- data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
- data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
- data/spec/vcr/account/list/1297746103.yml +1579 -0
- data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
- data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
- data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
- data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
- data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
- data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
- data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
- data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
- data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
- data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
- data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
- data/spec/vcr/credit/delete/1299714599.yml +262 -0
- data/spec/vcr/credit/list/1299714599.yml +319 -0
- data/spec/vcr/credit/lookup/1299714599.yml +183 -0
- data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
- data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
- data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
- data/spec/vcr/plan/all.yml +30 -30
- data/spec/vcr/plan/find.yml +25 -25
- data/spec/vcr/plan/update.yml +16 -15
- data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
- data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
- data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
- data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
- data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
- data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
- data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
- data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
- data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
- data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
- data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
- data/spec/vcr/transaction/refund/1297746103.yml +213 -0
- data/spec/vcr/transaction/void/1297746103.yml +213 -0
- metadata +146 -139
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,17 +2,21 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
9
|
<account-code></account-code>
|
10
|
+
<billing-info>
|
11
|
+
<credit-card>
|
12
|
+
</credit-card>
|
13
|
+
</billing-info>
|
10
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
11
15
|
</account>
|
12
16
|
|
13
17
|
headers:
|
14
18
|
authorization:
|
15
|
-
- Basic
|
19
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
16
20
|
content-type:
|
17
21
|
- application/xml
|
18
22
|
accept:
|
@@ -29,7 +33,7 @@
|
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
x-runtime:
|
32
|
-
- "
|
36
|
+
- "364"
|
33
37
|
content-type:
|
34
38
|
- application/xml; charset=utf-8
|
35
39
|
content-length:
|
@@ -37,11 +41,11 @@
|
|
37
41
|
server:
|
38
42
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
39
43
|
date:
|
40
|
-
-
|
44
|
+
- Fri, 11 Mar 2011 18:47:22 GMT
|
41
45
|
connection:
|
42
46
|
- close
|
43
47
|
set-cookie:
|
44
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=b91cf21d0aa96326375445710ef2f8af; domain=.recurly.local; path=/; HttpOnly
|
45
49
|
body: |
|
46
50
|
<?xml version="1.0" encoding="UTF-8"?>
|
47
51
|
<errors>
|
@@ -2,17 +2,21 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
9
|
<account-code>account-exists</account-code>
|
10
|
+
<billing-info>
|
11
|
+
<credit-card>
|
12
|
+
</credit-card>
|
13
|
+
</billing-info>
|
10
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
11
15
|
</account>
|
12
16
|
|
13
17
|
headers:
|
14
18
|
authorization:
|
15
|
-
- Basic
|
19
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
16
20
|
content-type:
|
17
21
|
- application/xml
|
18
22
|
accept:
|
@@ -29,9 +33,9 @@
|
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
location:
|
32
|
-
- http://
|
36
|
+
- http://app.recurly.local:3000/accounts/account-exists
|
33
37
|
x-runtime:
|
34
|
-
- "
|
38
|
+
- "387"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
41
|
content-length:
|
@@ -39,13 +43,12 @@
|
|
39
43
|
server:
|
40
44
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
41
45
|
date:
|
42
|
-
-
|
46
|
+
- Fri, 11 Mar 2011 18:47:24 GMT
|
43
47
|
connection:
|
44
48
|
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
47
|
-
-
|
48
|
-
- _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
|
50
|
+
- account_credentials=b664123bc55a78c30adefd77ead47380b5dfd751b045c31a71bef135c1e89ee2e50ba23d729343265442c5700855b890a61e92cb7e1d34fc2d4b56f738a09bc6%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- _recurly_session=4bfcbd106c4f8f9a8722123aaeee014d; domain=.recurly.local; path=/; HttpOnly
|
49
52
|
body: |
|
50
53
|
<?xml version="1.0" encoding="UTF-8"?>
|
51
54
|
<account>
|
@@ -58,8 +61,8 @@
|
|
58
61
|
<company_name></company_name>
|
59
62
|
<balance_in_cents type="integer">0</balance_in_cents>
|
60
63
|
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-
|
64
|
+
<hosted_login_token>ee9df1b236504ebfa4b3efb716b13cb0</hosted_login_token>
|
65
|
+
<created_at type="datetime">2011-03-11T18:47:23Z</created_at>
|
63
66
|
<state>active</state>
|
64
67
|
</account>
|
65
68
|
|
@@ -67,17 +70,21 @@
|
|
67
70
|
- !ruby/struct:VCR::HTTPInteraction
|
68
71
|
request: !ruby/struct:VCR::Request
|
69
72
|
method: :post
|
70
|
-
uri: http://
|
73
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
71
74
|
body: |
|
72
75
|
<?xml version="1.0" encoding="UTF-8"?>
|
73
76
|
<account>
|
74
77
|
<account-code>account-exists</account-code>
|
78
|
+
<billing-info>
|
79
|
+
<credit-card>
|
80
|
+
</credit-card>
|
81
|
+
</billing-info>
|
75
82
|
<accept-language type="yaml" nil="true"></accept-language>
|
76
83
|
</account>
|
77
84
|
|
78
85
|
headers:
|
79
86
|
authorization:
|
80
|
-
- Basic
|
87
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
81
88
|
content-type:
|
82
89
|
- application/xml
|
83
90
|
accept:
|
@@ -94,7 +101,7 @@
|
|
94
101
|
cache-control:
|
95
102
|
- no-cache
|
96
103
|
x-runtime:
|
97
|
-
- "
|
104
|
+
- "349"
|
98
105
|
content-type:
|
99
106
|
- application/xml; charset=utf-8
|
100
107
|
content-length:
|
@@ -102,11 +109,11 @@
|
|
102
109
|
server:
|
103
110
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
111
|
date:
|
105
|
-
-
|
112
|
+
- Fri, 11 Mar 2011 18:47:26 GMT
|
106
113
|
connection:
|
107
114
|
- close
|
108
115
|
set-cookie:
|
109
|
-
- _recurly_session=
|
116
|
+
- _recurly_session=fbf14194474f77a451b5c5b85dfec93e; domain=.recurly.local; path=/; HttpOnly
|
110
117
|
body: |
|
111
118
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
119
|
<errors>
|
@@ -2,17 +2,21 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.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-1297746103</account-code>
|
10
|
+
<billing-info>
|
11
|
+
<credit-card>
|
12
|
+
</credit-card>
|
13
|
+
</billing-info>
|
10
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
11
15
|
</account>
|
12
16
|
|
13
17
|
headers:
|
14
18
|
authorization:
|
15
|
-
- Basic
|
19
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
16
20
|
content-type:
|
17
21
|
- application/xml
|
18
22
|
accept:
|
@@ -29,9 +33,9 @@
|
|
29
33
|
cache-control:
|
30
34
|
- no-cache
|
31
35
|
location:
|
32
|
-
- http://
|
36
|
+
- http://app.recurly.local:3000/accounts/d00d-1297746103
|
33
37
|
x-runtime:
|
34
|
-
- "
|
38
|
+
- "341"
|
35
39
|
content-type:
|
36
40
|
- application/xml; charset=utf-8
|
37
41
|
content-length:
|
@@ -39,18 +43,17 @@
|
|
39
43
|
server:
|
40
44
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
41
45
|
date:
|
42
|
-
-
|
46
|
+
- Fri, 11 Mar 2011 18:45:46 GMT
|
43
47
|
connection:
|
44
48
|
- close
|
45
49
|
set-cookie:
|
46
|
-
- account_credentials=
|
47
|
-
-
|
48
|
-
- _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
|
50
|
+
- account_credentials=e2fd86ca4d01f1dade5f277215c391bf5abecb34e117c47d4a6d0d92073c30627c628b94b12d5f8d3893deddfd0128dd053792ba6e565a986886b233cbd11cc4%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- _recurly_session=50b68c0d6209378a114e224a005ecf38; domain=.recurly.local; path=/; HttpOnly
|
49
52
|
body: |
|
50
53
|
<?xml version="1.0" encoding="UTF-8"?>
|
51
54
|
<account>
|
52
|
-
<id>d00d-
|
53
|
-
<account_code>d00d-
|
55
|
+
<id>d00d-1297746103</id>
|
56
|
+
<account_code>d00d-1297746103</account_code>
|
54
57
|
<username></username>
|
55
58
|
<email></email>
|
56
59
|
<first_name></first_name>
|
@@ -58,8 +61,8 @@
|
|
58
61
|
<company_name></company_name>
|
59
62
|
<balance_in_cents type="integer">0</balance_in_cents>
|
60
63
|
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-
|
64
|
+
<hosted_login_token>65fd765641144b338700054678727154</hosted_login_token>
|
65
|
+
<created_at type="datetime">2011-03-11T18:45:46Z</created_at>
|
63
66
|
<state>active</state>
|
64
67
|
</account>
|
65
68
|
|
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account-create-
|
9
|
+
<account-code>account-create-1297746103</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/account-create-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "449"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:45:45 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=bd0944dfe2017bbfd67692efb2354b46904c8f2c155207933c1c21f90e232bdebeda4b0a3e6934d272d7f12a3aea1b15af90efbfabcc068a0a14be912398f928%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=ba0113cf8727f3875945727b2d28a0ab; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>account-create-
|
57
|
-
<account_code>account-create-
|
59
|
+
<id>account-create-1297746103</id>
|
60
|
+
<account_code>account-create-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>44c14fd5c80347b9995d73178a593897</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:45:44Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>account-get-
|
9
|
+
<account-code>account-get-1297746103</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/account-get-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "357"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:45:48 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=55f740f1b3305420116008519a23e0abbf5a465c7a9c4f16226e963f446e7cf813d6c25684d92fc2cf63454ab2419bfef58d307e8cc6e8f8f8a9ac4b79cd9338%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=d3819ca518bcaf03a30a3db01c26a410; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>account-get-
|
57
|
-
<account_code>account-get-
|
59
|
+
<id>account-get-1297746103</id>
|
60
|
+
<account_code>account-get-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>aa928e42c7454ca987a4df3be71fe5fc</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:45:48Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,11 +74,11 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :get
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1297746103.xml
|
75
78
|
body:
|
76
79
|
headers:
|
77
80
|
authorization:
|
78
|
-
- Basic
|
81
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
82
|
accept:
|
80
83
|
- application/xml
|
81
84
|
accept-encoding:
|
@@ -94,7 +97,7 @@
|
|
94
97
|
content-type:
|
95
98
|
- application/xml; charset=utf-8
|
96
99
|
etag:
|
97
|
-
- "\"
|
100
|
+
- "\"f2e9d7bce54dde44753f9948996aafb6\""
|
98
101
|
cache-control:
|
99
102
|
- private, max-age=0, must-revalidate
|
100
103
|
content-length:
|
@@ -102,16 +105,16 @@
|
|
102
105
|
server:
|
103
106
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
107
|
date:
|
105
|
-
-
|
108
|
+
- Fri, 11 Mar 2011 18:45:50 GMT
|
106
109
|
connection:
|
107
110
|
- close
|
108
111
|
set-cookie:
|
109
|
-
- _recurly_session=
|
112
|
+
- _recurly_session=bdf4b64dc1409ce563773fa07283ea9d; domain=.recurly.local; path=/; HttpOnly
|
110
113
|
body: |
|
111
114
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
115
|
<account>
|
113
|
-
<id>account-get-
|
114
|
-
<account_code>account-get-
|
116
|
+
<id>account-get-1297746103</id>
|
117
|
+
<account_code>account-get-1297746103</account_code>
|
115
118
|
<username></username>
|
116
119
|
<email>verena@test.com</email>
|
117
120
|
<first_name>Verena</first_name>
|
@@ -119,8 +122,8 @@
|
|
119
122
|
<company_name>Recurly Ruby Gem</company_name>
|
120
123
|
<balance_in_cents type="integer">0</balance_in_cents>
|
121
124
|
<closed type="boolean">false</closed>
|
122
|
-
<hosted_login_token>
|
123
|
-
<created_at type="datetime">2011-
|
125
|
+
<hosted_login_token>aa928e42c7454ca987a4df3be71fe5fc</hosted_login_token>
|
126
|
+
<created_at type="datetime">2011-03-11T18:45:48Z</created_at>
|
124
127
|
<state>active</state>
|
125
128
|
</account>
|
126
129
|
|
@@ -128,11 +131,11 @@
|
|
128
131
|
- !ruby/struct:VCR::HTTPInteraction
|
129
132
|
request: !ruby/struct:VCR::Request
|
130
133
|
method: :get
|
131
|
-
uri: http://
|
134
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
|
132
135
|
body:
|
133
136
|
headers:
|
134
137
|
authorization:
|
135
|
-
- Basic
|
138
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
136
139
|
accept:
|
137
140
|
- application/xml
|
138
141
|
accept-encoding:
|
@@ -155,11 +158,11 @@
|
|
155
158
|
server:
|
156
159
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
157
160
|
date:
|
158
|
-
-
|
161
|
+
- Fri, 11 Mar 2011 18:45:52 GMT
|
159
162
|
connection:
|
160
163
|
- close
|
161
164
|
set-cookie:
|
162
|
-
- _recurly_session=
|
165
|
+
- _recurly_session=ebfd522fb528213931b1aadc4348e46d; domain=.recurly.local; path=/; HttpOnly
|
163
166
|
body: |
|
164
167
|
<?xml version="1.0" encoding="UTF-8"?>
|
165
168
|
<errors>
|