public class AllowanceCharge extends Object
Represents trade surcharges and discounts as well as a reason.
| Constructor and Description |
|---|
AllowanceCharge()
|
| Modifier and Type | Method and Description |
|---|---|
Amount |
getActual()
|
Amount |
getBasis()
|
Quantity |
getBasisQuantity()
|
BigDecimal |
getCalculationPercent()
|
String |
getReason()
|
String |
getReasonCode()
|
BigDecimal |
getSequence()
|
boolean |
isDiscount()
|
boolean |
isSurcharge()
|
AllowanceCharge |
setActual(Amount actualAmount)
|
AllowanceCharge |
setBasis(Amount basisAmount)
|
void |
setBasisQuantity(Quantity basisQuantity)
|
void |
setCalculationPercent(BigDecimal calculationPercent)
|
AllowanceCharge |
setDiscount()
|
AllowanceCharge |
setReason(String reason)
|
void |
setReasonCode(String reasonCode)
|
void |
setSequence(BigDecimal sequence)
|
AllowanceCharge |
setSurcharge()
|
public AllowanceCharge()
Instantiates a new allowance charge.
public Quantity getBasisQuantity()
Gets the basis quantity.
public BigDecimal getCalculationPercent()
Gets the calculation percent.
public String getReasonCode()
Gets the reason code.
public BigDecimal getSequence()
Gets the sequence.
public boolean isDiscount()
Checks if is discount.
public boolean isSurcharge()
Checks if is a surcharge.
public AllowanceCharge setActual(Amount actualAmount)
Sets the actual amount.
actualAmount - the new actual amountpublic AllowanceCharge setBasis(Amount basisAmount)
Sets the basis amount.
basisAmount - the new basis amountpublic void setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
basisQuantity - the new basis quantitypublic void setCalculationPercent(BigDecimal calculationPercent)
Sets the calculation percent.
calculationPercent - the new calculation percentpublic AllowanceCharge setDiscount()
Sets the amount to be a discount.
public AllowanceCharge setReason(String reason)
Sets the reason.
reason - the new reasonpublic void setReasonCode(String reasonCode)
Sets the reason code.
reasonCode - the new reason codepublic void setSequence(BigDecimal sequence)
Sets the sequence.
sequence - the new sequencepublic AllowanceCharge setSurcharge()
Sets amount to be a surcharge.
Copyright © 2014 Konik.io. All Rights Reserved.