There are three types of fasting:
Of course, it must be understood that even the fasting of noble and the fasting of most distinguished notables in itself contains infinite degrees and ranks, i.e. like the believers containing various degrees and ranks in accordance with their piety and asceticism, inevitably their fasting too will differ on the basis of the magnitude of their piety and asceticism. Considering that each believer possesses a particular degree of faith and piety, it could be said that faith, piety, and fasting have as much as ranks and degrees as there are the number of believers.
Adapted from: "Spiritual Journey of the Mystics (Suluk-i Arifan)" by: "Mirza Javad Aqa Maleki Tabrizi"