Package com.stripe.param
Class SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder
- java.lang.Object
-
- com.stripe.param.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder
-
- Enclosing class:
- SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData
public static class SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData build()
Finalize and obtain parameter instance from this builder.
-
setCurrency
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setCurrency
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setCurrency(EmptyParam currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
putExtraParam
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder putExtraParam(java.lang.String key, java.lang.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. SeeSubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.extraParams
for the field documentation.
-
putAllExtraParam
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeeSubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.extraParams
for the field documentation.
-
setProduct
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setProduct(java.lang.String product)
The ID of the product that this price will belong to.
-
setProduct
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setProduct(EmptyParam product)
The ID of the product that this price will belong to.
-
setTaxBehavior
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setTaxBehavior(SubscriptionScheduleUpdateParams.Phase.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
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setUnitAmount(java.lang.Long unitAmount)
A positive integer in %s (or 0 for a free price) representing how much to charge.
-
setUnitAmountDecimal
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
Same asunit_amount
, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set.
-
setUnitAmountDecimal
public SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal)
-
-