Some of the methods in the API have inconsistent datatypes, so that a $confirm_time is a double and an $end_time is an integer.
These methods appear to have these signatures because that was the easiest implementation at the time ;-) but we need to wrap them in easier to use api style methods with consistent signatures.