public class XPFProduct extends XPFEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
XPFProduct.XPFProductBuilder<C extends XPFProduct,B extends XPFProduct.XPFProductBuilder<C,B>> |
XPFEntity.XPFEntityBuilder<C extends XPFEntity,B extends XPFEntity.XPFEntityBuilder<C,B>>| Modifier | Constructor and Description |
|---|---|
|
XPFProduct(@NonNull String code,
@NonNull XPFEntitySupplier<Map<Locale,String>> displayNames,
Instant startDate,
Instant endDate,
@NonNull XPFProductType productType,
@NonNull Set<XPFCategory> categories,
@NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues,
boolean bundle,
boolean notSoldSeparately,
boolean hidden,
Instant expectedReleaseDate,
XPFEntitySupplier<List<XPFProductSku>> productSkus,
XPFBrand brand,
@NonNull XPFEntitySupplier<List<XPFAgreement>> agreements) |
protected |
XPFProduct(XPFProduct.XPFProductBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
static XPFProduct.XPFProductBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<XPFAgreement> |
getAgreements()
The agreements associated with this product.
|
Optional<XPFAttributeValue> |
getAttributeValueByKey(String key)
Returns the non-localized attribute value with the passed key (case-insensitive match).
|
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 attribute value map of maps keyed by Locale and then by attribute key.
|
XPFBrand |
getBrand()
The product brand.
|
@NonNull Set<XPFCategory> |
getCategories()
The categories that this product is a member of.
|
@NonNull String |
getCode()
The product code.
|
Optional<String> |
getDisplayName(Locale locale)
Get localized display name for a locale with fallback behavior.
|
Map<Locale,String> |
getDisplayNames()
Get the display names.
|
Instant |
getEndDate()
The end date of this product's availability.
|
Instant |
getExpectedReleaseDate()
The expected release date.
|
List<XPFProductSku> |
getProductSkus()
The product skus associated with this product.
|
@NonNull XPFProductType |
getProductType()
The product type.
|
Instant |
getStartDate()
The start date of this product's availability.
|
int |
hashCode() |
boolean |
isBundle()
Indicates if this product is a bundle.
|
boolean |
isHidden()
Indicates if this product is hidden.
|
boolean |
isNotSoldSeparately()
Indicates if this product can be sold separately.
|
String |
toString() |
getCustomData, getCustomDataValueprotected XPFProduct(XPFProduct.XPFProductBuilder<?,?> b)
public XPFProduct(@NonNull
@NonNull String code,
@NonNull
@NonNull XPFEntitySupplier<Map<Locale,String>> displayNames,
Instant startDate,
Instant endDate,
@NonNull
@NonNull XPFProductType productType,
@NonNull
@NonNull Set<XPFCategory> categories,
@NonNull
@NonNull Map<Locale,Map<String,XPFAttributeValue>> attributeValues,
boolean bundle,
boolean notSoldSeparately,
boolean hidden,
Instant expectedReleaseDate,
XPFEntitySupplier<List<XPFProductSku>> productSkus,
XPFBrand brand,
@NonNull
@NonNull XPFEntitySupplier<List<XPFAgreement>> agreements)
@SkipSerialization(scopes={}) @LazyLoaded public List<XPFProductSku> getProductSkus()
@LazyLoaded public List<XPFAgreement> getAgreements()
public Map<Locale,String> getDisplayNames()
public Optional<XPFAttributeValue> getAttributeValueByKey(String key, Locale locale)
key - the attribute keylocale - the attribute value localepublic Optional<XPFAttributeValue> getAttributeValueByKey(String key)
key - the attribute keypublic Optional<String> getDisplayName(Locale locale)
locale - The locale to get a display name for.public static XPFProduct.XPFProductBuilder<?,?> builder()
@NonNull public @NonNull String getCode()
public Instant getStartDate()
public Instant getEndDate()
@NonNull public @NonNull XPFProductType getProductType()
@NonNull public @NonNull Set<XPFCategory> getCategories()
@NonNull public @NonNull Map<Locale,Map<String,XPFAttributeValue>> getAttributeValues()
public boolean isBundle()
public boolean isNotSoldSeparately()
public boolean isHidden()
public Instant getExpectedReleaseDate()
public XPFBrand getBrand()
Copyright © 2026. All rights reserved.