Package com.stripe.model
Class QuoteLine
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine
- All Implemented Interfaces:
HasId,StripeObjectInterface
A quote line defines a set of changes, in the order provided, that will be applied upon quote
acceptance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Action, please refer to the API Reference.static classFor more details about AppliesTo, please refer to the API Reference.static classConfigures the immediate cancellation settings for a subscription schedule via quotes.static classFor more details about EndsAt, please refer to the API Reference.static classConfigures the pause collection settings for a subscription during a phase.static classFor more details about StartsAt, please refer to the API Reference.static classConfigures how the scheduled subscription behaves during the trial period. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA list of items the customer is being quoted for.Details to identify the subscription schedule the quote line applies to.For point-in-time quote lines (having noends_attimestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_attimestamp.For time-span based quote lines (having bothstarts_atandends_at), the only valid value isautomatic, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.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.getId()Unique identifier for the object.String representing the object's type.Changes to how Stripe handles prorations during the quote line's time span.Details to modify the pause_collection behavior of the subscription schedule.Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.Details to identify the earliest timestamp where the proposed change should take effect.Settings related to subscription trials.inthashCode()voidsetActions(List<QuoteLine.Action> actions) A list of items the customer is being quoted for.voidsetAppliesTo(QuoteLine.AppliesTo appliesTo) Details to identify the subscription schedule the quote line applies to.voidsetBillingCycleAnchor(String billingCycleAnchor) For point-in-time quote lines (having noends_attimestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_attimestamp.For time-span based quote lines (having bothstarts_atandends_at), the only valid value isautomatic, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.voidsetCancelSubscriptionSchedule(QuoteLine.CancelSubscriptionSchedule cancelSubscriptionSchedule) A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp.voidsetEndsAt(QuoteLine.EndsAt endsAt) Details to identify the end of the time range modified by the proposed change.voidUnique identifier for the object.voidString representing the object's type.voidsetProrationBehavior(String prorationBehavior) Changes to how Stripe handles prorations during the quote line's time span.voidsetSetPauseCollection(QuoteLine.SetPauseCollection setPauseCollection) Details to modify the pause_collection behavior of the subscription schedule.voidsetSetScheduleEnd(String setScheduleEnd) Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.voidsetStartsAt(QuoteLine.StartsAt startsAt) Details to identify the earliest timestamp where the proposed change should take effect.voidsetTrialSettings(QuoteLine.TrialSettings trialSettings) Settings related to subscription trials.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
QuoteLine
public QuoteLine()
-
-
Method Details
-
getActions
A list of items the customer is being quoted for. -
getAppliesTo
Details to identify the subscription schedule the quote line applies to. -
getBillingCycleAnchor
For point-in-time quote lines (having noends_attimestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_attimestamp.For time-span based quote lines (having bothstarts_atandends_at), the only valid value isautomatic, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.One of
automatic, orline_starts_at. -
getCancelSubscriptionSchedule
A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible withquote_acceptance_dateforstarts_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. -
getEndsAt
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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_line. -
getProrationBehavior
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.One of
always_invoice,create_prorations, ornone. -
getSetPauseCollection
Details to modify the pause_collection behavior of the subscription schedule. -
getSetScheduleEnd
Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.One of
line_ends_at, orline_starts_at. -
getStartsAt
Details to identify the earliest timestamp where the proposed change should take effect. -
getTrialSettings
Settings related to subscription trials. -
setActions
A list of items the customer is being quoted for. -
setAppliesTo
Details to identify the subscription schedule the quote line applies to. -
setBillingCycleAnchor
For point-in-time quote lines (having noends_attimestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Linestarts_attimestamp.For time-span based quote lines (having bothstarts_atandends_at), the only valid value isautomatic, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.One of
automatic, orline_starts_at. -
setCancelSubscriptionSchedule
public void setCancelSubscriptionSchedule(QuoteLine.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_dateforstarts_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. -
setId
Unique identifier for the object. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_line. -
setProrationBehavior
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.One of
always_invoice,create_prorations, ornone. -
setSetPauseCollection
Details to modify the pause_collection behavior of the subscription schedule. -
setSetScheduleEnd
Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.One of
line_ends_at, orline_starts_at. -
setStartsAt
Details to identify the earliest timestamp where the proposed change should take effect. -
setTrialSettings
Settings related to subscription trials. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-