Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem
public static class InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscount
(List<InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount> elements) Add all elements to `discounts` list.addAllTaxRate
(List<String> elements) Add all elements to `taxRates` list.Add an element to `discounts` list.addTaxRate
(String element) Add an element to `taxRates` list.build()
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.The ID of the price object.Data used to generate a new Price object inline.setQuantity
(Long quantity) Quantity for this item.setTaxRates
(EmptyParam taxRates) The tax rates which apply to the item.setTaxRates
(List<String> taxRates) The tax rates which apply to the item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder addDiscount(InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount element) Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.discounts
for the field documentation. -
addAllDiscount
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder addAllDiscount(List<InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount> elements) Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.discounts
for the field documentation. -
putExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.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.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.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.extraParams
for the field documentation. -
setPrice
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder setPrice(String price) The ID of the price object. One ofprice
orprice_data
is required. -
setPriceData
-
setQuantity
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder setQuantity(Long quantity) Quantity for this item. Defaults to 1. -
addTaxRate
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder addTaxRate(String element) Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.taxRates
for the field documentation. -
addAllTaxRate
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder addAllTaxRate(List<String> elements) Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.taxRates
for the field documentation. -
setTaxRates
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder setTaxRates(EmptyParam taxRates) The tax rates which apply to the item. When set, thedefault_tax_rates
do not apply to this item. -
setTaxRates
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Builder setTaxRates(List<String> taxRates) The tax rates which apply to the item. When set, thedefault_tax_rates
do not apply to this item.
-