Package com.stripe.param
Class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder
public static class InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscount
(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Discount> elements) Add all elements to `discounts` list.addAllTaxRate
(List<String> elements) Add all elements to `taxRates` list.addDiscount
(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Discount element) 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.Required. The ID of the price object.setQuantity
(Long quantity) Quantity for this item.Options that configure the trial on the subscription item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder addDiscount(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.discounts
for the field documentation. -
addAllDiscount
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder addAllDiscount(List<InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.discounts
for the field documentation. -
putExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.extraParams
for the field documentation. -
putMetadata
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder putMetadata(String key, String value) 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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.metadata
for the field documentation. -
putAllMetadata
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder putAllMetadata(Map<String, String> map) 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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.metadata
for the field documentation. -
setPrice
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder setPrice(String price) Required. The ID of the price object. -
setQuantity
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder setQuantity(Long quantity) Quantity for this item. -
addTaxRate
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.taxRates
for the field documentation. -
addAllTaxRate
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.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. SeeInvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.taxRates
for the field documentation. -
setTrial
public InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Builder setTrial(InvoiceUpcomingLinesListParams.ScheduleDetails.Amendment.ItemAction.Add.Trial trial) Options that configure the trial on the subscription item.
-