Package com.stripe.model
Class Quote.Computed.Recurring.TotalDetails.Breakdown.Discount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Quote.Computed.Recurring.TotalDetails.Breakdown.Discount
- All Implemented Interfaces:
StripeActiveObject,StripeObjectInterface
- Enclosing class:
- Quote.Computed.Recurring.TotalDetails.Breakdown
public static class Quote.Computed.Recurring.TotalDetails.Breakdown.Discount
extends StripeObject
implements StripeActiveObject
For more details about Discount, please refer to the API Reference.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Discount
public Discount()
-
-
Method Details
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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()
-