Mendez, a native of the Dominican Republic, was ranked as the No. 15 prospect in the Phillies farm system by Baseball America. He’s batting .290 in 85 minor league games with eight homers, 46 RBI and almost as many walks (40) as strikeouts (44) at Reading of the Class AA Eastern League.

Villoria, who turns 17 in two weeks, is in his first pro season after signing with the Phillies in January. He is with the with the Dominican Summer League Phillies Red.

Bader, 31, signed a one-year, $6.25 million contract with the Twins before the season, and he delivered his best offensive season in years. In 96 games, he hit .258 with 12 homers and 38 RBIs while posting a .339 on-base percentage. Playing left field regularly for the first time in his career, he’s played Gold Glove-caliber defense.

The Twins aren’t sending any money to the Phillies as part of the deal. Bader is owed a $500,000 assignment bonus via the trade, and there is a $1.5 million buyout on his mutual option for next season.

The return for Stewart is outfielder James Outman, 28, who is hitting .289 with 20 HR and 74 RBI for Oklahoma City in a hitter-friendly AAA league. He has played in 22 games with the Dodgers this season. Stewart was drafted by L.A. in 2014 and pitched in four big-league seasons for the club. The 33-year-old pitched in 39 games this season, with a 2.38 ERA and 41 strikeouts in 34 innings.

Stewart isn’t eligible to reach free agency until after the 2027 season, though his age and injury history meant he didn’t quite hold the same appeal as other late-inning relievers with multiple years of team control.