public class ReceiptAllowanceCharge
extends java.lang.Object
| Constructor and Description |
|---|
ReceiptAllowanceCharge() |
| Modifier and Type | Method and Description |
|---|---|
static ReceiptAllowanceCharge |
AdminFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
AdminFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
AmendmentFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
AmendmentFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
BookingFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
BookingFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
DeliveryFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
DeliveryFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
FreightFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
FreightFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
GeneralDiscount(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
GeneralDiscount(double amount,
java.lang.String description,
Tax tax) |
java.lang.String |
getDescription() |
double |
getId() |
java.math.BigDecimal |
getNetTotal() |
java.math.BigDecimal |
getSubTotal() |
java.util.List<Tax> |
getTaxes() |
java.math.BigDecimal |
getTaxesTotal() |
java.math.BigDecimal |
getTaxesTotal(TaxCode taxCode)
Calculates the TaxesTotal for the given TaxCode
|
java.math.BigDecimal |
getTotal() |
SettlementType |
getType() |
static ReceiptAllowanceCharge |
HandlingFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
HandlingFee(double amount,
java.lang.String description,
Tax tax) |
boolean |
hasTaxes() |
boolean |
isAllowance() |
boolean |
isCharge() |
static ReceiptAllowanceCharge |
MultiBuyDiscount(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
MultiBuyDiscount(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
PackagingFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
PackagingFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
ProcessingFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
ProcessingFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
ReturnOrCancellationFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
ReturnOrCancellationFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
ServiceFee(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
ServiceFee(double amount,
java.lang.String description,
Tax tax) |
static ReceiptAllowanceCharge |
Tip(double amount,
java.lang.String description) |
static ReceiptAllowanceCharge |
Tip(double amount,
java.lang.String description,
Tax tax) |
public double getId()
public SettlementType getType()
public java.math.BigDecimal getSubTotal()
public java.lang.String getDescription()
public java.math.BigDecimal getNetTotal()
public java.math.BigDecimal getTotal()
public boolean hasTaxes()
public java.math.BigDecimal getTaxesTotal()
public java.math.BigDecimal getTaxesTotal(TaxCode taxCode)
taxCode - to filter the taxespublic java.util.List<Tax> getTaxes()
public boolean isCharge()
public boolean isAllowance()
public static ReceiptAllowanceCharge Tip(double amount, java.lang.String description)
public static ReceiptAllowanceCharge Tip(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge DeliveryFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge DeliveryFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge FreightFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge FreightFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge PackagingFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge PackagingFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge ProcessingFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge ProcessingFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge BookingFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge BookingFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge GeneralDiscount(double amount, java.lang.String description)
public static ReceiptAllowanceCharge GeneralDiscount(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge MultiBuyDiscount(double amount, java.lang.String description)
public static ReceiptAllowanceCharge MultiBuyDiscount(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge ServiceFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge ServiceFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge AdminFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge AdminFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge AmendmentFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge AmendmentFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge HandlingFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge HandlingFee(double amount, java.lang.String description, Tax tax)
public static ReceiptAllowanceCharge ReturnOrCancellationFee(double amount, java.lang.String description)
public static ReceiptAllowanceCharge ReturnOrCancellationFee(double amount, java.lang.String description, Tax tax)