Package com.stripe.model
Class Price.CurrencyOption
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Price.CurrencyOption
- All Implemented Interfaces:
- StripeObjectInterface
- Enclosing class:
- Price
For more details about CurrencyOption, please refer to the API Reference.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about CustomUnitAmount, please refer to the API Reference.static classFor more details about Tier, please refer to the API Reference.
- 
Field SummaryFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanWhen set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.Only required if a default tax behavior was not provided in the Stripe Tax settings.getTiers()Each element represents a pricing tier.The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible.The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places.inthashCode()voidsetCustomUnitAmount(Price.CurrencyOption.CustomUnitAmount customUnitAmount) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.voidsetTaxBehavior(String taxBehavior) Only required if a default tax behavior was not provided in the Stripe Tax settings.voidsetTiers(List<Price.CurrencyOption.Tier> tiers) Each element represents a pricing tier.voidsetUnitAmount(Long unitAmount) The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible.voidsetUnitAmountDecimal(BigDecimal unitAmountDecimal) The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places.Methods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
- 
Constructor Details- 
CurrencyOptionpublic CurrencyOption()
 
- 
- 
Method Details- 
getCustomUnitAmountWhen set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- 
getTaxBehaviorOnly required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.
- 
getTiersEach element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme.
- 
getUnitAmountThe unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit.
- 
getUnitAmountDecimalThe unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set ifbilling_scheme=per_unit.
- 
setCustomUnitAmountWhen set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- 
setTaxBehaviorOnly required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.
- 
setTiersEach element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme.
- 
setUnitAmountThe unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit.
- 
setUnitAmountDecimalThe unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set ifbilling_scheme=per_unit.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-