public class ServiceDiscount
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.Integer |
DISCOUNT_APPLY_TYPE_ALLAFFECTED
ApplyType for AllAffectedItems
|
static java.lang.Integer |
DISCOUNT_APPLY_TYPE_INDIVIDUAL
ApplyType for IndividualItems
|
static java.lang.Integer |
DISCOUNT_APPLY_TYPE_WHOLEORDER
ApplyType for WholeOrder
|
Constructor and Description |
---|
ServiceDiscount()
Constructor for ServiceDiscount.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getApplyType()
Get the service discount apply type which is used to indicate the type of the Adjustment from which the ServiceDiscount was created.
|
java.lang.String |
getInternalShippingMode()
Get internal shipping mode in String type.
|
java.lang.Integer |
getMode()
Get the mode of the Adjustment for which the ServiceDiscount is created.
|
java.lang.Long[] |
getOrderItemIds()
Get the order item IDs for the order items to which the ServiceDiscount will apply.
|
java.math.BigDecimal |
getQuantity()
Get quantity.
|
java.lang.String |
getServiceName()
Get service name, for example "wcs_shipping".
|
java.lang.Integer |
getShippingMode()
Get shipping mode in Integer type.
|
java.math.BigDecimal |
getStartsAt()
Get the subset of the order item quantity referred to by the AssociatedOrderItem.
|
java.math.BigDecimal |
getValue()
Get the adjustment value associated with the ServiceDiscount.
|
void |
setApplyType(java.lang.Integer newValue)
Set the service discount apply type which is used to indicate the type of the Adjustment from which the ServiceDiscount was created.
|
void |
setInternalShippingMode(java.lang.String newValue)
Set internal shipping mode by passing String value.
|
void |
setMode(java.lang.Integer newMode)
Set the mode of the Adjustment for which the ServiceDiscount is created.
|
void |
setOrderItemIds(java.lang.Long[] newOrderItemId)
Set the order item IDs for the order items to which the ServiceDiscount will apply.
|
void |
setQuantity(java.math.BigDecimal newQuantity)
Set quantity.
|
void |
setServiceName(java.lang.String newServiceName)
Set the service name, for example "wcs_shipping".
|
void |
setShippingMode(java.lang.Integer newShippingMode)
Set shipping mode by passing Integer value.
|
void |
setStartsAt(java.math.BigDecimal newStartsAt)
Set the subset of the order item quantity referred to by the AssociatedOrderItem.
|
void |
setValue(java.math.BigDecimal newValue)
Set the adjustment value for the ServiceDiscount object.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.Integer DISCOUNT_APPLY_TYPE_WHOLEORDER
public static final java.lang.Integer DISCOUNT_APPLY_TYPE_ALLAFFECTED
public static final java.lang.Integer DISCOUNT_APPLY_TYPE_INDIVIDUAL
public java.lang.Integer getMode()
public java.lang.String getServiceName()
public java.lang.Integer getShippingMode()
public java.math.BigDecimal getValue()
public void setMode(java.lang.Integer newMode)
newMode
- the mode of the adjustment. Possible values include 1 - PercentageOff, 2 - FixedAmountOff, 3 - FixedCost.public void setServiceName(java.lang.String newServiceName)
newServiceName
- The service name to set.public void setShippingMode(java.lang.Integer newShippingMode)
newShippingMode
- java.lang.Integerpublic void setValue(java.math.BigDecimal newValue)
newValue
- The new adjustment value to set.public void setInternalShippingMode(java.lang.String newValue)
newValue
- java.lang.Stringpublic java.lang.String getInternalShippingMode()
public void setApplyType(java.lang.Integer newValue)
newValue
- An Integer representing the service discount apply type.public java.lang.Integer getApplyType()
public java.lang.Long[] getOrderItemIds()
public void setOrderItemIds(java.lang.Long[] newOrderItemId)
newOrderItemId
- An array of the order item IDs to set.public java.math.BigDecimal getStartsAt()
public void setStartsAt(java.math.BigDecimal newStartsAt)
newStartsAt
- The starts at quantity of the associated order item to set.public java.math.BigDecimal getQuantity()
public void setQuantity(java.math.BigDecimal newQuantity)
newQuantity
- java.math.BigDecimal