domain_id for invoice class taken from domain class except for directly called public static functions