dnd 5e – Do Hunter’s Mark and Radiant Sun Bolt interact?

The bolt in question:

You gain a ranged spell attack that you can use with
the Attack action.

Hunter’s Mark:

Until the spell ends, you deal an extra 1d6 damage to the target whenever
you hit it with a weapon attack.

But Hex would work:

Until the spell ends. you deal an extra 1d6 necrotic damage to the target whenever you hit it with an attack.

Emphasis mine in all three quotes.