So you need Gift Certificates, Auto Rounding (on payment?) and want to apply Member discount which I assume is some number you save in your customer entity data?
Gift Certificate Tutorial (V5)
Auto rounding (works in v4 and v5)
Customer based discount can be handled in many different ways but its something that relatively easy to do in V5.