Package com.stripe.model
Class SubscriptionSchedule.Phase
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.SubscriptionSchedule.Phase
-
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- SubscriptionSchedule
public static class SubscriptionSchedule.Phase extends StripeObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionSchedule.Phase.AutomaticTax
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Phase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.List<SubscriptionSchedule.AddInvoiceItem>getAddInvoiceItems()A list of prices and quantities that will generate invoice items appended to the first invoice for this phase.java.math.BigDecimalgetApplicationFeePercent()A non-negative decimal between 0 and 100, with at most two decimal places.SubscriptionSchedule.Phase.AutomaticTaxgetAutomaticTax()java.lang.StringgetBillingCycleAnchor()Possible values arephase_startorautomatic.Subscription.BillingThresholdsgetBillingThresholds()Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.java.lang.StringgetCollectionMethod()Eithercharge_automatically, orsend_invoice.java.lang.StringgetCoupon()Get ID of expandablecouponobject.CoupongetCouponObject()Get expandedcoupon.java.lang.StringgetDefaultPaymentMethod()Get ID of expandabledefaultPaymentMethodobject.PaymentMethodgetDefaultPaymentMethodObject()Get expandeddefaultPaymentMethod.java.util.List<TaxRate>getDefaultTaxRates()The default tax rates to apply to the subscription during this phase of the subscription schedule.java.lang.LonggetEndDate()The end of this phase of the subscription schedule.SubscriptionSchedule.InvoiceSettingsgetInvoiceSettings()The invoice settings applicable during this phase.java.util.List<SubscriptionSchedule.PhaseItem>getItems()Subscription items to configure the subscription to during this phase of the subscription schedule.java.lang.StringgetProrationBehavior()If the subscription schedule will prorate when transitioning to this phase.java.lang.LonggetStartDate()The start of this phase of the subscription schedule.Subscription.TransferDatagetTransferData()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.java.lang.LonggetTrialEnd()When the trial ends within the phase.inthashCode()voidsetAddInvoiceItems(java.util.List<SubscriptionSchedule.AddInvoiceItem> addInvoiceItems)A list of prices and quantities that will generate invoice items appended to the first invoice for this phase.voidsetApplicationFeePercent(java.math.BigDecimal applicationFeePercent)A non-negative decimal between 0 and 100, with at most two decimal places.voidsetAutomaticTax(SubscriptionSchedule.Phase.AutomaticTax automaticTax)voidsetBillingCycleAnchor(java.lang.String billingCycleAnchor)Possible values arephase_startorautomatic.voidsetBillingThresholds(Subscription.BillingThresholds billingThresholds)Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.voidsetCollectionMethod(java.lang.String collectionMethod)Eithercharge_automatically, orsend_invoice.voidsetCoupon(java.lang.String id)voidsetCouponObject(Coupon expandableObject)voidsetDefaultPaymentMethod(java.lang.String id)voidsetDefaultPaymentMethodObject(PaymentMethod expandableObject)voidsetDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)The default tax rates to apply to the subscription during this phase of the subscription schedule.voidsetEndDate(java.lang.Long endDate)The end of this phase of the subscription schedule.voidsetInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)The invoice settings applicable during this phase.voidsetItems(java.util.List<SubscriptionSchedule.PhaseItem> items)Subscription items to configure the subscription to during this phase of the subscription schedule.voidsetProrationBehavior(java.lang.String prorationBehavior)If the subscription schedule will prorate when transitioning to this phase.voidsetStartDate(java.lang.Long startDate)The start of this phase of the subscription schedule.voidsetTransferData(Subscription.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.voidsetTrialEnd(java.lang.Long trialEnd)When the trial ends within the phase.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCoupon
public java.lang.String getCoupon()
Get ID of expandablecouponobject.
-
setCoupon
public void setCoupon(java.lang.String id)
-
getCouponObject
public Coupon getCouponObject()
Get expandedcoupon.
-
setCouponObject
public void setCouponObject(Coupon expandableObject)
-
getDefaultPaymentMethod
public java.lang.String getDefaultPaymentMethod()
Get ID of expandabledefaultPaymentMethodobject.
-
setDefaultPaymentMethod
public void setDefaultPaymentMethod(java.lang.String id)
-
getDefaultPaymentMethodObject
public PaymentMethod getDefaultPaymentMethodObject()
Get expandeddefaultPaymentMethod.
-
setDefaultPaymentMethodObject
public void setDefaultPaymentMethodObject(PaymentMethod expandableObject)
-
getAddInvoiceItems
public java.util.List<SubscriptionSchedule.AddInvoiceItem> getAddInvoiceItems()
A list of prices and quantities that will generate invoice items appended to the first invoice for this phase.
-
getApplicationFeePercent
public java.math.BigDecimal getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
-
getAutomaticTax
public SubscriptionSchedule.Phase.AutomaticTax getAutomaticTax()
-
getBillingCycleAnchor
public java.lang.String 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
public Subscription.BillingThresholds getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
-
getCollectionMethod
public java.lang.String 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.One of
charge_automatically, orsend_invoice.
-
getDefaultTaxRates
public java.util.List<TaxRate> getDefaultTaxRates()
The default tax rates to apply to the subscription during this phase of the subscription schedule.
-
getEndDate
public java.lang.Long getEndDate()
The end of this phase of the subscription schedule.
-
getInvoiceSettings
public SubscriptionSchedule.InvoiceSettings getInvoiceSettings()
The invoice settings applicable during this phase.
-
getItems
public java.util.List<SubscriptionSchedule.PhaseItem> getItems()
Subscription items to configure the subscription to during this phase of the subscription schedule.
-
getProrationBehavior
public java.lang.String getProrationBehavior()
If the subscription schedule will prorate when transitioning to this phase. Possible values arecreate_prorationsandnone.One of
always_invoice,create_prorations, ornone.
-
getStartDate
public java.lang.Long getStartDate()
The start of this phase of the subscription schedule.
-
getTransferData
public Subscription.TransferData 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.
-
getTrialEnd
public java.lang.Long getTrialEnd()
When the trial ends within the phase.
-
setAddInvoiceItems
public void setAddInvoiceItems(java.util.List<SubscriptionSchedule.AddInvoiceItem> addInvoiceItems)
A list of prices and quantities that will generate invoice items appended to the first invoice for this phase.
-
setApplicationFeePercent
public void setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
-
setAutomaticTax
public void setAutomaticTax(SubscriptionSchedule.Phase.AutomaticTax automaticTax)
-
setBillingCycleAnchor
public void setBillingCycleAnchor(java.lang.String billingCycleAnchor)
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(Subscription.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
-
setCollectionMethod
public void setCollectionMethod(java.lang.String collectionMethod)
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.One of
charge_automatically, orsend_invoice.
-
setDefaultTaxRates
public void setDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)
The default tax rates to apply to the subscription during this phase of the subscription schedule.
-
setEndDate
public void setEndDate(java.lang.Long endDate)
The end of this phase of the subscription schedule.
-
setInvoiceSettings
public void setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
The invoice settings applicable during this phase.
-
setItems
public void setItems(java.util.List<SubscriptionSchedule.PhaseItem> items)
Subscription items to configure the subscription to during this phase of the subscription schedule.
-
setProrationBehavior
public void setProrationBehavior(java.lang.String prorationBehavior)
If the subscription schedule will prorate when transitioning to this phase. Possible values arecreate_prorationsandnone.One of
always_invoice,create_prorations, ornone.
-
setStartDate
public void setStartDate(java.lang.Long startDate)
The start of this phase of the subscription schedule.
-
setTransferData
public void setTransferData(Subscription.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.
-
setTrialEnd
public void setTrialEnd(java.lang.Long trialEnd)
When the trial ends within the phase.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-