Package com.stripe.param
Class SubscriptionCreateParams.AddInvoiceItem.PriceData.Builder
java.lang.Object
com.stripe.param.SubscriptionCreateParams.AddInvoiceItem.PriceData.Builder
- Enclosing class:
SubscriptionCreateParams.AddInvoiceItem.PriceData
-
Constructor Summary
Constructors -
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.setCurrency
(String currency) Three-letter ISO currency code, in lowercase.setProduct
(String product) The ID of the product that this price will belong to.Specifies whether the price is considered inclusive of taxes or exclusive of taxes.setUnitAmount
(Long unitAmount) A positive integer in %s (or 0 for a free price) representing how much to charge.setUnitAmountDecimal
(BigDecimal unitAmountDecimal)
-
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. -
putExtraParam
public SubscriptionCreateParams.AddInvoiceItem.PriceData.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. SeeSubscriptionCreateParams.AddInvoiceItem.PriceData.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionCreateParams.AddInvoiceItem.PriceData.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. SeeSubscriptionCreateParams.AddInvoiceItem.PriceData.extraParams
for the field documentation. -
setProduct
The ID of the product that this price will belong to. -
setTaxBehavior
public SubscriptionCreateParams.AddInvoiceItem.PriceData.Builder setTaxBehavior(SubscriptionCreateParams.AddInvoiceItem.PriceData.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. -
setUnitAmount
A positive integer in %s (or 0 for a free price) representing how much to charge. -
setUnitAmountDecimal
public SubscriptionCreateParams.AddInvoiceItem.PriceData.Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal)
-