1 <?php
2 /* --------------------------------------------------------------
3 CustomerRegistrationInputValidatorServiceInterface.inc.php 2015-02-18 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Interface CustomerRegistrationInputValidatorServiceInterface
14 *
15 * @category System
16 * @package Customer
17 * @subpackage Interfaces
18 */
19 interface CustomerRegistrationInputValidatorServiceInterface
20 {
21 /**
22 * Validates the entered customer data with an array of parameters.
23 *
24 * Expects array with following keys:
25 * - gender
26 * - firstname
27 * - lastname
28 * - dob (date of birth)
29 * - company
30 * - email_address
31 * - email_address_confirm
32 * - postcode
33 * - city
34 * - country
35 * - state (ID or name)
36 * - telephone
37 * - vat
38 * - password
39 * - confirmation
40 *
41 * @param array $inputArray Customer data input.
42 *
43 * @return bool Is customer data valid?
44 */
45 public function validateCustomerDataByArray(array $inputArray);
46
47
48 /**
49 * Validate the entered guest data with an array of parameters.
50 *
51 * expects array with following keys:
52 * - gender
53 * - firstname
54 * - lastname
55 * - dob (date of birth)
56 * - company
57 * - email_address
58 * - email_address_confirm
59 * - postcode
60 * - city
61 * - country
62 * - state (ID or name)
63 * - telephone
64 * - vat
65 *
66 * @param array $inputArray Guest customer data input.
67 *
68 * @return bool Is guest customer data valid?
69 */
70 public function validateGuestDataByArray(array $inputArray);
71 }
72