atg.projects.store.pricing
Class StoreUnitPriceBean

java.lang.Object
  extended by atg.commerce.pricing.UnitPriceBean
      extended by atg.projects.store.pricing.StoreUnitPriceBean

public class StoreUnitPriceBean
extends atg.commerce.pricing.UnitPriceBean

Extension of UnitPriceBean class that provides GWP-specific information like list of GWP selections associated with the current price bean and helper methods that determine whether price bean is GWP specific.

Version:
$Id: //hosting-blueprint/B2CBlueprint/version/10.2.1/EStore/src/atg/projects/store/pricing/StoreUnitPriceBean.java#2 $$Change: 791366 $
Author:
ATG

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
StoreUnitPriceBean()
          Constructor creating empty bean.
StoreUnitPriceBean(atg.commerce.pricing.DetailedItemPriceInfo pInfo)
          Constructor that populates beans properties from DetailedItemPriceInfo object.
StoreUnitPriceBean(atg.commerce.pricing.UnitPriceBean pUnitPriceBean)
          Constructor that populates beans properties from UnitPriceBean object.
 
Method Summary
 java.util.List<? extends atg.commerce.promotion.GiftWithPurchaseSelection> getGwpSelections()
          Returns list of GWP selections associated within the price bean.
 boolean isGiftWithPurchase()
          Returns true if price bean is discounted by gift with purchase promotion.
 void setGwpSelections(java.util.List<? extends atg.commerce.promotion.GiftWithPurchaseSelection> pGwpSelections)
          List of GWP selections associated within the price bean.
 
Methods inherited from class atg.commerce.pricing.UnitPriceBean
getPricingModels, getQuantity, getUnitPrice, setPricingModels, setQuantity, setUnitPrice, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

StoreUnitPriceBean

public StoreUnitPriceBean()
Constructor creating empty bean.


StoreUnitPriceBean

public StoreUnitPriceBean(atg.commerce.pricing.DetailedItemPriceInfo pInfo)
Constructor that populates beans properties from DetailedItemPriceInfo object.

Parameters:
pInfo - The DetailedItemPriceInfo object to populate bean's properties from.

StoreUnitPriceBean

public StoreUnitPriceBean(atg.commerce.pricing.UnitPriceBean pUnitPriceBean)
Constructor that populates beans properties from UnitPriceBean object.

Parameters:
pUnitPriceBean - The UnitPriceBean object to copy properties from.
Method Detail

setGwpSelections

public void setGwpSelections(java.util.List<? extends atg.commerce.promotion.GiftWithPurchaseSelection> pGwpSelections)
List of GWP selections associated within the price bean.

Parameters:
pGwpSelections - List of GWP selections associated within the price bean.

getGwpSelections

public java.util.List<? extends atg.commerce.promotion.GiftWithPurchaseSelection> getGwpSelections()
Returns list of GWP selections associated within the price bean.

Returns:
List of GWP selections associated within the price bean.

isGiftWithPurchase

public boolean isGiftWithPurchase()
Returns true if price bean is discounted by gift with purchase promotion.

Returns: