public class Discount
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Discount.Builder |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Discount> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.math.BigDecimal |
getAmountOff() |
java.math.BigDecimal |
getAmountWithDiscount(java.math.BigDecimal amount) |
java.math.BigDecimal |
getCouponAmount() |
java.lang.String |
getCurrencyId() |
java.lang.String |
getId() |
java.lang.String |
getName() |
java.math.BigDecimal |
getPercentOff() |
boolean |
hasPercentOff() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Discount> CREATOR
public java.math.BigDecimal getAmountOff()
public java.math.BigDecimal getCouponAmount()
public java.lang.String getCurrencyId()
public java.lang.String getId()
public java.lang.String getName()
public java.math.BigDecimal getPercentOff()
public java.math.BigDecimal getAmountWithDiscount(java.math.BigDecimal amount)
public boolean hasPercentOff()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable