Add QueryRebillEvent function and tests