Seems GraphQL mutation payTerminalTicket() in v5.1.62 is missing an important argument, that being the amount … it also does not return remainingAmount.

When I execute this mutation in 5.1.62, it pays the ticket in FULL, presumably because the amount parameter is missing (ignored), and thus explains that remainingAmount would not be required because it would always be 0 anyway.