Package com.stripe.param
Class ProductCreateParams.DefaultPriceData.CurrencyOption.Builder
java.lang.Object
com.stripe.param.ProductCreateParams.DefaultPriceData.CurrencyOption.Builder
- Enclosing class:
- ProductCreateParams.DefaultPriceData.CurrencyOption
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd 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
(ProductCreateParams.DefaultPriceData.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 ProductCreateParams.DefaultPriceData.CurrencyOption.Builder setCustomUnitAmount(ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount customUnitAmount) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. -
putExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.Builder putExtraParam(String key, Object value) 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. SeeProductCreateParams.DefaultPriceData.CurrencyOption.extraParams
for the field documentation. -
putAllExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.Builder putAllExtraParam(Map<String, Object> map) 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. SeeProductCreateParams.DefaultPriceData.CurrencyOption.extraParams
for the field documentation. -
setTaxBehavior
public ProductCreateParams.DefaultPriceData.CurrencyOption.Builder setTaxBehavior(ProductCreateParams.DefaultPriceData.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 ProductCreateParams.DefaultPriceData.CurrencyOption.Builder addTier(ProductCreateParams.DefaultPriceData.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. SeeProductCreateParams.DefaultPriceData.CurrencyOption.tiers
for the field documentation. -
addAllTier
public ProductCreateParams.DefaultPriceData.CurrencyOption.Builder addAllTier(List<ProductCreateParams.DefaultPriceData.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. SeeProductCreateParams.DefaultPriceData.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
public ProductCreateParams.DefaultPriceData.CurrencyOption.Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) 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.
-