CustomerAddressWriter
in package
Class CustomerAddressWriter
Table of Contents
- $connection : Connection
- __construct() : mixed
- createCustomerAddress() : int
- createCustomerAddresses() : array<string|int, mixed>
- deleteCustomerAddress() : void
- storeCustomerAddresses() : void
- getCountryIdByIsoCode2() : int
- storeCustomerAddress() : void
Properties
$connection
private
Connection
$connection
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —createCustomerAddress()
public
createCustomerAddress(CustomerId $customerId, PersonalInformation $personalInformation, LocationInformation $locationInformation[, bool $isDefault = true ]) : int
Parameters
- $customerId : CustomerId
- $personalInformation : PersonalInformation
- $locationInformation : LocationInformation
- $isDefault : bool = true
Tags
Return values
int —createCustomerAddresses()
public
createCustomerAddresses(array<string|int, mixed> ...$creationArguments) : array<string|int, mixed>
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —deleteCustomerAddress()
public
deleteCustomerAddress(CustomerAddressId $addressId) : void
Parameters
- $addressId : CustomerAddressId
Tags
Return values
void —storeCustomerAddresses()
public
storeCustomerAddresses([bool $isDefault = true ], CustomerAddress ...$customerAddresses) : void
Parameters
- $isDefault : bool = true
- $customerAddresses : CustomerAddress
Tags
Return values
void —getCountryIdByIsoCode2()
private
getCountryIdByIsoCode2(string $countryIsoCode2) : int
Parameters
- $countryIsoCode2 : string
Tags
Return values
int —storeCustomerAddress()
private
storeCustomerAddress(bool $isDefault, CustomerAddress $customerAddress) : void
Parameters
- $isDefault : bool
- $customerAddress : CustomerAddress