Class IntentAction.Apply

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

public static class IntentAction.Apply extends StripeObject
Details for an apply action.
  • Constructor Details

    • Apply

      public Apply()
  • Method Details

    • getEffectiveAt

      public IntentAction.Apply.EffectiveAt getEffectiveAt()
      When the apply action will take effect. Defaults to on_reserve if not specified.
    • getInvoiceDiscountRule

      public IntentAction.Apply.InvoiceDiscountRule getInvoiceDiscountRule()
      Details for applying a discount rule to future invoices.
    • getSpendModifierRule

      public IntentAction.Apply.SpendModifierRule getSpendModifierRule()
      Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.
    • getType

      public String getType()
      Type of the apply action details.

      One of invoice_discount_rule, or spend_modifier_rule.

    • setEffectiveAt

      public void setEffectiveAt(IntentAction.Apply.EffectiveAt effectiveAt)
      When the apply action will take effect. Defaults to on_reserve if not specified.
    • setInvoiceDiscountRule

      public void setInvoiceDiscountRule(IntentAction.Apply.InvoiceDiscountRule invoiceDiscountRule)
      Details for applying a discount rule to future invoices.
    • setSpendModifierRule

      public void setSpendModifierRule(IntentAction.Apply.SpendModifierRule spendModifierRule)
      Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.
    • setType

      public void setType(String type)
      Type of the apply action details.

      One of invoice_discount_rule, or spend_modifier_rule.

    • 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