Package com.stripe.model.v2.billing
Class ServiceAction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.ServiceAction
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about CreditGrant, please refer to the API Reference.static class
For more details about CreditGrantPerTenant, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Timestamp of when the object was created.Details for the credit grant.Details for the credit grant per tenant.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.An internal key you can use to search for this service action.String representing the object's type.The interval for assessing service.The length of the interval for assessing service.getType()
The type of the service action.int
hashCode()
void
setCreated
(Instant created) Timestamp of when the object was created.void
setCreditGrant
(ServiceAction.CreditGrant creditGrant) Details for the credit grant.void
setCreditGrantPerTenant
(ServiceAction.CreditGrantPerTenant creditGrantPerTenant) Details for the credit grant per tenant.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setLookupKey
(String lookupKey) An internal key you can use to search for this service action.void
String representing the object's type.void
setServiceInterval
(String serviceInterval) The interval for assessing service.void
setServiceIntervalCount
(Integer serviceIntervalCount) The length of the interval for assessing service.void
The type of the service action.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ServiceAction
public ServiceAction()
-
-
Method Details
-
getCreated
Timestamp of when the object was created. -
getCreditGrant
Details for the credit grant. Provided only iftype
is "credit_grant". -
getCreditGrantPerTenant
Details for the credit grant per tenant. Provided only iftype
is "credit_grant_per_tenant". -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getLookupKey
An internal key you can use to search for this service action. -
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
The interval for assessing service.One of
day
,month
,week
, oryear
. -
getServiceIntervalCount
The length of the interval for assessing service. -
getType
The type of the service action.One of
credit_grant
, orcredit_grant_per_tenant
. -
setCreated
Timestamp of when the object was created. -
setCreditGrant
Details for the credit grant. Provided only iftype
is "credit_grant". -
setCreditGrantPerTenant
Details for the credit grant per tenant. Provided only iftype
is "credit_grant_per_tenant". -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setLookupKey
An internal key you can use to search for this service action. -
setObject
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
The interval for assessing service.One of
day
,month
,week
, oryear
. -
setServiceIntervalCount
The length of the interval for assessing service. -
setType
The type of the service action.One of
credit_grant
, orcredit_grant_per_tenant
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-