public static class LineItem.Discount extends StripeObject
PRETTY_PRINT_GSON| Constructor and Description |
|---|
Discount() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
The amount discounted.
|
LineItem.Discount |
getDiscount()
A discount represents the actual application of a coupon to a particular customer.
|
int |
hashCode() |
void |
setAmount(java.lang.Long amount)
The amount discounted.
|
void |
setDiscount(LineItem.Discount discount)
A discount represents the actual application of a coupon to a particular customer.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.Long getAmount()
public LineItem.Discount getDiscount()
Related guide: Applying Discounts to Subscriptions.
public void setAmount(java.lang.Long amount)
public void setDiscount(LineItem.Discount discount)
Related guide: Applying Discounts to Subscriptions.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object