add get_type method to PendingAccount