Class QuoteLine.Action.AddDiscount

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine.Action.AddDiscount
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
QuoteLine.Action

public static class QuoteLine.Action.AddDiscount extends StripeObject
  • Constructor Details

    • AddDiscount

      public AddDiscount()
  • Method Details

    • getCoupon

      public String getCoupon()
      Get ID of expandable coupon object.
    • setCoupon

      public void setCoupon(String id)
    • getCouponObject

      public Coupon getCouponObject()
      Get expanded coupon.
    • setCouponObject

      public void setCouponObject(Coupon expandableObject)
    • getDiscount

      public String getDiscount()
      Get ID of expandable discount object.
    • setDiscount

      public void setDiscount(String id)
    • getDiscountObject

      public Discount getDiscountObject()
      Get expanded discount.
    • setDiscountObject

      public void setDiscountObject(Discount expandableObject)
    • getDiscountEnd

      Details to determine how long the discount should be applied for.
    • getIndex

      public Long getIndex()
      The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the discounts array.
    • setDiscountEnd

      public void setDiscountEnd(QuoteLine.Action.AddDiscount.DiscountEnd discountEnd)
      Details to determine how long the discount should be applied for.
    • setIndex

      public void setIndex(Long index)
      The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the discounts array.
    • 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