Note
All commands here that interact with the printer (anything that sends a command) will resolve the returned jQuery Promise when the request to the server enqueuing the command has been processed, not when the command was actually sent to or processed by the printer.
See the note here <sec-api-printer>
for an explanation why that is the case.
REST API: Printer operations <sec-api-printer>
Documentation of the API functionality covered with this client library module.