1 <?php
2 /* --------------------------------------------------------------
3 AddressBookServiceInterface.inc.php 2015-02-06 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 AddressBookServiceInterface
14 *
15 * @category System
16 * @package Customer
17 * @subpackage Interfaces
18 */
19 interface AddressBookServiceInterface
20 {
21 /**
22 * Method to add a new address in the address book
23 *
24 * @param AddressBlockInterface $addressBlock
25 * @param CustomerInterface $customer
26 *
27 * @return CustomerAddressInterface
28 */
29 public function createNewAddress(AddressBlockInterface $addressBlock, CustomerInterface $customer);
30
31
32 /**
33 * Method to update an address in the address book
34 *
35 * @param AddressBlockInterface $addressBlock
36 * @param CustomerAddressInterface $address
37 *
38 * @return CustomerAddressInterface
39 */
40 public function updateAddress(AddressBlockInterface $addressBlock, CustomerAddressInterface $address);
41
42
43 /**
44 * Method to delete an address from the address book
45 *
46 * @param CustomerAddressInterface $address
47 */
48 public function deleteAddress(CustomerAddressInterface $address);
49 }