public class PricingCommerceItem extends java.lang.Object implements CommerceItem
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| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
PricingCommerceItem()
Constructs an instanceof PricingCommerceItem
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship)
Add the CostCenterRelationship to the container.
|
void |
addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship,
int pIndex)
Add the CostCenterRelationship to the container at the given index.
|
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
|
CostCenterRelationship |
getCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Returns the CostCenterRelationship whose id is pCostCenterRelationshipId.
|
int |
getCostCenterRelationshipCount()
Returns the number of CostCenterRelationships in the container.
|
java.util.List |
getCostCenterRelationships()
Returns a List of CostCenterRelationships
|
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 |
removeAllCostCenterRelationships()
Removes all the CostCenterRelationships
|
void |
removeAllPaymentGroupRelationships()
Removes all the PaymentGroupRelationships
|
void |
removeAllShippingGroupRelationships()
Removes all the ShippingGroupRelationships
|
CostCenterRelationship |
removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId)
Removes a CostCenterRelationship whose id is passed in.
|
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
|
public PricingCommerceItem()
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 ShippingGroupRelationshipContainerpublic void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addShippingGroupRelationship(ShippingGroupRelationship pShippingGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addShippingGroupRelationship in interface ShippingGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic ShippingGroupRelationship removeShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllShippingGroupRelationships()
removeAllShippingGroupRelationships in interface ShippingGroupRelationshipContainerpublic ShippingGroupRelationship getShippingGroupRelationship(java.lang.String pShippingGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getShippingGroupRelationship in interface ShippingGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getShippingGroupRelationshipCount()
getShippingGroupRelationshipCount in interface ShippingGroupRelationshipContainerpublic java.util.List getPaymentGroupRelationships()
getPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addPaymentGroupRelationship(PaymentGroupRelationship pPaymentGroupRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addPaymentGroupRelationship in interface PaymentGroupRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic PaymentGroupRelationship removePaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removePaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllPaymentGroupRelationships()
removeAllPaymentGroupRelationships in interface PaymentGroupRelationshipContainerpublic PaymentGroupRelationship getPaymentGroupRelationship(java.lang.String pPaymentGroupRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getPaymentGroupRelationship in interface PaymentGroupRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getPaymentGroupRelationshipCount()
getPaymentGroupRelationshipCount in interface PaymentGroupRelationshipContainerpublic java.util.List getCostCenterRelationships()
getCostCenterRelationships in interface CostCenterRelationshipContainerpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addCostCenterRelationship(CostCenterRelationship pCostCenterRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addCostCenterRelationship in interface CostCenterRelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic CostCenterRelationship removeCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenterRelationships()
removeAllCostCenterRelationships in interface CostCenterRelationshipContainerpublic CostCenterRelationship getCostCenterRelationship(java.lang.String pCostCenterRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getCostCenterRelationship in interface CostCenterRelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterRelationshipCount()
getCostCenterRelationshipCount in interface CostCenterRelationshipContainerpublic void clear()