public class XPFCustomer extends XPFEntity
Constructor and Description |
---|
XPFCustomer(@NonNull String guid,
@NonNull String sharedId,
String email,
@NonNull XPFCustomerStatusEnum status,
@NonNull XPFCustomerTypeEnum type,
@NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues,
@NonNull Set<String> segments,
@NonNull boolean firstTimeBuyer) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Optional<XPFAttributeValue> |
getAttributeValueByKey(String key,
Locale locale)
Returns the attribute value with the passed key (case-insensitive match) and locale.
|
@NonNull Map<Locale,Map<String,XPFAttributeValue>> |
getAttributeValues()
The customer's attribute value maps of maps keyed by Locale and then by attribute key.
|
String |
getEmail()
The user's email address.
|
@NonNull String |
getGuid()
The user's guid.
|
@NonNull Set<String> |
getSegments()
The segment codes that the user is associated to.
|
@NonNull String |
getSharedId()
A unique identifier for the customer that can be shared with external services.
|
@NonNull XPFCustomerStatusEnum |
getStatus()
The user's status.
|
@NonNull XPFCustomerTypeEnum |
getType()
The customer type (i.e.
|
int |
hashCode() |
@NonNull boolean |
isFirstTimeBuyer()
Is the customer a first time buyer.
|
String |
toString() |
getCustomData
public XPFCustomer(@NonNull @NonNull String guid, @NonNull @NonNull String sharedId, String email, @NonNull @NonNull XPFCustomerStatusEnum status, @NonNull @NonNull XPFCustomerTypeEnum type, @NonNull @NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues, @NonNull @NonNull Set<String> segments, @NonNull @NonNull boolean firstTimeBuyer)
public Optional<XPFAttributeValue> getAttributeValueByKey(String key, Locale locale)
key
- the attribute keylocale
- the attribute value locale@NonNull public @NonNull String getGuid()
@NonNull public @NonNull String getSharedId()
public String getEmail()
@NonNull public @NonNull XPFCustomerStatusEnum getStatus()
@NonNull public @NonNull XPFCustomerTypeEnum getType()
@NonNull public @NonNull Map<Locale,Map<String,XPFAttributeValue>> getAttributeValues()
@NonNull public @NonNull Set<String> getSegments()
@NonNull public @NonNull boolean isFirstTimeBuyer()
Copyright © 2024. All rights reserved.