Class CadenceSpendModifier

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.CadenceSpendModifier
All Implemented Interfaces:
HasId, StripeObjectInterface

public class CadenceSpendModifier extends StripeObject implements HasId
A Spend Modifier changes how spend is computed when billing for specific cadence.
  • Constructor Details

    • CadenceSpendModifier

      public CadenceSpendModifier()
  • Method Details

    • getBillingCadence

      public String getBillingCadence()
      The ID of the Billing Cadence this spend modifier is associated with.
    • getCreated

      public Instant getCreated()
      Timestamp of when the object was created.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getMaxBillingPeriodSpend

      public CadenceSpendModifier.MaxBillingPeriodSpend getMaxBillingPeriodSpend()
      Max invoice spend details. Present if type is max_billing_period_spend.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.cadence_spend_modifier.

    • getType

      public String getType()
      The type of the spend modifier.

      Equal to max_billing_period_spend.

    • setBillingCadence

      public void setBillingCadence(String billingCadence)
      The ID of the Billing Cadence this spend modifier is associated with.
    • setCreated

      public void setCreated(Instant created)
      Timestamp of when the object was created.
    • setId

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

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setMaxBillingPeriodSpend

      public void setMaxBillingPeriodSpend(CadenceSpendModifier.MaxBillingPeriodSpend maxBillingPeriodSpend)
      Max invoice spend details. Present if type is max_billing_period_spend.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.cadence_spend_modifier.

    • setType

      public void setType(String type)
      The type of the spend modifier.

      Equal to max_billing_period_spend.

    • 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