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 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(java.math.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(java.lang.String reason)
Sets the reason free text
setReason in interface CommonAllowanceChargereason - the new reasonpublic SpecifiedAllowanceCharge setReasonCode(java.lang.String reasonCode)
Sets the reason code for the reason content.
setReasonCode in interface CommonAllowanceChargereasonCode - the new reason codepublic SpecifiedAllowanceCharge setSequence(java.math.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-2018 Konik.io. All Rights Reserved.