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 Summary
Nested 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 Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CurrencyOption
public CurrencyOption()
-
-
Method Details
-
getCustomUnitAmount
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. -
getTaxBehavior
Only 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. -
getTiers
Each element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme. -
getUnitAmount
The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit. -
getUnitAmountDecimal
The 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. -
setCustomUnitAmount
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. -
setTaxBehavior
Only 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. -
setTiers
Each element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme. -
setUnitAmount
The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit. -
setUnitAmountDecimal
The 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
-
hashCode
public int hashCode()
-