CustomerAddressRepository
in package
implements
CustomerAddressRepository
Class CustomerAddressRepository
Interfaces, Classes and Traits
- CustomerAddressRepository
- Interface CustomerAddressRepository
Table of Contents
- $mapper : CustomerAddressMapper
- $reader : CustomerAddressReader
- $writer : CustomerAddressWriter
- __construct() : mixed
- createCustomerAddress() : CustomerAddressId
- Creates a new customer address and returns its ID.
- createCustomerAddresses() : CustomerAddressIds
- Creates multiple new customer address and returns its ID.
- deleteCustomerAddress() : void
- getAddresses() : CustomerAddresses
- Returns the addresses of a customer
- getStateId() : int
- storeCustomerAddresses() : void
- Stores multiple customer addresses.
Properties
$mapper
private
CustomerAddressMapper
$mapper
$reader
private
CustomerAddressReader
$reader
$writer
private
CustomerAddressWriter
$writer
Methods
__construct()
public
__construct(CustomerAddressReader $reader, CustomerAddressWriter $writer, CustomerAddressMapper $mapper) : mixed
Parameters
- $reader : CustomerAddressReader
- $writer : CustomerAddressWriter
- $mapper : CustomerAddressMapper
Return values
mixed —createCustomerAddress()
Creates a new customer address and returns its ID.
public
createCustomerAddress(CustomerId $customerId, PersonalInformation $personalInformation, LocationInformation $locationInformation) : CustomerAddressId
Parameters
- $customerId : CustomerId
- $personalInformation : PersonalInformation
- $locationInformation : LocationInformation
Tags
Return values
CustomerAddressId —createCustomerAddresses()
Creates multiple new customer address and returns its ID.
public
createCustomerAddresses(array<string|int, mixed> ...$creationArguments) : CustomerAddressIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
CustomerAddressIds —deleteCustomerAddress()
public
deleteCustomerAddress(CustomerAddressId $addressId) : void
Parameters
- $addressId : CustomerAddressId
Tags
Return values
void —getAddresses()
Returns the addresses of a customer
public
getAddresses(CustomerId $customerId) : CustomerAddresses
Parameters
- $customerId : CustomerId
Tags
Return values
CustomerAddresses —getStateId()
public
getStateId(string $countryIsoCode, string $stateName) : int
Parameters
- $countryIsoCode : string
- $stateName : string
Tags
Return values
int —storeCustomerAddresses()
Stores multiple customer addresses.
public
storeCustomerAddresses(CustomerAddress ...$customerAddresses) : void
Parameters
- $customerAddresses : CustomerAddress