Package com.stripe.param
Class InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder
java.lang.Object
com.stripe.param.InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder
- Enclosing class:
- InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item
-
Constructor Summary
-
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.setBillingThresholds
(EmptyParam billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setBillingThresholds
(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setDiscounts
(EmptyParam discounts) The coupons to redeem into discounts for the subscription item.The coupons to redeem into discounts for the subscription item.The plan ID to subscribe to.The ID of the price object.Data used to generate a new Price object inline.setQuantity
(Long quantity) Quantity for the given price.setTaxRates
(EmptyParam taxRates) A list of Tax Rate ids.setTaxRates
(List<String> taxRates) A list of Tax Rate ids.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingThresholds
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setBillingThresholds(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. -
setBillingThresholds
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setBillingThresholds(EmptyParam billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. -
addDiscount
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder addDiscount(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.discounts
for the field documentation. -
addAllDiscount
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder addAllDiscount(List<InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.discounts
for the field documentation. -
setDiscounts
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setDiscounts(EmptyParam discounts) The coupons to redeem into discounts for the subscription item. -
setDiscounts
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setDiscounts(List<InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Discount> discounts) The coupons to redeem into discounts for the subscription item. -
putExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.extraParams
for the field documentation. -
putMetadata
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.metadata
for the field documentation. -
putAllMetadata
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.metadata
for the field documentation. -
setPlan
The plan ID to subscribe to. You may specify the same ID inplan
andprice
. -
setPrice
The ID of the price object. -
setPriceData
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setPriceData(InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.PriceData priceData) Data used to generate a new Price object inline. -
setQuantity
Quantity for the given price. Can be set only if the price'susage_type
islicensed
and notmetered
. -
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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.taxRates
for the field documentation. -
addAllTaxRate
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.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. SeeInvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.taxRates
for the field documentation. -
setTaxRates
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setTaxRates(EmptyParam taxRates) A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates. -
setTaxRates
public InvoiceUpcomingLinesParams.ScheduleDetails.Phase.Item.Builder setTaxRates(List<String> taxRates) A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
-