Class IntentAction.Apply.InvoiceDiscountRule

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.IntentAction.Apply.InvoiceDiscountRule
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
IntentAction.Apply

public static class IntentAction.Apply.InvoiceDiscountRule extends StripeObject
Details for applying a discount rule to future invoices.
  • Constructor Details

    • InvoiceDiscountRule

      public InvoiceDiscountRule()
  • Method Details

    • getAppliesTo

      public String getAppliesTo()
      The entity that the discount rule applies to, for example, the Billing Cadence.

      Equal to cadence.

    • getInvoiceDiscountRule

      public String getInvoiceDiscountRule()
      The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created.
    • getPercentOff

      Configuration for percentage off discount.
    • getType

      public String getType()
      Type of the discount rule.

      Equal to percent_off.

    • setAppliesTo

      public void setAppliesTo(String appliesTo)
      The entity that the discount rule applies to, for example, the Billing Cadence.

      Equal to cadence.

    • setInvoiceDiscountRule

      public void setInvoiceDiscountRule(String invoiceDiscountRule)
      The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created.
    • setPercentOff

      public void setPercentOff(IntentAction.Apply.InvoiceDiscountRule.PercentOff percentOff)
      Configuration for percentage off discount.
    • setType

      public void setType(String type)
      Type of the discount rule.

      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