The Pirates received minor leaguer Jesus Manuel Valdez in the deal.