Package com.stripe.model
Class Quote.SubscriptionDataOverride
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Quote.SubscriptionDataOverride
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Quote
For more details about SubscriptionDataOverride, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AppliesTo, please refer to the API Reference.static classSets the billing schedule for the quote.static classFor more details about BillOnAcceptance, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanConfigures when the subscription schedule generates prorations for phase transitions.Billing schedules that will be applied to the subscription or subscription schedule created from this quote.Describes the period to bill for upon accepting the quote.The customer which this quote belongs to.The subscription's description, meant to be displayable to the customer.Behavior of the subscription schedule and underlying subscription when it ends.Configures how the quote handles billing for line transitions.Determines how to handle prorations when the quote is accepted.inthashCode()voidvoidsetBillingBehavior(String billingBehavior) Configures when the subscription schedule generates prorations for phase transitions.voidsetBillingSchedules(List<Quote.SubscriptionDataOverride.BillingSchedule> billingSchedules) Billing schedules that will be applied to the subscription or subscription schedule created from this quote.voidsetBillOnAcceptance(Quote.SubscriptionDataOverride.BillOnAcceptance billOnAcceptance) Describes the period to bill for upon accepting the quote.voidsetCustomer(String customer) The customer which this quote belongs to.voidsetDescription(String description) The subscription's description, meant to be displayable to the customer.voidsetEndBehavior(String endBehavior) Behavior of the subscription schedule and underlying subscription when it ends.voidsetPhaseEffectiveAt(String phaseEffectiveAt) Configures how the quote handles billing for line transitions.voidsetProrationBehavior(String prorationBehavior) Determines how to handle prorations when the quote is accepted.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SubscriptionDataOverride
public SubscriptionDataOverride()
-
-
Method Details
-
getAppliesTo
-
getBillOnAcceptance
Describes the period to bill for upon accepting the quote. -
getBillingBehavior
Configures when the subscription schedule generates prorations for phase transitions. Possible values areprorate_on_next_phaseorprorate_up_frontwith the default beingprorate_on_next_phase.prorate_on_next_phasewill apply phase changes and generate prorations at transition time.prorate_up_frontwill bill for all phases within the current billing cycle up front.One of
prorate_on_next_phase, orprorate_up_front. -
getBillingSchedules
Billing schedules that will be applied to the subscription or subscription schedule created from this quote. -
getCustomer
The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. -
getDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
getEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends.One of
cancel, orrelease. -
getPhaseEffectiveAt
Configures how the quote handles billing for line transitions. Possible values areline_start(default) orbilling_period_start.line_startbills based on the current state of the line, ignoring changes scheduled for future lines.billing_period_startbills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.One of
billing_period_start, orline_start. -
getProrationBehavior
Determines how to handle prorations when the quote is accepted.One of
always_invoice,create_prorations, ornone. -
setAppliesTo
-
setBillOnAcceptance
Describes the period to bill for upon accepting the quote. -
setBillingBehavior
Configures when the subscription schedule generates prorations for phase transitions. Possible values areprorate_on_next_phaseorprorate_up_frontwith the default beingprorate_on_next_phase.prorate_on_next_phasewill apply phase changes and generate prorations at transition time.prorate_up_frontwill bill for all phases within the current billing cycle up front.One of
prorate_on_next_phase, orprorate_up_front. -
setBillingSchedules
public void setBillingSchedules(List<Quote.SubscriptionDataOverride.BillingSchedule> billingSchedules) Billing schedules that will be applied to the subscription or subscription schedule created from this quote. -
setCustomer
The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. -
setDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
setEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends.One of
cancel, orrelease. -
setPhaseEffectiveAt
Configures how the quote handles billing for line transitions. Possible values areline_start(default) orbilling_period_start.line_startbills based on the current state of the line, ignoring changes scheduled for future lines.billing_period_startbills predictively for upcoming line transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice.One of
billing_period_start, orline_start. -
setProrationBehavior
Determines how to handle prorations when the quote is accepted.One of
always_invoice,create_prorations, ornone. -
equals
-
canEqual
-
hashCode
public int hashCode()
-