Class Cadence.InvoiceDiscountRule

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.Cadence.InvoiceDiscountRule
All Implemented Interfaces:
HasId, StripeObjectInterface
Enclosing class:
Cadence

public static class Cadence.InvoiceDiscountRule extends StripeObject implements HasId
For more details about InvoiceDiscountRule, please refer to the API Reference.
  • Constructor Details

    • InvoiceDiscountRule

      public InvoiceDiscountRule()
  • Method Details

    • getPercentOff

      Details if the discount is a percentage off.
    • getType

      public String getType()
      The type of the discount.

      Equal to percent_off.

    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setPercentOff

      public void setPercentOff(Cadence.InvoiceDiscountRule.PercentOff percentOff)
      Details if the discount is a percentage off.
    • setType

      public void setType(String type)
      The type of the discount.

      Equal to percent_off.

    • 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
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId