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
-
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.Specifies whether the price is considered inclusive of taxes or exclusive of taxes.getTiers()Each element represents a pricing tier.The unit amount in %s to be charged, represented as a whole integer if possible.The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places.inthashCode()voidsetCustomUnitAmount(Price.CustomUnitAmount customUnitAmount) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.voidsetTaxBehavior(String taxBehavior) Specifies whether the price is considered inclusive of taxes or exclusive of taxes.voidsetTiers(List<Price.Tier> tiers) Each element represents a pricing tier.voidsetUnitAmount(Long unitAmount) The unit amount in %s to be charged, represented as a whole integer if possible.voidsetUnitAmountDecimal(BigDecimal unitAmountDecimal) The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places.Methods inherited from class com.stripe.model.StripeObject
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
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 %s to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit. -
getUnitAmountDecimal
The unit amount in %s 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
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 %s to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit. -
setUnitAmountDecimal
The unit amount in %s 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()
-