Package com.stripe.model
Class QuotePreviewSubscriptionSchedule.Phase
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuotePreviewSubscriptionSchedule.Phase
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- QuotePreviewSubscriptionSchedule
A phase describes the plans, coupon, and trialing status of a subscription for a predefined
time period.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn Add Invoice Item describes the prices and quantities that will be added as pending invoice items when entering a phase.static classFor more details about AutomaticTax, please refer to the API Reference.static classFor more details about BillingThresholds, please refer to the API Reference.static classFor more details about Discount, please refer to the API Reference.static classFor more details about InvoiceSettings, please refer to the API Reference.static classA phase item describes the price and quantity of a phase.static classThe Pause Collection settings specify how to pause collection for a subscription during a phase by modifying the behavior of the invoices that are generated during the paused period.static classFor more details about TransferData, 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 prices and quantities that will generate invoice items appended to the next invoice for this phase.A non-negative decimal between 0 and 100, with at most two decimal places.Possible values arephase_startorautomatic.Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.Eithercharge_automatically, orsend_invoice.Three-letter ISO currency code, in lowercase.Get ID of expandabledefaultPaymentMethodobject.Get expandeddefaultPaymentMethod.The default tax rates to apply to the subscription during this phase of the subscription schedule.Subscription description, meant to be displayable to the customer.The stackable discounts that will be applied to the subscription on this phase.The end of this phase of the subscription schedule.The invoice settings applicable during this phase.getItems()Subscription items to configure the subscription to during this phase of the subscription schedule.Set of key-value pairs that you can attach to a phase.Get ID of expandableonBehalfOfobject.Get expandedonBehalfOf.If specified, payment collection for this subscription will be paused.When transitioning phases, controls how prorations are handled (if any).The start of this phase of the subscription schedule.The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.Specify behavior of the trial when crossing schedule phase boundariesWhen the trial ends within the phase.Settings related to any trials on the subscription during this phase.inthashCode()voidsetAddInvoiceItems(List<QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem> addInvoiceItems) A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.voidsetApplicationFeePercent(BigDecimal applicationFeePercent) A non-negative decimal between 0 and 100, with at most two decimal places.voidvoidsetBillingCycleAnchor(String billingCycleAnchor) Possible values arephase_startorautomatic.voidsetBillingThresholds(QuotePreviewSubscriptionSchedule.Phase.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.voidsetCollectionMethod(String collectionMethod) Eithercharge_automatically, orsend_invoice.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidvoidsetDefaultPaymentMethodObject(PaymentMethod expandableObject) voidsetDefaultTaxRates(List<TaxRate> defaultTaxRates) The default tax rates to apply to the subscription during this phase of the subscription schedule.voidsetDescription(String description) Subscription description, meant to be displayable to the customer.voidThe stackable discounts that will be applied to the subscription on this phase.voidsetEndDate(Long endDate) The end of this phase of the subscription schedule.voidsetInvoiceSettings(QuotePreviewSubscriptionSchedule.Phase.InvoiceSettings invoiceSettings) The invoice settings applicable during this phase.voidSubscription items to configure the subscription to during this phase of the subscription schedule.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to a phase.voidsetOnBehalfOf(String id) voidsetOnBehalfOfObject(Account expandableObject) voidsetPauseCollection(QuotePreviewSubscriptionSchedule.Phase.PauseCollection pauseCollection) If specified, payment collection for this subscription will be paused.voidsetProrationBehavior(String prorationBehavior) When transitioning phases, controls how prorations are handled (if any).voidsetStartDate(Long startDate) The start of this phase of the subscription schedule.voidThe account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.voidsetTrialContinuation(String trialContinuation) Specify behavior of the trial when crossing schedule phase boundariesvoidsetTrialEnd(Long trialEnd) When the trial ends within the phase.voidSettings related to any trials on the subscription during this phase.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Phase
public Phase()
-
-
Method Details
-
getDefaultPaymentMethod
Get ID of expandabledefaultPaymentMethodobject. -
setDefaultPaymentMethod
-
getDefaultPaymentMethodObject
Get expandeddefaultPaymentMethod. -
setDefaultPaymentMethodObject
-
getOnBehalfOf
Get ID of expandableonBehalfOfobject. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf. -
setOnBehalfOfObject
-
getAddInvoiceItems
A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. -
getApplicationFeePercent
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule. -
getAutomaticTax
-
getBillingCycleAnchor
Possible values arephase_startorautomatic. Ifphase_startthen billing cycle anchor of the subscription is set to the start of the phase when entering the phase. Ifautomaticthen the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.One of
automatic, orphase_start. -
getBillingThresholds
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. -
getCollectionMethod
Eithercharge_automatically, orsend_invoice. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription asactive.One of
charge_automatically, orsend_invoice. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDefaultTaxRates
The default tax rates to apply to the subscription during this phase of the subscription schedule. -
getDescription
Subscription 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. -
getDiscounts
The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts. -
getEndDate
The end of this phase of the subscription schedule. -
getInvoiceSettings
The invoice settings applicable during this phase. -
getItems
Subscription items to configure the subscription to during this phase of the subscription schedule. -
getMetadata
Set of key-value pairs that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription'smetadatawhen the phase is entered. Updating the underlying subscription'smetadatadirectly will not affect the current phase'smetadata. -
getPauseCollection
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated topaused. Learn more about pausing collection. -
getProrationBehavior
When transitioning phases, controls how prorations are handled (if any). Possible values arecreate_prorations,none, andalways_invoice.One of
always_invoice,create_prorations, ornone. -
getStartDate
The start of this phase of the subscription schedule. -
getTransferData
The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. -
getTrialContinuation
Specify behavior of the trial when crossing schedule phase boundariesOne of
continue, ornone. -
getTrialEnd
When the trial ends within the phase. -
getTrialSettings
Settings related to any trials on the subscription during this phase. -
setAddInvoiceItems
public void setAddInvoiceItems(List<QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem> addInvoiceItems) A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. -
setApplicationFeePercent
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule. -
setAutomaticTax
-
setBillingCycleAnchor
Possible values arephase_startorautomatic. Ifphase_startthen billing cycle anchor of the subscription is set to the start of the phase when entering the phase. Ifautomaticthen the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.One of
automatic, orphase_start. -
setBillingThresholds
public void setBillingThresholds(QuotePreviewSubscriptionSchedule.Phase.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. -
setCollectionMethod
Eithercharge_automatically, orsend_invoice. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription asactive.One of
charge_automatically, orsend_invoice. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDefaultTaxRates
The default tax rates to apply to the subscription during this phase of the subscription schedule. -
setDescription
Subscription 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. -
setDiscounts
The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts. -
setEndDate
The end of this phase of the subscription schedule. -
setInvoiceSettings
public void setInvoiceSettings(QuotePreviewSubscriptionSchedule.Phase.InvoiceSettings invoiceSettings) The invoice settings applicable during this phase. -
setItems
Subscription items to configure the subscription to during this phase of the subscription schedule. -
setMetadata
Set of key-value pairs that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription'smetadatawhen the phase is entered. Updating the underlying subscription'smetadatadirectly will not affect the current phase'smetadata. -
setPauseCollection
public void setPauseCollection(QuotePreviewSubscriptionSchedule.Phase.PauseCollection pauseCollection) If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated topaused. Learn more about pausing collection. -
setProrationBehavior
When transitioning phases, controls how prorations are handled (if any). Possible values arecreate_prorations,none, andalways_invoice.One of
always_invoice,create_prorations, ornone. -
setStartDate
The start of this phase of the subscription schedule. -
setTransferData
The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. -
setTrialContinuation
Specify behavior of the trial when crossing schedule phase boundariesOne of
continue, ornone. -
setTrialEnd
When the trial ends within the phase. -
setTrialSettings
Settings related to any trials on the subscription during this phase. -
equals
-
canEqual
-
hashCode
public int hashCode()
-