Class VariantSummary
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.domain.product.VariantSummary
- All Implemented Interfaces:
- Priceable
Container to hold summary data for convenience of additional hydration steps, such as Inventory,
 Pricing, etc. where structured variant SKUs, prices, and vendor refs are required.
- Author:
- Kelly Tisdell (ktisdell)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountgetId()com.broadleafcommerce.pricing.client.domain.PriceInfoRetrieves thePriceInfoon the entity.javax.money.MonetaryAmountgetSku()inthashCode()booleanisOnline()voidsetDefaultPrice(javax.money.MonetaryAmount defaultPrice) voidvoidsetOnline(boolean online) voidsetPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Sets thePriceInfoon the entity.voidsetSalePrice(javax.money.MonetaryAmount salePrice) voidvoidsetVendorRef(String vendorRef) toString()
- 
Constructor Details- 
VariantSummarypublic VariantSummary()
 
- 
- 
Method Details- 
getId
- 
getSku
- 
getVendorRef
- 
isOnlinepublic boolean isOnline()
- 
getDefaultPricepublic javax.money.MonetaryAmount getDefaultPrice()
- 
getSalePricepublic javax.money.MonetaryAmount getSalePrice()
- 
getPriceInfopublic com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()Description copied from interface:PriceableRetrieves thePriceInfoon the entity.- Specified by:
- getPriceInfoin interface- Priceable
- Returns:
- The PriceInfoon the entity.
 
- 
setId
- 
setSku
- 
setVendorRef
- 
setOnlinepublic void setOnline(boolean online) 
- 
setDefaultPricepublic void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) 
- 
setSalePricepublic void setSalePrice(javax.money.MonetaryAmount salePrice) 
- 
setPriceInfopublic void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Description copied from interface:PriceableSets thePriceInfoon the entity.- Specified by:
- setPriceInfoin interface- Priceable
- Parameters:
- priceInfo- The- PriceInfoto set.
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-