Package com.stripe.model
Class QuotePreviewSubscriptionSchedule.DefaultSettings
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuotePreviewSubscriptionSchedule.DefaultSettings
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- QuotePreviewSubscriptionSchedule
For more details about DefaultSettings, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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 InvoiceSettings, please refer to the API Reference.static classFor more details about TransferData, 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 booleanbooleanA 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.Get ID of expandabledefaultPaymentMethodobject.Get expandeddefaultPaymentMethod.Subscription description, meant to be displayable to the customer.Get ID of expandableonBehalfOfobject.Get expandedonBehalfOf.Configures how the subscription schedule handles billing for phase transitions.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.inthashCode()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.DefaultSettings.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.voidvoidsetDefaultPaymentMethodObject(PaymentMethod expandableObject) voidsetDescription(String description) Subscription description, meant to be displayable to the customer.voidsetInvoiceSettings(QuotePreviewSubscriptionSchedule.DefaultSettings.InvoiceSettings invoiceSettings) voidsetOnBehalfOf(String id) voidsetOnBehalfOfObject(Account expandableObject) voidsetPhaseEffectiveAt(String phaseEffectiveAt) Configures how the subscription schedule handles billing for phase transitions.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.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
DefaultSettings
public DefaultSettings()
-
-
Method Details
-
getDefaultPaymentMethod
Get ID of expandabledefaultPaymentMethodobject. -
setDefaultPaymentMethod
-
getDefaultPaymentMethodObject
Get expandeddefaultPaymentMethod. -
setDefaultPaymentMethodObject
-
getOnBehalfOf
Get ID of expandableonBehalfOfobject. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf. -
setOnBehalfOfObject
-
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. -
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. -
getInvoiceSettings
-
getPhaseEffectiveAt
Configures how the subscription schedule handles billing for phase transitions. Possible values arephase_start(default) orbilling_period_start.phase_startbills based on the current state of the subscription, ignoring changes scheduled in future phases.billing_period_startbills predictively for upcoming phase 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, orphase_start. -
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. -
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
public void setAutomaticTax(QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax automaticTax) -
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.DefaultSettings.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. -
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. -
setInvoiceSettings
public void setInvoiceSettings(QuotePreviewSubscriptionSchedule.DefaultSettings.InvoiceSettings invoiceSettings) -
setPhaseEffectiveAt
Configures how the subscription schedule handles billing for phase transitions. Possible values arephase_start(default) orbilling_period_start.phase_startbills based on the current state of the subscription, ignoring changes scheduled in future phases.billing_period_startbills predictively for upcoming phase 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, orphase_start. -
setTransferData
public void setTransferData(QuotePreviewSubscriptionSchedule.DefaultSettings.TransferData transferData) 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. -
equals
-
canEqual
-
hashCode
public int hashCode()
-