Package com.stripe.param
Class SubscriptionUpdateParams.AddInvoiceItem.Builder
java.lang.Object
com.stripe.param.SubscriptionUpdateParams.AddInvoiceItem.Builder
- Enclosing class:
- SubscriptionUpdateParams.AddInvoiceItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd 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.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.setDiscountable(Boolean discountable) Controls whether discounts apply to this invoice item.The period associated with this invoice item.setPrice(EmptyParam price) The ID of the price object.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. -
setDiscountable
Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. -
addDiscount
public SubscriptionUpdateParams.AddInvoiceItem.Builder addDiscount(SubscriptionUpdateParams.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. SeeSubscriptionUpdateParams.AddInvoiceItem.discountsfor the field documentation. -
addAllDiscount
public SubscriptionUpdateParams.AddInvoiceItem.Builder addAllDiscount(List<SubscriptionUpdateParams.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. SeeSubscriptionUpdateParams.AddInvoiceItem.discountsfor the field documentation. -
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. SeeSubscriptionUpdateParams.AddInvoiceItem.extraParamsfor 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. SeeSubscriptionUpdateParams.AddInvoiceItem.extraParamsfor the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionUpdateParams.AddInvoiceItem.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionUpdateParams.AddInvoiceItem.metadatafor the field documentation. -
setPeriod
public SubscriptionUpdateParams.AddInvoiceItem.Builder setPeriod(SubscriptionUpdateParams.AddInvoiceItem.Period period) The period associated with this invoice item. If not set,period.start.typedefaults tomax_item_period_startandperiod.end.typedefaults tomin_item_period_end. -
setPrice
The ID of the price object. One ofpriceorprice_datais required. -
setPrice
The ID of the price object. One ofpriceorprice_datais required. -
setPriceData
public SubscriptionUpdateParams.AddInvoiceItem.Builder setPriceData(SubscriptionUpdateParams.AddInvoiceItem.PriceData priceData) -
setQuantity
Quantity for this item. Defaults to 1. -
addTaxRate
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. SeeSubscriptionUpdateParams.AddInvoiceItem.taxRatesfor the field documentation. -
addAllTaxRate
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. SeeSubscriptionUpdateParams.AddInvoiceItem.taxRatesfor the field documentation. -
setTaxRates
The tax rates which apply to the item. When set, thedefault_tax_ratesdo not apply to this item. -
setTaxRates
The tax rates which apply to the item. When set, thedefault_tax_ratesdo not apply to this item.
-