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
For more details about CreditGrant, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Amount, please refer to the API Reference.static class
For more details about ApplicabilityConfig, please refer to the API Reference.static class
For more details about ExpiryConfig, 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
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
(Integer 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()
-