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

    • Discount

      public Discount()
  • Method Details

    • 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