Account voucher migrate new api.

Hello,
i have migrate account vocuher into new api and fixed some tarcebacks and yml test cases.
Thanks.
This statement throws an error : next_by_id() takes exactly 1 argument (2 given). Use recordset(s) to call this method.