Rachin Ravindra and Mark Chapman hit half-centuries in a 112-run second-wicket partnership which helped NZ to a 113-run win over Sri Lanka in their second ODI.