public class SpecifiedAllowanceCharge extends java.lang.Object implements CommonAllowanceCharge
Constructor and Description |
---|
SpecifiedAllowanceCharge()
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
|
AppliedTax |
getCategory()
Gets the category.
|
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.
|
SpecifiedAllowanceCharge |
setActual(Amount actualAmount)
Sets the actual amount.
|
SpecifiedAllowanceCharge |
setBasis(Amount basisAmount)
Sets the basis amount of the allowance charge.
|
SpecifiedAllowanceCharge |
setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
|
SpecifiedAllowanceCharge |
setCalculationPercent(java.math.BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
|
SpecifiedAllowanceCharge |
setCategory(AppliedTax category)
Sets the category.
|
SpecifiedAllowanceCharge |
setDiscount()
Sets the amount to be a discount.
|
SpecifiedAllowanceCharge |
setReason(java.lang.String reason)
Sets the reason free text
|
SpecifiedAllowanceCharge |
setReasonCode(java.lang.String reasonCode)
Sets the reason code for the reason content.
|
SpecifiedAllowanceCharge |
setSequence(java.math.BigDecimal sequence)
Sets the sequence number of the allowance charge.
|
SpecifiedAllowanceCharge |
setSurcharge()
Sets amount to be a surcharge.
|
public SpecifiedAllowanceCharge()
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 java.math.BigDecimal getCalculationPercent()
Gets the calculation percent of the allowance charge
getCalculationPercent
in interface CommonAllowanceCharge
@Comfort public AppliedTax getCategory()
Gets the category.
@Comfort public java.lang.String getReason()
Gets the reason free text
getReason
in interface CommonAllowanceCharge
@Extended public java.lang.String getReasonCode()
Gets the reason code for the reason content.
getReasonCode
in interface CommonAllowanceCharge
@Extended public java.math.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 CommonAllowanceCharge
public SpecifiedAllowanceCharge setActual(Amount actualAmount)
Sets the actual amount.
setActual
in interface CommonAllowanceCharge
actualAmount
- the new actual amountpublic SpecifiedAllowanceCharge setBasis(Amount basisAmount)
Sets the basis amount of the allowance charge.
setBasis
in interface CommonAllowanceCharge
basisAmount
- the new basis amountpublic SpecifiedAllowanceCharge setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
setBasisQuantity
in interface CommonAllowanceCharge
basisQuantity
- the new basis quantitypublic SpecifiedAllowanceCharge setCalculationPercent(java.math.BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
setCalculationPercent
in interface CommonAllowanceCharge
calculationPercent
- the new calculation percentpublic SpecifiedAllowanceCharge setCategory(AppliedTax category)
Sets the category.
category
- the new categorypublic SpecifiedAllowanceCharge setDiscount()
Sets the amount to be a discount.
setDiscount
in interface CommonAllowanceCharge
public SpecifiedAllowanceCharge setReason(java.lang.String reason)
Sets the reason free text
setReason
in interface CommonAllowanceCharge
reason
- the new reasonpublic SpecifiedAllowanceCharge setReasonCode(java.lang.String reasonCode)
Sets the reason code for the reason content.
setReasonCode
in interface CommonAllowanceCharge
reasonCode
- the new reason codepublic SpecifiedAllowanceCharge setSequence(java.math.BigDecimal sequence)
Sets the sequence number of the allowance charge.
setSequence
in interface CommonAllowanceCharge
sequence
- the new sequencepublic SpecifiedAllowanceCharge setSurcharge()
Sets amount to be a surcharge.
setSurcharge
in interface CommonAllowanceCharge
Copyright © 2014-2018 Konik.io. All Rights Reserved.