gen: update to latest APIs

Tests are passing but more work is required to update
the logic of the ActiveMerchant code generator.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>