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
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount discounted.A discount represents the actual application of a coupon or promotion code.int
hashCode()
void
The amount discounted.void
setDiscount
(Discount discount) A discount represents the actual application of a coupon or promotion code.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Discount
public Discount()
-
-
Method Details
-
getAmount
The amount discounted. -
getDiscount
A 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.
-
setAmount
The amount discounted. -
setDiscount
A 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
-
hashCode
public int hashCode()
-