@plentymarkets/shop-api / userGetters
Variable: userGetters ​
constuserGetters:object
Defined in: getters/userGetters.ts:49
Type Declaration ​
getEmailAddress ​
getEmailAddress: (
user) =>string
Returns the email address of a user.
Parameters ​
user ​
The user object.
Returns ​
string
The email address string, or an empty string if not set.
getFirstName ​
getFirstName: (
user) =>string
Returns the first name of a user.
Parameters ​
user ​
The user object.
Returns ​
string
The first name string, or an empty string if not set.
getFullName ​
getFullName: (
user) =>string
Returns the full name of a user.
Parameters ​
user ​
The user object.
Returns ​
string
The full name string, or an empty string if not set.
getLastName ​
getLastName: (
user) =>string
Returns the last name of a user.
Parameters ​
user ​
The user object.
Returns ​
string
The last name string, or an empty string if not set.
isValidEmailAddress ​
isValidEmailAddress: (
boolean
Validates whether the given string is a properly formatted email address.
Parameters ​
email ​
string
The email string to validate.
Returns ​
boolean
true if the email is valid, otherwise false.