Package com.stripe.param
Class OrderUpdateParams.LineItem.PriceData.Builder
java.lang.Object
com.stripe.param.OrderUpdateParams.LineItem.PriceData.Builder
- Enclosing class:
- OrderUpdateParams.LineItem.PriceData
-
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.setCurrency
(EmptyParam currency) Three-letter ISO currency code, in lowercase.setCurrency
(String currency) Three-letter ISO currency code, in lowercase.setProduct
(EmptyParam product) ID of the product this price belongs to.setProduct
(String product) ID of the product this price belongs to.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
(EmptyParam unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.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. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
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. SeeOrderUpdateParams.LineItem.PriceData.extraParams
for 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. SeeOrderUpdateParams.LineItem.PriceData.extraParams
for the field documentation. -
setProduct
ID of the product this price belongs to.Use this to implement a variable-pricing model in your integration. This is required if
product_data
is not specifed. -
setProduct
ID of the product this price belongs to.Use this to implement a variable-pricing model in your integration. This is required if
product_data
is not specifed. -
setTaxBehavior
public OrderUpdateParams.LineItem.PriceData.Builder setTaxBehavior(OrderUpdateParams.LineItem.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 cents (or local equivalent) (or 0 for a free price) representing how much to charge. -
setUnitAmountDecimal
public OrderUpdateParams.LineItem.PriceData.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_amount
andunit_amount_decimal
can be set. -
setUnitAmountDecimal
public OrderUpdateParams.LineItem.PriceData.Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set.
-