public class AllowanceCharge extends java.lang.Object
Represents trade surcharges and discounts as well as a reason.
| Constructor and Description |
|---|
AllowanceCharge() |
| Modifier and Type | Method and Description |
|---|---|
Amount |
getActualAmount()
|
Amount |
getBasisAmount()
|
Tax |
getCategory()
|
java.lang.String |
getReason()
|
boolean |
isDiscount()
|
boolean |
isSurcharge()
|
AllowanceCharge |
setActualAmount(Amount actualAmount)
|
AllowanceCharge |
setBasisAmount(Amount basisAmount)
|
AllowanceCharge |
setCategory(Tax category)
|
AllowanceCharge |
setDiscount()
|
AllowanceCharge |
setReason(java.lang.String reason)
|
AllowanceCharge |
setSurcharge()
|
public AllowanceCharge()
public Amount getActualAmount()
Gets the actual amount.
public Amount getBasisAmount()
Gets the basis amount.
public Tax getCategory()
Gets the category.
public java.lang.String getReason()
Gets the reason.
public boolean isDiscount()
Checks if is discount.
public boolean isSurcharge()
Checks if is a surcharge.
public AllowanceCharge setActualAmount(Amount actualAmount)
Sets the actual amount.
actualAmount - the new actual amountpublic AllowanceCharge setBasisAmount(Amount basisAmount)
Sets the basis amount.
basisAmount - the new basis amountpublic AllowanceCharge setCategory(Tax category)
Sets the category.
category - the new categorypublic AllowanceCharge setDiscount()
Sets the amount to be a discount.
public AllowanceCharge setReason(java.lang.String reason)
Sets the reason.
reason - the new reasonpublic AllowanceCharge setSurcharge()
Sets amount to be a surcharge.
Copyright © 2014 konik.io. All Rights Reserved.