public class AllowanceCharge extends Object implements CommonAllowanceCharge
Represents a trade surcharge or discount and contains reason information for that.
| Constructor and Description |
|---|
AllowanceCharge()
Instantiates a new allowance charge.
|
| Modifier and Type | Method and Description |
|---|---|
Amount |
getActual()
Gets the actual amount.
|
Amount |
getBasis()
Gets the basis amount of the allowance charge.
|
Quantity |
getBasisQuantity()
Gets the basis quantity.
|
BigDecimal |
getCalculationPercent()
Gets the calculation percent of the allowance charge
|
String |
getReason()
Gets the reason free text
|
String |
getReasonCode()
Gets the reason code for the reason content.
|
BigDecimal |
getSequence()
Gets the sequence number of the allowance charge
|
boolean |
isDiscount()
Checks if is discount.
|
boolean |
isSurcharge()
Checks if is a surcharge.
|
AllowanceCharge |
setActual(Amount actualAmount)
Sets the actual amount.
|
AllowanceCharge |
setBasis(Amount basisAmount)
Sets the basis amount of the allowance charge.
|
AllowanceCharge |
setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
|
AllowanceCharge |
setCalculationPercent(BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
|
AllowanceCharge |
setDiscount()
Sets the amount to be a discount.
|
AllowanceCharge |
setReason(String reason)
Sets the reason free text
|
AllowanceCharge |
setReasonCode(String reasonCode)
Sets the reason code for the reason content.
|
AllowanceCharge |
setSequence(BigDecimal sequence)
Sets the sequence number of the allowance charge.
|
AllowanceCharge |
setSurcharge()
Sets amount to be a surcharge.
|
public AllowanceCharge()
Instantiates a new allowance charge.
@NotNull(groups=Comfort.class) public Amount getActual()
Gets the actual amount.
getActual in interface CommonAllowanceCharge@Extended public Amount getBasis()
Gets the basis amount of the allowance charge.
getBasis in interface CommonAllowanceCharge@Extended public Quantity getBasisQuantity()
Gets the basis quantity.
getBasisQuantity in interface CommonAllowanceCharge@Extended public BigDecimal getCalculationPercent()
Gets the calculation percent of the allowance charge
getCalculationPercent in interface CommonAllowanceCharge@Comfort public String getReason()
Gets the reason free text
getReason in interface CommonAllowanceCharge@Extended public String getReasonCode()
Gets the reason code for the reason content.
getReasonCode in interface CommonAllowanceCharge@Extended public BigDecimal getSequence()
Gets the sequence number of the allowance charge
getSequence in interface CommonAllowanceCharge@NotNull(groups=Comfort.class) public boolean isDiscount()
Checks if is discount.
isDiscount in interface CommonAllowanceCharge@NotNull(groups=Comfort.class) public boolean isSurcharge()
Checks if is a surcharge.
isSurcharge in interface CommonAllowanceChargepublic AllowanceCharge setActual(Amount actualAmount)
Sets the actual amount.
setActual in interface CommonAllowanceChargeactualAmount - the new actual amountpublic AllowanceCharge setBasis(Amount basisAmount)
Sets the basis amount of the allowance charge.
setBasis in interface CommonAllowanceChargebasisAmount - the new basis amountpublic AllowanceCharge setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
setBasisQuantity in interface CommonAllowanceChargebasisQuantity - the new basis quantitypublic AllowanceCharge setCalculationPercent(BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
setCalculationPercent in interface CommonAllowanceChargecalculationPercent - the new calculation percentpublic AllowanceCharge setDiscount()
Sets the amount to be a discount.
setDiscount in interface CommonAllowanceChargepublic AllowanceCharge setReason(String reason)
Sets the reason free text
setReason in interface CommonAllowanceChargereason - the new reasonpublic AllowanceCharge setReasonCode(String reasonCode)
Sets the reason code for the reason content.
setReasonCode in interface CommonAllowanceChargereasonCode - the new reason codepublic AllowanceCharge setSequence(BigDecimal sequence)
Sets the sequence number of the allowance charge.
setSequence in interface CommonAllowanceChargesequence - the new sequencepublic AllowanceCharge setSurcharge()
Sets amount to be a surcharge.
setSurcharge in interface CommonAllowanceChargeCopyright © 2014-2016 Konik.io. All Rights Reserved.