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
The amount of the credit grant.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe custom pricing unit amount of the credit grant. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe custom pricing unit amount of the credit grant.The monetary amount of the credit grant.getType()The type of the credit grant amount.inthashCode()voidsetCustomPricingUnit(ServiceAction.CreditGrant.Amount.CustomPricingUnit customPricingUnit) The custom pricing unit amount of the credit grant.voidsetMonetary(Amount monetary) The monetary amount of the credit grant.voidThe 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 iftypeiscustom_pricing_unit. -
getMonetary
The monetary amount of the credit grant. Required iftypeismonetary. -
getType
The type of the credit grant amount. We currently supportmonetaryandcustom_pricing_unitbilling 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 iftypeiscustom_pricing_unit. -
setMonetary
The monetary amount of the credit grant. Required iftypeismonetary. -
setType
The type of the credit grant amount. We currently supportmonetaryandcustom_pricing_unitbilling credits.One of
custom_pricing_unit, ormonetary. -
equals
-
canEqual
-
hashCode
public int hashCode()
-