public class IncludedProduct extends Object implements Serializable
| Constructor and Description | 
|---|
IncludedProduct()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAttribute(String name,
            Object value)
Takes in any additional attributes passed in the request not matching any defined properties. 
 | 
protected boolean | 
canEqual(Object other)  | 
boolean | 
equals(Object o)  | 
com.broadleafcommerce.cart.client.domain.AdditionalItemPricing | 
getAdditionalItemPricing()  | 
Map<String,Object> | 
getAttribute()
Return any additional attributes passed in the request not matching any defined properties. 
 | 
Map<String,Object> | 
getAttributes()
Map holding any additional attributes passed in the request not matching any defined
 properties. 
 | 
Long | 
getDisplayOrder()
Defines the display position of this included product in relation to other included products. 
 | 
String | 
getLabel()
The user-facing label that describes this included product. 
 | 
javax.money.MonetaryAmount | 
getOverridePrice()  | 
String | 
getPricingKey()  | 
String | 
getPricingTargetType()  | 
Product | 
getProduct()
This field contains the specified product if the  
type is
 IncludedProductType.PRODUCT. | 
int | 
getQuantity()
The value of the fixed quantity. 
 | 
String | 
getType()
 | 
String | 
getValidationKey()  | 
Variant | 
getVariant()
This field contains the specified variant if the  
type is
 IncludedProductType.VARIANT. | 
String | 
getVariantParentProductId()
This field contains the id of the parent product of the specified  
variant if the
 type is IncludedProductType.VARIANT. | 
int | 
hashCode()  | 
boolean | 
isDiscountAllowed()
Dictates whether or not discounts are allowed to be applied to this included product. 
 | 
void | 
setAdditionalItemPricing(com.broadleafcommerce.cart.client.domain.AdditionalItemPricing additionalItemPricing)  | 
void | 
setAttributes(Map<String,Object> attributes)
Map holding any additional attributes passed in the request not matching any defined
 properties. 
 | 
void | 
setDiscountAllowed(boolean discountAllowed)
Dictates whether or not discounts are allowed to be applied to this included product. 
 | 
void | 
setDisplayOrder(Long displayOrder)
Defines the display position of this included product in relation to other included products. 
 | 
void | 
setLabel(String label)
The user-facing label that describes this included product. 
 | 
void | 
setOverridePrice(javax.money.MonetaryAmount overridePrice)  | 
void | 
setPricingKey(String pricingKey)  | 
void | 
setPricingTargetType(String pricingTargetType)  | 
void | 
setProduct(Product product)
This field contains the specified product if the  
type is
 IncludedProductType.PRODUCT. | 
void | 
setQuantity(int quantity)
The value of the fixed quantity. 
 | 
void | 
setType(String type)
 | 
void | 
setVariant(Variant variant)
This field contains the specified variant if the  
type is
 IncludedProductType.VARIANT. | 
void | 
setVariantParentProductId(String variantParentProductId)
This field contains the id of the parent product of the specified  
variant if the
 type is IncludedProductType.VARIANT. | 
String | 
toString()  | 
public void addAttribute(String name, Object value)
name - Name of the additional attributevalue - Value of the additional attributepublic Map<String,Object> getAttribute()
public String getValidationKey()
public String getType()
IncludedProductType of this included productIncludedProductTypepublic String getLabel()
public Long getDisplayOrder()
public Product getProduct()
type is
 IncludedProductType.PRODUCT.IncludedProductType.PRODUCTpublic Variant getVariant()
type is
 IncludedProductType.VARIANT.IncludedProductType.VARIANTvariantParentProductIdpublic String getVariantParentProductId()
variant if the
 type is IncludedProductType.VARIANT.
 This field is necessary because variants are a sub-resource of product and thus API callers cannot fetch them purely by variant id alone.
public com.broadleafcommerce.cart.client.domain.AdditionalItemPricing getAdditionalItemPricing()
public boolean isDiscountAllowed()
public int getQuantity()
public Map<String,Object> getAttributes()
public void setType(String type)
type - the IncludedProductType of this included productIncludedProductTypepublic void setLabel(String label)
label - the user-facing label that describes this included productpublic void setDisplayOrder(Long displayOrder)
displayOrder - the order in which this included product should be displayed relative to
        other included productspublic void setProduct(Product product)
type is
 IncludedProductType.PRODUCT.product - the product to use if this included product is of type
        IncludedProductType.PRODUCTpublic void setVariant(Variant variant)
type is
 IncludedProductType.VARIANT.variant - the variant to use if this included product is of type
        IncludedProductType.VARIANTvariantParentProductIdpublic void setVariantParentProductId(String variantParentProductId)
variant if the
 type is IncludedProductType.VARIANT.
 This field is necessary because variants are a sub-resource of product and thus API callers cannot fetch them purely by variant id alone.
public void setAdditionalItemPricing(com.broadleafcommerce.cart.client.domain.AdditionalItemPricing additionalItemPricing)
public void setDiscountAllowed(boolean discountAllowed)
discountAllowed - true if discounts are allowed to be applied to this included product,
        false otherwisepublic void setQuantity(int quantity)
fixedQuantity - the fixed quantity of the included product's target product(s) that can
        be addedpublic void setAttributes(Map<String,Object> attributes)
protected boolean canEqual(Object other)
public javax.money.MonetaryAmount getOverridePrice()
public String getPricingKey()
public String getPricingTargetType()
public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
public void setPricingKey(String pricingKey)
public void setPricingTargetType(String pricingTargetType)
Copyright © 2021. All rights reserved.