Package com.stripe.param
Class PriceUpdateParams.CurrencyOption.Builder
java.lang.Object
com.stripe.param.PriceUpdateParams.CurrencyOption.Builder
- Enclosing class:
- PriceUpdateParams.CurrencyOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTier
(List<PriceUpdateParams.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
(PriceUpdateParams.CurrencyOption.CustomUnitAmount customUnitAmount) When 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.setUnitAmount
(Long unitAmount) A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.setUnitAmountDecimal
(EmptyParam unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.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 PriceUpdateParams.CurrencyOption.Builder setCustomUnitAmount(PriceUpdateParams.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. SeePriceUpdateParams.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. SeePriceUpdateParams.CurrencyOption.extraParams
for the field documentation. -
setTaxBehavior
public PriceUpdateParams.CurrencyOption.Builder setTaxBehavior(PriceUpdateParams.CurrencyOption.TaxBehavior taxBehavior) 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 eitherinclusive
orexclusive
, it cannot be changed. -
addTier
public PriceUpdateParams.CurrencyOption.Builder addTier(PriceUpdateParams.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. SeePriceUpdateParams.CurrencyOption.tiers
for the field documentation. -
addAllTier
public PriceUpdateParams.CurrencyOption.Builder addAllTier(List<PriceUpdateParams.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. SeePriceUpdateParams.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. -
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.
-