Package com.stripe.param
Class InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set
public static class InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscount(List<InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.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) If an item with thepricealready exists, passing this will override the quantity on the subscription item that matches that price.If an item with thepricealready exists, passing this will override thetrialconfiguration on the subscription item that matches that price.setTrialOffer(String trialOffer) The ID of the trial offer to apply to the configuration item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder addDiscount(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.discountsfor the field documentation. -
addAllDiscount
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder addAllDiscount(List<InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.discountsfor the field documentation. -
putExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.extraParamsfor the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.extraParamsfor the field documentation. -
putMetadata
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.metadatafor the field documentation. -
putAllMetadata
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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. SeeInvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.metadatafor the field documentation. -
setPrice
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder setPrice(String price) Required. The ID of the price object. -
setQuantity
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder setQuantity(Long quantity) If an item with thepricealready exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, theitemsarray is cleared and a single new item is added with the suppliedquantity. -
addTaxRate
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.taxRatesfor the field documentation. -
addAllTaxRate
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.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.Amendment.ItemAction.Set.taxRatesfor the field documentation. -
setTrial
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder setTrial(InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Trial trial) If an item with thepricealready exists, passing this will override thetrialconfiguration on the subscription item that matches that price. Otherwise, theitemsarray is cleared and a single new item is added with the suppliedtrial. -
setTrialOffer
public InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Builder setTrialOffer(String trialOffer) The ID of the trial offer to apply to the configuration item.
-