public class AllowanceCharge extends java.lang.Object
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.
|
java.math.BigDecimal |
getCalculationPercent()
Gets the calculation percent of the allowance charge
|
java.lang.String |
getReason()
Gets the reason free text
|
java.lang.String |
getReasonCode()
Gets the reason code for the reason content.
|
java.math.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(java.math.BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
|
AllowanceCharge |
setDiscount()
Sets the amount to be a discount.
|
AllowanceCharge |
setReason(java.lang.String reason)
Sets the reason free text
|
AllowanceCharge |
setReasonCode(java.lang.String reasonCode)
Sets the reason code for the reason content.
|
AllowanceCharge |
setSequence(java.math.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.
@Extended public Amount getBasis()
Gets the basis amount of the allowance charge.
@Extended public Quantity getBasisQuantity()
Gets the basis quantity.
@Extended public java.math.BigDecimal getCalculationPercent()
Gets the calculation percent of the allowance charge
@Comfort public java.lang.String getReason()
Gets the reason free text
@Extended public java.lang.String getReasonCode()
Gets the reason code for the reason content.
@Extended public java.math.BigDecimal getSequence()
Gets the sequence number of the allowance charge
@NotNull(groups=Comfort.class) public boolean isDiscount()
Checks if is discount.
@NotNull(groups=Comfort.class) 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 of the allowance charge.
basisAmount - the new basis amountpublic AllowanceCharge setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
basisQuantity - the new basis quantitypublic AllowanceCharge setCalculationPercent(java.math.BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
calculationPercent - the new calculation percentpublic AllowanceCharge setDiscount()
Sets the amount to be a discount.
public AllowanceCharge setReason(java.lang.String reason)
Sets the reason free text
reason - the new reasonpublic AllowanceCharge setReasonCode(java.lang.String reasonCode)
Sets the reason code for the reason content.
reasonCode - the new reason codepublic AllowanceCharge setSequence(java.math.BigDecimal sequence)
Sets the sequence number of the allowance charge.
sequence - the new sequencepublic AllowanceCharge setSurcharge()
Sets amount to be a surcharge.
Copyright © 2014-2015 Konik.io. All Rights Reserved.