Package com.stripe.param
Class ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder
java.lang.Object
com.stripe.param.ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder
- Enclosing class:
- ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount
public static class ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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.setEnabled
(Boolean enabled) Required. Pass intrue
to enablecustom_unit_amount
, otherwise omitcustom_unit_amount
.setMaximum
(Long maximum) The maximum unit amount the customer can specify for this item.setMinimum
(Long minimum) The minimum unit amount the customer can specify for this item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEnabled
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder setEnabled(Boolean enabled) Required. Pass intrue
to enablecustom_unit_amount
, otherwise omitcustom_unit_amount
. -
putExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.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.CustomUnitAmount.extraParams
for the field documentation. -
putAllExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.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.CustomUnitAmount.extraParams
for the field documentation. -
setMaximum
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder setMaximum(Long maximum) The maximum unit amount the customer can specify for this item. -
setMinimum
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder setMinimum(Long minimum) The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount. -
setPreset
public ProductCreateParams.DefaultPriceData.CurrencyOption.CustomUnitAmount.Builder setPreset(Long preset)
-