value_objects library
Classes
- EmailAddress
- EmailAddress value object holds information about the user's email address.
- Name
-
Name value object is a generic object that should be used to hold instances of
names
A use case would befirstName
, orlastName
oruserName
- PhoneNumber
-
ValueObject<
T>
Enums
- Assistant
- Assistant is the user assistant
- Gender
- Gender
- LoginProvider
- LoginProvider represents valid login methods
- SupplierAccountType
- SupplierAccountType valid supplier account types
- SupplierPartnerType
- SupplierPartnerType valid supplier partner types
Extensions
- AssistantExt on Assistant
- AssistantExt offers an extension to get string names of the Assistant
- GenderEx on Gender
- GenderEx extends Gender enum to get the values as strings
- LoginProviderEx on LoginProvider
- LoginProviderEx extends LoginProvider enum to get the values as strings
- SupplierAccountTypeEx on SupplierAccountType
- SupplierAccountTypeEx extends SupplierAccountType enum to get the values as strings
- SupplierPartnerTypeEx on SupplierPartnerType
- SupplierPartnerTypeEx extends SupplierPartnerType enum to get the values as strings
Constants
- UNKNOWN → const String
- UNKNOWNEMAIL → const String
Functions
-
validateEmailAddress(
String input) → Either< ValueObjectFailure< String> , String> - validateEmailAddress checks for the validity of the provided input
-
validatePhoneNumber(
String input) → Either< ValueObjectFailure< String> , String>