1 <?php
2 /* --------------------------------------------------------------
3 VatNumberValidatorInterface.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 VatNumberValidatorInterface
14 *
15 * @category System
16 * @package Customer
17 * @subpackage Interfaces
18 */
19 interface VatNumberValidatorInterface
20 {
21
22 /**
23 * Returns the VAT number status code ID.
24 *
25 * @param string $p_vatNumber VAT number.
26 * @param int $p_countryId Country ID.
27 * @param bool $p_isGuest Is customer a guest?
28 *
29 * @return int VAT number status code ID.
30 */
31 public function getVatNumberStatusCodeId($p_vatNumber, $p_countryId, $p_isGuest);
32
33
34 /**
35 * Returns the customer status ID.
36 *
37 * @param string $p_vatNumber VAT number.
38 * @param int $p_countryId Country ID.
39 * @param bool $p_isGuest Is customer a guest?
40 *
41 * @return int Customer status ID.
42 */
43 public function getCustomerStatusId($p_vatNumber, $p_countryId, $p_isGuest);
44
45
46 /**
47 * Returns the error status
48 *
49 * @param string $p_vatNumber VAT number.
50 * @param int $p_countryId Country ID.
51 * @param bool $p_isGuest Is customer a guest?
52 *
53 * @return bool Error status.
54 */
55 public function getErrorStatus($p_vatNumber, $p_countryId, $p_isGuest);
56 }
57