Package com.stripe.param
Class InvoiceLineItemUpdateParams.PriceData.Builder
java.lang.Object
com.stripe.param.InvoiceLineItemUpdateParams.PriceData.Builder
- Enclosing class:
- InvoiceLineItemUpdateParams.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) Required. Three-letter ISO currency code, in lowercase.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.setProduct
(EmptyParam product) The ID of the product that this price will belong to.setProduct
(String product) The ID of the product that this price will belong to.Data used to generate a new product object inline.Only required if a default tax behavior was not provided in the Stripe Tax settings.setUnitAmount
(Long unitAmount) A non-negative integer in cents (or local equivalent) 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
Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCurrency
Required. 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. SeeInvoiceLineItemUpdateParams.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. SeeInvoiceLineItemUpdateParams.PriceData.extraParams
for the field documentation. -
setProduct
The ID of the product that this price will belong to. One ofproduct
orproduct_data
is required. -
setProduct
The ID of the product that this price will belong to. One ofproduct
orproduct_data
is required. -
setProductData
public InvoiceLineItemUpdateParams.PriceData.Builder setProductData(InvoiceLineItemUpdateParams.PriceData.ProductData productData) Data used to generate a new product object inline. One ofproduct
orproduct_data
is required. -
setTaxBehavior
public InvoiceLineItemUpdateParams.PriceData.Builder setTaxBehavior(InvoiceLineItemUpdateParams.PriceData.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 eitherinclusive
orexclusive
, it cannot be changed. -
setUnitAmount
A non-negative integer in cents (or local equivalent) representing how much to charge. One ofunit_amount
orunit_amount_decimal
is required. -
setUnitAmountDecimal
public InvoiceLineItemUpdateParams.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 InvoiceLineItemUpdateParams.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.
-