Design a component/microservices whose responsibility is to expose APIs to deduct the toll, generate a receipt,and sent it over text/email given the bar code details.