public class XPFCustomer extends Object
Modifier and Type | Field and Description |
---|---|
private @NonNull Map<Locale,Map<String,XPFAttributeValue>> |
attributeValues
The customer's attribute value maps of maps keyed by Locale and then by attribute key.
|
private String |
email
The user's email address.
|
private @NonNull String |
guid
The user's guid.
|
private @NonNull Set<String> |
segments
The segment codes that the user is associated to.
|
private @NonNull String |
sharedId
A unique identifier for the customer that can be shared with external services.
|
private @NonNull XPFCustomerStatusEnum |
status
The user's status.
|
Constructor and Description |
---|
XPFCustomer() |
Modifier and Type | Method and Description |
---|---|
Optional<XPFAttributeValue> |
getAttributeValueByKey(String key,
Locale locale)
Returns the attribute value with the passed key (case-insensitive match) and locale.
|
@NonNull private final @NonNull String guid
@NonNull private final @NonNull String sharedId
private final String email
@NonNull private final @NonNull XPFCustomerStatusEnum status
@NonNull private final @NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues
public Optional<XPFAttributeValue> getAttributeValueByKey(String key, Locale locale)
key
- the attribute keylocale
- the attribute value localeCopyright © 2022. All rights reserved.