Package com.stripe.param
Class InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder
- Enclosing class:
- InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData
public static class InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.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.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.setProduct
(String product) Required. The ID of the product that this price will belong to.Required. The recurring components of a price such asinterval
andinterval_count
.setTaxBehavior
(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.TaxBehavior taxBehavior) Only required if a default tax behavior was not provided in the Stripe Tax settings.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
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder setCurrency(String currency) Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
putExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.extraParams
for the field documentation. -
setProduct
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder setProduct(String product) Required. The ID of the product that this price will belong to. -
setRecurring
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder setRecurring(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Recurring recurring) Required. The recurring components of a price such asinterval
andinterval_count
. -
setTaxBehavior
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder setTaxBehavior(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData.Builder setUnitAmount(Long unitAmount) A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. -
setUnitAmountDecimal
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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.
-