“(1) The chief executive may arrange for the use, under the chief executive's control, of automated electronic systems for any purposes for which the chief executive, the Customs, or a Customs officer may, or must, under the designated border processing law,—
“(2) An arrangement under subsection (1)(a) may (without limitation) involve use of an automated electronic system to make a decision by analysing the information (if any) about a person that is held by the chief executive, or to which the chief executive has access, using criteria predetermined by the chief executive.
“(3) The chief executive must not under subsection (1) arrange for use of an automated electronic system in relation to a decision, power, obligation, or related action unless satisfied that—
“(a) the system has the capacity with reasonable reliability to make the decision, exercise the power, comply with the obligation, or take the related action; and
“(b) there are also available for the person affected 1 or more alternative ways of making the decision, exercising the power, complying with the obligation, or taking the related action, and each of those alternative ways involves a person.
“(4) Before concluding for the first time, varying significantly, or revoking and replacing an arrangement under subsection (1), the chief executive must consult with the Privacy Commissioner on the terms, and any privacy implications, of the proposed initial arrangement, significant variation, or replacement arrangement.
“(5) A decision made, power exercised, obligation complied with, or related action taken using an automated electronic system in accordance with an arrangement under subsection (1) must for all purposes be treated as a decision made, power exercised, obligation complied with, or related action taken by the chief executive, the Customs, or a Customs officer (as the case may be) who or that is authorised by the designated border processing law to make that decision, exercise that power, comply with that obligation, or take that related action.
“(6) An automated electronic system used in accordance with an arrangement under subsection (1) may include components outside New Zealand, and may also be used—
“(a) for making decisions, exercising powers, complying with obligations, or taking related actions under other enactments; and
“(7) For the purposes of this section and sections 274B and 274C, the following provisions (and any regulations made under them, or made under this Act and made for their purposes) are the designated border processing law:
“(c) Parts 13 to 15 and 17 (offences, forfeiture and seizure, evidence, and miscellaneous provisions):
“Compare: 1987 No 74 s 125AB(5); Australian Citizenship Act 2007 (Aust) s 48; Migration Act 1958 (Aust) s 495A