| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.pricing.PricingCommerceItem
public class PricingCommerceItem
A simple CommerceItem that is used just as a placeholder while pricing items. This CommerceItem cannot be added to an order. The pricing engines only understand how to compute prices in the context of a CommerceItem. Many times when we wish to price an entity for the user we do not have a CommerceItem in hand. This is most evident when prices are shown for products in the catalog. Products and SKUs are usually represented by RepositoryItems, which the pricing engines do not deal with. Therefore we need an inexpensive CommerceItem class which we can create and plug in the product and SKU objects. The item pricing droplets uses the PricingCommerceItem as this wrapper to perform pricing. The item pricing droplets understand how to deal with input which are plain RepositoryItems and "convert" them into CommerceItems.
These CommerceItems cannot be used in the default Order management system. If you need to add a CommerceItem to an order one should use the OrderManager APIs.
OrderManager, 
Serialized Form| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Constructor Summary | |
|---|---|
| PricingCommerceItem()Constructs an instanceof PricingCommerceItem | |
| Method Summary | |
|---|---|
|  void | addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)Add the PaymentGroupRelationship to the container. | 
|  void | addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
                            int pIndex)Add the PaymentGroupRelationship to the container at the given index. | 
|  void | addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)Add the ShippingGroupRelationship to the container. | 
|  void | addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
                             int pIndex)Add the ShippingGroupRelationship to the container at the given index. | 
|  void | clear()Clears the instance as if it was just constructed | 
|  AuxiliaryData | getAuxiliaryData()returns the AuxiliaryData. | 
|  java.lang.String | getCatalogId()Returns property CatalogId | 
|  java.lang.String | getCatalogKey()Returns property CatalogKey | 
|  java.lang.String | getCatalogRefId()Returns property CatalogRefId | 
|  java.lang.String | getCommerceItemClassType()Returns the commerceItemClassType | 
|  java.lang.String | getId()Returns property Id | 
|  PaymentGroupRelationship | getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)Returns the PaymentGroupRelationship whose id is pPaymentGroupRelationshipId. | 
|  int | getPaymentGroupRelationshipCount()Returns the number of PaymentGroupRelationships in the container. | 
|  java.util.List | getPaymentGroupRelationships()Returns a List of PaymentGroupRelationships | 
|  ItemPriceInfo | getPriceInfo()Returns property PriceInfo | 
|  long | getQuantity()Returns property Quantity | 
|  long | getReturnedQuantity()Returns the returnedQuantity | 
|  ShippingGroupRelationship | getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)Returns the ShippingGroupRelationship whose id is pShippingGroupRelationshipId. | 
|  int | getShippingGroupRelationshipCount()Returns the number of ShippingGroupRelationships in the container. | 
|  java.util.List | getShippingGroupRelationships()Returns a List of ShippingGroupRelationships | 
|  int | getState()Returns property State | 
|  java.lang.String | getStateDetail()Returns property StateDetail | 
|  void | removeAllPaymentGroupRelationships()Removes all the PaymentGroupRelationships | 
|  void | removeAllShippingGroupRelationships()Removes all the ShippingGroupRelationships | 
|  PaymentGroupRelationship | removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)Removes a PaymentGroupRelationship whose id is passed in. | 
|  ShippingGroupRelationship | removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)Removes a ShippingGroupRelationship whose id is passed in. | 
|  void | setCatalogId(java.lang.String pCatalogId)Sets property CatalogId | 
|  void | setCatalogKey(java.lang.String pCatalogKey)Sets property CatalogKey | 
|  void | setCatalogRefId(java.lang.String pCatalogRefId)Sets property CatalogRefId | 
|  void | setCommerceItemClassType(java.lang.String pCommerceItemClassType)Sets the commerceItemClassType | 
|  void | setId(java.lang.String pId)Sets property Id | 
|  void | setPriceInfo(ItemPriceInfo pPriceInfo)Sets property PriceInfo | 
|  void | setQuantity(long pQuantity)Sets property Quantity | 
|  void | setReturnedQuantity(long pReturnedQuantity)Sets the returnedQuantity | 
|  void | setState(int pState)Sets property State | 
|  void | setStateDetail(java.lang.String pStateDetail)Sets property StateDetail | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
public PricingCommerceItem()
| Method Detail | 
|---|
public void setId(java.lang.String pId)
public java.lang.String getId()
getId in interface CommerceIdentifierpublic void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
setCommerceItemClassType in interface CommerceItempublic java.lang.String getCommerceItemClassType()
getCommerceItemClassType in interface CommerceItempublic void setCatalogKey(java.lang.String pCatalogKey)
setCatalogKey in interface CommerceItempublic java.lang.String getCatalogKey()
getCatalogKey in interface CommerceItempublic void setCatalogId(java.lang.String pCatalogId)
setCatalogId in interface CommerceItempublic java.lang.String getCatalogId()
getCatalogId in interface CommerceItempublic void setCatalogRefId(java.lang.String pCatalogRefId)
setCatalogRefId in interface CommerceItempublic java.lang.String getCatalogRefId()
getCatalogRefId in interface CommerceItempublic void setQuantity(long pQuantity)
setQuantity in interface CommerceItempQuantity - the new value for the quantitypublic long getQuantity()
getQuantity in interface CommerceItempublic long getReturnedQuantity()
getReturnedQuantity in interface CommerceItempublic void setReturnedQuantity(long pReturnedQuantity)
public void setState(int pState)
setState in interface CommerceItempublic int getState()
getState in interface CommerceItempublic void setStateDetail(java.lang.String pStateDetail)
setStateDetail in interface CommerceItempublic java.lang.String getStateDetail()
getStateDetail in interface CommerceItempublic void setPriceInfo(ItemPriceInfo pPriceInfo)
setPriceInfo in interface CommerceItempPriceInfo - the PriceInfo object to setpublic ItemPriceInfo getPriceInfo()
getPriceInfo in interface CommerceItempublic AuxiliaryData getAuxiliaryData()
getAuxiliaryData in interface CommerceItempublic java.util.List getShippingGroupRelationships()
getShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship,
                                         int pIndex)
                                  throws DuplicateRelationshipException,
                                         InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                          throws RelationshipNotFoundException,
                                                                 InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainer
public ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId)
                                                       throws RelationshipNotFoundException,
                                                              InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainerpublic java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships in interface PaymentGroupRelationshipContainer
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship,
                                        int pIndex)
                                 throws DuplicateRelationshipException,
                                        InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipException
InvalidParameterException
public PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
                                                        throws RelationshipNotFoundException,
                                                               InvalidParameterException
removePaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships in interface PaymentGroupRelationshipContainer
public PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId)
                                                     throws RelationshipNotFoundException,
                                                            InvalidParameterException
getPaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundException
InvalidParameterExceptionpublic int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount in interface PaymentGroupRelationshipContainerpublic void clear()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||