Package com.stripe.model.v2.billing
Class ServiceAction.CreditGrant.Amount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.ServiceAction.CreditGrant.Amount
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- ServiceAction.CreditGrant
For more details about Amount, please refer to the API
Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about CustomPricingUnit, 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 custom pricing unit amount of the credit grant.The monetary amount of the credit grant.getType()
The type of the credit grant amount.int
hashCode()
void
setCustomPricingUnit
(ServiceAction.CreditGrant.Amount.CustomPricingUnit customPricingUnit) The custom pricing unit amount of the credit grant.void
setMonetary
(Amount monetary) The monetary amount of the credit grant.void
The type of the credit grant amount.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Amount
public Amount()
-
-
Method Details
-
getCustomPricingUnit
The custom pricing unit amount of the credit grant. Required iftype
iscustom_pricing_unit
. -
getMonetary
The monetary amount of the credit grant. Required iftype
ismonetary
. -
getType
The type of the credit grant amount. We currently supportmonetary
andcustom_pricing_unit
billing credits.One of
custom_pricing_unit
, ormonetary
. -
setCustomPricingUnit
public void setCustomPricingUnit(ServiceAction.CreditGrant.Amount.CustomPricingUnit customPricingUnit) The custom pricing unit amount of the credit grant. Required iftype
iscustom_pricing_unit
. -
setMonetary
The monetary amount of the credit grant. Required iftype
ismonetary
. -
setType
The type of the credit grant amount. We currently supportmonetary
andcustom_pricing_unit
billing credits.One of
custom_pricing_unit
, ormonetary
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-