Class AutomaticRule

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

public class AutomaticRule extends StripeObject implements HasId
  • Constructor Details

    • AutomaticRule

      public AutomaticRule()
  • Method Details

    • getBillableItem

      public String getBillableItem()
      The ID of the BillableItem.
    • getCreated

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

    • getStatus

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

      One of active, or inactive.

    • getTaxCode

      public String getTaxCode()
      A TaxCode object that will be used for automatic tax calculations.
    • setBillableItem

      public void setBillableItem(String billableItem)
      The ID of the BillableItem.
    • setCreated

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

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

    • setStatus

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

      One of active, or inactive.

    • setTaxCode

      public void setTaxCode(String taxCode)
      A TaxCode object that will be used for automatic tax calculations.
    • 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 AutomaticRule object.
      Specified by:
      getId in interface HasId