Package com.stripe.param
Class PriceCreateParams.CurrencyOption.Builder
java.lang.Object
com.stripe.param.PriceCreateParams.CurrencyOption.Builder
- Enclosing class:
- PriceCreateParams.CurrencyOption
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTier
(List<PriceCreateParams.CurrencyOption.Tier> elements) Add all elements to `tiers` list.Add an element to `tiers` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setCustomUnitAmount
(PriceCreateParams.CurrencyOption.CustomUnitAmount customUnitAmount) When 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.setUnitAmount
(Long unitAmount) A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.setUnitAmountDecimal
(BigDecimal unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCustomUnitAmount
public PriceCreateParams.CurrencyOption.Builder setCustomUnitAmount(PriceCreateParams.CurrencyOption.CustomUnitAmount customUnitAmount) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePriceCreateParams.CurrencyOption.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePriceCreateParams.CurrencyOption.extraParams
for the field documentation. -
setTaxBehavior
public PriceCreateParams.CurrencyOption.Builder setTaxBehavior(PriceCreateParams.CurrencyOption.TaxBehavior taxBehavior) Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive
,exclusive
, orunspecified
. Once specified as eitherinclusive
orexclusive
, it cannot be changed. -
addTier
public PriceCreateParams.CurrencyOption.Builder addTier(PriceCreateParams.CurrencyOption.Tier element) Add an element to `tiers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePriceCreateParams.CurrencyOption.tiers
for the field documentation. -
addAllTier
public PriceCreateParams.CurrencyOption.Builder addAllTier(List<PriceCreateParams.CurrencyOption.Tier> elements) Add all elements to `tiers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePriceCreateParams.CurrencyOption.tiers
for the field documentation. -
setUnitAmount
A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. -
setUnitAmountDecimal
Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set.
-