java.lang.Object
com.broadleafcommerce.datafeed.service.collector.domain.product.VariantSummary
All Implemented Interfaces:
Priceable

public class VariantSummary extends Object implements 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 Details

    • VariantSummary

      public VariantSummary()
  • Method Details

    • getId

      public String getId()
    • getSku

      public String getSku()
    • getVendorRef

      public String 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 the PriceInfo on the entity.
      Specified by:
      getPriceInfo in interface Priceable
      Returns:
      The PriceInfo on the entity.
    • setId

      public void setId(String id)
    • setSku

      public void setSku(String sku)
    • setVendorRef

      public void setVendorRef(String vendorRef)
    • 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 the PriceInfo on the entity.
      Specified by:
      setPriceInfo in interface Priceable
      Parameters:
      priceInfo - The PriceInfo to set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object