Package com.six.timapi
Class AmountDiscount
- java.lang.Object
-
- com.six.timapi.Amount
-
- com.six.timapi.AmountDiscount
-
public class AmountDiscount extends Amount
Contains the amount for transactions. The amount can be specified in minor units as integer value or in major units as floating point value.
-
-
Constructor Summary
Constructors Constructor Description AmountDiscount(double amount, Currency currency, int exponent, String discountId)
Create amount using major units.AmountDiscount(double amount, Currency currency, String discountId)
Create amount using major units.AmountDiscount(int amount, Currency currency, int exponent, String discountId)
Create amount using minor units.AmountDiscount(int amount, Currency currency, String discountId)
Create amount using minor units.AmountDiscount(long amount, Currency currency, int exponent, String discountId)
Create amount using minor units.AmountDiscount(long amount, Currency currency, String discountId)
Create amount using minor units.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDiscountId()
Discount type.void
setDiscountId(String discountId)
Set discount type.String
toString()
String representation for debugging purpose.-
Methods inherited from class com.six.timapi.Amount
createSavedState, getAmount, getCurrency, getDecimalValue, getExponent, getIntAmount, setAmount, setCurrency, setDecimalValue, setExponent, setIntAmount
-
-
-
-
Constructor Detail
-
AmountDiscount
public AmountDiscount(int amount, Currency currency, String discountId)
Create amount using minor units.
-
AmountDiscount
public AmountDiscount(int amount, Currency currency, int exponent, String discountId)
Create amount using minor units.
-
AmountDiscount
public AmountDiscount(long amount, Currency currency, String discountId)
Create amount using minor units.
-
AmountDiscount
public AmountDiscount(long amount, Currency currency, int exponent, String discountId)
Create amount using minor units.
-
AmountDiscount
public AmountDiscount(double amount, Currency currency, String discountId)
Create amount using major units.
-
-