CustomerFactory
extends AbstractCustomerFactory
in package
Class CustomerFactory
Factory class for all needed customer data.
Tags
Table of Contents
- createCustomer() : Customer
- Creates a new customer object.
- createCustomerAddress() : CustomerAddress
- Creates a new customer address object.
- createCustomerCountry() : CustomerCountry
- Creates a new customer country object with the given parameters.
- createCustomerCountryZone() : CustomerCountryZone
- Creates a new customer country zone object with the given parameters.
Methods
createCustomer()
Creates a new customer object.
public
createCustomer() : Customer
Return values
Customer —Created customer.
createCustomerAddress()
Creates a new customer address object.
public
createCustomerAddress() : CustomerAddress
Return values
CustomerAddress —Created customer address.
createCustomerCountry()
Creates a new customer country object with the given parameters.
public
createCustomerCountry(IdType $id, CustomerCountryNameInterface $name, CustomerCountryIso2Interface $iso2, CustomerCountryIso3Interface $iso3, IdType $addressFormatId, bool $status) : CustomerCountry
Parameters
- $id : IdType
-
Country ID.
- $name : CustomerCountryNameInterface
-
Country name.
- $iso2 : CustomerCountryIso2Interface
-
Country ISO-2 code.
- $iso3 : CustomerCountryIso3Interface
-
Country ISO-3 code.
- $addressFormatId : IdType
-
Country address format ID.
- $status : bool
-
Country status.
Return values
CustomerCountry —Created customer country.
createCustomerCountryZone()
Creates a new customer country zone object with the given parameters.
public
createCustomerCountryZone(IdType $id, CustomerCountryZoneNameInterface $name, CustomerCountryZoneIsoCodeInterface $isoCode) : CustomerCountryZone
Parameters
- $id : IdType
-
Country zone ID.
- $name : CustomerCountryZoneNameInterface
-
Country zone name.
- $isoCode : CustomerCountryZoneIsoCodeInterface
-
Country ISO code.
Return values
CustomerCountryZone —Created customer country zone.