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
@@ -1,121 +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>credit-list-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/credit-list-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "626"
|
39
|
-
content-type:
|
40
|
-
- application/xml; charset=utf-8
|
41
|
-
content-length:
|
42
|
-
- "577"
|
43
|
-
server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
-
date:
|
46
|
-
- Thu, 03 Feb 2011 22:19:39 GMT
|
47
|
-
connection:
|
48
|
-
- close
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=d86c504a0562390e68171373cc3b2184ad86995c1c38a5ce1c096465e3ad732c653c3a125aa8d700dc77ad462cd058a505b6d1c36eef5296c18f86c0d475aa26%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=22a39ea08b27ec7736f5a0c6c419fa03; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>credit-list-1296674173</id>
|
57
|
-
<account_code>credit-list-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>da5204b982da4345903186d77051c22b</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:19: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: :post
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/credit-list-1296674173/credits.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<credit>
|
78
|
-
<amount type="integer">1</amount>
|
79
|
-
<description>one</description>
|
80
|
-
</credit>
|
81
|
-
|
82
|
-
headers:
|
83
|
-
authorization:
|
84
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
accept:
|
88
|
-
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
|
-
connection:
|
92
|
-
- close
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
95
|
-
code: 422
|
96
|
-
message: ""
|
97
|
-
headers:
|
98
|
-
cache-control:
|
99
|
-
- no-cache
|
100
|
-
x-runtime:
|
101
|
-
- "406"
|
102
|
-
content-type:
|
103
|
-
- application/xml; charset=utf-8
|
104
|
-
content-length:
|
105
|
-
- "223"
|
106
|
-
server:
|
107
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
-
date:
|
109
|
-
- Thu, 03 Feb 2011 22:19:41 GMT
|
110
|
-
connection:
|
111
|
-
- close
|
112
|
-
set-cookie:
|
113
|
-
- _recurly_session=51aa080a604f6dd4eb995da2be14e4a9; domain=.recurly.local; path=/; HttpOnly
|
114
|
-
body: |
|
115
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
-
<errors>
|
117
|
-
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
-
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
119
|
-
</errors>
|
120
|
-
|
121
|
-
http_version: "1.1"
|
@@ -1,121 +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>credit-lookup-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/credit-lookup-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "491"
|
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:19:44 GMT
|
47
|
-
connection:
|
48
|
-
- close
|
49
|
-
set-cookie:
|
50
|
-
- account_credentials=1197676125ce16ccfea313d064a8523f58a9420f0c704a8509499ea580be26898e6bb6928583a4d46b5c0d9ed09125557b70759705ae12b06b3f169100b9f437%3A%3A; domain=.recurly.local; path=/
|
51
|
-
- ""
|
52
|
-
- _recurly_session=6182947a2be94b25ac887df4d6a2ef7b; domain=.recurly.local; path=/; HttpOnly
|
53
|
-
body: |
|
54
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
-
<account>
|
56
|
-
<id>credit-lookup-1296674173</id>
|
57
|
-
<account_code>credit-lookup-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>56d6811b6e544ca489428f78129cf624</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:19:44Z</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: :post
|
74
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/credit-lookup-1296674173/credits.xml
|
75
|
-
body: |
|
76
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
-
<credit>
|
78
|
-
<amount type="float">13.15</amount>
|
79
|
-
<description>free moniez 4 u</description>
|
80
|
-
</credit>
|
81
|
-
|
82
|
-
headers:
|
83
|
-
authorization:
|
84
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
accept:
|
88
|
-
- "*/*"
|
89
|
-
user-agent:
|
90
|
-
- Ruby
|
91
|
-
connection:
|
92
|
-
- close
|
93
|
-
response: !ruby/struct:VCR::Response
|
94
|
-
status: !ruby/struct:VCR::ResponseStatus
|
95
|
-
code: 422
|
96
|
-
message: ""
|
97
|
-
headers:
|
98
|
-
cache-control:
|
99
|
-
- no-cache
|
100
|
-
x-runtime:
|
101
|
-
- "407"
|
102
|
-
content-type:
|
103
|
-
- application/xml; charset=utf-8
|
104
|
-
content-length:
|
105
|
-
- "223"
|
106
|
-
server:
|
107
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
-
date:
|
109
|
-
- Thu, 03 Feb 2011 22:19:46 GMT
|
110
|
-
connection:
|
111
|
-
- close
|
112
|
-
set-cookie:
|
113
|
-
- _recurly_session=541fc18675afc06fec2720190f6f202a; domain=.recurly.local; path=/; HttpOnly
|
114
|
-
body: |
|
115
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
-
<errors>
|
117
|
-
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
-
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
119
|
-
</errors>
|
120
|
-
|
121
|
-
http_version: "1.1"
|
@@ -1,225 +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/company/plans.xml
|
6
|
-
body: |
|
7
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
-
<plan>
|
9
|
-
<plan-code>test_1296674173</plan-code>
|
10
|
-
<name>Test Plan 1296674173</name>
|
11
|
-
<unit-amount-in-cents type="integer">100</unit-amount-in-cents>
|
12
|
-
<plan-interval-length type="integer">1</plan-interval-length>
|
13
|
-
<plan-interval-unit>months</plan-interval-unit>
|
14
|
-
<trial-interval-length type="integer">0</trial-interval-length>
|
15
|
-
<trial-interval-unit>months</trial-interval-unit>
|
16
|
-
</plan>
|
17
|
-
|
18
|
-
headers:
|
19
|
-
authorization:
|
20
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
21
|
-
content-type:
|
22
|
-
- application/xml
|
23
|
-
accept:
|
24
|
-
- "*/*"
|
25
|
-
user-agent:
|
26
|
-
- Ruby
|
27
|
-
connection:
|
28
|
-
- close
|
29
|
-
response: !ruby/struct:VCR::Response
|
30
|
-
status: !ruby/struct:VCR::ResponseStatus
|
31
|
-
code: 201
|
32
|
-
message: "Created "
|
33
|
-
headers:
|
34
|
-
cache-control:
|
35
|
-
- no-cache
|
36
|
-
location:
|
37
|
-
- http://litle-test.recurly.local:3000/company/plans/test_1296674173
|
38
|
-
x-runtime:
|
39
|
-
- "241"
|
40
|
-
content-type:
|
41
|
-
- application/xml; charset=utf-8
|
42
|
-
content-length:
|
43
|
-
- "1175"
|
44
|
-
server:
|
45
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
46
|
-
date:
|
47
|
-
- Thu, 03 Feb 2011 22:21:01 GMT
|
48
|
-
connection:
|
49
|
-
- close
|
50
|
-
set-cookie:
|
51
|
-
- _recurly_session=78095201d25b7997c5a4f115c528d8b9; domain=.recurly.local; path=/; HttpOnly
|
52
|
-
body: |
|
53
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
-
<plan>
|
55
|
-
<plan_code>test_1296674173</plan_code>
|
56
|
-
<name>Test Plan 1296674173</name>
|
57
|
-
<description></description>
|
58
|
-
<success_url></success_url>
|
59
|
-
<cancel_url></cancel_url>
|
60
|
-
<created_at type="datetime">2011-02-03T22:21:01Z</created_at>
|
61
|
-
<unit_amount_in_cents type="integer">100</unit_amount_in_cents>
|
62
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
63
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
64
|
-
<plan_interval_unit>months</plan_interval_unit>
|
65
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
66
|
-
<trial_interval_unit>months</trial_interval_unit>
|
67
|
-
<latest_version depreciated="true">
|
68
|
-
<version type="integer">1</version>
|
69
|
-
<unit_amount_in_cents type="integer">100</unit_amount_in_cents>
|
70
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
71
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
72
|
-
<plan_interval_unit>months</plan_interval_unit>
|
73
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
74
|
-
<trial_interval_unit>months</trial_interval_unit>
|
75
|
-
<created_at type="datetime">2011-02-03T22:21:01Z</created_at>
|
76
|
-
</latest_version>
|
77
|
-
</plan>
|
78
|
-
|
79
|
-
http_version: "1.1"
|
80
|
-
- !ruby/struct:VCR::HTTPInteraction
|
81
|
-
request: !ruby/struct:VCR::Request
|
82
|
-
method: :get
|
83
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
|
84
|
-
body:
|
85
|
-
headers:
|
86
|
-
authorization:
|
87
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
88
|
-
accept:
|
89
|
-
- application/xml
|
90
|
-
accept-encoding:
|
91
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
92
|
-
user-agent:
|
93
|
-
- Ruby
|
94
|
-
connection:
|
95
|
-
- close
|
96
|
-
response: !ruby/struct:VCR::Response
|
97
|
-
status: !ruby/struct:VCR::ResponseStatus
|
98
|
-
code: 200
|
99
|
-
message: "OK "
|
100
|
-
headers:
|
101
|
-
x-runtime:
|
102
|
-
- "204"
|
103
|
-
content-type:
|
104
|
-
- application/xml; charset=utf-8
|
105
|
-
etag:
|
106
|
-
- "\"849df91f38a22728cb40a45a0e77cddd\""
|
107
|
-
cache-control:
|
108
|
-
- private, max-age=0, must-revalidate
|
109
|
-
content-length:
|
110
|
-
- "1175"
|
111
|
-
server:
|
112
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
113
|
-
date:
|
114
|
-
- Thu, 03 Feb 2011 22:21:03 GMT
|
115
|
-
connection:
|
116
|
-
- close
|
117
|
-
set-cookie:
|
118
|
-
- _recurly_session=c677cb9861276bca2f1797f643394bc0; domain=.recurly.local; path=/; HttpOnly
|
119
|
-
body: |
|
120
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
121
|
-
<plan>
|
122
|
-
<plan_code>test_1296674173</plan_code>
|
123
|
-
<name>Test Plan 1296674173</name>
|
124
|
-
<description></description>
|
125
|
-
<success_url></success_url>
|
126
|
-
<cancel_url></cancel_url>
|
127
|
-
<created_at type="datetime">2011-02-03T22:21:01Z</created_at>
|
128
|
-
<unit_amount_in_cents type="integer">100</unit_amount_in_cents>
|
129
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
130
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
131
|
-
<plan_interval_unit>months</plan_interval_unit>
|
132
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
133
|
-
<trial_interval_unit>months</trial_interval_unit>
|
134
|
-
<latest_version depreciated="true">
|
135
|
-
<version type="integer">1</version>
|
136
|
-
<unit_amount_in_cents type="integer">100</unit_amount_in_cents>
|
137
|
-
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
138
|
-
<plan_interval_length type="integer">1</plan_interval_length>
|
139
|
-
<plan_interval_unit>months</plan_interval_unit>
|
140
|
-
<trial_interval_length type="integer">0</trial_interval_length>
|
141
|
-
<trial_interval_unit>months</trial_interval_unit>
|
142
|
-
<created_at type="datetime">2011-02-03T22:21:01Z</created_at>
|
143
|
-
</latest_version>
|
144
|
-
</plan>
|
145
|
-
|
146
|
-
http_version: "1.1"
|
147
|
-
- !ruby/struct:VCR::HTTPInteraction
|
148
|
-
request: !ruby/struct:VCR::Request
|
149
|
-
method: :delete
|
150
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
|
151
|
-
body:
|
152
|
-
headers:
|
153
|
-
authorization:
|
154
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
155
|
-
accept:
|
156
|
-
- application/xml
|
157
|
-
user-agent:
|
158
|
-
- Ruby
|
159
|
-
connection:
|
160
|
-
- close
|
161
|
-
response: !ruby/struct:VCR::Response
|
162
|
-
status: !ruby/struct:VCR::ResponseStatus
|
163
|
-
code: 200
|
164
|
-
message: "OK "
|
165
|
-
headers:
|
166
|
-
cache-control:
|
167
|
-
- no-cache
|
168
|
-
x-runtime:
|
169
|
-
- "263"
|
170
|
-
content-type:
|
171
|
-
- application/xml; charset=utf-8
|
172
|
-
content-length:
|
173
|
-
- "1"
|
174
|
-
server:
|
175
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
176
|
-
date:
|
177
|
-
- Thu, 03 Feb 2011 22:21:05 GMT
|
178
|
-
connection:
|
179
|
-
- close
|
180
|
-
set-cookie:
|
181
|
-
- _recurly_session=234ace3f7cbd18aa9ce06a3c30a08685; domain=.recurly.local; path=/; HttpOnly
|
182
|
-
body: " "
|
183
|
-
http_version: "1.1"
|
184
|
-
- !ruby/struct:VCR::HTTPInteraction
|
185
|
-
request: !ruby/struct:VCR::Request
|
186
|
-
method: :get
|
187
|
-
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
|
188
|
-
body:
|
189
|
-
headers:
|
190
|
-
authorization:
|
191
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
192
|
-
accept:
|
193
|
-
- application/xml
|
194
|
-
accept-encoding:
|
195
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
196
|
-
user-agent:
|
197
|
-
- Ruby
|
198
|
-
connection:
|
199
|
-
- close
|
200
|
-
response: !ruby/struct:VCR::Response
|
201
|
-
status: !ruby/struct:VCR::ResponseStatus
|
202
|
-
code: 404
|
203
|
-
message: "Not Found "
|
204
|
-
headers:
|
205
|
-
cache-control:
|
206
|
-
- no-cache
|
207
|
-
content-type:
|
208
|
-
- application/xml; charset=utf-8
|
209
|
-
content-length:
|
210
|
-
- "90"
|
211
|
-
server:
|
212
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
213
|
-
date:
|
214
|
-
- Thu, 03 Feb 2011 22:21:07 GMT
|
215
|
-
connection:
|
216
|
-
- close
|
217
|
-
set-cookie:
|
218
|
-
- _recurly_session=f3e2b534bf89931ddddb9c231594c4b6; domain=.recurly.local; path=/; HttpOnly
|
219
|
-
body: |
|
220
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
221
|
-
<errors>
|
222
|
-
<error>Plan not found</error>
|
223
|
-
</errors>
|
224
|
-
|
225
|
-
http_version: "1.1"
|