Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder
public static class InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder
extends Object
-
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) Required. Three-letter ISO currency code, in lowercase.setProduct(String product) setTaxBehavior(InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.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 or a negative integer representing the amount to credit to the customer.setUnitAmountDecimal(BigDecimal unitAmountDecimal)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder setCurrency(String currency) Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
putExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.extraParamsfor the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.extraParamsfor the field documentation. -
setProduct
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder setProduct(String product) -
setTaxBehavior
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder setTaxBehavior(InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.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 eitherinclusiveorexclusive, it cannot be changed. -
setUnitAmount
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder setUnitAmount(Long unitAmount) A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer. -
setUnitAmountDecimal
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal)
-