public class XPFProductBundle extends XPFProduct
Constructor and Description |
---|
XPFProductBundle(String code,
Map<Locale,String> displayNames,
Instant startDate,
Instant endDate,
Set<XPFCategory> categories,
Map<Locale,Map<String,XPFAttributeValue>> attributeValues,
boolean bundle,
boolean notSoldSeparately,
boolean hidden,
XPFProductType productType,
List<XPFBundleConstituent> constituents,
Long minConstituentSelections,
Long maxConstituentSelections,
XPFEntitySupplier<List<XPFProductSku>> productSkus)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<XPFBundleConstituent> |
getConstituents()
The constituent items of this bundle.
|
Long |
getMaxConstituentSelections()
The maximum number of required selections from the bundle constituents.
|
Long |
getMinConstituentSelections()
The minimum number of required selections from the bundle constituents.
|
int |
hashCode() |
String |
toString() |
getAttributeValueByKey, getAttributeValues, getCategories, getCode, getDisplayName, getDisplayNames, getEndDate, getProductSkus, getProductType, getStartDate, isBundle, isHidden, isNotSoldSeparately
getCustomData
public XPFProductBundle(String code, Map<Locale,String> displayNames, Instant startDate, Instant endDate, Set<XPFCategory> categories, Map<Locale,Map<String,XPFAttributeValue>> attributeValues, boolean bundle, boolean notSoldSeparately, boolean hidden, XPFProductType productType, List<XPFBundleConstituent> constituents, Long minConstituentSelections, Long maxConstituentSelections, XPFEntitySupplier<List<XPFProductSku>> productSkus)
code
- the product code.displayNames
- the map of locale to display names for this productstartDate
- the start date of this product's availabilityendDate
- the end date of this product's availabilitycategories
- the categories that this product is a member ofattributeValues
- the attribute values keyed by locale and then by attribute keybundle
- whether or not this product is a bundlenotSoldSeparately
- whether or not this product is not sold separatelyhidden
- whether or not this product is hiddenproductType
- the product typeconstituents
- the all cart items of shopping cartminConstituentSelections
- the minimum number of allowed selections from the bundle constituentsmaxConstituentSelections
- the maximum number of allowed selections from the bundle constituentsproductSkus
- the list of product skus associated with this bundle wrapped in XPFEntitySupplierpublic List<XPFBundleConstituent> getConstituents()
public Long getMinConstituentSelections()
public Long getMaxConstituentSelections()
public String toString()
toString
in class XPFProduct
public boolean equals(Object o)
equals
in class XPFProduct
protected boolean canEqual(Object other)
canEqual
in class XPFProduct
public int hashCode()
hashCode
in class XPFProduct
Copyright © 2024. All rights reserved.