Package com.stripe.param
Class QuoteUpdateParams.Line.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.Line.Builder
- Enclosing class:
- QuoteUpdateParams.Line
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAction
(QuoteUpdateParams.Line.Action element) Add an element to `actions` list.addAllAction
(List<QuoteUpdateParams.Line.Action> elements) Add all elements to `actions` 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.setAppliesTo
(QuoteUpdateParams.Line.AppliesTo appliesTo) Details to identify the subscription schedule the quote line applies to.setBillingCycleAnchor
(QuoteUpdateParams.Line.BillingCycleAnchor billingCycleAnchor) For point-in-time quote lines (having noends_at
timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_at
timestamp.For time-span based quote lines (having bothstarts_at
andends_at
), the only valid value isautomatic
, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.setCancelSubscriptionSchedule
(QuoteUpdateParams.Line.CancelSubscriptionSchedule cancelSubscriptionSchedule) A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp.Details to identify the end of the time range modified by the proposed change.setId
(EmptyParam id) The ID of an existing line on the quote.The ID of an existing line on the quote.setProrationBehavior
(QuoteUpdateParams.Line.ProrationBehavior prorationBehavior) Changes to how Stripe handles prorations during the quote line's time span.setSetPauseCollection
(QuoteUpdateParams.Line.SetPauseCollection setPauseCollection) Defines how to pause collection for the underlying subscription throughout the duration of the amendment.setSetScheduleEnd
(QuoteUpdateParams.Line.SetScheduleEnd setScheduleEnd) Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.setStartsAt
(QuoteUpdateParams.Line.StartsAt startsAt) Details to identify the earliest timestamp where the proposed change should take effect.setTrialSettings
(QuoteUpdateParams.Line.TrialSettings trialSettings) Settings related to subscription trials.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAction
Add an element to `actions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.Line.actions
for the field documentation. -
addAllAction
Add all elements to `actions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.Line.actions
for the field documentation. -
setAppliesTo
Details to identify the subscription schedule the quote line applies to. -
setBillingCycleAnchor
public QuoteUpdateParams.Line.Builder setBillingCycleAnchor(QuoteUpdateParams.Line.BillingCycleAnchor billingCycleAnchor) For point-in-time quote lines (having noends_at
timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_at
timestamp.For time-span based quote lines (having bothstarts_at
andends_at
), the only valid value isautomatic
, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line. -
setCancelSubscriptionSchedule
public QuoteUpdateParams.Line.Builder setCancelSubscriptionSchedule(QuoteUpdateParams.Line.CancelSubscriptionSchedule cancelSubscriptionSchedule) A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible withquote_acceptance_date
forstarts_at
. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings. -
setEndsAt
Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp atstarts_at
, and a restricted set of attributes is supported on the quote line. -
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. SeeQuoteUpdateParams.Line.extraParams
for 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. SeeQuoteUpdateParams.Line.extraParams
for the field documentation. -
setId
The ID of an existing line on the quote. -
setId
The ID of an existing line on the quote. -
setProrationBehavior
public QuoteUpdateParams.Line.Builder setProrationBehavior(QuoteUpdateParams.Line.ProrationBehavior prorationBehavior) Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts. -
setSetPauseCollection
public QuoteUpdateParams.Line.Builder setSetPauseCollection(QuoteUpdateParams.Line.SetPauseCollection setPauseCollection) Defines how to pause collection for the underlying subscription throughout the duration of the amendment. -
setSetScheduleEnd
public QuoteUpdateParams.Line.Builder setSetScheduleEnd(QuoteUpdateParams.Line.SetScheduleEnd setScheduleEnd) Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date. -
setStartsAt
Details to identify the earliest timestamp where the proposed change should take effect. -
setTrialSettings
public QuoteUpdateParams.Line.Builder setTrialSettings(QuoteUpdateParams.Line.TrialSettings trialSettings) Settings related to subscription trials.
-