You need to know that thermodynamics are greatly affected by state.
Hence you need to give precise states of all the reactants and compounds.
Ca(g)⟶Ca+(g)+e− and Ca(s)⟶Ca+(s)+e− has quite a difference.
Secondly for any element, ionization energy is always endothermic. Let me define ionization energy.
Ionization Energy is the energy required to remove one mole of electrons from one mole of gaseous atoms or ions.
Enthalpy Change = positive Hence process is endothermic
Electron affinity is the enthalpy change which occurs when a mole of electrons combine with a mole of gaseous ions or atoms.
Now, electron affinity depends on the element under study. This webpage mentioned below will give detailed insight about electron affinity and its trends.