public interface CommerceItem extends ShippingGroupRelationshipContainer, PaymentGroupRelationshipContainer, CostCenterRelationshipContainer, CommerceIdentifier, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
AuxiliaryData |
getAuxiliaryData()
returns the AuxiliaryData.
|
java.lang.String |
getCatalogId()
Returns the catalogId
|
java.lang.String |
getCatalogKey()
Returns the catalogKey
|
java.lang.String |
getCatalogRefId()
Returns the catalogRefId
|
java.lang.String |
getCommerceItemClassType()
Returns the commerceItemClassType
|
java.lang.String |
getExternalId()
Returns property externalId.
|
ItemPriceInfo |
getPriceInfo()
returns the CommerceItemPriceInfo object.
|
long |
getQuantity()
returns the number of CommerceItems which this CommerceItem object represents.
|
double |
getQuantityDerivedAsFloatingPoint()
This method will return a derived quantity value which this CommerceItem object represents.
|
double |
getQuantityWithFraction()
Returns the fractional number of CommerceItems which this CommerceItem
object represents.
|
long |
getReturnedQuantity()
Returns the returnedQuantity
|
double |
getReturnedQuantityDerivedAsFloatingPoint()
This method will return a derived returned quantity value which this CommerceItem object represents.
|
double |
getReturnedQuantityWithFraction()
Returns the number of CommerceItems to be returned.
|
int |
getState()
Returns the state
|
java.lang.String |
getStateDetail()
Returns the stateDetail
|
boolean |
isFractional()
This returns
true if fractional quantity is set (i.e. |
void |
setCatalogId(java.lang.String pCatalogId)
Sets the catalogId
|
void |
setCatalogKey(java.lang.String pCatalogKey)
Sets the catalogKey
|
void |
setCatalogRefId(java.lang.String pCatalogRefId)
Sets the catalogRefId
|
void |
setCommerceItemClassType(java.lang.String pCommerceItemClassType)
Sets the commerceItemClassType
|
void |
setExternalId(java.lang.String pExternalId)
Sets property externalId.
|
void |
setPriceInfo(ItemPriceInfo pPriceInfo)
sets the ItemPriceInfo object.
|
void |
setQuantity(long pQuantity)
sets the number of CommerceItems which this CommerceItem object represents.
|
void |
setQuantityWithFraction(double pQuantityWithFraction)
Sets the fractional number of CommerceItems which this CommerceItem object
represents.
|
void |
setState(int pState)
Sets the state
|
void |
setStateDetail(java.lang.String pStateDetail)
Sets the stateDetail
|
addShippingGroupRelationship, addShippingGroupRelationship, getShippingGroupRelationship, getShippingGroupRelationshipCount, getShippingGroupRelationships, removeAllShippingGroupRelationships, removeShippingGroupRelationship
addPaymentGroupRelationship, addPaymentGroupRelationship, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, removeAllPaymentGroupRelationships, removePaymentGroupRelationship
addCostCenterRelationship, addCostCenterRelationship, getCostCenterRelationship, getCostCenterRelationshipCount, getCostCenterRelationships, removeAllCostCenterRelationships, removeCostCenterRelationship
getId
static final java.lang.String CLASS_VERSION
java.lang.String getCommerceItemClassType()
void setCommerceItemClassType(java.lang.String pCommerceItemClassType)
void setExternalId(java.lang.String pExternalId)
java.lang.String getExternalId()
java.lang.String getCatalogId()
void setCatalogId(java.lang.String pCatalogId)
java.lang.String getCatalogRefId()
void setCatalogRefId(java.lang.String pCatalogRefId)
java.lang.String getCatalogKey()
void setCatalogKey(java.lang.String pCatalogKey)
long getQuantity()
void setQuantity(long pQuantity)
pQuantity
- the new value for the quantitydouble getQuantityWithFraction()
double
value.void setQuantityWithFraction(double pQuantityWithFraction)
pQuantityWithFraction
- the new value for the quantity with fraction.double getQuantityDerivedAsFloatingPoint()
The implementation of this method will decide upon the correct quantity value to return, when
considering the quantity
and quantityWithFraction
properties.
The method should be used where there is a need to know the quantity of an item
but it is unknown to the caller as to which property (quantityWithFraction
or
quantity
holds the value.
boolean isFractional()
true
if fractional quantity is set (i.e. it has the
fractional value which is greater than zero) for the item for which this relationship
represents, otherwise false
is returned.boolean
value.long getReturnedQuantity()
double getReturnedQuantityWithFraction()
double getReturnedQuantityDerivedAsFloatingPoint()
The implementation of this method will decide upon the correct returned quantity value to return, when
considering the returnedQuantity
and returnedQuantityWithFraction
properties.
The method should be used where there is a need to know the returned quantity of an item
but it is unknown to the caller as to which property (returnedQuantityWithFraction
or
returnedQuantity
holds the value.
int getState()
void setState(int pState)
java.lang.String getStateDetail()
void setStateDetail(java.lang.String pStateDetail)
ItemPriceInfo getPriceInfo()
void setPriceInfo(ItemPriceInfo pPriceInfo)
pPriceInfo
- the PriceInfo object to setAuxiliaryData getAuxiliaryData()