recurly 0.4.2 → 0.4.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/lib/recurly.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/does_not_matter.xml
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
authorization:
|
9
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
10
|
-
accept:
|
11
|
-
- application/xml
|
12
|
-
accept-encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
user-agent:
|
15
|
-
- Ruby
|
16
|
-
connection:
|
17
|
-
- close
|
18
|
-
response: !ruby/struct:VCR::Response
|
19
|
-
status: !ruby/struct:VCR::ResponseStatus
|
20
|
-
code: 404
|
21
|
-
message: Not Found
|
22
|
-
headers:
|
23
|
-
cache-control:
|
24
|
-
- no-cache
|
25
|
-
content-type:
|
26
|
-
- application/xml; charset=utf-8
|
27
|
-
content-length:
|
28
|
-
- "93"
|
29
|
-
set-cookie:
|
30
|
-
- _recurly_session=d58abd47a91900d4e20bfd45afcec51b; domain=.recurly.local; path=/; HttpOnly
|
31
|
-
connection:
|
32
|
-
- close
|
33
|
-
server:
|
34
|
-
- thin 1.2.7 codename No Hup
|
35
|
-
body: |
|
36
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
37
|
-
<errors>
|
38
|
-
<error>Account not found</error>
|
39
|
-
</errors>
|
40
|
-
|
41
|
-
http_version: "1.1"
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/does_not_matter.xml
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
authorization:
|
9
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
10
|
-
accept:
|
11
|
-
- application/xml
|
12
|
-
accept-encoding:
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
user-agent:
|
15
|
-
- Ruby
|
16
|
-
connection:
|
17
|
-
- close
|
18
|
-
response: !ruby/struct:VCR::Response
|
19
|
-
status: !ruby/struct:VCR::ResponseStatus
|
20
|
-
code: 404
|
21
|
-
message: Not Found
|
22
|
-
headers:
|
23
|
-
cache-control:
|
24
|
-
- no-cache
|
25
|
-
content-type:
|
26
|
-
- application/xml; charset=utf-8
|
27
|
-
content-length:
|
28
|
-
- "93"
|
29
|
-
set-cookie:
|
30
|
-
- _recurly_session=a32b6e7eba33f88777d2738033206ebe; domain=.recurly.local; path=/; HttpOnly
|
31
|
-
connection:
|
32
|
-
- close
|
33
|
-
server:
|
34
|
-
- thin 1.2.7 codename No Hup
|
35
|
-
body: |
|
36
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
37
|
-
<errors>
|
38
|
-
<error>Account not found</error>
|
39
|
-
</errors>
|
40
|
-
|
41
|
-
http_version: "1.1"
|
@@ -1,125 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<account-code>account-get-1300476034</account-code>
|
10
|
-
<first-name>Verena</first-name>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<email>verena@test.com</email>
|
13
|
-
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
19
|
-
</account>
|
20
|
-
|
21
|
-
headers:
|
22
|
-
authorization:
|
23
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
24
|
-
content-type:
|
25
|
-
- application/xml
|
26
|
-
accept:
|
27
|
-
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
|
-
connection:
|
31
|
-
- close
|
32
|
-
response: !ruby/struct:VCR::Response
|
33
|
-
status: !ruby/struct:VCR::ResponseStatus
|
34
|
-
code: 201
|
35
|
-
message: Created
|
36
|
-
headers:
|
37
|
-
cache-control:
|
38
|
-
- no-cache
|
39
|
-
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-get-1300476034
|
41
|
-
x-runtime:
|
42
|
-
- "353"
|
43
|
-
content-type:
|
44
|
-
- application/xml; charset=utf-8
|
45
|
-
content-length:
|
46
|
-
- "577"
|
47
|
-
set-cookie:
|
48
|
-
- _recurly_session=0485e54e4b29343ce1ab3c33a7eed7dc; domain=.recurly.local; path=/; HttpOnly
|
49
|
-
connection:
|
50
|
-
- close
|
51
|
-
server:
|
52
|
-
- thin 1.2.7 codename No Hup
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>account-get-1300476034</id>
|
57
|
-
<account_code>account-get-1300476034</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>cc4cabf53d3947c1844d6cb79d1fbff8</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-03-18T19:20:39Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :get
|
74
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476034.xml
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
authorization:
|
78
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
-
accept:
|
80
|
-
- application/xml
|
81
|
-
accept-encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
user-agent:
|
84
|
-
- Ruby
|
85
|
-
connection:
|
86
|
-
- close
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
-
code: 200
|
90
|
-
message: OK
|
91
|
-
headers:
|
92
|
-
x-runtime:
|
93
|
-
- "337"
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"a97886d594b55c3882fcf3097bb23ec0\""
|
98
|
-
cache-control:
|
99
|
-
- private, max-age=0, must-revalidate
|
100
|
-
content-length:
|
101
|
-
- "577"
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=23b4569fe55068346259026c8e0c2998; domain=.recurly.local; path=/; HttpOnly
|
104
|
-
connection:
|
105
|
-
- close
|
106
|
-
server:
|
107
|
-
- thin 1.2.7 codename No Hup
|
108
|
-
body: |
|
109
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
-
<account>
|
111
|
-
<id>account-get-1300476034</id>
|
112
|
-
<account_code>account-get-1300476034</account_code>
|
113
|
-
<username></username>
|
114
|
-
<email>verena@test.com</email>
|
115
|
-
<first_name>Verena</first_name>
|
116
|
-
<last_name>Test</last_name>
|
117
|
-
<company_name>Recurly Ruby Gem</company_name>
|
118
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
-
<closed type="boolean">false</closed>
|
120
|
-
<hosted_login_token>cc4cabf53d3947c1844d6cb79d1fbff8</hosted_login_token>
|
121
|
-
<created_at type="datetime">2011-03-18T19:20:39Z</created_at>
|
122
|
-
<state>active</state>
|
123
|
-
</account>
|
124
|
-
|
125
|
-
http_version: "1.1"
|
@@ -1,125 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<account-code>account-get-1300476102</account-code>
|
10
|
-
<first-name>Verena</first-name>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<email>verena@test.com</email>
|
13
|
-
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
19
|
-
</account>
|
20
|
-
|
21
|
-
headers:
|
22
|
-
authorization:
|
23
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
24
|
-
content-type:
|
25
|
-
- application/xml
|
26
|
-
accept:
|
27
|
-
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
|
-
connection:
|
31
|
-
- close
|
32
|
-
response: !ruby/struct:VCR::Response
|
33
|
-
status: !ruby/struct:VCR::ResponseStatus
|
34
|
-
code: 201
|
35
|
-
message: Created
|
36
|
-
headers:
|
37
|
-
cache-control:
|
38
|
-
- no-cache
|
39
|
-
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-get-1300476102
|
41
|
-
x-runtime:
|
42
|
-
- "362"
|
43
|
-
content-type:
|
44
|
-
- application/xml; charset=utf-8
|
45
|
-
content-length:
|
46
|
-
- "577"
|
47
|
-
set-cookie:
|
48
|
-
- _recurly_session=761f26093c3a4de74d0f844be6a22c8e; domain=.recurly.local; path=/; HttpOnly
|
49
|
-
connection:
|
50
|
-
- close
|
51
|
-
server:
|
52
|
-
- thin 1.2.7 codename No Hup
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>account-get-1300476102</id>
|
57
|
-
<account_code>account-get-1300476102</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>bb1557ebff444ecf85eebd58cb16a9c2</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-03-18T19:21:48Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :get
|
74
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476102.xml
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
authorization:
|
78
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
-
accept:
|
80
|
-
- application/xml
|
81
|
-
accept-encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
user-agent:
|
84
|
-
- Ruby
|
85
|
-
connection:
|
86
|
-
- close
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
-
code: 200
|
90
|
-
message: OK
|
91
|
-
headers:
|
92
|
-
x-runtime:
|
93
|
-
- "355"
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"2bec698f9467c311f95eefcfbf8688bf\""
|
98
|
-
cache-control:
|
99
|
-
- private, max-age=0, must-revalidate
|
100
|
-
content-length:
|
101
|
-
- "577"
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=88af5d6a159da4a7bbaf7f38e3489402; domain=.recurly.local; path=/; HttpOnly
|
104
|
-
connection:
|
105
|
-
- close
|
106
|
-
server:
|
107
|
-
- thin 1.2.7 codename No Hup
|
108
|
-
body: |
|
109
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
-
<account>
|
111
|
-
<id>account-get-1300476102</id>
|
112
|
-
<account_code>account-get-1300476102</account_code>
|
113
|
-
<username></username>
|
114
|
-
<email>verena@test.com</email>
|
115
|
-
<first_name>Verena</first_name>
|
116
|
-
<last_name>Test</last_name>
|
117
|
-
<company_name>Recurly Ruby Gem</company_name>
|
118
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
-
<closed type="boolean">false</closed>
|
120
|
-
<hosted_login_token>bb1557ebff444ecf85eebd58cb16a9c2</hosted_login_token>
|
121
|
-
<created_at type="datetime">2011-03-18T19:21:48Z</created_at>
|
122
|
-
<state>active</state>
|
123
|
-
</account>
|
124
|
-
|
125
|
-
http_version: "1.1"
|
@@ -1,125 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :post
|
5
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<account>
|
9
|
-
<account-code>account-get-1300476126</account-code>
|
10
|
-
<first-name>Verena</first-name>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<email>verena@test.com</email>
|
13
|
-
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
19
|
-
</account>
|
20
|
-
|
21
|
-
headers:
|
22
|
-
authorization:
|
23
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
24
|
-
content-type:
|
25
|
-
- application/xml
|
26
|
-
accept:
|
27
|
-
- "*/*"
|
28
|
-
user-agent:
|
29
|
-
- Ruby
|
30
|
-
connection:
|
31
|
-
- close
|
32
|
-
response: !ruby/struct:VCR::Response
|
33
|
-
status: !ruby/struct:VCR::ResponseStatus
|
34
|
-
code: 201
|
35
|
-
message: Created
|
36
|
-
headers:
|
37
|
-
cache-control:
|
38
|
-
- no-cache
|
39
|
-
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/account-get-1300476126
|
41
|
-
x-runtime:
|
42
|
-
- "359"
|
43
|
-
content-type:
|
44
|
-
- application/xml; charset=utf-8
|
45
|
-
content-length:
|
46
|
-
- "577"
|
47
|
-
set-cookie:
|
48
|
-
- _recurly_session=c7557d52a2c2a726e0ed9175f5d68c92; domain=.recurly.local; path=/; HttpOnly
|
49
|
-
connection:
|
50
|
-
- close
|
51
|
-
server:
|
52
|
-
- thin 1.2.7 codename No Hup
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>account-get-1300476126</id>
|
57
|
-
<account_code>account-get-1300476126</account_code>
|
58
|
-
<username></username>
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>2dc346a9e4b8494ca581429748814af2</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-03-18T19:34:32Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
73
|
-
method: :get
|
74
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476126.xml
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
authorization:
|
78
|
-
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
-
accept:
|
80
|
-
- application/xml
|
81
|
-
accept-encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
user-agent:
|
84
|
-
- Ruby
|
85
|
-
connection:
|
86
|
-
- close
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
-
code: 200
|
90
|
-
message: OK
|
91
|
-
headers:
|
92
|
-
x-runtime:
|
93
|
-
- "339"
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
etag:
|
97
|
-
- "\"419407323353e568bb7a2f74b4d98825\""
|
98
|
-
cache-control:
|
99
|
-
- private, max-age=0, must-revalidate
|
100
|
-
content-length:
|
101
|
-
- "577"
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=d882e12bc23cf2b43dcd3ca1b0961017; domain=.recurly.local; path=/; HttpOnly
|
104
|
-
connection:
|
105
|
-
- close
|
106
|
-
server:
|
107
|
-
- thin 1.2.7 codename No Hup
|
108
|
-
body: |
|
109
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
-
<account>
|
111
|
-
<id>account-get-1300476126</id>
|
112
|
-
<account_code>account-get-1300476126</account_code>
|
113
|
-
<username></username>
|
114
|
-
<email>verena@test.com</email>
|
115
|
-
<first_name>Verena</first_name>
|
116
|
-
<last_name>Test</last_name>
|
117
|
-
<company_name>Recurly Ruby Gem</company_name>
|
118
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
-
<closed type="boolean">false</closed>
|
120
|
-
<hosted_login_token>2dc346a9e4b8494ca581429748814af2</hosted_login_token>
|
121
|
-
<created_at type="datetime">2011-03-18T19:34:32Z</created_at>
|
122
|
-
<state>active</state>
|
123
|
-
</account>
|
124
|
-
|
125
|
-
http_version: "1.1"
|