CustomerAddressReader
in package
Class CustomerAddressReader
Table of Contents
- $connection : Connection
- __construct() : mixed
- getCustomerAddresses() : array<string|int, mixed>
- getDefaultAddress() : array<string|int, mixed>
- Returns the default address of a customer
- getStateId() : int
- createQueryBuilderForDefaultAddresses() : QueryBuilder
Properties
$connection
private
Connection
$connection
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —getCustomerAddresses()
public
getCustomerAddresses(CustomerId $customerId) : array<string|int, mixed>
Parameters
- $customerId : CustomerId
Tags
Return values
array<string|int, mixed> —getDefaultAddress()
Returns the default address of a customer
public
getDefaultAddress(CustomerId $customerId) : array<string|int, mixed>
Parameters
- $customerId : CustomerId
Tags
Return values
array<string|int, mixed> —getStateId()
public
getStateId(string $countryIsoCode, string $stateName) : int
Parameters
- $countryIsoCode : string
- $stateName : string
Tags
Return values
int —createQueryBuilderForDefaultAddresses()
private
createQueryBuilderForDefaultAddresses() : QueryBuilder