public class XPFProductBundle extends XPFProduct
| Modifier and Type | Field and Description |
|---|---|
private List<XPFBundleConstituent> |
constituents
The constituent items of this bundle.
|
private Long |
maxConstituentSelections
The maximum number of required selections from the bundle constituents.
|
private Long |
minConstituentSelections
The minimum number of required selections from the bundle constituents.
|
| 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.
|
getAttributeValueByKey, getDisplayName, getProductSkusprivate final List<XPFBundleConstituent> constituents
private final Long minConstituentSelections
private final Long maxConstituentSelections
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 XPFEntitySupplierCopyright © 2023. All rights reserved.