Class ManualRule

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

public class ManualRule extends StripeObject implements HasId
A ManualRule holds tax rates for a BillableItem. It can hold at most 5 distinct tax rates.
  • Constructor Details

    • ManualRule

      public ManualRule()
  • Method Details

    • getCreated

      public Instant getCreated()
      The time at which the ManualRule 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.
    • getLocation

      public ManualRule.Location getLocation()
      Location where the rule applies.
    • 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.tax.manual_rule.

    • getProducts

      public List<ManualRule.Product> getProducts()
      Products associated with the rule.
    • getScheduledTaxRates

      public List<ManualRule.ScheduledTaxRate> getScheduledTaxRates()
      Tax rates to be applied.
    • getStatus

      public String getStatus()
      The status of the ManualRule object.

      One of active, or inactive.

    • setCreated

      public void setCreated(Instant created)
      The time at which the ManualRule object was created.
    • setId

      public void setId(String id)
      The ID of the ManualRule 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.
    • setLocation

      public void setLocation(ManualRule.Location location)
      Location where the rule applies.
    • 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.tax.manual_rule.

    • setProducts

      public void setProducts(List<ManualRule.Product> products)
      Products associated with the rule.
    • setScheduledTaxRates

      public void setScheduledTaxRates(List<ManualRule.ScheduledTaxRate> scheduledTaxRates)
      Tax rates to be applied.
    • setStatus

      public void setStatus(String status)
      The status of the ManualRule object.

      One of active, or inactive.

    • 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()
      The ID of the ManualRule object.
      Specified by:
      getId in interface HasId