public class ShippingAdjustmentDataBean extends java.lang.Object implements ShippingAdjustmentCommandDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
emptyString
Constructor and Description |
---|
ShippingAdjustmentDataBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource.
|
java.lang.String |
getCommandInterfaceName()
This method returns the command interface name for the command data bean.
|
java.math.BigDecimal |
getCurrentShipModePercentageOff()
This method returns the current TSR given shipping adjustment percentage value, this number may be given by previous TSR or
given by this TSR previously.
|
Protectable |
getDelegate()
Retrieves its delegate.
|
FormattedMonetaryAmountDataBean |
getFormattedAdjustableBaseShipModeTotalAmount()
This method returns the total adjustable cost of shipping with no adjustments and/or discounts that apply to this shipMode and is adjustable.
|
FormattedMonetaryAmountDataBean |
getFormattedAdjustableTSRBaseShipModeTotalAmount()
This method returns the TSR base amount on which current TSR can give adjustment.
|
FormattedMonetaryAmountDataBean |
getFormattedCurrentShipModeAdjustmentAmount()
This method returns the sum of the current shipping adjustments applied to items with this shipMode.
|
FormattedMonetaryAmountDataBean |
getFormattedCurrentShipModeTotalAmount()
This method returns the total cost of the shipping charge for the order for editable item with this shipping mode.
|
FormattedMonetaryAmountDataBean |
getFormattedPotentialShipModeAdjustmentAmount()
This method returns the Max Allowable shipping adjustment amount the current TSR can give
for this specific shipping mode within his/her role limit.
|
FormattedMonetaryAmountDataBean |
getFormattedPotentialShipModeTotalAmount()
This method returns the shipping charge amount assuming the current TSR gave his/her Max Allowable
shipping adjustment amount for this specific shipping mode.
|
FormattedMonetaryAmountDataBean |
getFormattedUnadjustableCurrentShipModeTotalAmount()
This method returns the total cost of the shipping charge for the order for non-editable item with this shipping mode.
|
java.math.BigDecimal |
getMaxPercentageOff()
This method returns the Max Allowable shipping adjustment percentage value the current TSR can give
for this specific shipping mode within his/her role limit.
|
java.lang.String |
getOrderId()
This method returns the string representation of the orderId to which this databean is belong.
|
java.lang.Long |
getOwner()
Retrieves the member id of the owner of the databean, the member id of the store.
|
TypedProperty |
getRequestProperties()
This method returns the request properties of the input data bean.
|
MemberDataBean |
getServiceRepresentative()
This method returns the
MemberDataBean of the TSR who have given the current shipping adjustment. |
java.lang.String |
getShipModeId()
This method returns the string representation of the shipModeId.
|
ShippingAdjustmentDataBean[] |
getShippingAdjustmentDataBeans()
This method returns a set of ShippingAdjustmentDataBean databeans, each databean corresponding to one shipMode in the Order.
|
void |
setCommandInterfaceName(java.lang.String aCommandInterface)
This method sets the command interface name for the command data bean.
|
void |
setCurrentShipModePercentageOff(java.math.BigDecimal aCurrentShipModePercentageOff)
This method sets the current TSR given shipping adjustment percentage value, this number may be given by previous TSR or
given by this TSR previously.
|
void |
setFormattedAdjustableBaseShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedAdjustableBaseShipModeTotalAmount)
This method sets the total adjustable cost of shipping with no adjustments and/or discounts that apply to this shipMode and is adjustable.
|
void |
setFormattedAdjustableTSRBaseShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedAdjustableTSRBaseShipModeTotalAmount)
This method sets the TSR base amount on which current TSR can give adjustment.
|
void |
setFormattedCurrentShipModeAdjustmentAmount(FormattedMonetaryAmountDataBean aFormattedCurrentShipModeAdjustmentAmount)
This method sets the sum of the current shipping adjustments applied to items with this shipMode.
|
void |
setFormattedCurrentShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedCurrentShipModeTotalAmount)
This method sets the total cost of the shipping charge for the order for editable item with this shipping mode.
|
void |
setFormattedPotentialShipModeAdjustmentAmount(FormattedMonetaryAmountDataBean aFormattedPotentialShipmodeAdjustmentAmount)
This method sets the Max Allowable shipping adjustment amount the current TSR can give
for this specific shipping mode within his/her role limit.
|
void |
setFormattedPotentialShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedPotentialShipmodeTotalAmount)
This method sets the shipping charge amount assuming the current TSR gave his/her Max Allowable
shipping adjustment amount for this specific shipping mode.
|
void |
setFormattedUnadjustableCurrentShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedUnadjustableCurrentShipModeTotalAmount)
This method sets the total adjustable cost of the shipping charge for the order for non-editable item with this shipping mode.
|
void |
setMaxPercentageOff(java.math.BigDecimal aMaxPercentageOff)
This method sets the Max Allowable shipping adjustment percentage value the current TSR can give
for this specific shipping mode within his/her role limit.
|
void |
setOrderId(java.lang.String aOrderId)
This method sets the OrderId for retrieving a set of ShippingAdjustmentDataBean databeans.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the requestProperties associated
with the input data bean.
|
void |
setServiceRepresentative(MemberDataBean aServiceRepresentative)
This method sets the
MemberDataBean of the TSR who have given the current shipping adjustment. |
void |
setShipModeId(java.lang.String aShipModeId)
This method sets the string representation of the shipModeId.
|
void |
setShippingAdjustmentDataBeans(ShippingAdjustmentDataBean[] aShippingAdjustmentDataBeans)
This method sets a set of ShippingAdjustmentDataBean databeans, each databean corresponding to one shipMode in the Order.
|
public static final java.lang.String COPYRIGHT
public void setOrderId(java.lang.String aOrderId)
setOrderId
in interface ShippingAdjustmentCommandDataBean
aOrderId
- the Order IDpublic java.lang.String getOrderId()
getOrderId
in interface ShippingAdjustmentCommandDataBean
public void setShippingAdjustmentDataBeans(ShippingAdjustmentDataBean[] aShippingAdjustmentDataBeans)
aShippingAdjustmentDataBeans
- an array of ShippingAdjustmentDataBeanpublic ShippingAdjustmentDataBean[] getShippingAdjustmentDataBeans()
getShippingAdjustmentDataBeans
in interface ShippingAdjustmentCommandDataBean
public void setShipModeId(java.lang.String aShipModeId)
aShipModeId
- the string representation of the shipModeIdpublic java.lang.String getShipModeId()
getShipModeId
in interface ShippingAdjustmentCommandDataBean
public void setServiceRepresentative(MemberDataBean aServiceRepresentative)
MemberDataBean
of the TSR who have given the current shipping adjustment.aServiceRepresentative
- the MemberDataBean of the TSR.public MemberDataBean getServiceRepresentative()
MemberDataBean
of the TSR who have given the current shipping adjustment.getServiceRepresentative
in interface ShippingAdjustmentCommandDataBean
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface InputDataBean
aRequestProperties
- the set of properties passed to the JSP page that invokes this data bean,public void setCommandInterfaceName(java.lang.String aCommandInterface)
setCommandInterfaceName
in interface CommandDataBean
aCommandInterface
- the name of the interface of the command.public java.lang.String getCommandInterfaceName()
getCommandInterfaceName
in interface CommandDataBean
public Protectable getDelegate()
getDelegate
in interface Delegator
public java.lang.Long getOwner()
getOwner
in interface Protectable
public boolean fulfills(java.lang.Long member, java.lang.String relationship)
fulfills
in interface Protectable
member
- The member ID of the member.relationship
- The relationship the member has with respect to the resource.public void setFormattedAdjustableBaseShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedAdjustableBaseShipModeTotalAmount)
aFormattedAdjustableBaseShipModeTotalAmount
- the formatted adjustable base shipMode total amount.public FormattedMonetaryAmountDataBean getFormattedAdjustableBaseShipModeTotalAmount()
getFormattedAdjustableBaseShipModeTotalAmount
in interface ShippingAdjustmentCommandDataBean
public void setFormattedAdjustableTSRBaseShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedAdjustableTSRBaseShipModeTotalAmount)
aFormattedAdjustableTSRBaseShipModeTotalAmount
- the current TSR given shipping adjustment amount.public FormattedMonetaryAmountDataBean getFormattedAdjustableTSRBaseShipModeTotalAmount()
getFormattedAdjustableTSRBaseShipModeTotalAmount
in interface ShippingAdjustmentCommandDataBean
public void setFormattedCurrentShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedCurrentShipModeTotalAmount)
aFormattedCurrentShipModeTotalAmount
- the formatted TSR base shipMode total amount.public FormattedMonetaryAmountDataBean getFormattedCurrentShipModeTotalAmount()
getFormattedCurrentShipModeTotalAmount
in interface ShippingAdjustmentCommandDataBean
public void setFormattedUnadjustableCurrentShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedUnadjustableCurrentShipModeTotalAmount)
aFormattedUnadjustableCurrentShipModeTotalAmount
- the formatted adjustable TSR base shipMode total amount.public FormattedMonetaryAmountDataBean getFormattedUnadjustableCurrentShipModeTotalAmount()
getFormattedUnadjustableCurrentShipModeTotalAmount
in interface ShippingAdjustmentCommandDataBean
public void setFormattedCurrentShipModeAdjustmentAmount(FormattedMonetaryAmountDataBean aFormattedCurrentShipModeAdjustmentAmount)
aFormattedCurrentShipModeAdjustmentAmount
- the sum of the current shipping adjustments applied to items with this shipMode.public FormattedMonetaryAmountDataBean getFormattedCurrentShipModeAdjustmentAmount()
getFormattedCurrentShipModeAdjustmentAmount
in interface ShippingAdjustmentCommandDataBean
public void setCurrentShipModePercentageOff(java.math.BigDecimal aCurrentShipModePercentageOff)
aCurrentShipModePercentageOff
- the current TSR given shipping adjustment percentage value.public java.math.BigDecimal getCurrentShipModePercentageOff()
getCurrentShipModePercentageOff
in interface ShippingAdjustmentCommandDataBean
public void setFormattedPotentialShipModeTotalAmount(FormattedMonetaryAmountDataBean aFormattedPotentialShipmodeTotalAmount)
aFormattedPotentialShipmodeTotalAmount
- the shipping charge amount assuming the current TSR gave his/her Max Allowable shipping adjustment amount.public FormattedMonetaryAmountDataBean getFormattedPotentialShipModeTotalAmount()
getFormattedPotentialShipModeTotalAmount
in interface ShippingAdjustmentCommandDataBean
public void setFormattedPotentialShipModeAdjustmentAmount(FormattedMonetaryAmountDataBean aFormattedPotentialShipmodeAdjustmentAmount)
aFormattedPotentialShipmodeAdjustmentAmount
- the Max Allowable shipping adjustment amount.public FormattedMonetaryAmountDataBean getFormattedPotentialShipModeAdjustmentAmount()
getFormattedPotentialShipModeAdjustmentAmount
in interface ShippingAdjustmentCommandDataBean
public void setMaxPercentageOff(java.math.BigDecimal aMaxPercentageOff)
aMaxPercentageOff
- the Max Allowable shipping adjustment percentage value.public java.math.BigDecimal getMaxPercentageOff()
getMaxPercentageOff
in interface ShippingAdjustmentCommandDataBean