AddressBookServiceInterface

Extends

Interface AddressBookServiceInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Method to add a new address in the address book

createNewAddress(\AddressBlockInterface $addressBlock, \CustomerInterface $customer) : \CustomerAddressInterface

Arguments

$addressBlock

\AddressBlockInterface

$customer

\CustomerInterface

Response

\CustomerAddressInterface

Method to delete an address from the address book

deleteAddress(\CustomerAddressInterface $address) 

Arguments

Filter registered addresses by string.

filterAddresses(string $p_keyword, \Pager|null $pager = null, array $sorters = array()) : array

Arguments

$p_keyword

string

Used to filter the address records.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array

Returns an array of CustomerAddress objects.

Get all registered addresses.

getAllAddresses(\Pager|null $pager = null, array $sorters = array()) : array

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

array

Returns an array of CustomerAddress objects.

Method to update an address in the address book

updateAddress(\AddressBlockInterface $addressBlock, \CustomerAddressInterface $address) : \CustomerAddressInterface