The only place to send reprint the last receipt is on the gui interface, so I think is better to leave this function as an api standard and use gui functions to load and send the data required for printing last receipt