CustomerFactory

Extends \AbstractCustomerFactory

Class CustomerFactory

Factory class for all needed customer data.

category

System

package

Customer

extends

AbstractCustomerFactory

Methods

Creates a new customer object.

createCustomer() : \Customer
inherited abstract

Response

\Customer

Created customer.

Creates a new customer address object.

createCustomerAddress() : \CustomerAddress
inherited abstract

Response

\CustomerAddress

Created customer address.

Creates a new customer country object with the given parameters.

createCustomerCountry(\IdType $id, \CustomerCountryNameInterface $name, \CustomerCountryIso2Interface $iso2, \CustomerCountryIso3Interface $iso3, \IdType $addressFormatId, boolean $status) : \CustomerCountry
inherited abstract

Arguments

$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

boolean

Country status.

Response

\CustomerCountry

Created customer country.

Creates a new customer country zone object with the given parameters.

createCustomerCountryZone(\IdType $id, \CustomerCountryZoneNameInterface $name, \CustomerCountryZoneIsoCodeInterface $isoCode) : \CustomerCountryZone
inherited abstract

Arguments

$id

\IdType

Country zone ID.

$name

\CustomerCountryZoneNameInterface

Country zone name.

$isoCode

\CustomerCountryZoneIsoCodeInterface

Country ISO code.

Response

\CustomerCountryZone

Created customer country zone.