Air New Zealand says it will buy eight Boeing 787-10 Dreamliner aircraft.