(1) Except in the case of gestational surrogacy, any child born within wedlock who has been conceived by the means of artificial or in vitro insemination is irrebuttably presumed to be the child of the husband and wife, provided that both husband and wife have consented in writing to the artificial or in vitro insemination.
(2) Except in the case of gestational surrogacy, any child born within wedlock who has been conceived by means of donated eggs or preembryos shall be irrebuttably presumed to be the child of the recipient gestating woman and her husband, provided that both parties have consented in writing to the use of donated eggs or preembryos.