A client is the one to be served, economically or not, the economical one being a customer. A customer (purchaser) is not necessarily a client, when product(s) rather than services are offered.
A consumer is the one who uses products or services, paid or not. So, a consumer is not necessarily a customer. Children at toy shops are usually consumers, their mothers being customers.