public class XPFProductSku extends Object
Modifier and Type | Field and Description |
---|---|
private @NonNull Map<Locale,Map<String,XPFAttributeValue>> |
attributeValues
The product attribute value map of maps keyed by Locale and then by attribute key.
|
private @NonNull String |
code
Product sku code.
|
private @NonNull Map<Locale,String> |
displayNames
The display name for this product sku.
|
private Instant |
effectiveEndDate
The end date of this product sku availability.
|
private Instant |
effectiveStartDate
The start date of this product sku availability.
|
private @NonNull Set<XPFProductSkuOptionValue> |
optionValues
The product sku option values.
|
private @NonNull XPFProduct |
product
The product this SKU belongs to.
|
private boolean |
shippable
Whether or not this product sku is shippable.
|
Constructor and Description |
---|
XPFProductSku() |
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 XPFProduct product
@NonNull private final @NonNull String code
@NonNull private final @NonNull Map<Locale,String> displayNames
@NonNull private final @NonNull Set<XPFProductSkuOptionValue> optionValues
@NonNull private final @NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues
private final Instant effectiveStartDate
private final Instant effectiveEndDate
private final boolean shippable
public Optional<XPFAttributeValue> getAttributeValueByKey(String key, Locale locale)
key
- the attribute keylocale
- the attribute value localeCopyright © 2000–2021 Elastic Path Software, Inc. All rights reserved.