Package com.stripe.param
Class ProductCreateParams.DefaultPriceData.Builder
java.lang.Object
com.stripe.param.ProductCreateParams.DefaultPriceData.Builder
- Enclosing class:
- ProductCreateParams.DefaultPriceData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.Add all map key/value pairs to `currencyOptions` map.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.Add a key/value pair to `currencyOptions` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setCurrency(String currency) Three-letter ISO currency code, in lowercase.The recurring components of a price such asintervalandinterval_count.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. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
putCurrencyOption
public ProductCreateParams.DefaultPriceData.Builder putCurrencyOption(String key, ProductCreateParams.DefaultPriceData.CurrencyOption value) Add a key/value pair to `currencyOptions` 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.currencyOptionsfor the field documentation. -
putAllCurrencyOption
public ProductCreateParams.DefaultPriceData.Builder putAllCurrencyOption(Map<String, ProductCreateParams.DefaultPriceData.CurrencyOption> map) Add all map key/value pairs to `currencyOptions` 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.currencyOptionsfor the field documentation. -
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. SeeProductCreateParams.DefaultPriceData.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. SeeProductCreateParams.DefaultPriceData.extraParamsfor the field documentation. -
setRecurring
public ProductCreateParams.DefaultPriceData.Builder setRecurring(ProductCreateParams.DefaultPriceData.Recurring recurring) The recurring components of a price such asintervalandinterval_count. -
setTaxBehavior
public ProductCreateParams.DefaultPriceData.Builder setTaxBehavior(ProductCreateParams.DefaultPriceData.TaxBehavior taxBehavior) 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. -
setUnitAmount
A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One ofunit_amountorunit_amount_decimalis required. -
setUnitAmountDecimal
public ProductCreateParams.DefaultPriceData.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.
-