Chapman’s undefeated ton helps New Zealand end Pakistan T20 series 2-2