This offense is committed when any person holding any office, or having been elected to any office, enters into any bargain and sale for any valuable consideration whatever in regard to the office, or sells, resigns, or vacates the office or refuses to qualify and enter upon the discharge of the duties of the office for pecuniary consideration. This offense is also committed when any person offers to buy any office by inducing the incumbent thereof to resign, to vacate, or not to qualify, or when a person directly or indirectly engages in corruptly procuring the resignation of any officer for any pecuniary or other valuable consideration. This offense is a Class C felony. T.C.A. § 39-16-105.