Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractCustomerFactory

Interfaces

  • AddressBlockInterface
  • AddressBookServiceInterface
  • AddressClassInterface
  • CountryServiceInterface
  • CustomerAccountInputValidatorInterface
  • CustomerAddressDeleterInterface
  • CustomerAddressInputValidatorInterface
  • CustomerAddressInterface
  • CustomerAddressReaderInterface
  • CustomerAddressRepositoryInterface
  • CustomerAddressWriterInterface
  • CustomerB2BStatusInterface
  • CustomerCallNumberInterface
  • CustomerCityInterface
  • CustomerCompanyInterface
  • CustomerCountryInterface
  • CustomerCountryIso2Interface
  • CustomerCountryIso3Interface
  • CustomerCountryNameInterface
  • CustomerCountryReaderInterface
  • CustomerCountryRepositoryInterface
  • CustomerCountryZoneInterface
  • CustomerCountryZoneIsoCodeInterface
  • CustomerCountryZoneNameInterface
  • CustomerCountryZoneReaderInterface
  • CustomerCountryZoneRepositoryInterface
  • CustomerDeleterInterface
  • CustomerEmailInterface
  • CustomerFirstnameInterface
  • CustomerGenderInterface
  • CustomerInputValidatorInterface
  • CustomerInputValidatorSettingsInterface
  • CustomerInterface
  • CustomerLastnameInterface
  • CustomerNumberInterface
  • CustomerPasswordInterface
  • CustomerPostcodeInterface
  • CustomerReaderInterface
  • CustomerReadServiceInterface
  • CustomerRegistrationInputValidatorServiceInterface
  • CustomerRepositoryInterface
  • CustomerServiceInterface
  • CustomerServiceSettingsInterface
  • CustomerStreetInterface
  • CustomerSuburbInterface
  • CustomerVatNumberInterface
  • CustomerWriterInterface
  • CustomerWriteServiceInterface
  • VatNumberValidatorInterface

Interface CustomerServiceInterface

Interface CustomerServiceInterface

Direct known implementers

CustomerService

Package: Customer\Interfaces
Category: System
Located at CoreServices/Customer/Interfaces/CustomerServiceInterface.inc.php

Methods summary

public Customer
# createNewCustomer( CustomerEmailInterface $email, CustomerPasswordInterface $password, DateTime $dateOfBirth, CustomerVatNumberInterface $vatNumber, CustomerCallNumberInterface $telephoneNumber, CustomerCallNumberInterface $faxNumber, AddressBlockInterface $addressBlock )

Creates a new customer with the given parameters.

Creates a new customer with the given parameters.

Parameters

$email
Customer's E-Mail address.
$password
Customer's password.
$dateOfBirth
Customer's date of birth.
$vatNumber
Customer's VAT number.
$telephoneNumber
Customer's telephone number.
$faxNumber
Customer's fax number.
$addressBlock
Customer's address.

Returns

Customer
Created customer.

Throws

UnexpectedValueException
On invalid arguments.
public Customer
# createNewGuest( CustomerEmailInterface $email, DateTime $dateOfBirth, CustomerVatNumberInterface $vatNumber, CustomerCallNumberInterface $telephoneNumber, CustomerCallNumberInterface $faxNumber, AddressBlockInterface $addressBlock )

Creates a new guest account with the given parameters.

Creates a new guest account with the given parameters.

Parameters

$email
Customer's E-Mail address.
$dateOfBirth
Customer's date of birth.
$vatNumber
Customer's VAT number.
$telephoneNumber
Customer's telephone number.
$faxNumber
Customer's fax number.
$addressBlock
Customer's address.

Returns

Customer
Created guest customer.

Throws

UnexpectedValueException
On invalid arguments.
public boolean
# registreeEmailExists( CustomerEmailInterface $email )

Checks if the email address of the registree already exists.

Checks if the email address of the registree already exists.

Parameters

$email
Customer's E-Mail address.

Returns

boolean
Does the provided E-Mail address already exist?
public CustomerInterface
# updateCustomer( CustomerInterface $customer )

Updates customer data.

Updates customer data.

Parameters

$customer
Customer.

Returns

CustomerInterface
Updated customer.
public boolean
# addressIsDefaultCustomerAddress( CustomerAddressInterface $customerAddress )

Checks if address is the default address of the customer.

Checks if address is the default address of the customer.

Parameters

$customerAddress
Customer's address.

Returns

boolean
Is the provided address the customer's default address?
API documentation generated by ApiGen