CustomerRegistrationInputValidatorServiceInterface
in
Interface CustomerRegistrationInputValidatorServiceInterface
Tags
Table of Contents
- validateCustomerDataByArray() : bool
- Validates the entered customer data with an array of parameters.
- validateGuestDataByArray() : bool
- Validate the entered guest data with an array of parameters.
Methods
validateCustomerDataByArray()
Validates the entered customer data with an array of parameters.
public
validateCustomerDataByArray(array<string|int, mixed> $inputArray) : bool
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
Parameters
- $inputArray : array<string|int, mixed>
-
Customer data input.
Return values
bool —Is customer data valid?
validateGuestDataByArray()
Validate the entered guest data with an array of parameters.
public
validateGuestDataByArray(array<string|int, mixed> $inputArray) : bool
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
Parameters
- $inputArray : array<string|int, mixed>
-
Guest customer data input.
Return values
bool —Is guest customer data valid?