CustomerAddressMapper
extends CustomerAddressFactory
in package
Class CustomerAddressMapper
Table of Contents
- $countryTranslationRepository : CustomerAddressCountryTranslationRepository
- __construct() : mixed
- createCustomerAddressCountry() : CustomerAddressCountry
- createCustomerAddresses() : CustomerAddresses
- createCustomerAddressId() : CustomerAddressId
- createCustomerAddressIds() : CustomerAddressIds
- createCustomerAddressState() : CustomerAddressState
- createCustomerId() : CustomerId
- createLocationInformation() : LocationInformation
- createPersonalInformation() : PersonalInformation
- mapCustomerAddress() : CustomerAddress
- mapCustomerAddresses() : CustomerAddresses
Properties
$countryTranslationRepository
private
CustomerAddressCountryTranslationRepository
$countryTranslationRepository
Methods
__construct()
public
__construct(CustomerAddressCountryTranslationRepository $repository) : mixed
Parameters
- $repository : CustomerAddressCountryTranslationRepository
Return values
mixed —createCustomerAddressCountry()
public
createCustomerAddressCountry(string $name[, string|null $isoCode2 = '' ]) : CustomerAddressCountry
Parameters
- $name : string
- $isoCode2 : string|null = ''
Return values
CustomerAddressCountry —createCustomerAddresses()
public
createCustomerAddresses(CustomerAddress ...$customerAddresses) : CustomerAddresses
Parameters
- $customerAddresses : CustomerAddress
Return values
CustomerAddresses —createCustomerAddressId()
public
createCustomerAddressId(int $customerAddressId) : CustomerAddressId
Parameters
- $customerAddressId : int
Return values
CustomerAddressId —createCustomerAddressIds()
public
createCustomerAddressIds(CustomerAddressId ...$customerAddressIds) : CustomerAddressIds
Parameters
- $customerAddressIds : CustomerAddressId
Return values
CustomerAddressIds —createCustomerAddressState()
public
createCustomerAddressState(int $id, string $name) : CustomerAddressState
Parameters
- $id : int
- $name : string
Return values
CustomerAddressState —createCustomerId()
public
createCustomerId(int $customerId) : CustomerId
Parameters
- $customerId : int
Return values
CustomerId —createLocationInformation()
public
createLocationInformation(string $streetName, string $houseNumber, string $postcode, string $city, string $countryName, string $countryIsoCode2[, string $additionalInformation = '' ][, string $suburb = '' ], int $stateId[, string $stateName = '' ]) : LocationInformation
Parameters
- $streetName : string
- $houseNumber : string
- $postcode : string
- $city : string
- $countryName : string
- $countryIsoCode2 : string
- $additionalInformation : string = ''
- $suburb : string = ''
- $stateId : int
- $stateName : string = ''
Return values
LocationInformation —createPersonalInformation()
public
createPersonalInformation(string $gender, string $firstName, string $lastName[, string $companyName = '' ]) : PersonalInformation
Parameters
- $gender : string
- $firstName : string
- $lastName : string
- $companyName : string = ''
Return values
PersonalInformation —mapCustomerAddress()
public
mapCustomerAddress(array<string|int, mixed> $addressData[, bool $isDefaultForShipping = false ][, bool $isDefaultForPayment = false ]) : CustomerAddress
Parameters
- $addressData : array<string|int, mixed>
- $isDefaultForShipping : bool = false
- $isDefaultForPayment : bool = false
Tags
Return values
CustomerAddress —mapCustomerAddresses()
public
mapCustomerAddresses(array<string|int, mixed> $addressesData) : CustomerAddresses
Parameters
- $addressesData : array<string|int, mixed>