public static class SubscriptionSchedule.Phase extends StripeObject
PRETTY_PRINT_GSON| Constructor and Description |
|---|
Phase() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(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.BigDecimal |
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.
|
java.lang.String |
getBillingCycleAnchor()
Possible values are
phase_start or automatic. |
Subscription.BillingThresholds |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
java.lang.String |
getCollectionMethod()
Either
charge_automatically, or send_invoice. |
java.lang.String |
getCoupon()
Get ID of expandable
coupon object. |
Coupon |
getCouponObject()
Get expanded
coupon. |
java.lang.String |
getDefaultPaymentMethod()
Get ID of expandable
defaultPaymentMethod object. |
PaymentMethod |
getDefaultPaymentMethodObject()
Get expanded
defaultPaymentMethod. |
java.util.List<TaxRate> |
getDefaultTaxRates()
The default tax rates to apply to the subscription during this phase of the subscription
schedule.
|
java.lang.Long |
getEndDate()
The end of this phase of the subscription schedule.
|
SubscriptionSchedule.InvoiceSettings |
getInvoiceSettings()
The subscription schedule's default invoice settings.
|
java.util.List<SubscriptionSchedule.PhaseItem> |
getPlans()
Plans to subscribe during this phase of the subscription schedule.
|
java.lang.String |
getProrationBehavior()
If the subscription schedule will prorate when transitioning to this phase.
|
java.lang.Long |
getStartDate()
The start of this phase of the subscription schedule.
|
java.math.BigDecimal |
getTaxPercent()
If provided, each invoice created during this phase of the subscription schedule will apply
the tax rate, increasing the amount billed to the customer.
|
Subscription.TransferData |
getTransferData()
The account (if any) the 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.Long |
getTrialEnd()
When the trial ends within the phase.
|
int |
hashCode() |
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.
|
void |
setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.
|
void |
setBillingCycleAnchor(java.lang.String billingCycleAnchor)
Possible values are
phase_start or automatic. |
void |
setBillingThresholds(Subscription.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
void |
setCollectionMethod(java.lang.String collectionMethod)
Either
charge_automatically, or send_invoice. |
void |
setCoupon(java.lang.String id) |
void |
setCouponObject(Coupon expandableObject) |
void |
setDefaultPaymentMethod(java.lang.String id) |
void |
setDefaultPaymentMethodObject(PaymentMethod expandableObject) |
void |
setDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)
The default tax rates to apply to the subscription during this phase of the subscription
schedule.
|
void |
setEndDate(java.lang.Long endDate)
The end of this phase of the subscription schedule.
|
void |
setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
The subscription schedule's default invoice settings.
|
void |
setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
Plans to subscribe during this phase of the subscription schedule.
|
void |
setProrationBehavior(java.lang.String prorationBehavior)
If the subscription schedule will prorate when transitioning to this phase.
|
void |
setStartDate(java.lang.Long startDate)
The start of this phase of the subscription schedule.
|
void |
setTaxPercent(java.math.BigDecimal taxPercent)
If provided, each invoice created during this phase of the subscription schedule will apply
the tax rate, increasing the amount billed to the customer.
|
void |
setTransferData(Subscription.TransferData transferData)
The account (if any) the 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.
|
void |
setTrialEnd(java.lang.Long trialEnd)
When the trial ends within the phase.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.String getCoupon()
coupon object.public void setCoupon(java.lang.String id)
public Coupon getCouponObject()
coupon.public void setCouponObject(Coupon expandableObject)
public java.lang.String getDefaultPaymentMethod()
defaultPaymentMethod object.public void setDefaultPaymentMethod(java.lang.String id)
public PaymentMethod getDefaultPaymentMethodObject()
defaultPaymentMethod.public void setDefaultPaymentMethodObject(PaymentMethod expandableObject)
public java.util.List<SubscriptionSchedule.AddInvoiceItem> getAddInvoiceItems()
public java.math.BigDecimal getApplicationFeePercent()
public java.lang.String getBillingCycleAnchor()
phase_start or automatic. If phase_start then
billing cycle anchor of the subscription is set to the start of the phase when entering the
phase. If automatic then the billing cycle anchor is automatically modified as needed
when entering the phase. For more information, see the billing cycle documentation.
One of automatic, or phase_start.
public Subscription.BillingThresholds getBillingThresholds()
public java.lang.String getCollectionMethod()
charge_automatically, or send_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, or send_invoice.
public java.util.List<TaxRate> getDefaultTaxRates()
public java.lang.Long getEndDate()
public SubscriptionSchedule.InvoiceSettings getInvoiceSettings()
public java.util.List<SubscriptionSchedule.PhaseItem> getPlans()
public java.lang.String getProrationBehavior()
create_prorations and none.
One of always_invoice, create_prorations, or none.
public java.lang.Long getStartDate()
public java.math.BigDecimal getTaxPercent()
public Subscription.TransferData getTransferData()
public java.lang.Long getTrialEnd()
public void setAddInvoiceItems(java.util.List<SubscriptionSchedule.AddInvoiceItem> addInvoiceItems)
public void setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
public void setBillingCycleAnchor(java.lang.String billingCycleAnchor)
phase_start or automatic. If phase_start then
billing cycle anchor of the subscription is set to the start of the phase when entering the
phase. If automatic then the billing cycle anchor is automatically modified as needed
when entering the phase. For more information, see the billing cycle documentation.
One of automatic, or phase_start.
public void setBillingThresholds(Subscription.BillingThresholds billingThresholds)
public void setCollectionMethod(java.lang.String collectionMethod)
charge_automatically, or send_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, or send_invoice.
public void setDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)
public void setEndDate(java.lang.Long endDate)
public void setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
public void setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
public void setProrationBehavior(java.lang.String prorationBehavior)
create_prorations and none.
One of always_invoice, create_prorations, or none.
public void setStartDate(java.lang.Long startDate)
public void setTaxPercent(java.math.BigDecimal taxPercent)
public void setTransferData(Subscription.TransferData transferData)
public void setTrialEnd(java.lang.Long trialEnd)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object