Class ServiceAction

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

public class ServiceAction extends StripeObject implements HasId
  • Constructor Details

    • ServiceAction

      public ServiceAction()
  • Method Details

    • getCreated

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

      public ServiceAction.CreditGrant getCreditGrant()
      Details for the credit grant. Provided only if type is "credit_grant".
    • getCreditGrantPerTenant

      public ServiceAction.CreditGrantPerTenant getCreditGrantPerTenant()
      Details for the credit grant per tenant. Provided only if type is "credit_grant_per_tenant".
    • 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.
    • getLookupKey

      public String getLookupKey()
      An internal key you can use to search for this service action.
    • 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.service_action.

    • getServiceInterval

      public String getServiceInterval()
      The interval for assessing service.

      One of day, month, week, or year.

    • getServiceIntervalCount

      public Integer getServiceIntervalCount()
      The length of the interval for assessing service.
    • getType

      public String getType()
      The type of the service action.

      One of credit_grant, or credit_grant_per_tenant.

    • setCreated

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

      public void setCreditGrant(ServiceAction.CreditGrant creditGrant)
      Details for the credit grant. Provided only if type is "credit_grant".
    • setCreditGrantPerTenant

      public void setCreditGrantPerTenant(ServiceAction.CreditGrantPerTenant creditGrantPerTenant)
      Details for the credit grant per tenant. Provided only if type is "credit_grant_per_tenant".
    • 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.
    • setLookupKey

      public void setLookupKey(String lookupKey)
      An internal key you can use to search for this service action.
    • 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.service_action.

    • setServiceInterval

      public void setServiceInterval(String serviceInterval)
      The interval for assessing service.

      One of day, month, week, or year.

    • setServiceIntervalCount

      public void setServiceIntervalCount(Integer serviceIntervalCount)
      The length of the interval for assessing service.
    • setType

      public void setType(String type)
      The type of the service action.

      One of credit_grant, or credit_grant_per_tenant.

    • 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