implemented 'set_deadline' (through callback) for both credits and debits