public class SpecifiedAllowanceCharge extends 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.
|
BigDecimal |
getCalculationPercent()
Gets the calculation percent of the allowance charge
|
AppliedTax |
getCategory()
Gets the category.
|
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.
|
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(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(String reason)
Sets the reason free text
|
SpecifiedAllowanceCharge |
setReasonCode(String reasonCode)
Sets the reason code for the reason content.
|
SpecifiedAllowanceCharge |
setSequence(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 BigDecimal getCalculationPercent()
Gets the calculation percent of the allowance charge
getCalculationPercent in interface CommonAllowanceCharge@Comfort public AppliedTax getCategory()
Gets the category.
@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 SpecifiedAllowanceCharge setActual(Amount actualAmount)
Sets the actual amount.
setActual in interface CommonAllowanceChargeactualAmount - the new actual amountpublic SpecifiedAllowanceCharge setBasis(Amount basisAmount)
Sets the basis amount of the allowance charge.
setBasis in interface CommonAllowanceChargebasisAmount - the new basis amountpublic SpecifiedAllowanceCharge setBasisQuantity(Quantity basisQuantity)
Sets the basis quantity.
setBasisQuantity in interface CommonAllowanceChargebasisQuantity - the new basis quantitypublic SpecifiedAllowanceCharge setCalculationPercent(BigDecimal calculationPercent)
Sets the calculation percent of the allowance charge.
setCalculationPercent in interface CommonAllowanceChargecalculationPercent - 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 CommonAllowanceChargepublic SpecifiedAllowanceCharge setReason(String reason)
Sets the reason free text
setReason in interface CommonAllowanceChargereason - the new reasonpublic SpecifiedAllowanceCharge setReasonCode(String reasonCode)
Sets the reason code for the reason content.
setReasonCode in interface CommonAllowanceChargereasonCode - the new reason codepublic SpecifiedAllowanceCharge setSequence(BigDecimal sequence)
Sets the sequence number of the allowance charge.
setSequence in interface CommonAllowanceChargesequence - the new sequencepublic SpecifiedAllowanceCharge setSurcharge()
Sets amount to be a surcharge.
setSurcharge in interface CommonAllowanceChargeCopyright © 2014-2016 Konik.io. All Rights Reserved.