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.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(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.extraParamsfor 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.extraParamsfor the field documentation. -
setTaxBehavior
public PriceCreateParams.CurrencyOption.Builder setTaxBehavior(PriceCreateParams.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 eitherinclusiveorexclusive, 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.tiersfor 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.tiersfor 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_amountandunit_amount_decimalcan be set.
-