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.
  • Constructor Details

    • Discount

      public Discount()
  • Method Details

    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAmount

      public Long getAmount()
      The amount discounted.
    • getDiscount

      public Discount 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

      public void setAmount(Long amount)
      The amount discounted.
    • setDiscount

      public void setDiscount(Discount discount)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object