The techinician will diagnose the damage,if its water damage coming from the flaps,then you will be charged for the repair.
If the water is leaked into the phone from other parts than the flap,then you might have the chance to prove that its a manufacturer's fault and you could,just could,claim for warranty fix.