CustomerRegistrationInputValidatorServiceInterface

Extends

Interface CustomerRegistrationInputValidatorServiceInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Validates the entered customer data with an array of parameters.

validateCustomerDataByArray(array $inputArray) : boolean

Expects array with following keys:

  • gender
  • firstname
  • lastname
  • dob (date of birth)
  • company
  • email_address
  • email_address_confirm
  • postcode
  • city
  • country
  • state (ID or name)
  • telephone
  • vat
  • password
  • confirmation
  • privacy_accepted

Arguments

$inputArray

array

Customer data input.

Response

boolean

Is customer data valid?

Validate the entered guest data with an array of parameters.

validateGuestDataByArray(array $inputArray) : boolean

expects array with following keys:

  • gender
  • firstname
  • lastname
  • dob (date of birth)
  • company
  • email_address
  • email_address_confirm
  • postcode
  • city
  • country
  • state (ID or name)
  • telephone
  • vat
  • privacy_accepted

Arguments

$inputArray

array

Guest customer data input.

Response

boolean

Is guest customer data valid?