Package com.stripe.model
Class LineItem.Discount
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.LineItem.Discount
-
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- LineItem
public static class LineItem.Discount extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Discount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAmount
public java.lang.Long getAmount()
The amount discounted.
-
getDiscount
public LineItem.Discount getDiscount()
A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end.Related guide: Applying Discounts to Subscriptions.
-
setAmount
public void setAmount(java.lang.Long amount)
The amount discounted.
-
setDiscount
public void setDiscount(LineItem.Discount discount)
A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end.Related guide: Applying Discounts to Subscriptions.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-