The deal is due to take effect from Sunday and involves the exchange of captives held in Gaza for Palestinian prisoners.