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
For more details about Discount, please refer to the API
 Reference.
- 
Field SummaryFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanThe amount discounted.A discount represents the actual application of a coupon or promotion code.inthashCode()voidThe amount discounted.voidsetDiscount(Discount discount) A discount represents the actual application of a coupon or promotion code.Methods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
- 
Constructor Details- 
Discountpublic Discount()
 
- 
- 
Method Details- 
getAmountThe amount discounted.
- 
getDiscountA discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.Related guide: Applying discounts to subscriptions 
- 
setAmountThe amount discounted.
- 
setDiscountA discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.Related guide: Applying discounts to subscriptions 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-