Package com.stripe.model.v2.billing
Class ServiceAction.CreditGrant
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.ServiceAction.CreditGrant
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- ServiceAction
Details for the credit grant. Provided only if
type
is "credit_grant".-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The amount of the credit grant.static class
Defines the scope where the credit grant is applicable.static class
The expiry configuration for the credit grant. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount of the credit grant.Defines the scope where the credit grant is applicable.The category of the credit grant.The expiry configuration for the credit grant.getName()
A descriptive name shown in dashboard.The desired priority for applying this credit grant.int
hashCode()
void
The amount of the credit grant.void
setApplicabilityConfig
(ServiceAction.CreditGrant.ApplicabilityConfig applicabilityConfig) Defines the scope where the credit grant is applicable.void
setCategory
(String category) The category of the credit grant.void
setExpiryConfig
(ServiceAction.CreditGrant.ExpiryConfig expiryConfig) The expiry configuration for the credit grant.void
A descriptive name shown in dashboard.void
setPriority
(Long priority) The desired priority for applying this credit grant.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CreditGrant
public CreditGrant()
-
-
Method Details
-
getAmount
The amount of the credit grant. -
getApplicabilityConfig
Defines the scope where the credit grant is applicable. -
getCategory
The category of the credit grant.One of
paid
, orpromotional
. -
getExpiryConfig
The expiry configuration for the credit grant. -
getName
A descriptive name shown in dashboard. -
getPriority
The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100. -
setAmount
The amount of the credit grant. -
setApplicabilityConfig
public void setApplicabilityConfig(ServiceAction.CreditGrant.ApplicabilityConfig applicabilityConfig) Defines the scope where the credit grant is applicable. -
setCategory
The category of the credit grant.One of
paid
, orpromotional
. -
setExpiryConfig
The expiry configuration for the credit grant. -
setName
A descriptive name shown in dashboard. -
setPriority
The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100. -
equals
-
canEqual
-
hashCode
public int hashCode()
-