recurly 0.4.8 → 0.4.10
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 +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.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/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- 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
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,164 +0,0 @@
|
|
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-close-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: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/account-close-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "549"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
42
|
-
- "581"
|
43
|
-
server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
-
date:
|
46
|
-
- Thu, 03 Feb 2011 22:17:02 GMT
|
47
|
-
connection:
|
48
|
-
- close
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=1b6b26473ff7d8493d62462e15141df13d06979db5d284e1698a94c5b0c126c9bbb539b3b5045cfbd10f8bd30c3db173cc163a017b00c9597786a91eb9ab2a32%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=d431edb8ee4e7cedb0b2bffd6b1b432b; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>account-close-1296674173</id>
|
57
|
-
<account_code>account-close-1296674173</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>5fd1762fb57f4d9b80fbbddad074fd3f</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:17:01Z</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: :delete
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-close-1296674173.xml
|
75
|
-
body:
|
76
|
-
headers:
|
77
|
-
authorization:
|
78
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
79
|
-
accept:
|
80
|
-
- application/xml
|
81
|
-
user-agent:
|
82
|
-
- Ruby
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
response: !ruby/struct:VCR::Response
|
86
|
-
status: !ruby/struct:VCR::ResponseStatus
|
87
|
-
code: 200
|
88
|
-
message: "OK "
|
89
|
-
headers:
|
90
|
-
cache-control:
|
91
|
-
- no-cache
|
92
|
-
x-runtime:
|
93
|
-
- "356"
|
94
|
-
content-type:
|
95
|
-
- application/xml; charset=utf-8
|
96
|
-
content-length:
|
97
|
-
- "1"
|
98
|
-
server:
|
99
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
100
|
-
date:
|
101
|
-
- Thu, 03 Feb 2011 22:17:04 GMT
|
102
|
-
connection:
|
103
|
-
- close
|
104
|
-
set-cookie:
|
105
|
-
- _recurly_session=87d11d401895ced9897e0024de5403f4; domain=.recurly.local; path=/; HttpOnly
|
106
|
-
body: " "
|
107
|
-
http_version: "1.1"
|
108
|
-
- !ruby/struct:VCR::HTTPInteraction
|
109
|
-
request: !ruby/struct:VCR::Request
|
110
|
-
method: :get
|
111
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-close-1296674173.xml
|
112
|
-
body:
|
113
|
-
headers:
|
114
|
-
authorization:
|
115
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
116
|
-
accept:
|
117
|
-
- application/xml
|
118
|
-
accept-encoding:
|
119
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
120
|
-
user-agent:
|
121
|
-
- Ruby
|
122
|
-
connection:
|
123
|
-
- close
|
124
|
-
response: !ruby/struct:VCR::Response
|
125
|
-
status: !ruby/struct:VCR::ResponseStatus
|
126
|
-
code: 200
|
127
|
-
message: "OK "
|
128
|
-
headers:
|
129
|
-
x-runtime:
|
130
|
-
- "184"
|
131
|
-
content-type:
|
132
|
-
- application/xml; charset=utf-8
|
133
|
-
etag:
|
134
|
-
- "\"0d31c946c075a2c560335a916d4b359f\""
|
135
|
-
cache-control:
|
136
|
-
- private, max-age=0, must-revalidate
|
137
|
-
content-length:
|
138
|
-
- "580"
|
139
|
-
server:
|
140
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
141
|
-
date:
|
142
|
-
- Thu, 03 Feb 2011 22:17:05 GMT
|
143
|
-
connection:
|
144
|
-
- close
|
145
|
-
set-cookie:
|
146
|
-
- _recurly_session=22d04ea39adc6f1d7a86140c413f6326; domain=.recurly.local; path=/; HttpOnly
|
147
|
-
body: |
|
148
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
149
|
-
<account>
|
150
|
-
<id>account-close-1296674173</id>
|
151
|
-
<account_code>account-close-1296674173</account_code>
|
152
|
-
<username></username>
|
153
|
-
<email>verena@test.com</email>
|
154
|
-
<first_name>Verena</first_name>
|
155
|
-
<last_name>Test</last_name>
|
156
|
-
<company_name>Recurly Ruby Gem</company_name>
|
157
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
158
|
-
<closed type="boolean">true</closed>
|
159
|
-
<hosted_login_token>5fd1762fb57f4d9b80fbbddad074fd3f</hosted_login_token>
|
160
|
-
<created_at type="datetime">2011-02-03T22:17:01Z</created_at>
|
161
|
-
<state>closed</state>
|
162
|
-
</account>
|
163
|
-
|
164
|
-
http_version: "1.1"
|
@@ -1,52 +0,0 @@
|
|
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-code>
|
10
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
11
|
-
</account>
|
12
|
-
|
13
|
-
headers:
|
14
|
-
authorization:
|
15
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
-
content-type:
|
17
|
-
- application/xml
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
user-agent:
|
21
|
-
- Ruby
|
22
|
-
connection:
|
23
|
-
- close
|
24
|
-
response: !ruby/struct:VCR::Response
|
25
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
-
code: 422
|
27
|
-
message: ""
|
28
|
-
headers:
|
29
|
-
cache-control:
|
30
|
-
- no-cache
|
31
|
-
x-runtime:
|
32
|
-
- "243"
|
33
|
-
content-type:
|
34
|
-
- application/xml; charset=utf-8
|
35
|
-
content-length:
|
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
|
43
|
-
set-cookie:
|
44
|
-
- _recurly_session=649873ed76f39641cf1827cc0ddc1637; domain=.recurly.local; path=/; HttpOnly
|
45
|
-
body: |
|
46
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
47
|
-
<errors>
|
48
|
-
<error field="account_code">account code can't be blank</error>
|
49
|
-
<error field="account_code">account code is invalid</error>
|
50
|
-
</errors>
|
51
|
-
|
52
|
-
http_version: "1.1"
|
@@ -1,116 +0,0 @@
|
|
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-exists</account-code>
|
10
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
11
|
-
</account>
|
12
|
-
|
13
|
-
headers:
|
14
|
-
authorization:
|
15
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
-
content-type:
|
17
|
-
- application/xml
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
user-agent:
|
21
|
-
- Ruby
|
22
|
-
connection:
|
23
|
-
- close
|
24
|
-
response: !ruby/struct:VCR::Response
|
25
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
-
code: 201
|
27
|
-
message: "Created "
|
28
|
-
headers:
|
29
|
-
cache-control:
|
30
|
-
- no-cache
|
31
|
-
location:
|
32
|
-
- http://litle-test.recurly.local:3000/accounts/account-exists
|
33
|
-
x-runtime:
|
34
|
-
- "624"
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
content-length:
|
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
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=2dae3fbadf922ba54a1abda9d8a5eed9412b074f66caf3d75fe4d431df3206bc5e4aff674711cc28c09292b1b1cd1866cec2816d33d8b30a27c44e3f030b5899%3A%3A; domain=.recurly.local; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
|
49
|
-
body: |
|
50
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
-
<account>
|
52
|
-
<id>account-exists</id>
|
53
|
-
<account_code>account-exists</account_code>
|
54
|
-
<username></username>
|
55
|
-
<email></email>
|
56
|
-
<first_name></first_name>
|
57
|
-
<last_name></last_name>
|
58
|
-
<company_name></company_name>
|
59
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
60
|
-
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>7ae163c7be574c20b32a11fdb5f81d6f</hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-02-03T22:17:09Z</created_at>
|
63
|
-
<state>active</state>
|
64
|
-
</account>
|
65
|
-
|
66
|
-
http_version: "1.1"
|
67
|
-
- !ruby/struct:VCR::HTTPInteraction
|
68
|
-
request: !ruby/struct:VCR::Request
|
69
|
-
method: :post
|
70
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
71
|
-
body: |
|
72
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
73
|
-
<account>
|
74
|
-
<account-code>account-exists</account-code>
|
75
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
76
|
-
</account>
|
77
|
-
|
78
|
-
headers:
|
79
|
-
authorization:
|
80
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
81
|
-
content-type:
|
82
|
-
- application/xml
|
83
|
-
accept:
|
84
|
-
- "*/*"
|
85
|
-
user-agent:
|
86
|
-
- Ruby
|
87
|
-
connection:
|
88
|
-
- close
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 422
|
92
|
-
message: ""
|
93
|
-
headers:
|
94
|
-
cache-control:
|
95
|
-
- no-cache
|
96
|
-
x-runtime:
|
97
|
-
- "344"
|
98
|
-
content-type:
|
99
|
-
- application/xml; charset=utf-8
|
100
|
-
content-length:
|
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
|
108
|
-
set-cookie:
|
109
|
-
- _recurly_session=7b561d0ba4f22a602daf6c6d4c8c2713; domain=.recurly.local; path=/; HttpOnly
|
110
|
-
body: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<errors>
|
113
|
-
<error field="account_code">account code has already been taken</error>
|
114
|
-
</errors>
|
115
|
-
|
116
|
-
http_version: "1.1"
|
@@ -1,66 +0,0 @@
|
|
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>d00d-1296674173</account-code>
|
10
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
11
|
-
</account>
|
12
|
-
|
13
|
-
headers:
|
14
|
-
authorization:
|
15
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
16
|
-
content-type:
|
17
|
-
- application/xml
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
user-agent:
|
21
|
-
- Ruby
|
22
|
-
connection:
|
23
|
-
- close
|
24
|
-
response: !ruby/struct:VCR::Response
|
25
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
-
code: 201
|
27
|
-
message: "Created "
|
28
|
-
headers:
|
29
|
-
cache-control:
|
30
|
-
- no-cache
|
31
|
-
location:
|
32
|
-
- http://litle-test.recurly.local:3000/accounts/d00d-1296674173
|
33
|
-
x-runtime:
|
34
|
-
- "528"
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
content-length:
|
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
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=10559a1cbfbba0fea366c4455adba56c3e5be9278dd028d7d8d4c0850f3ddb93064ee03f52d56a4a89b9bdf48f016b1f25e7bcd6fcc6f6eba8d43bfecd301d7b%3A%3A; domain=.recurly.local; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
|
49
|
-
body: |
|
50
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
-
<account>
|
52
|
-
<id>d00d-1296674173</id>
|
53
|
-
<account_code>d00d-1296674173</account_code>
|
54
|
-
<username></username>
|
55
|
-
<email></email>
|
56
|
-
<first_name></first_name>
|
57
|
-
<last_name></last_name>
|
58
|
-
<company_name></company_name>
|
59
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
60
|
-
<closed type="boolean">false</closed>
|
61
|
-
<hosted_login_token>d0688c62f1de4ce396d7bbaed31d3e6e</hosted_login_token>
|
62
|
-
<created_at type="datetime">2011-02-03T22:16:45Z</created_at>
|
63
|
-
<state>active</state>
|
64
|
-
</account>
|
65
|
-
|
66
|
-
http_version: "1.1"
|
@@ -1,70 +0,0 @@
|
|
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-create-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: 201
|
31
|
-
message: "Created "
|
32
|
-
headers:
|
33
|
-
cache-control:
|
34
|
-
- no-cache
|
35
|
-
location:
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/account-create-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "527"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
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
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=c90c539b78ba26fac812fd274913c0f8b7d3a190780551074c921380f00aa22a0defef23b28f95e5db1a77a937acf580de443c1c98d4ebced05d867b30a44adc%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>account-create-1296674173</id>
|
57
|
-
<account_code>account-create-1296674173</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>85817f8d3fba432b833dc8f36cb0e598</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:16:43Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|