public interface HandlingInstruction extends 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 |
---|---|
java.lang.String |
getCommerceItemId()
Returns the commerceItemId
|
java.lang.String |
getHandlingInstructionClassType()
Returns the handlingInstructionClassType
|
java.lang.String |
getHandlingMethod()
Returns the handlingMethod
|
long |
getQuantity()
Returns the quantity
|
double |
getQuantityDerivedAsFloatingPoint()
This method will return a derived quantity value which this CommerceItem object represents.
|
double |
getQuantityWithFraction()
Returns the fractional number of quantity which this HandlingInstruction
object represents.
|
java.lang.String |
getShippingGroupId()
Returns the shippingGroupId
|
boolean |
isFractional()
This returns
true if fractional quantity is set (i.e. |
void |
setCommerceItemId(java.lang.String pCommerceItemId)
Sets the commerceItemId
|
void |
setHandlingInstructionClassType(java.lang.String pHandlingInstructionClassType)
Sets the handlingInstructionClassType
|
void |
setHandlingMethod(java.lang.String pHandlingMethod)
Sets the handlingMethod
|
void |
setQuantity(long pQuantity)
Sets the quantity
|
void |
setQuantityWithFraction(double pQuantityWithFraction)
Sets the fractional number of quantity which this HandlingInstruction object
represents.
|
void |
setShippingGroupId(java.lang.String pShippingGroupId)
Sets the shippingGroupId
|
getId
static final java.lang.String CLASS_VERSION
java.lang.String getHandlingInstructionClassType()
void setHandlingInstructionClassType(java.lang.String pHandlingInstructionClassType)
java.lang.String getHandlingMethod()
void setHandlingMethod(java.lang.String pHandlingMethod)
java.lang.String getShippingGroupId()
void setShippingGroupId(java.lang.String pShippingGroupId)
java.lang.String getCommerceItemId()
void setCommerceItemId(java.lang.String pCommerceItemId)
long getQuantity()
void setQuantity(long pQuantity)
double 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.