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