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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
getId()
com.broadleafcommerce.pricing.client.domain.PriceInfo
Retrieves thePriceInfo
on the entity.javax.money.MonetaryAmount
getSku()
int
hashCode()
boolean
isOnline()
void
setDefaultPrice
(javax.money.MonetaryAmount defaultPrice) void
void
setOnline
(boolean online) void
setPriceInfo
(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Sets thePriceInfo
on the entity.void
setSalePrice
(javax.money.MonetaryAmount salePrice) void
void
setVendorRef
(String vendorRef) toString()
-
Constructor Details
-
VariantSummary
public VariantSummary()
-
-
Method Details
-
getId
-
getSku
-
getVendorRef
-
isOnline
public boolean isOnline() -
getDefaultPrice
public javax.money.MonetaryAmount getDefaultPrice() -
getSalePrice
public javax.money.MonetaryAmount getSalePrice() -
getPriceInfo
public com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()Description copied from interface:Priceable
Retrieves thePriceInfo
on the entity.- Specified by:
getPriceInfo
in interfacePriceable
- Returns:
- The
PriceInfo
on the entity.
-
setId
-
setSku
-
setVendorRef
-
setOnline
public void setOnline(boolean online) -
setDefaultPrice
public void setDefaultPrice(javax.money.MonetaryAmount defaultPrice) -
setSalePrice
public void setSalePrice(javax.money.MonetaryAmount salePrice) -
setPriceInfo
public void setPriceInfo(com.broadleafcommerce.pricing.client.domain.PriceInfo priceInfo) Description copied from interface:Priceable
Sets thePriceInfo
on the entity.- Specified by:
setPriceInfo
in interfacePriceable
- Parameters:
priceInfo
- ThePriceInfo
to set.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-